:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --surface-card: rgba(255, 255, 255, 0.92);
  --line: #d7e2ef;
  --line-strong: #bfd0e4;
  --text: #1d3557;
  --text-soft: #5b6f8a;
  --title: #17345a;
  --accent: #1f79ff;
  --accent-2: #4dd4f5;
  --accent-3: #0ea06a;
  --accent-soft: #e8f1ff;
  --neon-cyan: #4dd4f5;
  --neon-purple: #7c3aed;
  --shadow: 0 24px 60px rgba(54, 88, 140, 0.12);
  --glow-blue: 0 0 40px rgba(31, 121, 255, 0.12);
  --glow-cyan: 0 0 30px rgba(77, 212, 245, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: #f5f8fc;
  background-image:
    radial-gradient(circle at top left, rgba(77, 212, 245, 0.15), transparent 25%),
    radial-gradient(circle at top right, rgba(31, 121, 255, 0.10), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

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

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

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

.section {
  padding: 80px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(232, 241, 255, 0.55), rgba(255, 255, 255, 0.7));
  border-top: 1px solid rgba(191, 208, 228, 0.4);
  border-bottom: 1px solid rgba(191, 208, 228, 0.4);
}

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 247, 253, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(190, 205, 227, 0.8);
  box-shadow: 0 14px 30px rgba(49, 83, 129, 0.08);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 214, 237, 0.88);
  box-shadow: 0 8px 24px rgba(6, 17, 44, 0.1);
  transition: border-color 200ms, box-shadow 200ms;
}

.brand:hover {
  border-color: rgba(31, 121, 255, 0.3);
  box-shadow: 0 8px 24px rgba(31, 121, 255, 0.1);
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(71, 112, 165, 0.1);
}

.brand-text span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-text strong {
  display: block;
  color: var(--title);
  font-size: 0.95rem;
}

.footer-links span,
.sticky-title {
  color: var(--text-soft);
}

.footer-brand strong {
  color: var(--title);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-nav a {
  color: rgba(44, 69, 107, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 180ms;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(193, 209, 232, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 180ms, border-color 180ms;
}

.tool-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #4577a9;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-chip:hover,
.tool-chip:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(113, 169, 219, 0.5);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta {
  border: 1px solid rgba(31, 121, 255, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent) !important;
  letter-spacing: 0.02em;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgba(31, 121, 255, 0.4);
  background: rgba(232, 241, 255, 0.9);
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #1f79ff, #0055e5);
  box-shadow: 0 8px 24px rgba(31, 121, 255, 0.3);
  letter-spacing: 0.02em;
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(31, 121, 255, 0.4);
}

.button.secondary {
  border: 1px solid rgba(31, 121, 255, 0.25);
  background: rgba(232, 241, 255, 0.7);
  color: var(--accent);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(31, 121, 255, 0.45);
  background: rgba(232, 241, 255, 0.95);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(190, 205, 227, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #2d476f;
  border-radius: 2px;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 32px;
  background:
    radial-gradient(circle at 12% 16%, rgba(188, 214, 247, 0.32), transparent 20%),
    radial-gradient(circle at 86% 18%, rgba(179, 226, 238, 0.26), transparent 22%),
    radial-gradient(circle at 70% 72%, rgba(207, 223, 247, 0.24), transparent 24%),
    linear-gradient(135deg, #eef4fb 0%, #e8f0f8 42%, #edf4fb 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(238, 244, 251, 0.85));
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 52px;
  align-items: center;
}

.hero-grid-single {
  grid-template-columns: minmax(0, 820px);
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

#dna-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: block;
}

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(113, 150, 194, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 150, 194, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.04));
  animation: scene-pan 30s linear infinite;
}

.scene-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.7;
}

.scene-glow-a {
  top: 10%;
  left: 14%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(148, 185, 230, 0.28), transparent 70%);
  animation: drift-slow 14s ease-in-out infinite;
}

.scene-glow-b {
  right: 6%;
  bottom: 12%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(164, 217, 230, 0.24), transparent 70%);
  animation: drift-slow 18s ease-in-out infinite reverse;
}

.scene-glow-c {
  top: 36%;
  right: 32%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(196, 211, 236, 0.2), transparent 72%);
  animation: drift-slow 22s ease-in-out infinite;
}

/* ─── Hero copy ───────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  color: var(--title);
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h1 .hero-line-2 {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #1f79ff, #4dd4f5, #0055e5);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink-cursor 0.9s step-end infinite;
}

.hero-text {
  max-width: 60ch;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(67, 91, 124, 0.92);
}

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

/* ─── Terminal widget ─────────────────────────────────────────────────────── */
.hero-terminal {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 208, 228, 0.9);
  box-shadow: 0 24px 60px rgba(54, 88, 140, 0.14);
  overflow: hidden;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  backdrop-filter: blur(12px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(238, 244, 251, 0.95);
  border-bottom: 1px solid rgba(191, 208, 228, 0.6);
}

