/* ==========================================================================
   CodeBraz v2 — tech futurista
   ========================================================================== */

* { box-sizing: border-box; }

:root {
  --bg: #0d1316;
  --bg-deep: #0a1013;
  --bg-panel: #11181b;
  --bg-elev: #151d21;
  --line: oklch(0.32 0.04 165 / 0.35);
  --line-soft: oklch(0.28 0.03 165 / 0.2);
  --fg: oklch(0.96 0.01 160);
  --fg-dim: oklch(0.72 0.02 160);
  --fg-muted: oklch(0.55 0.02 160);
  --fg-faint: oklch(0.40 0.02 160);

  --green: oklch(0.94 0.27 130);
  --green-deep: oklch(0.78 0.25 130);
  --green-soft: oklch(0.55 0.18 130);
  --green-dark: oklch(0.32 0.10 130);
  --green-glow: oklch(0.94 0.27 130 / 0.45);

  --cyan: oklch(0.85 0.13 200);
  --warn: oklch(0.78 0.16 60);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --container: 1280px;
  --mono: 'Geist Mono', 'SF Mono', 'Fira Mono', monospace;

  /* Neumorphism — dark variant. Use these for soft sculpted surfaces. */
  --neu-light: oklch(0.24 0.012 200 / 0.55);    /* highlight (top-left) */
  --neu-dark: oklch(0.04 0.005 200 / 0.85);     /* shadow (bottom-right) */
  --neu-out: 8px 8px 20px var(--neu-dark), -6px -6px 16px var(--neu-light);
  --neu-out-lg: 14px 14px 36px var(--neu-dark), -10px -10px 28px var(--neu-light);
  --neu-out-sm: 4px 4px 10px var(--neu-dark), -3px -3px 8px var(--neu-light);
  --neu-in: inset 4px 4px 10px var(--neu-dark), inset -3px -3px 8px var(--neu-light);
  --neu-in-lg: inset 8px 8px 20px var(--neu-dark), inset -6px -6px 16px var(--neu-light);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Smooth scroll + mandatory snap nas 3 seções principais */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0px;
}
.hub-hero {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hub-systems.section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.section.contact {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

::selection { background: var(--green); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Global noise + grid backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, oklch(0.30 0.10 152 / 0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, oklch(0.30 0.08 200 / 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* grid backdrop removed — keep it clean */

#root {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Mono utility
   ========================================================================== */

.mono {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px) saturate(140%);
  background: oklch(0.10 0.01 160 / 0.6);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 16px var(--green-glow));
}

.nav-status {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px oklch(0.85 0.22 152 / 0.18), 0 0 12px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}

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

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: oklch(0.14 0.01 160 / 0.7);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.03);
}
.nav-pill-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, oklch(0.32 0.10 152 / 0.55), oklch(0.22 0.06 152 / 0.55));
  border: 1px solid oklch(0.55 0.14 150 / 0.45);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.03) inset, 0 6px 18px -10px var(--green-glow);
  opacity: 0;
  transition: transform 380ms cubic-bezier(0.4, 0.0, 0.2, 1),
              width 380ms cubic-bezier(0.4, 0.0, 0.2, 1),
              opacity 220ms ease;
  pointer-events: none;
  will-change: transform, width;
}
.nav-pill-link {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 220ms ease, transform 220ms ease;
}
.nav-pill-link:hover { color: var(--fg); }
.nav-pill-link.is-active { color: var(--green); }
.nav-pill-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: translateX(-50%);
  opacity: 0;
  transition: width 240ms ease, opacity 240ms ease;
}
.nav-pill-link.is-active::after { width: 14px; opacity: 0.9; }

.nav.is-scrolled {
  background: oklch(0.08 0.01 160 / 0.78);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px -16px oklch(0 0 0 / 0.4);
}
.nav.is-scrolled .nav-inner { padding-top: 12px; padding-bottom: 12px; }

/* ==========================================================================
   Fluid Navigation Menu
   Design: pill trigger + dropdown card — sem bolas, alinhado ao nav-pill
   ========================================================================== */

/* ── Root — posicionamento relativo para o dropdown absoluto ── */
.fluid-menu-root {
  position: relative;
  flex-shrink: 0;
}

