/* ============================================================
   NessisOne Marketing Site — style.css
   Aesthetic: Deep Infrastructure · Precision Engineering
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-base:     #0b1421;
  --bg-surface:  #0f1d2e;
  --bg-card:     #111c2e;
  --bg-elevated: #162236;
  --bg-highlight:#1b2940;

  /* Accents */
  --teal:        #0ea5e9;
  --teal-light:  #38bdf8;
  --teal-dim:    rgba(14, 165, 233, 0.12);
  --teal-glow:   rgba(14, 165, 233, 0.35);
  --gold:        #f59e0b;
  --gold-light:  #fbbf24;
  --gold-dim:    rgba(245, 158, 11, 0.12);
  --gold-glow:   rgba(245, 158, 11, 0.35);

  /* Text */
  --text-primary:   #eef2f7;
  --text-secondary: #7a90a8;
  --text-muted:     #3d5166;
  --text-code:      #7dd3fc;

  /* Borders */
  --border:        rgba(255,255,255,0.07);
  --border-teal:   rgba(14, 165, 233, 0.25);
  --border-gold:   rgba(245, 158, 11, 0.25);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Sizing */
  --nav-h:    72px;
  --radius:   12px;
  --radius-lg:20px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Subtle grain overlay via SVG data URI */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ── Typography Scale ───────────────────────────────────────── */
.display-xl {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.display-lg {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.display-md {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Gradient Text ──────────────────────────────────────────── */
.text-gradient-teal {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-hero {
  background: linear-gradient(135deg, #f0f4f8 0%, var(--teal-light) 50%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-sweep 6s linear infinite;
}
@keyframes gradient-sweep {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 0 0 0 var(--teal-glow);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--teal-glow), 0 0 0 1px var(--border-teal);
}
.btn-primary:hover::before { opacity: 1; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
  color: #0b1421;
  font-weight: 700;
  box-shadow: 0 0 0 0 var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-teal);
  background: var(--teal-dim);
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal-light);
  border: 1px solid var(--border-teal);
}
.btn-outline-teal:hover {
  background: var(--teal-dim);
  box-shadow: 0 0 20px var(--teal-glow);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 20, 33, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo img { height: 36px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

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

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(11, 20, 33, 0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
}
.nav__mobile-link:hover {
  background: var(--teal-dim);
  color: var(--text-primary);
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Gradient orbs background */
.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift 20s ease-in-out infinite;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.18) 0%, transparent 70%);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  top: 20%; right: -5%;
  animation-delay: -7s;
}
.hero__orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.10) 0%, transparent 70%);
  bottom: -10%; left: 30%;
  animation-delay: -14s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Dot grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(14,165,233,0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
  animation: grid-pulse 8s ease-in-out infinite;
}
@keyframes grid-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.7; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0 100px;
}

.hero__content {}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  border-radius: 100px;
  color: var(--teal-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s var(--ease-out) 0.2s forwards;
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero__headline {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.9s var(--ease-out) 0.4s forwards;
}

.hero__sub {
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.9s var(--ease-out) 0.6s forwards;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.9s var(--ease-out) 0.8s forwards;
}

.hero__trust {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 32px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 1.1s forwards;
}
.hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__trust-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.hero__trust-value span { color: var(--teal); }
.hero__trust-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero visual — architecture card */
.hero__visual {
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  animation: fade-left 1s var(--ease-out) 0.5s forwards;
}
@keyframes fade-left {
  to { opacity: 1; transform: translateX(0); }
}

.hero__arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero__arch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold), transparent);
  animation: shimmer-line 4s ease-in-out infinite;
}
@keyframes shimmer-line {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

.arch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.arch-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.arch-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 500;
}
.arch-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

.arch-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.arch-module {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}
.arch-module:hover {
  border-color: var(--border-teal);
  background: var(--teal-dim);
  transform: translateY(-2px);
}
.arch-module-icon {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.arch-module-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.arch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.arch-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal-light);
  letter-spacing: -0.02em;
}
.arch-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
}

