/* ═══════════════════════════════════════════════════════════════
   AXON DEV CLOUD — Redesigned Stylesheet
   Glassmorphic · Lighter midnight palette · Smooth animations
═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Lighter, richer midnight palette */
  --bg-0:      #070b1c;
  --bg-1:      #0c1130;
  --bg-2:      #0f163a;
  --bg-3:      #141d4a;

  /* Glass surfaces — much more visible */
  --glass:     rgba(255,255,255,0.065);
  --glass-h:   rgba(255,255,255,0.11);
  --glass-str: rgba(255,255,255,0.14);

  /* Borders */
  --border:    rgba(255,255,255,0.10);
  --border-h:  rgba(139,92,246,0.55);
  --border-glow:rgba(139,92,246,0.30);

  /* Brand */
  --brand:     #6d28d9;
  --brand-lt:  #8b5cf6;
  --brand-xl:  #a78bfa;
  --lavender:  #c4b5fd;
  --lav-dim:   #7c6fbf;

  /* Text */
  --white:     #ffffff;
  --off-white: #eef2ff;
  --body:      #b8c0e0;
  --muted:     #6b7bad;
  --dim:       #3d4875;

  /* Accents */
  --teal:      #14b8a6;
  --sky:       #38bdf8;
  --emerald:   #34d399;
  --amber:     #fbbf24;
  --rose:      #fb7185;
  --violet:    #a78bfa;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --blur:      blur(24px);
  --blur-lg:   blur(40px);
  --shadow:    0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --glow:      0 0 40px rgba(109,40,217,0.3);
  --transition:0.28s cubic-bezier(0.4,0,0.2,1);

  --ff: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-0);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(109,40,217,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(56,189,248,0.08) 0%, transparent 55%);
  color: var(--body);
  font-family: var(--ff);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--lavender); text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4 { color: var(--white); line-height: 1.2; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ─── Utilities ─────────────────────────────────────────────── */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 28px; }

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #6d28d9 45%, #38bdf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gradient-text-warm {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── Glass card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
/* Top-edge highlight */
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  pointer-events: none;
}
.glass-card:hover {
  background: var(--glass-h);
  border-color: var(--border-glow);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.15), var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
  cursor: pointer; border: none; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-lt), var(--brand));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(109,40,217,0.45);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(109,40,217,0.65); color: var(--white); }
.btn-primary:hover::after { opacity: 1; }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--lavender);
  border: 1px solid rgba(196,181,253,0.3);
  backdrop-filter: var(--blur);
}
.btn-ghost:hover {
  background: rgba(196,181,253,0.1);
  border-color: var(--lavender);
  color: var(--white); transform: translateY(-2px);
}
.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* ─── Reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 28px;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(7,11,28,0.75);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 68px; gap: 24px; }
.nav-logo  { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wordmark  { height: 26px; width: auto; }
.nav-product {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lavender); padding: 3px 9px; border-radius: 5px;
  background: rgba(196,181,253,0.1); border: 1px solid rgba(196,181,253,0.22);
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin-left: auto; }
.nav-links a {
  color: var(--muted); padding: 7px 14px; border-radius: var(--radius-xs);
  font-size: 0.875rem; font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: linear-gradient(135deg, var(--brand-lt), var(--brand)) !important;
  color: var(--white) !important; padding: 8px 20px !important;
  border-radius: 50px !important;
  box-shadow: 0 3px 16px rgba(109,40,217,0.4);
}
.nav-cta:hover { box-shadow: 0 6px 24px rgba(109,40,217,0.6) !important; transform: translateY(-1px); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 1px; transition: all .3s; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh; padding: 100px 28px 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 15% 30%, rgba(109,40,217,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(56,189,248,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(20,184,166,0.06) 0%, transparent 50%);
}

.hero-grid {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 520px;
  gap: 32px; align-items: center; position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(196,181,253,0.1);
  border: 1px solid rgba(196,181,253,0.22);
  font-size: 0.78rem; font-weight: 600; color: var(--lavender);
  letter-spacing: 0.04em; margin-bottom: 28px;
  backdrop-filter: var(--blur);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: pd 2s infinite; }
@keyframes pd { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.5)} }

.hero-title { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 800; margin-bottom: 24px; line-height: 1.15; }
.hero-sub { font-size: 1.05rem; color: var(--body); margin-bottom: 36px; line-height: 1.78; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--blur);
  overflow: hidden; width: fit-content; max-width: 100%;
}
/* Top highlight */
.hero-stats::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.hero-stats { position: relative; }
.stat { text-align: center; padding: 16px 24px; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 2px; }
.stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.08); align-self: stretch; }