/* ── Trigger pill ─────────────────────────────────────────────────────────── */
.fluid-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: oklch(0.14 0.01 160 / 0.7);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.03);
  cursor: pointer;
  color: var(--fg-muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  user-select: none;
}
.fluid-menu-trigger:hover,
[data-open="true"] .fluid-menu-trigger {
  color: var(--fg);
  border-color: var(--line);
  background: oklch(0.18 0.02 160 / 0.75);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.05),
    0 0 0 1px var(--line-soft),
    0 0 14px var(--green-glow);
}

/* Label de texto ao lado do ícone no trigger */
.fluid-menu-trigger-label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Trigger icon swap: ☰ → × ── */
.fluid-icon-swap {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.fluid-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity   240ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.fluid-icon--menu  { opacity: 1; transform: rotate(0deg)    scale(1); }
.fluid-icon--close { opacity: 0; transform: rotate(-180deg) scale(0); }
[data-open="true"] .fluid-icon--menu  { opacity: 0; transform: rotate(180deg) scale(0); }
[data-open="true"] .fluid-icon--close { opacity: 1; transform: rotate(0deg)   scale(1); }

/* ── Dropdown card ────────────────────────────────────────────────────────── */
.fluid-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 188px;
  background: oklch(0.10 0.01 160 / 0.96);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow:
    0 16px 40px oklch(0 0 0 / 0.45),
    0 0 0 1px oklch(1 0 0 / 0.03) inset;
  overflow: hidden;
  /* height: 0 → auto via grid rows trick */
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
[data-open="true"] .fluid-menu-dropdown {
  grid-template-rows: 1fr;
  pointer-events: auto;
}

/* Inner wrapper needed for grid-rows height animation */
.fluid-menu-dropdown > * {
  overflow: hidden;
}

/* ── Individual dropdown rows ── */
.fluid-menu-row {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity   200ms ease,
    transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
[data-open="true"] .fluid-menu-row {
  opacity: 1;
  transform: translateY(0);
}

/* ── Button / anchor inside each row ── */
.fluid-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--fg-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}
.fluid-menu-btn:hover {
  color: var(--fg);
  background: oklch(0.18 0.02 160 / 0.6);
}
.fluid-menu-btn.is-active {
  color: var(--green);
}
.fluid-menu-btn.is-disabled {
  color: var(--fg-faint);
  cursor: not-allowed;
  pointer-events: none;
}

/* Separator line between rows */
.fluid-menu-row + .fluid-menu-row .fluid-menu-btn {
  border-top: 1px solid var(--line-soft);
}

/* Icon */
.fluid-menu-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  opacity: 0.75;
  transition: opacity 160ms ease;
}
.fluid-menu-btn:hover     .fluid-menu-btn-icon,
.fluid-menu-btn.is-active .fluid-menu-btn-icon { opacity: 1; }

