/* ===================================================================
   Soken — Tier 1 Exchange Compliance
   Design language modeled on soken.dev (deep navy + blue gradient)
   =================================================================== */

:root {
  --bg: #0c1525;
  --bg-grad-top: #0e1a30;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: rgba(255, 255, 255, 0.72);
  --text-strong: #ffffff;
  --muted: rgba(255, 255, 255, 0.42);

  --accent: #6bb9ec;
  --accent-soft: rgba(107, 185, 236, 0.14);
  --brand-grad: linear-gradient(135deg, #273dd2 0%, #6bb9ec 60%, #7ac4f4 100%);
  --btn-grad: linear-gradient(135deg, #3b62ff 0%, #7ec8f0 100%);

  --container: 1140px;
  --radius: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(107, 185, 236, 0.14), transparent 70%),
    radial-gradient(720px 480px at 8% 4%, rgba(39, 61, 210, 0.16), transparent 65%);
  background-repeat: no-repeat;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15.5px;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background-image: var(--btn-grad);
  color: #06101f;
  box-shadow: 0 10px 30px -10px rgba(107, 185, 236, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(107, 185, 236, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-strong);
  padding: 11px 22px;
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(12, 21, 37, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-svg {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text-strong);
}

.nav-cta {
  background-image: var(--btn-grad);
  color: #06101f !important;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(107, 185, 236, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(107, 185, 236, 0.7);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 16ch;
}

.hero-sub {
  font-size: 18px;
  max-width: 52ch;
  margin-bottom: 34px;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Rotating logo visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero video */
.hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -28px rgba(7, 16, 31, 0.9);
}

.hero-video-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: radial-gradient(circle at 50% 45%, rgba(107, 185, 236, 0.3), transparent 65%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.logo-orbit {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(107, 185, 236, 0.28), transparent 62%);
  filter: blur(8px);
  animation: pulse 6s ease-in-out infinite;
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.logo-orbit::before {
  inset: 18px;
  border-color: rgba(107, 185, 236, 0.16);
}

.logo-orbit::after {
  inset: 64px;
  border-color: rgba(255, 255, 255, 0.06);
}

.rotating-mark {
  position: relative;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 14px 40px rgba(107, 185, 236, 0.35));
  animation: spin 22s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* ---------------- Proof / Numbers ---------------- */
.proof {
  padding: 30px 0 60px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.proof-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 32px;
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.proof-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.proof-number {
  display: block;
  font-size: clamp(46px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  background-image: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.proof-number .plus {
  -webkit-text-fill-color: transparent;
}

.proof-label {
  display: block;
  font-size: 15px;
  color: var(--text);
  max-width: 26ch;
  margin: 0 auto;
}

/* ---------------- Sections ---------------- */
.section {
  padding: 80px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head h2,
.compliance-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.section-head h2 {
  max-width: 18ch;
}

/* Compliance explainer */
.compliance-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.compliance-head h2 {
  max-width: 12ch;
}

.compliance-body p {
  margin-bottom: 18px;
  max-width: 60ch;
}

.compliance-body .btn {
  margin-top: 16px;
}

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-image: var(--brand-grad);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
  border: 1px solid rgba(107, 185, 236, 0.2);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.card p {
  font-size: 15.5px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.card .btn {
  margin-top: auto;
}

/* ---------------- Why Soken ---------------- */
.why-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 56px;
  max-width: 880px;
  position: relative;
  overflow: hidden;
}

.why-inner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(107, 185, 236, 0.18), transparent 65%);
  pointer-events: none;
}

.why-inner h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  max-width: 20ch;
  margin-bottom: 22px;
}

.why-inner p {
  max-width: 62ch;
  margin-bottom: 30px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  height: 28px;
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--muted);
  max-width: 34ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
}

.footer-telegram {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-telegram-label {
  font-size: 14px;
  color: var(--muted);
}

.footer-telegram-handle {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s var(--ease);
}

.footer-telegram-handle:hover {
  opacity: 0.78;
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
}

/* ---------------- Legal pages ---------------- */
.legal {
  padding: 70px 0 40px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 40px;
}

.legal-inner h2 {
  font-size: 21px;
  margin: 38px 0 14px;
}

.legal-inner h3 {
  font-size: 17px;
  margin: 24px 0 10px;
  color: rgba(255, 255, 255, 0.9);
}

.legal-inner p,
.legal-inner li {
  margin-bottom: 14px;
  font-size: 16px;
}

.legal-inner ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-inner a {
  color: var(--accent);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 14.5px;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.legal-back:hover {
  color: var(--accent);
}

/* ---------------- Reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual {
    order: -1;
  }
  .logo-orbit {
    width: 240px;
    height: 240px;
  }
  .rotating-mark {
    width: 112px;
  }
  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 21, 37, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
    padding: 14px 20px;
    border-bottom: none !important;
  }
  .nav-toggle {
    display: flex;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .why-inner {
    padding: 40px 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 18px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rotating-mark,
  .orbit-glow {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