/* ─── Code card (right column of hero grid) ─────────────────── */
.hero-code-card {
  margin-top: 82px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: var(--blur-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: float 7s ease-in-out infinite;
  position: relative;
}
.hero-code-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(109,40,217,0.08) 0%, rgba(56,189,248,0.04) 100%);
  pointer-events: none;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.code-card-header {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green  { background: #28c840; }
.code-file { margin-left: 8px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.code-body { padding: 20px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.75; color: var(--body); white-space: pre; }
.c-purple { color: #a78bfa; }
.c-blue   { color: #60a5fa; }
.c-green  { color: #34d399; }
.c-yellow { color: #fbbf24; }
.c-muted  { color: #4b5a8a; }

/* ═══════════════ TRUST BAR ═══════════════ */
.trust-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 16px 28px; overflow: hidden;
}
.trust-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.trust-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.trust-items { display: flex; gap: 6px; flex-wrap: wrap; }
.trust-items span {
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  padding: 4px 14px; border-radius: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all var(--transition);
}
.trust-items span:hover { color: var(--lavender); border-color: rgba(196,181,253,0.3); background: rgba(196,181,253,0.06); }

/* ═══════════════ SECTIONS ═══════════════ */
.section { padding: 96px 0; }
.section-dark {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section-head { text-align: center; max-width: 660px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lavender); padding: 4px 14px; border-radius: 50px;
  background: rgba(196,181,253,0.1); border: 1px solid rgba(196,181,253,0.22);
}
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-head p  { font-size: 1.02rem; color: var(--muted); line-height: 1.78; }

/* ─── Feature Grid ─────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { padding: 30px 28px; }
.feature-card.large { grid-column: span 2; }
.feature-card.xlarge { grid-column: span 3; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon.purple { background: rgba(167,139,250,0.12); color: var(--violet); border: 1px solid rgba(167,139,250,0.25); }
.card-icon.blue   { background: rgba(56,189,248,0.12);  color: var(--sky);    border: 1px solid rgba(56,189,248,0.25); }
.card-icon.slate  { background: rgba(148,163,184,0.10); color: #94a3b8;        border: 1px solid rgba(148,163,184,0.2); }
.card-icon.red    { background: rgba(251,113,133,0.12); color: var(--rose);   border: 1px solid rgba(251,113,133,0.25); }
.card-icon.violet { background: rgba(139,92,246,0.12);  color: var(--brand-xl); border: 1px solid rgba(139,92,246,0.25); }
.card-icon.green  { background: rgba(52,211,153,0.12);  color: var(--emerald); border: 1px solid rgba(52,211,153,0.25); }

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.72; margin-bottom: 16px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tags span {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 3px 10px; border-radius: 50px;
  background: rgba(196,181,253,0.08); border: 1px solid rgba(196,181,253,0.18); color: var(--lavender);
}

/* ─── Flow Steps ────────────────────────────────────────────── */
.flow-steps {
  display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
  gap: 0; align-items: start;
}
.flow-step {
  height:280px;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--blur);
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.flow-step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.flow-step:hover { background: var(--glass-h); border-color: var(--border-glow); transform: translateY(-3px); }
.flow-arrow { align-self: center; color: var(--dim); display: flex; align-items: center; justify-content: center; }
.step-num { font-size: 2rem; font-weight: 900; color: rgba(167,139,250,0.18); font-family: var(--mono); margin-bottom: 10px; }
.step-body h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 7px; }
.step-body p  { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* ═══════════════ ARCHITECTURE ═══════════════ */

/* Section bg */
#architecture { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%); }
#architecture .section-head p { color: var(--muted); }

/* Outer network boundary */
.arch-boundary {
  position: relative;
  border: 1.5px dashed rgba(56,189,248,0.25);
  border-radius: 24px;
  padding: 32px;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.arch-boundary::before {
  content: '';
  position: absolute; inset: 0; border-radius: 24px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(109,40,217,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.arch-network-label {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--bg-1);
  padding: 6px 20px; border-radius: 0 0 12px 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky); border: 1.5px dashed rgba(56,189,248,0.25); border-top: none;
  display: flex; align-items: center; gap: 8px;
}
.arch-no-internet {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(251,113,133,0.12); border: 1px solid rgba(251,113,133,0.3);
  color: var(--rose); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 50px;
}
.arch-no-internet svg { flex-shrink: 0; }

/* Main 3-column arch layout */
.arch-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  grid-template-rows: auto auto auto;
  gap: 16px;
  position: relative; z-index: 1;
  margin-top: 16px;
}

/* Column labels */
.arch-col-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; text-align: center;
}

/* Generic arch tile */
.arch-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 18px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.arch-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.arch-tile:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(139,92,246,0.15);
}
/* Colour variants */
.arch-tile.purple  { border-color: rgba(139,92,246,0.25); background: rgba(109,40,217,0.08); }
.arch-tile.blue    { border-color: rgba(56,189,248,0.25);  background: rgba(56,189,248,0.06); }
.arch-tile.orange  { border-color: rgba(251,146,60,0.25);  background: rgba(234,88,12,0.07); }
.arch-tile.green   { border-color: rgba(52,211,153,0.25);  background: rgba(20,184,166,0.06); }
.arch-tile.slate   { border-color: rgba(148,163,184,0.2);  background: rgba(100,116,139,0.07); }
.arch-tile.rose    { border-color: rgba(251,113,133,0.22); background: rgba(244,63,94,0.06); }
.arch-tile.teal    { border-color: rgba(20,184,166,0.25);  background: rgba(20,184,166,0.06); }

.arch-tile-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  margin-bottom: 10px; display: flex; align-items: center; gap: 7px;
}
.arch-tile-label svg { flex-shrink: 0; opacity: 0.8; }
.arch-tile h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.arch-tile p  { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.arch-chip {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; margin: 2px 2px 0 0;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: var(--off-white);
}

/* Workstations column */
.arch-workstations { grid-column: 1; grid-row: 1 / 4; display: flex; flex-direction: column; gap: 10px; }
.arch-ws-inner { display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* Gateway column — narrow middle vertical strip */
.arch-gateway-wrap { grid-column: 2; grid-row: 1 / 3; display: flex; }
.arch-gateway {
  width: 100%;
  height: 100%;
  display: flex; flex-direction: column;
}
.arch-gateway-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  flex: 1;
}

/* Axon Cloud zone */
.arch-cloud-zone {
  background: rgba(109,40,217,0.05);
  border: 1.5px dashed rgba(109,40,217,0.25);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  /* sits naturally in the second column of the 160px | 1fr inner grid */
}
.arch-cloud-zone-label {
  position: absolute; top: -11px; left: 16px;
  background: var(--bg-2); padding: 2px 12px; border-radius: 50px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-xl);
  border: 1px dashed rgba(109,40,217,0.35);
}
.arch-cloud-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 10px; }
.arch-cloud-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arch-cloud-full { /* full width row */ }

/* Customer infra column */
.arch-customer { grid-column: 3; grid-row: 1 / 4; display: flex; flex-direction: column; gap: 10px; }

/* Arrow connector styling */
.arch-connector {
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 0.7rem; font-weight: 600; gap: 6px;
  flex-direction: column; padding: 8px 0;
}
.arch-connector-h {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 0 4px;
}
.arch-connector-line {
  height: 1.5px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(109,40,217,0.5), transparent);
}
.arch-connector-line.tls {
  background: linear-gradient(90deg, transparent, rgba(251,113,133,0.6), transparent);
}

/* ═══════════════ MODELS ═══════════════ */
.model-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-bottom: 18px; }
.model-card { padding: 26px 28px; }
.model-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 14px; text-transform: uppercase;
}
.model-badge.primary   { background: rgba(139,92,246,0.2); color: var(--brand-xl); border: 1px solid rgba(139,92,246,0.35); }
.model-badge.secondary { background: rgba(56,189,248,0.15); color: var(--sky);     border: 1px solid rgba(56,189,248,0.3); }
.model-badge.alt       { background: rgba(52,211,153,0.15); color: var(--emerald); border: 1px solid rgba(52,211,153,0.3); }
.model-badge.byom      { background: rgba(20,184,166,0.15); color: var(--teal);    border: 1px solid rgba(20,184,166,0.3); }
.model-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.model-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.22); color: var(--brand-xl);
}
.model-icon.byom-icon { background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.25); color: var(--teal); }
.model-icon svg { width: 16px; height: 16px; }
.model-name { font-size: 1.1rem; font-weight: 800; margin: 0; }
.model-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.model-specs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.model-specs span {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--off-white);
}
.model-langs { font-size: 0.76rem; color: var(--muted); font-family: var(--mono); }
.model-card-byom { border-color: rgba(20,184,166,0.22) !important; background: rgba(20,184,166,0.03) !important; }
.model-card-byom:hover { border-color: rgba(20,184,166,0.45) !important; }
.byom-langs { color: var(--teal) !important; }
.byom-note {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 12px;
  padding: 10px 12px; border-radius: 9px;
  background: rgba(20,184,166,0.07); border: 1px solid rgba(20,184,166,0.18);
  font-size: 0.77rem; color: var(--teal); line-height: 1.55;
}
.byom-note svg { flex-shrink: 0; margin-top: 1px; }
.model-footer {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px;
  border-radius: var(--radius); background: var(--glass);
  border: 1px solid var(--border);
}
.model-footer-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,181,253,0.1); border: 1px solid rgba(196,181,253,0.18); color: var(--lavender);
}
.model-footer-icon svg { width: 16px; height: 16px; }
.model-footer p { font-size: 0.84rem; color: var(--muted); line-height: 1.72; }