/* Label */
.fluid-menu-btn-label { flex: 1; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fluid-menu-dropdown,
  .fluid-menu-row,
  .fluid-icon,
  .fluid-menu-trigger {
    transition: none !important;
    transition-delay: 0ms !important;
  }
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--green-deep);
  border-radius: var(--radius-sm);
  color: var(--green);
  background: oklch(0.30 0.10 152 / 0.15);
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta svg { transition: transform 220ms ease; }
.nav-cta:hover svg { transform: translateX(3px); }
.nav-cta:hover {
  background: oklch(0.40 0.14 152 / 0.3);
  border-color: var(--green);
  box-shadow: 0 0 20px oklch(0.85 0.22 152 / 0.3);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero > .container { width: 100%; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}
.hero-bg-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    oklch(1 0 0 / 0.015) 3px,
    oklch(1 0 0 / 0.015) 4px
  );
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  bottom: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow), 0 0 14px var(--green-glow);
  opacity: 0;
  animation: particleRise 12s linear infinite;
}
@keyframes particleRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-90vh) translateX(40px); opacity: 0; }
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.95 0.005 145 / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.95 0.005 145 / 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 64px 64px; }
}
.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-bg-glow-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  top: -120px;
  right: -80px;
  animation: heroGlow 14s ease-in-out infinite;
}
.hero-bg-glow-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, oklch(0.55 0.18 200 / 0.5), transparent 70%);
  bottom: -120px;
  left: 10%;
  animation: heroGlow 18s ease-in-out infinite reverse;
  opacity: 0.18;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy > * {
  opacity: 0;
  animation: heroCopyIn 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(3) { animation-delay: 1.8s; }  /* sub appears after title finishes */
.hero-copy > *:nth-child(4) { animation-delay: 2.1s; }  /* CTAs after sub */
@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Title is special — it stays visible immediately for char reveal */
.hero-copy > h1.hero-title { opacity: 1; animation: none; }

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

/* Words are atomic — never break mid-word. Spaces between words are normal
 * whitespace so the line wraps cleanly at word boundaries. */
.hero-title .char-word {
  display: inline-block;
  white-space: nowrap;
}
.hero-title .char-space {
  display: inline;
  white-space: normal;
}

/* Per-character reveal for the title */
.char-r {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotateX(-50deg);
  filter: blur(6px);
  animation: charIn 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  transform-origin: 50% 50% -20px;
}
@keyframes charIn {
  to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}

/* Accent glow + scanline sweep */
.accent-glow {
  position: relative;
  display: inline-block;
}
.accent-glow::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--green-glow), transparent 70%);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  animation: accentBloom 1.4s ease-out forwards;
  animation-delay: 1.6s;
}
@keyframes accentBloom {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 0.8; }
  100% { opacity: 0.5; transform: scale(1); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--green);
  padding: 10px 16px;
  border: none;
  border-radius: 100px;
  background: var(--bg-panel);
  margin-bottom: 28px;
  font-weight: 500;
  box-shadow: var(--neu-in);
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--fg);
}
.hero-title .accent {
  color: var(--green);
  font-style: italic;
  font-weight: 600;
  position: relative;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 520px;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-shine {
  position: absolute;
  top: 0; left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(105deg,
    transparent 0%,
    transparent 35%,
    oklch(1 0 0 / 0.35) 50%,
    transparent 65%,
    transparent 100%);
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.btn:hover .btn-shine { left: 130%; }
.btn-primary {
  background: var(--green);
  color: var(--bg-deep);
  box-shadow:
    var(--neu-out-sm),
    0 0 0 1px var(--green-deep),
    0 8px 28px -6px var(--green-glow);
}
.btn-primary:hover {
  background: oklch(0.90 0.22 152);
  box-shadow:
    var(--neu-out),
    0 0 0 1px var(--green),
    0 14px 44px -6px oklch(0.85 0.22 152 / 0.55);
  transform: translateY(-1px);
}
.btn-primary:active {
  box-shadow: var(--neu-in), 0 0 0 1px var(--green-deep);
  transform: translateY(0);
}
.btn-ghost {
  border-color: transparent;
  color: var(--fg);
  background: var(--bg-panel);
  box-shadow: var(--neu-out-sm);
}
.btn-ghost:hover {
  color: var(--green);
  box-shadow: var(--neu-out);
}
.btn-ghost:active {
  box-shadow: var(--neu-in);
}

.btn-arrow {
  font-family: 'Geist Mono', monospace;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  max-width: 520px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-value {
  font-family: 'Geist Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* Hero right — floating conversation */

.hero-display {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-convo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  width: 100%;
}

.hero-convo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}
.hero-convo-head-info { display: flex; flex-direction: column; gap: 2px; }
.hero-convo-head-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}
.hero-convo-head-status {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-convo-head-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}
.hero-convo-head-shuffle {
  appearance: none;
  border: none;
  background: var(--bg-panel);
  color: var(--fg-dim);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--neu-out-sm);
  transition: all 0.2s ease;
}
.hero-convo-head-shuffle:hover { color: var(--green); transform: rotate(180deg); }

.hero-convo-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--green-deep) transparent;
  padding-right: 4px;
}
.hero-convo-scroll::-webkit-scrollbar { width: 4px; }
.hero-convo-scroll::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 2px; }

.hero-convo-empty {
  padding: 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-convo-empty-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  background: oklch(0.30 0.10 152 / 0.18);
  padding: 4px 10px;
  border-radius: 100px;
}
.hero-convo-empty-text {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}

.hero-convo-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.hero-convo-suggestion {
  appearance: none;
  border: 1px solid oklch(0.30 0.10 152 / 0.3);
  background: oklch(0.30 0.10 152 / 0.08);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-convo-suggestion:hover {
  background: oklch(0.30 0.10 152 / 0.18);
  border-color: var(--green);
  transform: translateX(2px);
}
.hero-convo-suggestion:disabled { opacity: 0.5; cursor: wait; }

.hero-convo-input-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  background: var(--bg-panel);
  border-radius: 100px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--neu-in);
}
.hero-convo-input {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.hero-convo-input::placeholder { color: var(--fg-muted); }
.hero-convo-send {
  appearance: none;
  border: none;
  background: var(--green);
  color: var(--bg-deep);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px -2px var(--green-glow);
}
.hero-convo-send:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 6px 20px -2px var(--green-glow);
}
.hero-convo-send:disabled { opacity: 0.4; cursor: not-allowed; }
.hero-convo-send svg { transform: translateX(1px); }

