:root {
  color-scheme: dark;
  --background: #07070c;
  --surface: #10101a;
  --surface-raised: #161625;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --text: #f8f7ff;
  --muted: #aaa8b8;
  --line: rgba(255, 255, 255, 0.1);
  --purple: #8b5cf6;
  --cyan: #24c8e5;
  --green: #36d37e;
  --warning: #f7b955;
  --danger: #ff667d;
  --gradient: linear-gradient(120deg, var(--purple), #735dfd 48%, var(--cyan));
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --content: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% -8%, rgba(93, 83, 255, 0.2), transparent 36rem),
    radial-gradient(circle at 5% 30%, rgba(36, 200, 229, 0.09), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(139, 92, 246, 0.6);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--cyan);
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 7, 12, 0.76);
  backdrop-filter: blur(24px) saturate(140%);
}

.nav-shell {
  display: flex;
  width: var(--content);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(72, 56, 220, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
}

.nav-links a {
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  display: grid;
  width: var(--content);
  min-height: min(760px, calc(100svh - 72px));
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: clamp(42px, 5vw, 72px);
  padding: 40px 0 48px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 15px;
  color: #bba5ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 820;
  letter-spacing: -0.064em;
  line-height: 0.95;
}

.gradient-text {
  display: inline-block;
  white-space: nowrap;
  background: var(--gradient);
  background-clip: text;
  color: transparent;
}

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

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: white;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gradient);
  box-shadow: 0 15px 42px rgba(101, 83, 244, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 0.9rem;
}

.phone-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.phone-glow {
  position: absolute;
  inset: 15% -5% 4%;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(139, 92, 246, 0.36), rgba(36, 200, 229, 0.24), rgba(139, 92, 246, 0.04));
  filter: blur(60px);
}

.phone {
  position: relative;
  width: min(284px, 82vw);
  aspect-ratio: 644 / 1400;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 47px;
  background: #080811;
  box-shadow: var(--shadow), 0 0 0 8px #11111a, 0 0 0 9px rgba(255, 255, 255, 0.12);
  transform: translate(-4px, -3px) rotate(1.35deg);
  transform-origin: 50% 54%;
}

.app-screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.trust-grid,
.feature-grid,
.steps,
.footer-grid {
  display: grid;
  width: var(--content);
  margin: 0 auto;
}

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border: 0;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 110px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 46px;
}

.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.section-heading p,
.cta-panel p {
  color: var(--muted);
  font-size: 1.06rem;
}

.feature-grid {
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.step-card,
.legal-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

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

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 15px;
  background: rgba(139, 92, 246, 0.13);
  color: #bda9ff;
  place-items: center;
  font-weight: 800;
}

.feature-card h3,
.step-card h3,
.support-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

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

.steps {
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: steps;
}

.step-card {
  padding: 27px;
  counter-increment: steps;
}

.step-card::before {
  display: block;
  margin-bottom: 34px;
  color: #a98fff;
  content: "0" counter(steps);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  width: var(--content);
  margin: 30px auto 110px;
  padding: clamp(38px, 6vw, 76px);
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(36, 200, 229, 0.07));
  box-shadow: var(--shadow);
}

.cta-panel::after {
  position: absolute;
  width: 310px;
  height: 310px;
  right: -90px;
  bottom: -170px;
  border-radius: 50%;
  background: rgba(36, 200, 229, 0.28);
  content: "";
  filter: blur(50px);
}

.page-hero {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 50px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.page-hero p {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-layout,
.support-layout {
  display: grid;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto 110px;
  gap: 18px;
}

.legal-card,
.support-card {
  padding: clamp(25px, 5vw, 46px);
}

.legal-card h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.legal-card h3 {
  margin: 28px 0 8px;
  font-size: 1.04rem;
}

.legal-card p,
.legal-card li {
  color: #c1bfcb;
}

.legal-card li + li {
  margin-top: 8px;
}

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

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(247, 185, 85, 0.35);
  border-radius: 18px;
  background: rgba(247, 185, 85, 0.08);
  color: #f4d69f;
}

.placeholder {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(255, 102, 125, 0.14);
  color: #ff9bac;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.support-layout {
  grid-template-columns: repeat(2, 1fr);
}

.support-card a {
  color: #cbbcff;
}

.event-fallback {
  display: grid;
  min-height: calc(100vh - 72px);
  padding: 60px 20px;
  place-items: center;
}

.event-panel {
  width: min(600px, 100%);
  padding: clamp(30px, 7vw, 58px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.event-panel img {
  width: 72px;
  height: 72px;
}

.event-panel h1 {
  margin: 22px 0 10px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.event-panel p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 55px 0 34px;
}

.footer-copy {
  max-width: 380px;
  color: var(--muted);
}

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

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

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

.footer-bottom {
  display: flex;
  width: var(--content);
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
  color: #858291;
  font-size: 0.84rem;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: rgba(16, 16, 26, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 68px;
  }

  .gradient-text {
    white-space: normal;
  }

  .phone-stage {
    min-height: 620px;
  }

  .phone {
    transform: none;
  }

  .feature-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 230px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --content: min(1120px, calc(100% - 28px));
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.052em;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .section {
    padding: 82px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
