:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0d1322;
  --surface: rgba(19, 28, 48, 0.82);
  --surface-strong: #141f35;
  --line: rgba(180, 197, 232, 0.16);
  --text: #f7f9ff;
  --muted: #acb7cc;
  --primary: #7f8cff;
  --primary-strong: #a7afff;
  --accent: #55e6bc;
  --accent-soft: rgba(85, 230, 188, 0.12);
  --warning: #f2c66d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(127, 140, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 12% 34%, rgba(85, 230, 188, 0.1), transparent 30rem),
    var(--bg);
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 10, 18, 0.94);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), #4d5edd);
  box-shadow: 0 10px 30px rgba(106, 121, 255, 0.3);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 23px;
  height: 7px;
  content: "";
  border: 3px solid white;
  border-left: 0;
  border-right: 0;
  transform: rotate(45deg);
}

.brand-mark::after {
  transform: rotate(-45deg);
}

.brand em {
  color: var(--accent);
  font-style: normal;
}

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

.nav-links a {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links .nav-cta {
  padding: 10px 17px;
  color: #07120f;
  border-radius: 999px;
  background: var(--accent);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  width: 20px;
  height: 2px;
  display: block;
  position: relative;
  border-radius: 999px;
  background: currentColor;
}

.menu-button span::before,
.menu-button span::after {
  position: absolute;
  content: "";
  left: 0;
}

.menu-button span::before { top: -6px; }
.menu-button span::after { top: 6px; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  padding: 84px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  margin-bottom: 22px;
  color: var(--accent);
  border: 1px solid rgba(85, 230, 188, 0.25);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6rem);
}

h1 .gradient-text,
.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, var(--primary-strong), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 780;
  text-decoration: none;
  background: var(--surface);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 175, 255, 0.42);
}

.button-primary {
  color: #07120f;
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 12px 36px rgba(85, 230, 188, 0.18);
}

.button-primary:hover {
  background: #72efc9;
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: min(430px, 92%);
  aspect-ratio: 1;
  border: 1px solid rgba(151, 163, 255, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(145deg, rgba(127, 140, 255, 0.2), rgba(85, 230, 188, 0.06));
  box-shadow: inset 0 0 100px rgba(127, 140, 255, 0.1), 0 0 100px rgba(75, 87, 190, 0.12);
}

.orb::before,
.orb::after {
  position: absolute;
  inset: 10%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.orb::after {
  inset: 25%;
}

.app-card {
  width: min(340px, 78%);
  min-height: 520px;
  position: relative;
  z-index: 2;
  padding: 14px;
  border: 1px solid rgba(213, 220, 255, 0.23);
  border-radius: 38px;
  background: rgba(7, 11, 22, 0.88);
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.54);
  transform: rotate(4deg);
}

.app-screen {
  min-height: 490px;
  padding: 34px 22px 24px;
  border-radius: 27px;
  background: linear-gradient(155deg, #192540, #0c1323 58%, #101a2e);
  overflow: hidden;
}

.app-status {
  width: 34%;
  height: 7px;
  margin: 0 auto 34px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.app-brand-line {
  width: 58%;
  height: 17px;
  margin-bottom: 28px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.app-feature {
  height: 140px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 25%, rgba(85, 230, 188, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.055);
}

.app-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.app-tile {
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(20, 31, 53, 0.92);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
  backdrop-filter: blur(16px);
}

.floating-chip-one { top: 18%; left: -3%; }
.floating-chip-two { right: -3%; bottom: 21%; }

.section {
  padding: 104px 0;
}

.section-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 19, 34, 0.65);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2,
.legal-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-heading p,
.legal-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature-card,
.support-card,
.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.feature-card {
  min-height: 255px;
  padding: 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--accent);
  border: 1px solid rgba(85, 230, 188, 0.2);
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 1.2rem;
  font-weight: 850;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
}

.feature-card p,
.support-card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: steps;
}

.step {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  counter-increment: steps;
}

.step::before {
  display: block;
  margin-bottom: 18px;
  color: var(--primary-strong);
  content: "0" counter(steps);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta-panel {
  padding: clamp(32px, 6vw, 68px);
  position: relative;
  border: 1px solid rgba(167, 175, 255, 0.2);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(85, 230, 188, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(127, 140, 255, 0.15), rgba(20, 31, 53, 0.88));
  overflow: hidden;
}

.cta-panel h2 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.cta-panel p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 52px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--muted);
}

.footer-column strong {
  display: block;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.legal-hero {
  max-width: 840px;
  padding: 84px 0 42px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  padding-bottom: 104px;
}

.legal-nav {
  position: sticky;
  top: 106px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 19, 34, 0.72);
}

.legal-nav strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.legal-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--text);
}

.legal-content {
  padding: clamp(26px, 5vw, 58px);
}

.legal-content section {
  scroll-margin-top: 110px;
}

.legal-content section + section {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 16px;
  font-size: 1.55rem;
}

.legal-content h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 21px;
}

.legal-content a,
.inline-link {
  color: var(--accent);
}

.notice {
  padding: 18px 20px;
  margin: 22px 0;
  border-left: 3px solid var(--warning);
  border-radius: 8px 14px 14px 8px;
  background: rgba(242, 198, 109, 0.08);
  color: #e7d4aa;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 16px 0 104px;
}

.support-card {
  padding: 30px;
}

.support-card h2 {
  margin: 20px 0 10px;
  font-size: 1.35rem;
}

.support-card .button {
  margin-top: 24px;
}

.support-card-wide {
  grid-column: 1 / -1;
}

.faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.faq details p {
  margin: 12px 0 0;
}

.error-page {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 60px 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: transparent;
  background: linear-gradient(110deg, var(--primary-strong), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.error-page h1 {
  margin: 24px 0 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-page p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
}

@media (max-width: 920px) {
  .menu-button { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0d1424;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .nav-cta { text-align: center; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-visual { min-height: 530px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .section { padding: 76px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-visual { min-height: 450px; }
  .app-card { min-height: 430px; }
  .app-screen { min-height: 400px; }
  .floating-chip { font-size: 0.75rem; }
  .floating-chip-one { left: 0; }
  .floating-chip-two { right: 0; }
  .support-grid { grid-template-columns: 1fr; }
  .support-card-wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .legal-hero { padding-top: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