.stats-bar__counters {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.stat-item {
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number .accent { color: var(--teal); }
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Technology marquee */
.marquee-wrap {
  position: relative;
  overflow: hidden;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}
.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 8px 0;
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--text-secondary); }
.marquee-item svg { opacity: 0.5; flex-shrink: 0; }

/* ── Section Base ───────────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section--sm { padding: 64px 0; }
.section--dark { background: var(--bg-surface); }

.section__label {
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section__label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--teal);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section__header .lead { margin-top: 16px; }

/* ── Problem / Solution ─────────────────────────────────────── */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ps-col {
  padding: 48px;
  position: relative;
}
.ps-col--problem {
  background: rgba(239, 68, 68, 0.04);
  border-right: 1px solid var(--border);
}
.ps-col--solution {
  background: rgba(14, 165, 233, 0.04);
}

.ps-col__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.ps-col--problem .ps-col__badge {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.ps-col--solution .ps-col__badge {
  background: var(--teal-dim);
  color: var(--teal-light);
  border: 1px solid var(--border-teal);
}

.ps-col__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.ps-list { display: flex; flex-direction: column; gap: 16px; }
.ps-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ps-item__icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.ps-col--problem .ps-item__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.ps-col--solution .ps-item__icon {
  background: var(--teal-dim);
  color: var(--teal-light);
}
.ps-item__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ps-item__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Bento Grid ─────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}
.bento-card::before {
  /* Scanline hover effect */
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  transition: none;
  pointer-events: none;
}
.bento-card:hover { border-color: var(--border-teal); }
.bento-card:hover::before {
  animation: scanline 0.6s ease forwards;
}
@keyframes scanline {
  0%   { top: -2px; opacity: 1; }
  100% { top: calc(100% + 2px); opacity: 0.3; }
}

/* Spotlight effect (applied via JS) */
.bento-card__spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(14, 165, 233, 0.06) 0%,
    transparent 100%
  );
}
.bento-card:hover .bento-card__spotlight { opacity: 1; }

.bento-card--wide { grid-column: span 2; }

.bento-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  color: var(--teal-light);
}
.bento-card__icon--gold {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold-light);
}
.bento-card__icon--purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}
.bento-card__icon--green {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.25);
  color: #4ade80;
}

.bento-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.bento-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.bento-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.tag--teal { background: var(--teal-dim); color: var(--teal-light); border: 1px solid var(--border-teal); }
.tag--gold { background: var(--gold-dim); color: var(--gold-light); border: 1px solid var(--border-gold); }
.tag--muted { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ── AI Section ─────────────────────────────────────────────── */
.ai-features { display: flex; flex-direction: column; gap: 4px; }

.ai-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.ai-feature:last-child { border-bottom: none; }
.ai-feature--reverse { direction: rtl; }
.ai-feature--reverse > * { direction: ltr; }

.ai-feature__content {}
.ai-feature__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  color: var(--teal);
  margin-bottom: 20px;
}
.ai-feature__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.ai-feature__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ai-feature__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-feature__visual {
  position: relative;
}