.hero-convo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: oklch(0.30 0.10 152 / 0.15);
  border: 1px solid oklch(0.50 0.16 152 / 0.4);
  margin-top: 4px;
  animation: ctaPop 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}
@keyframes ctaPop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-convo-cta-text { font-size: 13px; color: var(--fg); }
.hero-convo-cta-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.hero-convo-cta-btn:hover { transform: translateX(3px); }

.hero-display-frame {
  position: relative;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--bg-panel);
  border: none;
  box-shadow:
    var(--neu-out-lg),
    0 0 60px -10px var(--green-glow);
  animation: framePulse 4s ease-in-out infinite, frameFloat 8s ease-in-out infinite;
  max-width: 460px;
}
@keyframes framePulse {
  0%, 100% { box-shadow: var(--neu-out-lg), 0 0 60px -10px var(--green-glow); }
  50%      { box-shadow: var(--neu-out-lg), 0 0 100px -10px var(--green-glow); }
}
@keyframes frameFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(0.3deg); }
}

.hero-display-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--green);
  opacity: 0.65;
  pointer-events: none;
}
.hero-display-corner-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.hero-display-corner-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 4px; }
.hero-display-corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 4px; }
.hero-display-corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 4px; }
.hero-display-corner::before {
  content: '';
  position: absolute;
  inset: 0;
  border: inherit;
  border-radius: inherit;
  box-shadow: 0 0 8px var(--green-glow);
  animation: cornerPulse 3s ease-in-out infinite;
}
@keyframes cornerPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.hero-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  position: relative;
}
.hero-bubble-enter {
  animation: bubble-enter 0.45s cubic-bezier(0.2, 0.9, 0.2, 1) backwards;
  transform-origin: bottom left;
}
.hero-bubble-user.hero-bubble-enter {
  transform-origin: bottom right;
}
@keyframes bubble-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-bubble-bot {
  align-self: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--fg);
  border-bottom-left-radius: 6px;
  max-width: 80%;
}
.hero-bubble-user {
  align-self: flex-end;
  background: oklch(0.42 0.10 152);
  color: oklch(0.98 0.01 160);
  border-bottom-right-radius: 6px;
  max-width: 70%;
}
.hero-bubble-typing {
  display: flex;
  gap: 5px;
  padding: 16px 18px;
}
.hero-bubble-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
  animation: typing 1.2s ease-in-out infinite;
}
.hero-bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.hero-bubble-typing span:nth-child(3) { animation-delay: 0.3s; }

.hero-bubble-name {
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-bubble-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.hero-marker {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 8px;
  animation: bubble-float 0.6s ease-out 1.6s backwards;
}
.hero-marker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Section heading common
   ========================================================================== */

.section {
  position: relative;
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.section > .container { width: 100%; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--green);
  margin-bottom: 14px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: var(--fg);
}
.section-title .accent { color: var(--green); }

.section-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ==========================================================================
   Demo section
   ========================================================================== */

.demo {
  position: relative;
}

.demo-stage {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: stretch;
}

.demo-left {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.demo-headline {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  max-width: 480px;
  color: var(--fg);
}
.demo-headline em {
  font-style: italic;
  color: var(--green);
  font-weight: 500;
}
.demo-hint {
  color: var(--fg-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.industry-chip {
  appearance: none;
  position: relative;
  border: none;
  background: oklch(0.22 0.015 145);
  color: var(--fg-dim);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.2, 1);
  box-shadow: var(--neu-out-sm);
  overflow: hidden;
}
.industry-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, oklch(0.30 0.10 152 / 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.industry-chip:hover {
  color: var(--fg);
  background: oklch(0.24 0.02 145);
  box-shadow: var(--neu-out);
  transform: translateY(-2px);
}
.industry-chip:hover::before { opacity: 0.6; }
.industry-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.40 0.04 145);
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.3);
}
.industry-chip-code {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  flex-shrink: 0;
  transition: color 0.25s ease;
}
.industry-chip-label {
  font-weight: 500;
  flex: 1;
  position: relative;
  z-index: 1;
}
.industry-chip:hover .industry-chip-dot { background: var(--green-deep); box-shadow: 0 0 8px var(--green-glow); }
.industry-chip:hover .industry-chip-code { color: var(--fg-dim); }
.industry-chip.is-active {
  background: oklch(0.26 0.04 152);
  color: var(--fg);
  box-shadow: var(--neu-in), inset 0 0 0 1px oklch(0.50 0.16 152 / 0.35);
  transform: translateY(0);
}
.industry-chip.is-active::before { opacity: 1; }
.industry-chip.is-active .industry-chip-dot {
  background: var(--green);
  box-shadow: 0 0 14px var(--green-glow), 0 0 0 3px oklch(0.65 0.18 152 / 0.18);
  animation: chipDotPulse 2s ease-in-out infinite;
}
.industry-chip.is-active .industry-chip-code { color: var(--green); }
.industry-chip.is-active .industry-chip-label { color: var(--fg); }
@keyframes chipDotPulse {
  0%, 100% { box-shadow: 0 0 14px var(--green-glow), 0 0 0 3px oklch(0.65 0.18 152 / 0.18); }
  50%      { box-shadow: 0 0 22px var(--green-glow), 0 0 0 5px oklch(0.65 0.18 152 / 0.10); }
}

.demo-stat {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.demo-stat-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
}
.demo-stat-label {
  color: var(--fg-dim);
  font-size: 14px;
  flex: 1;
}

/* Phone */

.phone-stage {
  display: grid;
  place-items: center;
  position: relative;
}
.phone-stage::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.85 0.22 152 / 0.32), transparent 65%);
  filter: blur(50px);
  z-index: 0;
}