.tb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tb-red    { background: #ff5f57; }
.tb-yellow { background: #febc2e; }
.tb-green  { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.terminal-body {
  padding: 16px 20px;
  display: grid;
  gap: 2px;
}

.t-line { color: var(--text); }
.t-k    { color: #7c3aed; }
.t-fn   { color: var(--accent); }
.t-s    { color: #0ea06a; }
.t-n    { color: #d97706; }
.t-c    { color: var(--text-soft); }
.t-ok   { color: #0ea06a; font-weight: 700; }

/* ─── Stats band ──────────────────────────────────────────────────────────── */
.stats-band {
  background: #ffffff;
  border-top: 1px solid rgba(215, 226, 239, 0.75);
  border-bottom: 1px solid rgba(215, 226, 239, 0.75);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 32px 24px;
  border-right: 1px solid rgba(215, 226, 239, 0.75);
  text-align: center;
  position: relative;
  transition: background 300ms;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item:hover {
  background: rgba(232, 241, 255, 0.5);
}

.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(135deg, #1f79ff, #4dd4f5);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Proof band ─────────────────────────────────────────────────────────── */
.proof-band {
  background: #fff;
  border-top: 1px solid rgba(215, 226, 239, 0.75);
  border-bottom: 1px solid rgba(215, 226, 239, 0.75);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
}

.proof-grid p {
  margin: 0;
  font-weight: 600;
  color: var(--text-soft);
}

.proof-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.proof-logos span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: #f8fbff;
  border: 1px solid rgba(215, 226, 239, 0.9);
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  letter-spacing: 0.04em;
  transition: background 200ms, border-color 200ms, color 200ms;
}

.proof-logos span:hover {
  background: var(--accent-soft);
  border-color: rgba(31, 121, 255, 0.3);
  color: var(--accent);
}

/* ─── Section headings ───────────────────────────────────────────────────── */
.section-heading {
  margin-bottom: 40px;
}

.section-heading.narrow {
  max-width: 900px;
}

.section-heading h2,
.final-cta h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading p,
.final-cta p {
  margin: 18px 0 0;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ─── Content with aside ─────────────────────────────────────────────────── */
.content-with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

/* ─── Feature grid ───────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 239, 0.92);
  border-radius: 14px;
  border-left: 2px solid rgba(31, 121, 255, 0.4);
  box-shadow: var(--shadow);
  transition: border-color 250ms, box-shadow 250ms, transform 250ms;
}

.feature-item:hover {
  border-color: rgba(215, 226, 239, 0.6);
  border-left-color: var(--accent);
  box-shadow: 0 12px 40px rgba(54, 88, 140, 0.16);
  transform: translateY(-2px);
}

.feature-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--title);
}

.feature-item p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ─── Sticky card ────────────────────────────────────────────────────────── */
.sticky-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 239, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.sticky-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.sticky-card a {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
  padding: 4px 0;
  border-bottom: 1px solid rgba(215, 226, 239, 0.6);
  transition: color 180ms;
}

.sticky-card a:last-child {
  border-bottom: 0;
}

.sticky-card a:hover,
.sticky-card a:focus-visible {
  color: var(--accent);
}

/* ─── Reason list ────────────────────────────────────────────────────────── */
.reason-list {
  display: grid;
  gap: 0;
}

.reason-list article {
  padding: 22px 0;
  border-bottom: 1px solid rgba(191, 208, 228, 0.65);
}

.reason-list article:last-child {
  border-bottom: 0;
}

.reason-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--title);
  font-size: 1.05rem;
  font-weight: 700;
}

.reason-list p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-soft);
}

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid rgba(191, 208, 228, 0.85);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.cta-inline p {
  margin: 0;
  max-width: 60ch;
  color: var(--text);
  font-weight: 600;
  line-height: 1.6;
}

/* ─── About ──────────────────────────────────────────────────────────────── */
.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}

.about-story {
  display: grid;
  gap: 18px;
}

.about-story p {
  margin: 0;
  line-height: 1.8;
  color: var(--text-soft);
}

.about-side {
  display: grid;
  gap: 12px;
}

.about-side article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 239, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.about-side span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-side strong {
  display: block;
  color: var(--title);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-grid details {
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 239, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: border-color 200ms;
}

.faq-grid details[open] {
  border-color: rgba(31, 121, 255, 0.25);
}

.faq-grid summary {
  cursor: pointer;
  color: var(--title);
  font-weight: 700;
  line-height: 1.55;
  list-style: none;
  user-select: none;
}

.faq-grid summary::-webkit-details-marker { display: none; }

.faq-grid p {
  margin-top: 12px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ─── Timeline ───────────────────────────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 239, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.timeline span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.timeline h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--title);
}

.timeline p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ─── Final CTA ──────────────────────────────────────────────────────────── */
.final-cta {
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.68), rgba(245, 248, 252, 0.95)),
    #f7fbff;
  border-top: 1px solid rgba(191, 208, 228, 0.5);
}

.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
}

/* ─── Contact panel ──────────────────────────────────────────────────────── */
.contact-panel {
  display: grid;
  gap: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 239, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.contact-panel article {
  padding: 16px 0;
  border-bottom: 1px solid rgba(191, 208, 228, 0.65);
}

.contact-panel article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-panel span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-panel strong {
  display: block;
  font-size: 1.08rem;
  color: var(--accent);
  overflow-wrap: anywhere;
  font-weight: 700;
}

.contact-panel p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ─── Client Portal Band ─────────────────────────────────────────────────── */
.client-portal-band {
  background:
    linear-gradient(135deg, rgba(31, 121, 255, 0.06) 0%, rgba(77, 212, 245, 0.04) 100%),
    #f0f5ff;
  border-top: 1px solid rgba(31, 121, 255, 0.14);
  border-bottom: 1px solid rgba(31, 121, 255, 0.10);
}

.client-portal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
}

.client-portal-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  margin: 0;
  color: var(--title);
}