/* ═══════════════ SECURITY ═══════════════ */
.security-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 36px; }
.sec-card { padding: 26px 24px; }
.sec-icon-wrap {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,181,253,0.09); border: 1px solid rgba(196,181,253,0.18); color: var(--lavender);
  margin-bottom: 16px;
}
.sec-icon-wrap svg { width: 19px; height: 19px; }
.sec-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 8px; }
.sec-card p  { font-size: 0.83rem; color: var(--muted); line-height: 1.7; }
.compliance-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 18px 24px; border-radius: var(--radius);
  background: rgba(109,40,217,0.07); border: 1px solid rgba(109,40,217,0.22);
  backdrop-filter: var(--blur);
}
.compliance-banner > span:first-child { font-size: 0.75rem; font-weight: 700; color: var(--lavender); text-transform: uppercase; letter-spacing: 0.07em; }
.comp-tag {
  font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 50px;
  background: rgba(196,181,253,0.09); border: 1px solid rgba(196,181,253,0.2); color: var(--lavender);
}

/* ═══════════════ DELIVERY TIMELINE ═══════════════ */
.timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tl-item  { display: flex; flex-direction: column; gap: 14px; }
.tl-marker {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c, var(--brand));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.tl-content { padding: 20px 22px; flex: 1; }
.tl-content h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.tl-content p  { font-size: 0.82rem; color: var(--muted); line-height: 1.68; }
.delivery-note {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 32px;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: var(--blur);
}
.delivery-note-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,181,253,0.1); border: 1px solid rgba(196,181,253,0.18); color: var(--lavender);
}
.delivery-note-icon svg { width: 16px; height: 16px; }
.delivery-note p { font-size: 0.86rem; color: var(--muted); line-height: 1.72; }