.phone {
  position: relative;
  width: 360px;
  height: 720px;
  background: oklch(0.16 0.01 160);
  border-radius: 48px;
  padding: 12px;
  border: 1px solid oklch(0.40 0.04 160 / 0.9);
  box-shadow:
    0 0 0 1px oklch(0.28 0.02 160) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 100px -20px var(--green-glow);
  z-index: 1;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: oklch(0.18 0.02 160);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: oklch(0.95 0.01 160);
  letter-spacing: 0.05em;
}
.phone-status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}
.phone-status-icons svg { width: 12px; height: 12px; fill: oklch(0.95 0.01 160); }

.phone-chat-header {
  padding: 12px 16px;
  background: oklch(0.22 0.02 160);
  border-bottom: 1px solid oklch(0.28 0.02 160);
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-chat-back { color: oklch(0.65 0.10 200); font-size: 22px; line-height: 1; margin-right: -2px; }
.phone-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: grid;
  place-items: center;
  color: var(--bg-deep);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
}
.phone-chat-avatar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid oklch(0.22 0.02 160);
}
.phone-chat-meta { flex: 1; min-width: 0; }
.phone-chat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-chat-state {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.02em;
}
.phone-chat-actions {
  display: flex;
  gap: 14px;
  color: oklch(0.55 0.02 160);
  font-size: 16px;
}

.phone-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, oklch(0.26 0.04 160 / 0.4), transparent 70%),
    oklch(0.20 0.02 160);
  scroll-behavior: smooth;
}
.phone-chat-body::-webkit-scrollbar { width: 0; }

.bubble {
  max-width: 82%;
  padding: 8px 12px 6px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  position: relative;
  animation: bubble-in 0.3s cubic-bezier(0.2, 0.9, 0.2, 1) backwards;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bubble-user {
  align-self: flex-end;
  background: oklch(0.42 0.10 152);
  color: oklch(0.98 0.01 160);
  border-bottom-right-radius: 4px;
}
.bubble-bot {
  align-self: flex-start;
  background: oklch(0.30 0.02 160);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}
.bubble-time {
  font-size: 9px;
  opacity: 0.6;
  margin-left: 8px;
  font-family: 'Geist Mono', monospace;
}

/* --- Image bubbles (AI sent photo) --- */
.bubble-image {
  padding: 4px 4px 6px;
  max-width: 70%;
  background: oklch(0.30 0.02 160);
}
.bubble-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: oklch(0.22 0.015 160);
}
.bubble-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.bubble-image-frame.state-ok img { opacity: 1; }
.bubble-image-skel {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(0.22 0.015 160) 30%,
    oklch(0.32 0.02 160) 50%,
    oklch(0.22 0.015 160) 70%
  );
  background-size: 200% 100%;
  animation: bubble-shimmer 1.4s ease-in-out infinite;
}
@keyframes bubble-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.bubble-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: oklch(0.55 0.02 160);
  font-size: 11px;
}
.bubble-image-caption {
  padding: 4px 8px 2px;
  font-size: 12px;
  color: oklch(0.78 0.02 160);
}
.bubble-image-time {
  align-self: flex-start;
  font-size: 9px;
  opacity: 0.5;
  margin: -6px 0 4px 8px;
  font-family: 'Geist Mono', monospace;
}