/* AI chat mockup */
.ai-chat-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ai-chat-demo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.ai-chat-demo__dots {
  display: flex; gap: 6px;
}
.ai-chat-demo__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ai-chat-demo__dot:nth-child(1) { background: #ef4444; }
.ai-chat-demo__dot:nth-child(2) { background: var(--gold); }
.ai-chat-demo__dot:nth-child(3) { background: #4ade80; }
.ai-chat-demo__title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 4px;
}
.ai-chat-demo__messages { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.ai-msg--user {
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-msg--ai {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg--ai strong { color: var(--text-primary); }

/* ── Terminal Section ───────────────────────────────────────── */
.terminal-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.terminal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.terminal-window {
  background: #060e18;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  position: relative;
}
.terminal-window::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: var(--gold); }
.terminal-dot:nth-child(3) { background: #4ade80; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  min-height: 320px;
}
.t-prompt { color: var(--teal); }
.t-cmd { color: var(--text-primary); }
.t-comment { color: var(--text-muted); }
.t-success { color: #4ade80; }
.t-warning { color: var(--gold); }
.t-file { color: var(--teal-light); }
.t-info { color: var(--text-secondary); }
.t-line { display: block; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--teal);
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.terminal-content {}
.terminal-content__title { margin-bottom: 20px; }
.terminal-content__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.ba-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.ba-card--before { border-color: rgba(239, 68, 68, 0.2); }
.ba-card--after  { border-color: rgba(74, 222, 128, 0.2); }
.ba-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ba-card--before .ba-label { color: #f87171; }
.ba-card--after  .ba-label { color: #4ade80; }
.ba-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ba-card--before .ba-value { color: #f87171; }
.ba-card--after  .ba-value { color: #4ade80; }
.ba-unit { font-size: 0.9rem; font-weight: 500; }

/* ── Architecture Section ───────────────────────────────────── */
.arch-section {}

.arch-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.arch-pattern {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s;
}
.arch-pattern:hover {
  border-color: var(--border-teal);
  color: var(--text-primary);
  background: var(--teal-dim);
}
.arch-pattern .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.25s;
}
.tech-item:hover {
  border-color: var(--border-teal);
  transform: translateY(-3px);
}
.tech-item__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}
.tech-item__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.arch-callouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.arch-callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 2px solid var(--teal);
}
.arch-callout__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.arch-callout__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover {
  border-color: var(--border-teal);
  transform: translateY(-4px);
}
.pricing-card--featured {
  border-color: var(--border-teal);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(14, 165, 233, 0.04) 100%);
}
.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--teal), #0284c7);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.pricing-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.pricing-feature svg { color: var(--teal); flex-shrink: 0; margin-top: 1px; }

/* ── Final CTA ──────────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(14,165,233,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 70% 30%, rgba(245,158,11,0.06) 0%, transparent 70%);
}
.cta-section__inner { position: relative; z-index: 1; }
.cta-section__title { margin-bottom: 20px; }
.cta-section__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}
.footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--teal-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.footer__social-link:hover {
  border-color: var(--border-teal);
  color: var(--teal-light);
  background: var(--teal-dim);
}

/* ── Scroll Reveal (base state, JS adds .visible) ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ── Utility ────────────────────────────────────────────────── */
.text-teal    { color: var(--teal-light); }
.text-gold    { color: var(--gold-light); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner    { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual   { max-width: 540px; }
  .arch-modules   { grid-template-columns: repeat(3, 1fr); }
  .bento          { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
  .tech-grid      { grid-template-columns: repeat(4, 1fr); }
  .arch-callouts  { grid-template-columns: repeat(2, 1fr); }
  .terminal-layout { grid-template-columns: 1fr; }
  .ai-feature     { grid-template-columns: 1fr; gap: 40px; }
  .ai-feature--reverse { direction: ltr; }
  .footer__top    { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions .btn-outline-teal { display: none; }
  .nav__hamburger { display: flex; }

  .section { padding: 64px 0; }

  .hero__inner { padding: 48px 0 72px; }
  .hero__trust { gap: 20px; flex-wrap: wrap; }
  .hero__trust-item { min-width: 100px; }

  .stats-bar__counters { flex-direction: column; gap: 24px; align-items: center; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .stat-item:last-child { border-bottom: none; }

  .problem-solution { grid-template-columns: 1fr; }
  .ps-col--problem { border-right: none; border-bottom: 1px solid var(--border); }

  .bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .arch-callouts { grid-template-columns: 1fr 1fr; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 20px; text-align: center; }
  .before-after { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-callouts { grid-template-columns: 1fr; }
}

/* ── Prefers Reduced Motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Animation helpers ──────────────────────────────────────── */
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.glass {
  background: rgba(17, 28, 46, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
