:root {
  --bg: #050807;
  --bg-raised: #101b17;
  --bg-raised-2: #0c1512;
  --ink: #f4f8f6;
  --ink-muted: #93a8a0;
  --ink-faint: #5e7269;
  --accent: #5fead0;
  --accent-strong: #7ef4de;
  --accent-ink: #0b4740;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --max-width: 1220px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main,
.topbar,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 14px 0 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 7, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-weight: 900;
}

.topnav {
  display: flex;
  gap: 28px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.topnav a:hover {
  color: var(--ink);
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button-primary {
  background: var(--accent);
  color: #06201b;
  box-shadow: 0 14px 32px rgba(95, 234, 208, 0.22);
}

.button-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ---------- cinematic hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, #0c1815 0%, var(--bg) 62%);
}

#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}

.eyebrow-reveal {
  opacity: 0;
  animation: fade-up 0.8s ease 0.1s forwards;
}

.hero-title {
  margin: 18px 0 22px;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span,
.hero-title .line {
  opacity: 0;
}

.hero-title .line {
  animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.25s;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.42s;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 46px rgba(95, 234, 208, 0.45);
}

.hero-text.reveal-fade,
.hero-actions.reveal-fade {
  opacity: 0;
  animation: fade-up 0.8s ease forwards;
}

.hero-text.reveal-fade {
  animation-delay: 0.62s;
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 auto;
}

.hero-actions.reveal-fade {
  animation-delay: 0.8s;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow-reveal,
  .hero-title .line,
  .hero-text.reveal-fade,
  .hero-actions.reveal-fade {
    animation: none;
    opacity: 1;
  }
}

.hero-scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- statement interludes ---------- */
.statement {
  padding: 120px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(95, 234, 208, 0.08), transparent 60%);
  pointer-events: none;
}

.statement h2 {
  position: relative;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.statement-accent {
  color: var(--accent);
}

/* ---------- trust strip ---------- */
.trust-strip {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip article {
  background: var(--bg-raised-2);
  padding: 30px 26px;
}

.trust-strip strong {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.trust-strip h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.trust-strip p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ---------- screens showcase ---------- */
.screen-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}

.screen-feature + .screen-feature {
  border-top: 1px solid var(--line);
}

.screen-feature.is-reverse .screen-feature-copy {
  order: 2;
}

.screen-feature.is-reverse .screen-feature-visual {
  order: 1;
}

.screen-index {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.screen-feature-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.16;
  margin: 12px 0 14px;
}

.screen-feature-copy p {
  color: var(--ink-muted);
  font-size: 1.03rem;
  line-height: 1.65;
  max-width: 46ch;
}

.screen-feature-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.screen-feature-visual img {
  width: 100%;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.step-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(95, 234, 208, 0.12);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.step-card p {
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- signup ---------- */
.signup-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 50px;
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-raised-2));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 52px;
  box-shadow: var(--shadow);
}

.signup-copy h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.16;
  margin: 14px 0 14px;
}

.signup-copy p {
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 42ch;
}

.signup-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.signup-points li {
  padding-left: 22px;
  position: relative;
}

.signup-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.signup-form {
  display: grid;
  gap: 16px;
}

.signup-form label {
  display: grid;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.signup-form input,
.signup-form select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 0.98rem;
}

.signup-form input:focus,
.signup-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.signup-form select option {
  background: var(--bg-raised);
  color: var(--ink);
}

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

.privacy-consent {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-faint);
}

.privacy-consent input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-note {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.form-note.is-success {
  color: var(--accent);
  font-weight: 700;
}

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

.privacy-grid article {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.privacy-grid h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.privacy-grid p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.site-footer a {
  font-weight: 700;
  color: var(--accent);
}

/* ---------- chat widget ---------- */
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #06201b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(95, 234, 208, 0.32);
  transition: transform 0.2s ease;
}

.chat-toggle:hover {
  transform: scale(1.06);
}

.chat-toggle-close {
  display: none;
  font-size: 1.2rem;
}

.chat-widget.is-open .chat-toggle-icon {
  display: none;
}

.chat-widget.is-open .chat-toggle-close {
  display: block;
}

.chat-panel {
  width: min(92vw, 380px);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--bg-raised-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chat-pop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chat-pop {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.chat-panel-head strong {
  display: block;
  font-size: 0.98rem;
}

.chat-panel-head span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

.chat-close {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 0.95rem;
  line-height: 1;
  padding: 4px;
}

.chat-close:hover {
  color: var(--ink);
}

.chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.48;
  animation: fade-up 0.35s ease;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #06201b;
  font-weight: 700;
  border-bottom-right-radius: 4px;
}

.chat-bubble a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}

.chat-bubble.user a {
  color: #06201b;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--line);
}

.chat-chip {
  background: rgba(95, 234, 208, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .screen-feature,
  .screen-feature.is-reverse {
    grid-template-columns: 1fr;
  }

  .screen-feature-copy,
  .screen-feature.is-reverse .screen-feature-copy,
  .screen-feature.is-reverse .screen-feature-visual {
    order: initial;
  }

  .screen-feature-visual {
    max-width: 380px;
    margin: 0 auto;
  }

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

  .signup-card {
    grid-template-columns: 1fr;
    padding: 34px 26px;
  }
}

@media (max-width: 640px) {
  .topnav {
    display: none;
  }

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

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .section {
    padding: 64px 0;
  }

  .statement {
    padding: 84px 20px;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-panel {
    width: min(94vw, 360px);
  }
}