.bubble-typing {
  align-self: flex-start;
  background: oklch(0.30 0.02 160);
  padding: 12px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
}
.bubble-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.55 0.02 160);
  animation: typing 1.2s ease-in-out infinite;
}
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.phone-input {
  padding: 8px 10px 12px;
  background: oklch(0.22 0.02 160);
  border-top: 1px solid oklch(0.28 0.02 160);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.phone-input-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: oklch(0.30 0.02 160);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--fg-muted);
  font-size: 13px;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.phone-input.is-active .phone-input-field {
  background: oklch(0.34 0.02 160);
  box-shadow: 0 0 0 1px oklch(0.55 0.14 150 / 0.45);
  color: var(--fg);
}
.phone-input-text {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 4px 0;
  min-width: 0;
}
.phone-input-text::placeholder { color: var(--fg-muted); opacity: 0.85; }
.phone-input-text:disabled { cursor: not-allowed; }
.phone-input-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  color: var(--bg-deep);
  font-size: 18px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease, opacity 200ms ease, background 200ms ease;
}
.phone-input-icon:hover:not(:disabled) { transform: translateY(-1px); }
.phone-input-icon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: oklch(0.4 0.02 160);
  color: oklch(0.7 0.02 160);
}

.phone-prompt-hint {
  align-self: center;
  margin: 12px auto 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(0.32 0.02 160);
  color: var(--fg-muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: hintFade 350ms ease both;
}
.phone-prompt-hint-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 oklch(0.7 0.18 150 / 0.55);
  animation: hintPulse 1.6s ease-in-out infinite;
}
@keyframes hintFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.7 0.18 150 / 0.55); }
  50% { box-shadow: 0 0 0 6px oklch(0.7 0.18 150 / 0); }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing {
  position: relative;
}

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

.plan {
  position: relative;
  border: 1px solid transparent;
  background: var(--bg-panel);
  border-radius: 22px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.5s ease, border-color 0.25s ease;
  --mx: 50%;
  --my: 50%;
  box-shadow: var(--neu-out-lg);
}
.plan-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 320px at var(--mx) var(--my), oklch(0.65 0.18 152 / 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
}
.plan:hover {
  box-shadow:
    var(--neu-out),
    0 30px 80px -20px var(--green-glow),
    0 0 0 1.5px var(--green-deep);
  transform: translateY(-6px) perspective(1000px);
}
.plan:hover .plan-glow {
  opacity: 1;
}
.plan > * { position: relative; z-index: 1; }
.plan > .plan-glow { z-index: 0; }
.plan > .plan-tag { z-index: 2; }

.plan.is-featured {
  border-color: var(--green);
  background:
    linear-gradient(180deg, oklch(0.18 0.06 152 / 0.5), oklch(0.08 0.02 160 / 0.6)),
    var(--bg-panel);
  box-shadow:
    0 0 0 1px var(--green) inset,
    0 24px 60px -20px var(--green-glow),
    inset 0 1px 0 oklch(0.85 0.22 152 / 0.2);
}

.plan-tag {
  position: absolute;
  top: 0;
  right: 28px;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--bg-deep);
  background: var(--green);
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 0 0 16px var(--green-glow), 0 4px 14px -4px oklch(0 0 0 / 0.6);
  animation: tagBob 3s ease-in-out infinite;
}
@keyframes tagBob {
  0%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 16px var(--green-glow), 0 4px 14px -4px oklch(0 0 0 / 0.6); }
  50%      { transform: translateY(-55%) scale(1.04); box-shadow: 0 0 28px var(--green-glow), 0 8px 18px -4px oklch(0 0 0 / 0.6); }
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.plan-head-id { color: var(--green); }

