:root {
  --color-bg: #06101d;
  --color-surface: rgba(12, 25, 43, 0.78);
  --color-surface-elevated: rgba(18, 34, 56, 0.92);
  --color-text: #f6f8fb;
  --color-muted: #a9b8cc;
  --color-accent: #4fb7ff;
  --color-border: rgba(190, 220, 255, 0.18);
  --color-amber: #f7b955;
  --color-success: #67d9c3;
  --color-danger: #ff8b81;
  --radius-card: 24px;
  --shadow-soft: 0 28px 90px rgba(0, 0, 0, 0.34);
  --space-section: 96px;
  --font-display: "Space Grotesk", "Avenir Next", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-display);
  color: var(--color-text);
  background:
    radial-gradient(circle at 14% 4%, rgba(79, 183, 255, 0.16), transparent 310px),
    radial-gradient(circle at 86% 18%, rgba(247, 185, 85, 0.1), transparent 330px),
    linear-gradient(180deg, #071421 0%, #06101d 48%, #040914 100%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  color: #03101e;
  background: var(--color-accent);
  font-weight: 800;
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgba(6, 16, 29, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(79, 183, 255, 0.18);
}

.brand span span {
  color: #f4c06e;
}

.nav-links,
.footer-links,
.inline-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links {
  align-items: center;
  gap: 22px;
}

.nav-links a,
.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}

.button-primary {
  color: #03101e;
  background: linear-gradient(135deg, #7bd1ff, #3b95ff);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(59, 149, 255, 0.22);
}

.button-secondary {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.055);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(79, 183, 255, 0.36);
  outline-offset: 3px;
}

.hero {
  padding: 88px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 58px;
  align-items: center;
}

.hero-grid > *,
.section-head > *,
.feature-panel > *,
.support-layout > *,
.safety-band .section-inner > *,
.roadmap-panel > * {
  min-width: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-text);
  font-size: 68px;
  line-height: 1.01;
  letter-spacing: 0;
}

.hero-copy,
.page-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 20px;
  overflow-wrap: break-word;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-border);
}

.trust-strip span {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: #dce9f8;
  background: rgba(12, 25, 43, 0.88);
  font-weight: 750;
}

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

.phone-stage::before {
  content: "";
  position: absolute;
  width: min(520px, calc(100vw - 24px));
  height: min(520px, calc(100vw - 24px));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 183, 255, 0.22), transparent 62%);
  filter: blur(10px);
}

.phone-frame {
  position: relative;
  width: min(100%, 342px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow-soft);
}

.phone-frame img {
  width: 100%;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section {
  padding: var(--space-section) 0;
}

.section-tight {
  padding-top: 44px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.content-section h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.content-section p,
.feature-panel p,
.legal-panel p,
.legal-panel li {
  margin: 0;
  color: var(--color-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.feature-panel,
.legal-panel,
.support-panel,
.roadmap-panel,
.workflow-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.feature-card h3,
.feature-panel h2,
.legal-panel h2,
.support-panel h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.inline-list {
  flex-wrap: wrap;
  gap: 8px;
}

.inline-list span,
.roadmap-list span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(79, 183, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: #dbefff;
  background: rgba(79, 183, 255, 0.08);
  font-size: 13px;
  font-weight: 750;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow-item {
  padding: 24px;
}

.workflow-item strong {
  display: block;
  color: var(--color-text);
  font-size: 22px;
  margin-bottom: 8px;
}

.safety-band {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(79, 183, 255, 0.09), rgba(247, 185, 85, 0.06));
}

.safety-band .section-inner,
.roadmap-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
}

.safety-band h2,
.roadmap-panel h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 38px;
  line-height: 1.1;
}

.roadmap-panel {
  padding: 30px;
}

.roadmap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-hero {
  padding: 82px 0 54px;
}

.content-stack {
  display: grid;
  gap: 22px;
}

.feature-panel,
.legal-panel,
.support-panel {
  padding: 30px;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.feature-panel ul,
.legal-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--color-muted);
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.screenshot-rail img {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

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

.compare-card {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.045);
}

.compare-card h2 {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 28px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.support-notes {
  display: grid;
  gap: 16px;
}

.note-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.note-card strong {
  color: var(--color-text);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: #dbe7f6;
  font-weight: 780;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(190, 220, 255, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--color-text);
  background: rgba(3, 10, 19, 0.62);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

select {
  appearance: none;
}

.help,
.error,
.status {
  font-size: 14px;
}

.help {
  color: var(--color-muted);
}

.error {
  min-height: 20px;
  color: var(--color-danger);
}

.status {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 780;
}

.status[hidden] {
  display: none;
}

.status.success {
  color: #0b2f28;
  background: #baf7e9;
}

.status.error-state {
  color: #3b0b08;
  background: #ffd4d0;
}

.turnstile-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 34px 0;
  background: rgba(3, 9, 17, 0.72);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}

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

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

.legacy-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.legacy-card {
  max-width: 620px;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

@media (max-width: 920px) {
  .hero {
    padding-top: 54px;
  }

  .hero-grid,
  .section-head,
  .safety-band .section-inner,
  .roadmap-panel,
  .feature-panel,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 52px;
  }

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

  .phone-stage {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  :root {
    --space-section: 68px;
  }

  .nav-shell,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 28px), 365px);
    margin-left: 14px;
    margin-right: auto;
  }

  .nav-shell {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .nav-links a {
    display: block;
    text-align: center;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: 38px;
    overflow-wrap: break-word;
  }

  .hero-copy,
  .page-copy {
    max-width: 100%;
    font-size: 17px;
  }

  .trust-strip,
  .feature-grid,
  .workflow-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip span {
    min-height: 58px;
  }

  .section-head h2,
  .content-section h2,
  .safety-band h2,
  .roadmap-panel h2 {
    font-size: 32px;
  }

  .feature-panel,
  .legal-panel,
  .support-panel,
  .roadmap-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .screenshot-rail {
    grid-template-columns: 1fr;
  }

  .screenshot-rail img {
    max-width: 280px;
    margin: 0 auto;
  }

  .phone-frame {
    width: min(100%, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
