:root {
  color-scheme: dark;
  --bg: #041421;
  --bg-deep: #020b14;
  --surface: rgba(9, 32, 52, 0.78);
  --surface-strong: rgba(12, 41, 66, 0.94);
  --surface-soft: rgba(15, 52, 79, 0.54);
  --line: rgba(108, 201, 230, 0.2);
  --line-strong: rgba(67, 218, 218, 0.38);
  --text: #f4fbff;
  --muted: #a8bfcc;
  --subtle: #7191a5;
  --teal: #22d5c8;
  --blue: #2ea8ff;
  --green: #53e66d;
  --green-dark: #0ea75c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(34, 213, 200, 0.15), transparent 34rem),
    radial-gradient(circle at left 20rem, rgba(46, 168, 255, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(108, 201, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 201, 230, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(34, 213, 200, 0.05) 40%, transparent 64%),
    radial-gradient(circle at 50% 105%, rgba(83, 230, 109, 0.08), transparent 32rem);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(108, 201, 230, 0.14);
  background: rgba(4, 17, 29, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: calc(100% - 32px);
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.04rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.brand span {
  display: block;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(16, 61, 91, 0.58);
}

.page {
  overflow: hidden;
}

.section {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 22%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg-deep));
  z-index: -1;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: max(-18vw, -320px);
  bottom: 0;
  width: min(68vw, 1040px);
  opacity: 0.88;
  z-index: -2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.68) 18%, black 46%);
}

.hero-content {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 0 110px;
}

.hero-copy {
  width: 100%;
  max-width: 650px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 6.8rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 860;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tagline {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-description {
  width: 100%;
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #02110d;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 16px 44px rgba(34, 213, 200, 0.25);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(11, 38, 62, 0.72);
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 690px;
  margin-top: 54px;
}

.signal-card,
.feature-card,
.topic-card,
.contact-card,
.text-panel,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(13, 45, 71, 0.82), rgba(8, 30, 49, 0.72));
  box-shadow: var(--shadow);
}

.signal-card {
  min-height: 112px;
  padding: 18px;
}

.signal-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.04rem;
}

.signal-card span {
  display: block;
  color: var(--subtle);
  font-size: 0.91rem;
  line-height: 1.45;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-heading h2,
.page-hero h1 {
  margin-bottom: 14px;
  font-size: 3.4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.page-hero p {
  color: var(--muted);
  font-size: 1.07rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 242px;
  padding: 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 213, 200, 0.32);
  border-radius: 14px;
  margin-bottom: 24px;
  color: var(--teal);
  background: rgba(34, 213, 200, 0.09);
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(4) .feature-icon {
  color: var(--blue);
  border-color: rgba(46, 168, 255, 0.32);
  background: rgba(46, 168, 255, 0.09);
}

.feature-card:nth-child(3) .feature-icon {
  color: var(--green);
  border-color: rgba(83, 230, 109, 0.32);
  background: rgba(83, 230, 109, 0.09);
}

.feature-card h3,
.topic-card h3,
.contact-card h2,
.text-panel h2,
.legal-card h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-card p,
.topic-card p,
.contact-card p,
.text-panel p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.cta-band {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 213, 200, 0.13), rgba(46, 168, 255, 0.07) 48%, rgba(83, 230, 109, 0.1)),
    rgba(7, 27, 44, 0.9);
  box-shadow: var(--shadow);
}

.cta-band::before {
  position: absolute;
  inset: auto -10% -50% 18%;
  height: 190px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(83, 230, 109, 0.18), transparent 68%);
}

.cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.cta-content h2 {
  margin-bottom: 14px;
  font-size: 3rem;
  line-height: 1.02;
}

.cta-content p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.ios-card {
  justify-self: end;
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(83, 230, 109, 0.3);
  border-radius: 22px;
  padding: 22px;
  background: rgba(3, 15, 25, 0.56);
}

.ios-card span {
  display: block;
  color: var(--subtle);
  font-size: 0.9rem;
  font-weight: 700;
}

.ios-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.18;
}

.page-hero {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 0 36px;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.contact-card,
.text-panel,
.legal-card,
.topic-card {
  padding: 26px;
}

.contact-card {
  position: sticky;
  top: 104px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mini-link-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mini-link-stack a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.mini-link-stack a:hover,
.mini-link-stack a:focus-visible {
  color: var(--text);
}

.reset-hero {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 76px);
  padding-top: 64px;
  padding-bottom: 64px;
}

.auth-panel {
  width: min(100%, 560px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 6vw, 42px);
  background: linear-gradient(180deg, rgba(13, 45, 71, 0.9), rgba(8, 30, 49, 0.78));
  box-shadow: var(--shadow);
}

.auth-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.auth-panel h1 {
  font-size: 3.3rem;
}

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

.form-stack {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 780;
}

.form-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(3, 15, 25, 0.76);
  font: inherit;
}

.form-field input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(34, 213, 200, 0.16);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.status-message {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(3, 15, 25, 0.48);
}

.status-message[data-tone="success"] {
  border-color: rgba(83, 230, 109, 0.38);
  color: #dfffe7;
  background: rgba(14, 167, 92, 0.14);
}

.status-message[data-tone="error"] {
  border-color: rgba(255, 102, 102, 0.44);
  color: #ffd7d7;
  background: rgba(255, 64, 64, 0.12);
}

.helper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.helper-links a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  min-height: 168px;
}

.legal-stack {
  display: grid;
  gap: 16px;
}

.legal-card ul {
  padding-left: 22px;
  margin: 10px 0 0;
}

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

.effective-date {
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(108, 201, 230, 0.14);
  background: rgba(2, 11, 20, 0.62);
}

.footer-shell {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--subtle);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .hero-visual {
    top: 34%;
    right: -34%;
    width: 110vw;
    opacity: 0.34;
  }

  .hero-visual img {
    mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 74%, transparent 100%);
  }

  .hero-content {
    padding-top: 82px;
    padding-bottom: 74px;
  }

  h1 {
    font-size: 5.2rem;
  }

  .section-heading h2,
  .page-hero h1 {
    font-size: 3rem;
  }

  .cta-content h2 {
    font-size: 2.6rem;
  }

  .signal-row,
  .feature-grid,
  .content-grid,
  .cta-content {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ios-card {
    justify-self: start;
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 660px) {
  .nav-shell {
    min-height: auto;
    padding: 14px 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .brand {
    gap: 9px;
    font-size: 1.02rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 0 11px;
    font-size: 0.88rem;
  }

  .hero-content {
    padding-top: 58px;
  }

  .hero-copy,
  .tagline,
  .hero-description,
  .signal-row {
    max-width: 358px;
  }

  .actions {
    width: 100%;
    max-width: 358px;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .tagline {
    font-size: 1.68rem;
  }

  .section-heading h2,
  .page-hero h1,
  .auth-panel h1 {
    font-size: 2.35rem;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }

  .section {
    padding: 62px 0;
  }

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

  .signal-card,
  .feature-card,
  .topic-card,
  .contact-card,
  .text-panel,
  .legal-card {
    border-radius: var(--radius-sm);
  }

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

@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;
  }
}