.client-portal-copy p {
  margin: 16px 0 0;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 52ch;
}

.portal-login-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 121, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 121, 255, 0.10);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.portal-login-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 121, 255, 0.12), rgba(77, 212, 245, 0.10));
  border: 1px solid rgba(31, 121, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.portal-login-icon svg {
  width: 28px;
  height: 28px;
}

.portal-login-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.portal-login-card .button {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px 28px;
}

/* ─── Contact page ───────────────────────────────────────────────────────── */
.contact-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.contact-page-copy h1 {
  margin: 0;
  color: var(--title);
  line-height: 1.08;
  font-size: clamp(2.4rem, 4vw, 4rem);
  max-width: 12ch;
  font-weight: 900;
}

.contact-direct-card,
.contact-form-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 239, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.contact-direct-card {
  margin-top: 24px;
}

.contact-direct-card span,
.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.contact-direct-card strong {
  display: block;
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.contact-direct-card p,
.form-note {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
}

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

.form-alert {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.form-alert-success {
  color: #0f5e37;
  background: #e8f7ef;
  border: 1px solid #bfe6cf;
}

.form-alert-error {
  color: #8b2332;
  background: #fff0f2;
  border: 1px solid #f1c1cb;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--title);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-soft);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 121, 255, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 200px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 0 52px;
  background: #eef4fb;
  border-top: 1px solid rgba(215, 226, 239, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.92rem;
}

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

.footer-links div {
  display: grid;
  gap: 10px;
}

.footer-links span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 180ms;
}

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

/* ─── Scroll-reveal ──────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes drift-slow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(18px, -14px, 0); }
}

@keyframes scene-pan {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-10px, 8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid,
  .content-with-aside,
  .about-columns,
  .final-cta-grid,
  .client-portal-inner,
  .footer-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

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

  .scene-glow-c {
    display: none;
  }

  .sticky-card {
    position: static;
  }

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

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

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(3) {
    border-right: 1px solid rgba(215, 226, 239, 0.75);
    border-top: 1px solid rgba(215, 226, 239, 0.75);
  }

  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(215, 226, 239, 0.75);
  }
}

@media (min-width: 841px) {
  .hero {
    padding: 90px 0 60px;
  }

  .hero-grid-single {
    min-height: calc(100vh - 180px);
    align-items: center;
  }

  .hero-copy {
    max-width: 720px;
    padding-top: 24px;
    margin-left: 100px;
  }
}

@media (max-width: 840px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-cluster {
    margin-left: auto;
  }

  .header-tools,
  .topbar-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(243, 247, 253, 0.98);
    border: 1px solid rgba(190, 205, 227, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

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

  .site-nav a {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(215, 226, 239, 0.6);
    color: var(--text);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  /* Hero mobile */
  .hero {
    padding: 44px 0 36px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    letter-spacing: -0.025em;
  }

  .hero-text {
    font-size: 1rem;
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button.primary {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1rem;
  }

  /* Grids */
  .hero-grid,
  .feature-grid,
  .faq-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  /* Proof logos — 3 colunas no mobile */
  .proof-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(215, 226, 239, 0.75);
    padding: 24px 16px;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(215, 226, 239, 0.75);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: 0;
  }

  /* Feature items mobile */
  .feature-item {
    padding: 20px 18px;
  }

  /* CTA inline */
  .cta-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cta-inline .button {
    width: 100%;
    justify-content: center;
  }

  /* Glows */
  .scene-glow-b,
  .scene-grid {
    display: none;
  }

  .hero-terminal {
    display: none;
  }

  /* Footer */
  .footer-links {
    gap: 24px;
  }

  .proof-band {
    padding: 4px 0;
  }

  .proof-grid {
    padding: 16px 0;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-text {
    font-size: 0.97rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .stat-num {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

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

  .proof-logos span {
    font-size: 0.72rem;
    padding: 8px 6px;
  }

  .button,
  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .feature-item h3 {
    font-size: 1rem;
  }

  .faq-grid summary {
    font-size: 0.95rem;
  }

  .timeline span {
    font-size: 0.72rem;
  }

  .timeline h3 {
    font-size: 1rem;
  }

  .about-side article {
    padding: 16px;
  }
}