.plan-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.1;
  margin: 0;
}
.plan-tagline {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: -8px 0 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.plan-price-currency {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  color: var(--fg-muted);
}
.plan-price-amount {
  font-family: 'Geist Mono', monospace;
  font-size: 48px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan.is-featured .plan-price-amount { color: var(--green); }
.plan-price-period {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-dim);
  align-items: flex-start;
}
.plan-features li > span {
  flex: 1;
  display: block;
}
.plan-features li::before {
  content: '+';
  font-family: 'Geist Mono', monospace;
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
  line-height: 1.4;
}
.plan-features li b {
  color: var(--fg);
  font-weight: 500;
}

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.2, 1);
  border: none;
  background: var(--bg-panel);
  color: var(--fg);
  box-shadow: var(--neu-out-sm);
}
.plan-cta:hover {
  color: var(--green);
  box-shadow: var(--neu-out);
}
.plan-cta:active {
  box-shadow: var(--neu-in);
}
.plan.is-featured .plan-cta {
  background: var(--green);
  color: var(--bg-deep);
  box-shadow: var(--neu-out-sm), 0 0 0 1px var(--green-deep), 0 8px 24px -8px var(--green-glow);
}
.plan.is-featured .plan-cta:hover {
  background: oklch(0.90 0.22 152);
  box-shadow: var(--neu-out), 0 0 0 1px var(--green), 0 12px 36px -8px var(--green-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 60px;
  margin-top: 0;
}

/* Systems block — links to our live products */
.footer-systems {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-systems-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.footer-systems-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-system-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  background: var(--bg-panel);
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease, background 220ms ease;
}
.footer-system-link:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}
.footer-system-link svg { opacity: 0.5; transition: opacity 220ms ease; }
.footer-system-link:hover svg { opacity: 1; }
.footer-system-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px oklch(0.94 0.27 130 / 0.18);
  animation: footer-system-pulse 2.4s ease-in-out infinite;
}
@keyframes footer-system-pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.94 0.27 130 / 0.18); }
  50%      { box-shadow: 0 0 0 5px oklch(0.94 0.27 130 / 0.05); }
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-brand {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.footer-admin-link {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px dotted oklch(0.4 0.02 160 / 0.7);
  padding-bottom: 1px;
  transition: color 220ms ease, border-color 220ms ease;
}
.footer-admin-link b { color: var(--fg-dim); font-weight: 600; transition: color 220ms ease; }
.footer-admin-link:hover { color: var(--green); border-bottom-color: var(--green); }
.footer-admin-link:hover b { color: var(--green); }
.nav-spacer {
  width: 28px;
  height: 28px;
  display: block;
}

/* ==========================================================================
   Responsive (tablet only — desktop-first design)
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-display { aspect-ratio: 1; max-width: 460px; margin: 0 auto; }
  .demo-stage { grid-template-columns: 1fr; }
  .phone-stage { padding: 32px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .nav-status { display: none; }
  .industry-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   HUB PAGE
   ========================================================================== */

/* Override .section full-height for hub — natural height only */
.hub-systems.section {
  min-height: auto;
  display: block;
  align-items: unset;
  padding: 80px 0;
}
.section.contact {
  min-height: auto;
  display: block;
  align-items: unset;
  padding: 80px 0 60px;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */
.hub-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.hub-eyebrow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── Char-by-char typing animation ──────────────────────────────────────── */
@keyframes hub-char-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hub-char-r {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  animation: hub-char-in 0.4s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hub-char-r { animation: none; opacity: 1; }
}

/* ── Hero entrance animation (eyebrow, sub, ctas) ───────────────────────── */
@keyframes hub-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hub-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hub-hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    oklch(0.55 0.15 290 / 0.07) 0%,
    oklch(0.78 0.25 130 / 0.04) 40%,
    transparent 65%
  );
  pointer-events: none;
}
.hub-hero-content {
  max-width: 680px;
}

/* Hero children staggered entrance — eyebrow(1), sub(3), ctas(4) */
/* h1(2) uses hub-char-r per-character, not hub-fade-up */
.hub-hero-content > *:nth-child(1),
.hub-hero-content > *:nth-child(3),
.hub-hero-content > *:nth-child(4) {
  animation: hub-fade-up 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.hub-hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hub-hero-content > *:nth-child(3) { animation-delay: 0.9s;  }
.hub-hero-content > *:nth-child(4) { animation-delay: 1.05s; }

@media (prefers-reduced-motion: reduce) {
  .hub-hero-content > * { animation: none; }
}
.hub-hero-heading {
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 1.25rem;
}
.hub-hero-heading em {
  font-style: normal;
  color: var(--green);
}
.hub-hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0 0 2.5rem;
  max-width: 520px;
}

/* ── CTAs ────────────────────────────────────────────────────────────────── */
.hub-ctas {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.hub-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.15s;
}
.hub-btn-primary:hover { opacity: 0.85; }