/* ═══════════════ CTA SECTION ═══════════════ */
.cta-section {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(109,40,217,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 100%, rgba(56,189,248,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-mark { width: 68px; height: 68px; margin: 0 auto 22px; }
.cta-inner h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.cta-inner p  { font-size: 1rem; color: var(--muted); max-width: 500px; margin: 0 auto 36px; line-height: 1.78; }
.cta-actions  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-contacts { display: flex; gap: 24px; justify-content: center; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.cta-contacts span { display: flex; align-items: center; gap: 7px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 28px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 28px; margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-wordmark { height: 24px; width: auto; }
.footer-product { font-size: 0.72rem; font-weight: 700; color: var(--lavender); letter-spacing: 0.14em; text-transform: uppercase; }
.footer-apiezy { text-align: center; }
.apiezy-byline { font-size: 0.7rem; color: var(--muted); margin-bottom: 7px; }
.apiezy-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 14px; border-radius: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); margin-bottom: 5px;
}
.apiezy-logo { height: 26px; width: auto; filter: brightness(0.82) saturate(0.75); transition: filter var(--transition); }
.apiezy-logo:hover { filter: brightness(1) saturate(1); }
.apiezy-desc { font-size: 0.66rem; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 0.84rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--lavender); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  font-size: 0.73rem; color: var(--muted);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-code-card { max-width: 480px; }
  .arch-layout { grid-template-columns: 1fr 1fr; }
  .arch-customer { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.large { grid-column: span 1; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .arch-layout { grid-template-columns: 1fr; }
  .arch-workstations, .arch-customer { grid-column: 1; }
  .arch-customer { display: flex; flex-direction: column; }
  .arch-gateway-inner { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(7,11,28,0.97); backdrop-filter: var(--blur-lg);
    padding: 20px; border-bottom: 1px solid var(--border); z-index: 999;
  }
  .nav-burger { display: flex; margin-left: auto; }
  .hero-stats { flex-wrap: wrap; }
  .feature-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .arch-cloud-grid { grid-template-columns: 1fr 1fr; }
  .arch-cloud-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   CODE CARD — fixed-height animated window
═══════════════════════════════════════════════════════════════ */

/* Override float anim — no longer absolute */
.hero-code-card {
  animation: float 7s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  /* Fixed total height so card never resizes */
  height: 400px;
  min-height: 400px;
  max-height: 400px;
}

/* Header keeps its height */
.code-card-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.code-file {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scenario navigation dots */
.code-scenario-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 4px;
}
.csn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.csn-dot.active {
  background: var(--brand-xl);
  border-color: var(--brand-xl);
  box-shadow: 0 0 6px rgba(167,139,250,0.6);
}
.csn-dot:hover:not(.active) {
  background: rgba(167,139,250,0.4);
  border-color: rgba(167,139,250,0.5);
}

/* Scrollable content area — fixed height */
.code-body-wrap {
  flex: 1;
  overflow: hidden;       /* never show scrollbars */
  padding: 16px 18px 12px;
  position: relative;
}

/* The body is now a div, not a pre */
.code-body {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.72;
  color: var(--body);
  height: 100%;
}

/* Individual line rows */
.code-line {
  min-height: 1.72em;  /* always occupies space even if empty */
  white-space: pre;
  overflow: hidden;
  text-overflow: clip;
}

/* Colour tokens used by JS */
.c-white  { color: #e2e8f0; }
.c-rose   { color: #fb7185; }
.c-teal   { color: #5eead4; }

/* Cursor blink in empty spots */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.code-line .cursor { animation: blink 0.9s step-end infinite; }

/* On small screens, card is below the text, standard flow */
@media (max-width: 1024px) {
  .hero-code-card {
    max-width: 520px;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    margin: 0 auto;
    animation: none;  /* don't float on small screens */
  }
}
@media (max-width: 640px) {
  .hero-code-card {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }
  .code-body { font-size: 0.72rem; }
}

/* ══════════════════════════════════════════════════════════════
   CODE CARD — fixed height, typewriter animation, scene dots
══════════════════════════════════════════════════════════════ */

/* Make the right column in the hero grid hold its size */
.hero-code-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;   /* constant card height */
}

/* Fixed-height pre — content types inside, never resizes card */
.code-body {
  flex: 1;
  height: 300px;          /* exactly fits 13 lines at our line-height */
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
  white-space: pre;
  transition: opacity 0.36s ease;
  /* Remove any bottom margin from pre default */
  margin: 0;
}

/* Footer bar with dots */
.code-card-footer {
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scene dot indicators */
.scene-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.scene-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.scene-dot:hover {
  background: rgba(196,181,253,0.5);
  transform: scale(1.3);
}
.scene-dot.active {
  background: var(--lavender, #c4b5fd);
  width: 18px;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(196,181,253,0.5);
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  color: var(--lavender, #c4b5fd);
  animation: blink 1.1s step-end infinite;
  font-weight: 400;
  opacity: 0.9;
}
@keyframes blink {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 0;   }
}

/* Rose/red colour class (used in code scenes) */
.c-rose { color: #fb7185; }

/* Ensure the card header doesn't grow */
.code-card-header {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR & FOOTER — lighter, more translucent
══════════════════════════════════════════════════════════════ */

/* Navbar — lighter frosted glass on scroll */
.navbar.scrolled {
  background: rgba(18, 24, 60, 0.60) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25) !important;
}

/* Navbar resting state — slight tint so logo is always readable */
.navbar:not(.scrolled) {
  background: rgba(10, 14, 40, 0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Nav links — lighter muted colour for better contrast */
.nav-links a { color: rgba(196,181,253,0.70); }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }

/* Footer — much lighter, glassy */
.footer {
  background: rgba(255,255,255,0.04) !important;
  border-top: 1px solid rgba(255,255,255,0.09) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07) !important;
}

/* Footer text contrast */
.footer-links a { color: rgba(196,181,253,0.60); }
.footer-links a:hover { color: var(--lavender); }
.footer-bottom span { color: rgba(196,181,253,0.35); }

/* ── Architecture: gateway + cloud side-by-side fix ──────────── */
/* Cloud zone: removed the erroneous grid-column:1/3 span — it now
   sits correctly in column 2 of the 160px | 1fr inner grid.       */

/* Prevent the gateway tile from stretching to fill unused height */
.arch-gateway > div:first-child + div {
  align-self: start;
}

/* The dashed cloud-zone border should wrap tightly around its contents */
.arch-cloud-zone {
  align-self: start !important;
}

/* Make arch-chip wrap on narrow widths */
.arch-chip {
  white-space: normal;
  word-break: break-word;
}
