
:root {
  --bg: #09090b;
  --bg1: #111113;
  --bg2: #18181b;
  --bg3: #1f1f23;
  --surface: #27272a;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #fafafa;
  --text2: #a1a1aa;
  --text3: #71717a;
  --accent: #7c6cff;
  --accent2: #a78bfa;
  --accent3: #c4b5fd;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #60a5fa;
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', 'Fira Code', monospace;
  --r: 10px;
  --r2: 16px;
  --r3: 24px;
  --nav-h: 60px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);


   /* Shadows */
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.10);
  --shadow-green: 0 8px 32px rgba(31,188,81,0.28);
  --shadow-green-lg: 0 20px 60px rgba(31,188,81,0.18);

}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 108, 255, 0.3); }

/* ─── CUSTOM CURSOR ─────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, opacity .15s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(167,139,250,0.6);
}

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 2px; }

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.3px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 16px; height: 16px; fill: white; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  font-weight: 400;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Login link — plain text style like original */
.btn-ghost {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  transition: color .2s;
  font-family: var(--font);
}
.btn-ghost:hover { color: var(--text); }

/* Sign up pill — dark pill with upward fill animation like original */
.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  background: #1a1a1a;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  z-index: 0;
  transition: color .35s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 0%;
  background: var(--accent);
  transition: height .38s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 50px;
}
.btn-primary:hover::before { height: 100%; }
.btn-primary:hover { color: #fff; }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,108,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(96,165,250,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 40%, rgba(167,139,250,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,108,255,0.12);
  border: 1px solid rgba(124,108,255,0.25);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent3);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
}
h1 em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, var(--accent2) 0%, #c084fc 40%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.h1-line2 {
  background: linear-gradient(90deg, var(--accent2) 0%, #c084fc 40%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.65;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-cta a{
    text-decoration: none;
}
/* Hero primary — dark-to-purple gradient pill with shimmer, matching original */
.btn-hero {
  background: linear-gradient(135deg, #060e22 0%, #1a0a3e 35%, #4a2d9e 65%, #7c6cff 100%);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 15px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 15px rgba(124,108,255,0.45),
    0 1px 6px rgba(6,14,34,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-hero::before {
  content: '';
  position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.5s infinite 1s;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.btn-hero:hover {
  box-shadow: 0 6px 28px rgba(124,108,255,0.6), 0 2px 8px rgba(6,14,34,0.4);
  transform: translateY(-1px);
}

/* Hero outline — white pill outline, matching original's secondary pill */
.btn-hero-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.2);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 15px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.btn-hero-outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-social-proof {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.proof-avatars {
  display: flex;
}
.proof-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-avatar:first-child { margin-left: 0; }
.proof-text {
  font-size: 13px;
  color: var(--text3);
}
.proof-text strong { color: var(--text2); font-weight: 500; }

/* ─── DASHBOARD PREVIEW ──────────────────────────────── */
.dashboard-preview-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 24px;
}
.preview-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(124,108,255,0.25) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.dashboard-frame {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.7),
    0 0 120px rgba(124,108,255,0.08);
  position: relative;
}
.frame-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.frame-dots { display: flex; gap: 6px; }
.frame-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.fd-r { background: #ff5f57; }
.fd-y { background: #febc2e; }
.fd-g { background: #28c840; }
.frame-url {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text3);
  font-family: var(--mono);
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}
.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 540px;
}
.dash-sidebar {
  background: var(--bg1);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 8px 8px 4px;
  margin-top: 8px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: background .15s, color .15s;
  position: relative;
}
.sidebar-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sidebar-item.active {
  background: rgba(124,108,255,0.12);
  color: var(--accent3);
}
.sidebar-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.7; }
.sidebar-item.active svg { opacity: 1; }
.sidebar-badge {
  margin-left: auto;
  background: rgba(124,108,255,0.2);
  color: var(--accent3);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
}
.dash-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dash-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dash-title { font-size: 14px; font-weight: 500; }
.dash-subtitle { font-size: 12px; color: var(--text3); margin-top: 1px; }
.dash-actions { display: flex; gap: 8px; align-items: center; }
.dash-btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
}
.dash-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.dash-btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: white;
  font-weight: 500;
}
.dash-btn.primary:hover { background: #8b7bff; }
.dash-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.metric-label { font-size: 11px; color: var(--text3); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 8px; text-transform: uppercase; }
.metric-value { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.metric-change {
  font-size: 11px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.up { color: var(--green); }
.down { color: var(--red); }
.neutral { color: var(--text3); }

/* mini chart */
.mini-chart { height: 32px; margin-top: 8px; }
.mini-chart svg { width: 100%; height: 100%; }

.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.dash-card-title { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.dash-card-title span { font-size: 11px; color: var(--text3); font-weight: 400; }

/* activity */
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text2);
}
.activity-item:last-child { border: none; }
.activity-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.activity-time { margin-left: auto; color: var(--text3); font-family: var(--mono); font-size: 11px; }

/* agent list */
.agent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.agent-row:last-child { border: none; }
.agent-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.agent-name { color: var(--text); font-weight: 500; flex: 1; }
.agent-type { color: var(--text3); font-size: 11px; }
.agent-requests { color: var(--text2); font-family: var(--mono); font-size: 11px; margin-left: auto; }

/* bar chart visual */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(124,108,255,0.3);
  position: relative;
  transition: background .2s;
}
.bar:hover { background: rgba(124,108,255,0.6); }
.bar.accent { background: var(--accent); }
.bar-x { display: flex; gap: 6px; margin-top: 6px; }
.bar-x-label { flex: 1; text-align: center; font-size: 9px; color: var(--text3); font-family: var(--mono); }

/* streaming chat */
.chat-messages { display: flex; flex-direction: column; gap: 8px; }
.chat-msg {
  display: flex;
  gap: 8px;
  font-size: 12px;
}
.chat-avatar {
  width: 22px; height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}
.chat-bubble {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text2);
  max-width: 85%;
  line-height: 1.5;
}
.chat-bubble.ai {
  background: rgba(124,108,255,0.08);
  border-color: rgba(124,108,255,0.2);
  color: var(--text);
}
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: var(--accent2);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── LOGOS BAR ──────────────────────────────────────── */
.logos-section {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 28px;
}
.logos-track-wrapper { overflow: hidden; position: relative; }
.logos-track-wrapper::before,
.logos-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.logos-track-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.logos-track-wrapper::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: scroll-logos 28s linear infinite;
  width: max-content;
}
.logo-item {
  font-size: 16px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color .2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-item:hover { color: var(--text2); }
.logo-icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTIONS SHARED ────────────────────────────────── */
section {
  padding: 120px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 16px; height: 1px;
  background: var(--accent2);
}
h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}
.section-desc {
  font-size: 17px;
  color: var(--text2);
  max-width: 540px;
  line-height: 1.65;
  font-weight: 300;
}
.text-gradient {
  background: linear-gradient(90deg, var(--accent2), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mixed white-to-purple heading accent — used on second line of all h2s */
.h2-accent {
  font-style: normal;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent2) 55%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── FEATURES BENTO ─────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 64px;
}
.bento-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.bento-card:hover {
  border-color: var(--border2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card.tall { padding-bottom: 0; }
.bento-icon {
  width: 40px; height: 40px;
  background: rgba(124,108,255,0.12);
  border: 1px solid rgba(124,108,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
    
}
.bento-icon svg { width: 18px; height: 18px; color: var(--accent2); }
.bento-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.bento-desc { font-size: 14px; color: var(--text2); line-height: 1.6; max-width: 280px; }
.bento-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
.bento-card:hover .bento-glow { opacity: 1; }
.bento-visual {
  margin-top: 24px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
}

/* terminal */
.terminal {
  background: #0d0d0f;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  min-height: 140px;
}
.term-line { display: flex; gap: 8px; }
.term-prompt { color: var(--accent2); }
.term-cmd { color: var(--text); }
.term-output { color: var(--text3); }
.term-success { color: var(--green); }
.term-key { color: var(--amber); }

/* workflow viz */
.workflow-viz {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wf-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
}
.wf-num {
  width: 22px; height: 22px;
  background: rgba(124,108,255,0.2);
  color: var(--accent3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.wf-name { color: var(--text); font-weight: 500; flex: 1; }
.wf-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
}
.wf-done { background: rgba(52,211,153,0.12); color: var(--green); }
.wf-run { background: rgba(124,108,255,0.12); color: var(--accent3); }
.wf-wait { background: rgba(113,113,122,0.12); color: var(--text3); }

/* ─── CAPABILITIES ───────────────────────────────────── */
.capabilities-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 80px;
}
.cap-list { display: flex; flex-direction: column; gap: 0; }
.cap-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s;
}
.cap-item:first-child { border-top: 1px solid var(--border); }
.cap-item.active { border-bottom-color: var(--accent); }
.cap-num {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text3);
  padding-top: 3px;
  width: 24px;
  flex-shrink: 0;
}
.cap-item.active .cap-num { color: var(--accent2); }
.cap-body {}
.cap-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text2);
  transition: color .2s;
}
.cap-item.active .cap-name { color: var(--text); }
.cap-desc { font-size: 14px; color: var(--text3); line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), opacity .3s; opacity: 0; }
.cap-item.active .cap-desc { max-height: 100px; opacity: 1; }
.cap-preview {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.cap-preview-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-running {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.pulse-green {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(52,211,153,0); }
}
.cap-preview-body { flex: 1; padding: 20px; }
.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  overflow: auto;
}
.code-purple { color: #c084fc; }
.code-blue { color: #60a5fa; }
.code-green { color: var(--green); }
.code-amber { color: var(--amber); }
.code-text { color: var(--text2); }
.code-comment { color: var(--text3); }
.code-string { color: #4ade80; }

/* ─── INTEGRATIONS ───────────────────────────────────── */
.integrations-section { padding: 120px 24px; border-top: 1px solid var(--border); }
.integrations-inner { max-width: 1180px; margin: 0 auto; }
.integrations-header { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.integration-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.integration-tile {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.integration-tile:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.integration-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.int-name { font-size: 11px; color: var(--text3); font-weight: 500; }

/* ─── ANALYTICS ──────────────────────────────────────── */
.analytics-section {
  padding: 120px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(124,108,255,0.03) 50%, transparent 100%);
  border-top: 1px solid var(--border);
}
.analytics-inner { max-width: 1180px; margin: 0 auto; }
.analytics-layout { display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: center; margin-top: 64px; }
.chart-container {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.chart-legend { display: flex; gap: 20px; margin-bottom: 20px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.area-chart { width: 100%; height: 200px; }
.analytics-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.stat-lbl { font-size: 12px; color: var(--text3); margin-top: 1px; }

/* ─── SECURITY ───────────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.sec-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all .25s;
}
.sec-card:hover { border-color: var(--border2); }
.sec-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.sec-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.sec-desc { font-size: 13px; color: var(--text3); line-height: 1.6; }

/* ─── TESTIMONIALS ───────────────────────────────────── */
.testimonials-section {
  padding: 120px 24px;
  border-top: 1px solid var(--border);
}
.testimonials-inner { max-width: 1180px; margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.testimonial {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.testimonial-quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 300;
}
.testimonial-quote::before { content: '"'; color: var(--accent2); font-size: 24px; font-weight: 600; line-height: 0; vertical-align: -6px; margin-right: 2px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 500; }
.author-title { font-size: 12px; color: var(--text3); }

/* ─── PRICING ────────────────────────────────────────── */
.pricing-section {
  padding: 120px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.pricing-inner { max-width: 960px; margin: 0 auto; }
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 40px 0 48px;
  font-size: 14px;
  color: var(--text2);
}
.toggle-switch {
  width: 44px; height: 24px;
  background: var(--surface);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border2);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform .2s var(--ease);
}
.toggle-switch.on::after { transform: translateX(20px); }
.save-badge {
  background: rgba(52,211,153,0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  background: linear-gradient(145deg, rgba(124,108,255,0.08), rgba(192,132,252,0.05));
  border-color: rgba(124,108,255,0.35);
  box-shadow: 0 0 0 1px rgba(124,108,255,0.1), 0 8px 40px rgba(124,108,255,0.1);
}
.featured-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.02em;
}
.plan-name { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.plan-price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; display: inline-block; font-weight: 500; }
.plan-period { font-size: 13px; color: var(--text3); margin-bottom: 24px; }
.plan-divider { height: 1px; background: var(--border); margin: 20px 0; }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
}
.plan-feature::before {
  content: '✓';
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.plan-cta {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text);
}
.plan-cta:hover { background: rgba(255,255,255,0.05); }
.plan-cta.accent {
  background: var(--accent);
  border-color: transparent;
  color: white;
}
.plan-cta.accent:hover {
  background: #8b7bff;
  box-shadow: 0 4px 20px rgba(124,108,255,0.35);
}

/* ─── FAQ ────────────────────────────────────────────── */
.faq-section {
  padding: 120px 24px;
  border-top: 1px solid var(--border);
}
.faq-inner { max-width: 680px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 64px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  gap: 16px;
  user-select: none;
}
.faq-q svg {
  width: 16px; height: 16px;
  color: var(--text3);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .3s;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* ─── FOOTER CTA ─────────────────────────────────────── */
.cta-section {
  padding: 140px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(124,108,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(32px, 5vw, 52px); }
.cta-inner p { font-size: 17px; color: var(--text2); margin: 20px 0 44px; line-height: 1.65; font-weight: 300; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btn a{
    text-decoration: none;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text3);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 200px;
}
.footer-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text2); }
.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
}

/* ─── ANIMATIONS ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dash-layout { grid-template-columns: 180px 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card.span-3 { grid-column: span 2; }
  .analytics-layout { grid-template-columns: 1fr; }
  .integrations-header { grid-template-columns: 1fr; gap: 32px; }
  .integration-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .hamburger { display: flex !important; }
  .mobile-menu { display: flex !important; }
  .cursor, .cursor-ring { display: none; }
  section { padding: 80px 16px; }
  /* Hero responsive */
  .hero { padding: 100px 16px 60px; }
  .hero-content { padding: 0 8px; }
  .hero-badge { font-size: 11px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 10px; }
  .hero-cta button, .hero-cta .btn-hero, .hero-cta .btn-hero-outline { width: 100%; max-width: fit-content; justify-content: center; }
  .hero-social-proof { flex-direction: column; gap: 12px; }
  .dashboard-preview-wrapper { margin-top: 40px; padding: 0 8px; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .dash-grid-2 { grid-template-columns: 1fr; }
  /* Bento */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2, .bento-card.span-3 { grid-column: span 1; }
  /* Sections */
  .capabilities-layout { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(3, 1fr); }
  .analytics-layout { grid-template-columns: 1fr; }
  .integrations-header { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 14px 50px; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: 1fr; }
  h2 { letter-spacing: -0.02em; }
  .section-label { font-size: 10px; }
  .dash-body { padding: 14px 12px; }
  .bento-card { padding: 22px; }
  .sec-card { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════
   UNIFIED NAV — original structure × AI page visual DNA
═══════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 24px;
}

/* Logo */
.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* Invert to white so it reads on dark nav background */
  /* filter: brightness(0) invert(1); */
}
.nav-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* Center links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text2);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.chevron {
  font-size: 9px;
  transition: transform .25s ease;
  color: var(--text3);
}
.nav-links > li.open > button .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 300;
}
.nav-links > li.open .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
  font-family: var(--font);
}
.dropdown a:hover {
  background: rgba(124,108,255,0.1);
  color: var(--accent3);
}

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(9,9,11,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 190;
  flex-direction: column;
  padding: 12px 24px 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  display: block;
  padding: 13px 6px;
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
  transition: color .2s;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .m-sub {
  padding-left: 20px;
  font-size: 13px;
  color: var(--text3);
}
.mobile-menu .m-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.mobile-menu .m-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 6px 4px;
}
.mobile-menu .m-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  border: none !important;
  background: none;
}
.mobile-menu .m-signup {
  padding: 10px 22px;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none !important;
  transition: background .2s;
}
.mobile-menu .m-signup:hover { background: #8b7bff; }

@media (max-width: 768px) {
  .nav-inner { padding: 0 2px; }
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
  .nav-logo-img { height: 36px; }
}

@media (max-width: 480px) {
  .nav-logo-img { height: 45px; }
  .btn-primary { padding: 8px 16px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════
   UNIFIED FOOTER — original apex structure × AI dark palette
═══════════════════════════════════════════════════════ */

/* Newsletter */
.apex-nl {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.apex-nl-title {
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1.15;
  font-family: 'Montserrat', sans-serif;
}
.apex-nl-title span { color: var(--accent2); }
.apex-nl-form {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.apex-nl-form input {
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 240px;
  transition: border-color .2s, background .2s;
}
.apex-nl-form input::placeholder { color: var(--text3); }
.apex-nl-form input:focus { border-color: var(--accent); background: var(--bg2); }
.apex-nl-form button {
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--accent);
  color: white;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  letter-spacing: 0.2px;
}
.apex-nl-form button:hover { background: #8b7bff; transform: translateY(-1px); }

/* Main Footer */
.apex-footer {
  background: var(--bg1);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  font-family: 'Montserrat', sans-serif;
}
.apex-wm {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 150px;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  letter-spacing: -6px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-family: 'Montserrat', sans-serif;
}
.apex-inner {
  position: relative;
  z-index: 1;
  padding: 52px 60px 0;
}
.apex-top {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr 1fr 1fr;
  gap: 0 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

/* Brand card in footer */
.apex-brand-card {
  background: linear-gradient(150deg, rgba(124,108,255,0.18) 0%, rgba(92,75,255,0.22) 55%, rgba(60,40,180,0.28) 100%);
  border: 1px solid rgba(124,108,255,0.25);
  border-radius: 18px;
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.apex-brand-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  background: rgba(167,139,250,0.07);
  border-radius: 50%;
}
.apex-brand-card::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  background: rgba(124,108,255,0.05);
  border-radius: 50%;
}
.apex-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: auto;
}
.apex-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.2px;
  font-family: 'Montserrat', sans-serif;
}
.apex-tagline {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
}
.apex-tagline span { font-weight: 400; opacity: 0.75; }
.apex-stay { font-size: 11px; color: rgba(255,255,255,0.5); font-style: italic; margin-bottom: 10px; }
.apex-socials { display: flex; gap: 7px; }
.apex-social {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.35);
  background: rgba(124,108,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  text-decoration: none;
  color: var(--accent3);
  font-size: 12px;
}
.apex-social:hover {
  background: rgba(124,108,255,0.35);
  border-color: var(--accent2);
  transform: translateY(-2px);
  color: white;
}
.apex-col-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
}
.apex-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apex-links li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: color .2s;
  line-height: 1;
  font-family: var(--font);
}
.apex-links li a:hover { color: var(--accent3); }
.apex-bottom {
  position: relative;
  z-index: 1;
  height: 24px;
}

/* Legal + closing */
.apex-legal {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
  padding: 20px 60px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.apex-legal p {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.8;
  font-weight: 400;
  text-align: center;
  max-width: 900px;
  font-family: var(--font);
}
.apex-closing {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.apex-closing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.apex-closing-bar-left { display: flex; align-items: center; gap: 10px; }
.apex-closing-bar-text {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  font-family: var(--font);
  text-align: center;
}
.apex-closing-bar-right { display: flex; gap: 24px; align-items: center; }
.apex-closing-bar-right a {
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  transition: color .2s;
  font-weight: 500;
  font-family: var(--font);
}
.apex-closing-bar-right a:hover { color: var(--text2); }

/* Footer responsive */
@media (max-width: 960px) {
  .apex-nl { padding: 36px 32px; }
  .apex-inner { padding: 40px 32px 0; }
  .apex-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }
  .apex-brand-card { grid-column: 1 / -1; min-height: unset; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .apex-tagline { margin-top: 0; margin-bottom: 0; }
  .apex-closing-bar { padding: 14px 32px 20px; }
  .apex-legal { padding: 20px 32px 0; }
  .apex-wm { font-size: 100px; }
}
@media (max-width: 600px) {
  .apex-nl { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
  .apex-nl-form { flex-direction: column; gap: 10px; width: 100%; }
  .apex-nl-form input { width: 100%; }
  .apex-inner { padding: 20px 13px 0; }
  .apex-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .apex-brand-card { grid-column: 1 / -1; flex-direction: column; }
  .apex-tagline { margin-top: 16px; margin-bottom: 14px; }
  .apex-closing-bar { padding: 12px 20px 18px; flex-direction: column; }
  .apex-legal { padding: 16px 20px 0; }
  .apex-wm { font-size: 60px; letter-spacing: -3px; }
}