.hub-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  color: var(--fg-dim);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.hub-btn-ghost:hover {
  color: var(--fg);
  border-color: var(--line);
}

/* ── Section entrance (CSS scroll-driven via animation-timeline) ─────────── */
/* Fallback for browsers without scroll-timeline: subtle fade-in on load */
.hub-sec-hd,
.hub-sys-card,
.contact-card {
  animation: hub-fade-up 0.65s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.hub-sec-hd          { animation-delay: 0.05s; }
.hub-sys-card:nth-child(1) { animation-delay: 0.10s; }
.hub-sys-card:nth-child(2) { animation-delay: 0.18s; }
.hub-sys-card:nth-child(3) { animation-delay: 0.26s; }
.hub-sys-card:nth-child(4) { animation-delay: 0.34s; }
.contact-card        { animation-delay: 0.05s; }

@media (prefers-reduced-motion: reduce) {
  .hub-sec-hd,
  .hub-sys-card,
  .contact-card { animation: none; }
}

/* ── Section header ──────────────────────────────────────────────────────── */
.hub-sec-hd {
  margin-bottom: 2.5rem;
}
.hub-sec-heading {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.hub-sec-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 460px;
  margin: 0;
}

/* ── Systems grid ────────────────────────────────────────────────────────── */
.hub-sys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hub-sys-card {
  background: #1a2228;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  cursor: pointer;
}

/* Stagger card reveal */
.hub-sys-card[data-reveal].is-visible { transition-delay: 0ms; }
.hub-sys-card[data-reveal]:nth-child(1) { --card-delay: 0ms; }
.hub-sys-card[data-reveal]:nth-child(2) { --card-delay: 80ms; }
.hub-sys-card[data-reveal]:nth-child(3) { --card-delay: 160ms; }
.hub-sys-card[data-reveal]:nth-child(4) { --card-delay: 240ms; }
.hub-sys-card[data-reveal] {
  transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) var(--card-delay, 0ms),
              transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) var(--card-delay, 0ms),
              background 0.2s;
}
.hub-sys-card:hover {
  background: #223039;
}
.hub-sys-card:hover .hub-sys-arrow {
  transform: translateX(4px);
}

.hub-sys-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.hub-sys-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--acc) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--acc) 28%, var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc);
  flex-shrink: 0;
}
/* Logo variant — badge quadrada branca */
.hub-sys-icon--logo {
  width: 110px;
  height: 110px;
  min-width: 110px;
  max-width: 110px;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}
.hub-sys-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  filter: none;
}
.hub-sys-badge {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  align-self: flex-start;
}

.hub-sys-body { flex: 1; }
.hub-sys-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
}
.hub-sys-tagline {
  font-size: 0.82rem;
  color: var(--fg-dim);
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.hub-sys-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}

.hub-sys-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.hub-sys-domain {
  font-size: 0.75rem;
  font-family: var(--mono, 'Geist Mono', monospace);
  color: var(--fg-muted);
  opacity: 0.8;
}
.hub-sys-arrow {
  color: var(--fg-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* ── Hub responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hub-hero {
    padding-top: 100px;
    min-height: auto;
    align-items: flex-start;
    padding-bottom: 60px;
  }
  .hub-hero-heading {
    font-size: clamp(2.8rem, 11vw, 3.8rem);
    line-height: 1.06;
  }
  .hub-hero-sub {
    font-size: 1.05rem;
  }
  .hub-sys-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact {
  /* inherits .section padding */
}

.contact-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  padding: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

.contact-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: contact-pulse 2.4s ease-in-out infinite;
}

@keyframes contact-pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.94 0.27 130 / 0.18); }
  50%       { box-shadow: 0 0 0 5px oklch(0.94 0.27 130 / 0.05); }
}

.contact-headline {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.contact-headline em {
  font-style: italic;
  color: var(--green);
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 520px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}

.contact-channel:last-child {
  border-bottom: none;
}

.contact-channel:hover {
  background: var(--bg-panel);
}

.contact-channel:hover .contact-channel-arrow {
  transform: translateX(3px);
}

.contact-channel-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  flex-shrink: 0;
}

.contact-channel-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.contact-channel-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.contact-channel-value {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-family: var(--mono, 'Geist Mono', monospace);
}

.contact-channel-arrow {
  font-size: 1rem;
  color: var(--fg-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .contact-card {
    padding: 1.75rem 1.25rem;
  }
}
