/* ============================================================
   ai.imrozzoha.com — AI Workflow Automation Marketplace
   Design tokens
   ============================================================ */
:root {
  /* Base — warm paper light (contrast to imrozzoha.com's dark canvas) */
  --bg-0: #efece4;          /* page base — warm paper */
  --bg-1: #f5f3ec;          /* section base */
  --bg-2: #ffffff;          /* raised surface */
  --surface: rgba(255, 255, 255, 0.5);
  --surface-2: rgba(255, 255, 255, 0.85);
  --border: rgba(28, 55, 40, 0.13);
  --border-strong: rgba(28, 55, 40, 0.22);

  /* Text — warm green-ink */
  --text: #15211a;
  --text-dim: #44524a;
  --text-mute: #77847b;

  /* Accents — green-forward (same signal green as imrozzoha.com) */
  --cyan: #15a6f5;
  --blue: #2fb6ff;
  --indigo: #2f8bff;
  --violet: #7c4dd6;

  /* Signal green — shared brand thread with imrozzoha.com (= live / active) */
  --live: #16a34a;
  --live-dim: #15803d;

  --amber: #b07012;  /* in-dev / roadmap (darkened for light bg) */

  /* Gradients */
  --grad-ai: linear-gradient(135deg, #38c2ff, #14a3f5 52%, #0a82ec);
  --grad-ai-deep: linear-gradient(135deg, #1f9bea, #0a78db 52%, #0a5cb0);
  --grad-logo: linear-gradient(135deg, #ec4899, #7c3aed);
  --grad-text: linear-gradient(135deg, #1f9bea, #0a78db 50%, #3fb4f5);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --shadow: 0 22px 50px -28px rgba(24, 50, 32, 0.4);
  --glow-cyan: 0 8px 24px -8px rgba(21, 166, 245, 0.5);
}

/* ============================================================ Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(21, 166, 245, 0.26); color: #06283c; }

/* ============================================================ Layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 9vw, 132px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700;
  color: #86efac;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #141b18;
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.55), 0 0 22px -4px rgba(21, 166, 245, 0.35);
}
@media (prefers-reduced-motion: reduce) { .eyebrow { animation: none; } }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #86efac; box-shadow: 0 0 10px #86efac; animation: beacon-dot 1.1s ease-in-out infinite; }
@keyframes beacon-dot {
  0%, 100% { box-shadow: 0 0 6px #86efac; opacity: 0.6; }
  50% { box-shadow: 0 0 16px #86efac, 0 0 28px #86efac; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 20px;
  text-wrap: balance;
}
.section-head h2:first-child { margin-top: 0; }
.section-head p {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.5vw, 18.5px);
  max-width: 620px;
  text-wrap: pretty;
}

.grad-word { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 12px;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad-ai); color: #ffffff; box-shadow: var(--glow-cyan); font-weight: 700; }
.nav-cta .btn-primary, .hero-cta .btn-primary, .page-next .btn-primary { background: var(--grad-ai-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 28px -6px rgba(40,190,255,.7), 0 16px 36px -12px rgba(21,166,245,.6); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--cyan); transform: translateY(-2px); }
.btn-line { background: transparent; border: 1px solid var(--border); color: var(--text-dim); }
.btn-line:hover { color: var(--text); border-color: var(--border-strong); }
.btn-live { background: var(--live); color: #ffffff; font-weight: 700; box-shadow: 0 8px 22px -12px rgba(22,163,74,.7); }
.btn-live:hover { background: var(--live-dim); transform: translateY(-2px); box-shadow: 0 0 24px -6px rgba(22,163,74,.55), 0 14px 30px -12px rgba(22,163,74,.5); }
.btn-live svg { width: 15px; height: 15px; }

/* ============================================================ Open-source repo cards */
.repo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin-top: 38px; }
.repo-card { --surface: rgba(255,255,255,0.04); --surface-2: rgba(255,255,255,0.08); --border: rgba(255,255,255,0.1); --border-strong: rgba(255,255,255,0.16); --text: #f1f5f2; --text-dim: #b3c0b8; --text-mute: #7f8d84; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: linear-gradient(180deg, #161d1a, #0f1512); color: var(--text); border: 1px solid var(--border-strong); border-radius: 14px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.repo-card:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 16px 36px -22px rgba(21,166,245,.5); }
.repo-top { display: flex; align-items: center; gap: 9px; }
.repo-top svg { width: 19px; height: 19px; color: var(--text); flex-shrink: 0; }
.repo-name { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--text); word-break: break-word; }
.repo-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; margin: 0; flex: 1; }
.repo-go { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); letter-spacing: .02em; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* ============================================================ Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 248, 242, 0.8);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mono {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  background: var(--grad-logo); color: #ffffff;
  box-shadow: 0 6px 20px -6px rgba(168,85,247,.7);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-txt span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; color: var(--text-dim); padding: 9px 13px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-links a.active::after { content:""; display:block; height:2px; border-radius:2px; margin-top:5px; background: var(--grad-ai); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--text); margin: 4px auto; transition: .25s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ============================================================ Background field */
.bg-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(45,72,55,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45,72,55,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
}
.bg-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .14;
}
.bg-glow.a { width: 620px; height: 620px; top: -260px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(21,166,245,.45), transparent 65%); }
.bg-glow.b { width: 480px; height: 480px; top: 60px; right: -180px;
  background: radial-gradient(circle, rgba(124,77,214,.3), transparent 65%); opacity:.24; }
.bg-glow.c { width: 420px; height: 420px; top: 180px; left: -160px;
  background: radial-gradient(circle, rgba(21,166,245,.28), transparent 65%); opacity:.22; }

/* ============================================================ Hero */
.hero { min-height: auto; display: flex; align-items: flex-start; padding-top: 92px; padding-bottom: 48px; }
.hero-grid { width: 100%; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 900px) { .hero { min-height: 0; padding-top: 120px; padding-bottom: 56px; } }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.03em;
  margin-top: 18px; text-wrap: balance;
}
.hero .sub { margin-top: 18px; font-size: clamp(17px, 1.8vw, 20px); color: var(--text); max-width: 560px; text-wrap: pretty; }
.hero .supp { margin-top: 13px; font-size: 15.5px; color: var(--text-dim); max-width: 540px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.hero-meta .m { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: .02em; }
.hero-meta .m svg { width: 15px; height: 15px; color: var(--cyan); }

/* Command-center console */
.console {
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f5f2;
  --text-dim: #b3c0b8;
  --text-mute: #7f8d84;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #161d1a, #0f1512);
  color: var(--text);
  box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(6px);
}
.console-bar { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.console-dots i:nth-child(1){ background:#ff5f57; } .console-dots i:nth-child(2){ background:#febc2e; } .console-dots i:nth-child(3){ background:#28c840; }
.console-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); margin-left: 4px; }
.console-live { margin-left: auto; display:flex; align-items:center; gap:7px; font-family: var(--font-mono); font-size: 11px; color: var(--live); }
.console-live .pulse { width: 7px; height: 7px; border-radius:50%; background: var(--live); box-shadow:0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.55);} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }
.console-body { padding: 24px; display: flex; flex-direction: column; gap: 26px; }
.svc-rows { display: flex; flex-direction: column; gap: 14px; }
.svc {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 18px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.svc-name { display:flex; align-items:center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.svc-name .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(21,166,245,.12); color: var(--cyan); }
.svc-name .ic svg { width: 16px; height: 16px; }
.svc-name small { display:block; font-weight: 400; font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); }
.svc-lat { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.badge-status { display:inline-flex; align-items:center; gap:6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing:.08em; text-transform:uppercase; padding: 4px 9px; border-radius: 999px; border:1px solid; }
.badge-status.live { color: var(--live); border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.badge-status.dev  { color: var(--amber); border-color: rgba(245,177,76,.35); background: rgba(245,177,76,.08); }
.badge-status i { width:6px; height:6px; border-radius:50%; background: currentColor; }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cm { border: 1px solid var(--border); border-radius: 11px; padding: 22px 12px; background: var(--surface); }
.cm .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.cm .v { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-top: 5px; }
.cm .v small { font-size: 11px; color: var(--live); font-weight: 500; font-family: var(--font-mono); margin-left: 4px; }
.spark { width: 100%; height: 46px; }

/* ============================================================ Marquee / trust strip */
.strip { border-block: 1px solid var(--border); background: rgba(18,45,28,.018); padding-block: 22px; overflow: hidden; }
.strip-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); text-align:center; margin-bottom: 16px; }
.marquee { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.chip { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 8px 15px; background: var(--surface); }

/* ============================================================ Card grids */
.cards { display: grid; gap: 18px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 26px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content:""; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: var(--grad-ai); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .3s ease; pointer-events:none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: .55; }
.card .ic-lg {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(21,166,245,.1); border: 1px solid rgba(21,166,245,.22); color: var(--cyan);
  margin-bottom: 18px;
}
.card .ic-lg svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.card .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 6px; }
.card p { margin-top: 10px; color: var(--text-dim); font-size: 14.5px; text-wrap: pretty; }

/* Demo card extras */
.demo-card { display: flex; flex-direction: column; }
.demo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.demo-card .stack-line { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.demo-card .stack-line span { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.demo-card .demo-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.demo-card .open-link { display:inline-flex; align-items:center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--cyan); transition: gap .2s; }
.demo-card .open-link svg { width: 15px; height: 15px; }
.demo-card .open-link:hover { gap: 11px; }
.demo-card[data-demo="ops"] .open-link { color: var(--amber); cursor: default; }

/* ============================================================ Roadmap */
.roadmap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.phases { position: relative; padding-left: 30px; }
.phases::before { content:""; position:absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); opacity:.4; }
.phase { position: relative; padding-bottom: 26px; }
.phase:last-child { padding-bottom: 0; }
.phase .node { position: absolute; left: -30px; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg-1); display:grid; place-items:center; }
.phase .node i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mute); }
.phase.done .node { border-color: var(--live); } .phase.done .node i { background: var(--live); }
.phase.active .node { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(21,166,245,.12); } .phase.active .node i { background: var(--cyan); }
.phase .pn { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); display:flex; align-items:center; gap:10px; }
.phase .pn .tag { color: var(--text-mute); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; font-size: 9.5px; }
.phase.active .pn .tag { color: var(--cyan); border-color: rgba(21,166,245,.35); }
.phase.done .pn .tag { color: var(--live); border-color: rgba(34,197,94,.35); }
.phase h4 { font-family: var(--font-display); font-weight: 500; font-size: 17px; margin-top: 8px; letter-spacing: -0.01em; }

/* Architecture flow */
.arch { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 24px; position: sticky; top: 96px; }
.arch h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.arch-flow { display: flex; flex-direction: column; gap: 0; }
.af { border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; background: linear-gradient(180deg, var(--surface-2), transparent); }
.af .t { font-weight: 600; font-size: 14px; }
.af .d { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); margin-top: 4px; }
.af.term { border-color: rgba(21,166,245,.4); background: rgba(21,166,245,.07); }
.af-arrow { height: 22px; width: 2px; margin: 0 auto; background: linear-gradient(var(--cyan), transparent); position: relative; }
.af-arrow::after { content:""; position:absolute; bottom:-1px; left:50%; transform: translateX(-50%); border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid var(--cyan); }

/* ============================================================ Assessment */
.assess { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.assess-outputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ao { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 15px; background: var(--surface); }
.ao .n { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); flex-shrink: 0; width: 22px; }
.ao .lbl b { display:block; font-size: 14px; font-weight: 600; }
.ao .lbl span { font-size: 12px; color: var(--text-mute); }

/* ============================================================ Security */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sec-item { display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .2s; }
.sec-item:hover { border-color: var(--border-strong); }
.sec-item .check { width: 26px; height: 26px; border-radius: 8px; display:grid; place-items:center; background: rgba(34,197,94,.1); color: var(--live); flex-shrink: 0; border: 1px solid rgba(34,197,94,.25); }
.sec-item .check svg { width: 15px; height: 15px; }
.sec-item b { font-size: 14.5px; font-weight: 600; }
.sec-quote { margin-top: 36px; border-left: 2px solid var(--live); padding: 4px 0 4px 24px; }
.sec-quote p { font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; color: var(--text); letter-spacing: -0.01em; text-wrap: pretty; }

/* ============================================================ Tech stack */
.stack-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sg { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; background: var(--surface); }
.sg h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.sg .tags { display: flex; flex-direction: column; gap: 9px; }
.sg .tags span { font-size: 13.5px; color: var(--text-dim); display: flex; align-items: center; gap: 9px; }
.sg .tags span::before { content:""; width: 4px; height: 4px; border-radius: 50%; background: var(--text-mute); flex-shrink: 0; }

/* ============================================================ Work With Me / CTA */
.cta-section { position: relative; overflow: hidden; }
.cta-card {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,243,236,.95));
  padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
}
.cta-card .bg-glow.a { top: -200px; opacity: .35; }
.cta-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; position: relative; z-index: 2; text-wrap: balance; }
.cta-card p { margin: 20px auto 0; max-width: 640px; color: var(--text-dim); font-size: 17px; position: relative; z-index: 2; text-wrap: pretty; }
.cta-card .hero-cta { justify-content: center; position: relative; z-index: 2; }

/* ============================================================ Footer */
.footer { border-top: 1px solid var(--border); padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer .brand { margin-bottom: 14px; }
.footer .fcol h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.footer .fcol a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer .fcol a:hover { color: var(--cyan); }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-mute); font-family: var(--font-mono); }
.footer-bottom .disc { max-width: 560px; }

/* ============================================================ Modal */
.modal-scrim {
  position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
  background: rgba(4, 6, 12, 0.78); backdrop-filter: blur(8px); padding: 20px;
}
.modal-scrim.open { display: flex; }
.modal {
  width: 100%; max-width: 720px; max-height: 86vh; display: flex; flex-direction: column;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: var(--shadow);
  overflow: hidden; transform: translateY(14px) scale(.98); opacity: 0; transition: .28s ease;
}
.modal-scrim.open .modal { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-head .ic { width: 40px; height: 40px; border-radius: 10px; display:grid; place-items:center; background: rgba(21,166,245,.12); color: var(--cyan); flex-shrink: 0; }
.modal-head .ic svg { width: 20px; height: 20px; }
.modal-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.modal-head .sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.modal-close { margin-left: auto; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); display:grid; place-items:center; color: var(--text-dim); transition: .2s; flex-shrink: 0; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 11px; max-width: 92%; }
.msg .av { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display:grid; place-items:center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .av { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.msg.ai .av { background: var(--grad-ai); color: #ffffff; }
.msg .bubble { padding: 12px 15px; border-radius: 13px; font-size: 14px; line-height: 1.55; }
.msg.user .bubble { background: rgba(21,166,245,.14); border: 1px solid rgba(21,166,245,.25); border-top-right-radius: 4px; }
.msg.ai .bubble { background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 4px; color: var(--text-dim); }
.msg .bubble b { color: var(--text); }
.cite { display:inline-flex; align-items:center; gap:5px; font-family: var(--font-mono); font-size: 10.5px; color: var(--cyan); background: rgba(21,166,245,.1); border:1px solid rgba(21,166,245,.25); border-radius: 6px; padding: 2px 7px; margin: 2px 3px 0 0; }
.typing { display:inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-mute); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay: .2s; } .typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ opacity:.25; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }

/* Role-fit demo result */
.score-ring { display:flex; align-items:center; gap: 18px; padding: 16px; border:1px solid var(--border); border-radius: 14px; background: var(--surface); }
.ring { width: 76px; height: 76px; flex-shrink: 0; }
.score-ring .lbl b { font-family: var(--font-display); font-size: 15px; }
.score-ring .lbl span { font-size: 13px; color: var(--text-dim); }
.bars { display:flex; flex-direction:column; gap: 12px; margin-top: 16px; }
.bar-row .top { display:flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar-row .top span:last-child { font-family: var(--font-mono); color: var(--text-dim); }
.bar { height: 7px; border-radius: 999px; background: rgba(18,42,27,.09); overflow: hidden; }
.bar i { display:block; height: 100%; border-radius: 999px; background: var(--grad-ai); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.gap-list { margin-top: 18px; display:flex; flex-direction: column; gap: 8px; }
.gap-list .g { display:flex; gap: 10px; font-size: 13px; color: var(--text-dim); align-items: flex-start; }
.gap-list .g svg { width: 15px; height: 15px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.modal-note { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); text-align: center; padding-top: 14px; border-top: 1px dashed var(--border); }

/* ============================================================ Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ Responsive */
@media (max-width: 1080px) {
  .stack-groups { grid-template-columns: repeat(2, 1fr); }
  .cards.c3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .console { max-width: 520px; }
  .roadmap { grid-template-columns: 1fr; gap: 36px; }
  .arch { position: static; }
  .assess { grid-template-columns: 1fr; gap: 32px; }
  .nav-links, .nav-cta .btn:not(.nav-toggle) { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0; padding: 16px 24px 24px;
    background: rgba(250,248,242,.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a { padding: 13px; font-size: 15px; }
}
@media (max-width: 680px) {
  .cards.c3, .cards.c2, .sec-grid, .assess-outputs, .stack-groups { grid-template-columns: 1fr; }
  .console-metrics { grid-template-columns: repeat(3, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-links { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================ Multi-page additions */
/* Inner page hero */
.page-hero { position: relative; padding-top: 108px; padding-bottom: 56px; }
.page-hero .wrap { position: relative; z-index: 2; }
.crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-mute); margin-bottom: 18px; display:flex; align-items:center; gap: 8px; }
.crumb a { color: var(--text-mute); transition: color .2s; }
.crumb a:hover { color: var(--cyan); }
.crumb .sep { opacity: .5; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.025em;
  margin-top: 16px; text-wrap: balance; max-width: 880px;
}
.page-hero .lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-dim); max-width: 640px; text-wrap: pretty; }

/* Home: section-link preview cards */
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.preview {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.preview:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.preview .ic-lg {
  width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center;
  background: rgba(21,166,245,.1); border:1px solid rgba(21,166,245,.22); color: var(--cyan); margin-bottom: 16px;
}
.preview .ic-lg svg { width: 23px; height: 23px; }
.preview h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.preview p { margin-top: 10px; color: var(--text-dim); font-size: 14.5px; flex: 1; text-wrap: pretty; }
.preview .go { margin-top: 18px; display:inline-flex; align-items:center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--cyan); transition: gap .2s; }
.preview .go svg { width: 15px; height: 15px; }
.preview:hover .go { gap: 11px; }
.preview .corner-badge { position:absolute; top: 18px; right: 18px; }

/* Section CTA row at bottom of inner pages */
.page-next { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 20px; margin-top: 56px; padding: 26px 28px; border:1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.page-next .t b { font-family: var(--font-display); font-weight: 600; font-size: 18px; display:block; }
.page-next .t span { color: var(--text-mute); font-size: 14px; }

@media (max-width: 1080px) { .preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .preview-grid { grid-template-columns: 1fr; } }

/* ============================================================ Marketplace */
.mkt-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.mkt-filters button {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em;
  color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; background: var(--surface); transition: all .2s ease;
}
.mkt-filters button:hover { color: var(--text); border-color: var(--border-strong); }
.mkt-filters button.active { color: #ffffff; background: var(--grad-ai-deep); border-color: transparent; font-weight: 600; }
.mkt-filters .count { opacity: .6; margin-left: 6px; }

.mkt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.mkt-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 24px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .3s ease;
}
.mkt-card::before {
  content:""; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: var(--grad-ai); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .3s ease; pointer-events:none;
}
.mkt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mkt-card:hover::before { opacity: .5; }
.mkt-card.hide { display: none; }
.mkt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mkt-top .ic { width: 44px; height: 44px; border-radius: 11px; display:grid; place-items:center; background: rgba(21,166,245,.1); border:1px solid rgba(21,166,245,.22); color: var(--cyan); flex-shrink: 0; }
.mkt-top .ic svg { width: 22px; height: 22px; }
.mkt-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin-top: 11px; }
.mkt-bestfor { font-size: 13px; color: var(--text-mute); margin-top: 6px; }
.mkt-bestfor b { color: var(--cyan); font-weight: 600; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; display:block; margin-bottom: 3px; }
.mkt-desc { font-size: 14px; color: var(--text-dim); margin-top: 14px; text-wrap: pretty; }
.mkt-io { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.mkt-io .io { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 12.5px; }
.mkt-io .io .lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); padding-top: 1px; }
.mkt-io .io .val { color: var(--text-dim); }
.mkt-delivery { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.mkt-delivery svg { width: 13px; height: 13px; color: var(--cyan); }
.mkt-card .btn { margin-top: 18px; width: 100%; }

/* status badge variants */
.badge-status.avail { color: var(--live); border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.badge-status.proto { color: var(--cyan); border-color: rgba(21,166,245,.35); background: rgba(21,166,245,.08); }

/* ============================================================ How It Works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 26px 24px;
}
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step .ic { width: 40px; height: 40px; border-radius: 10px; display:grid; place-items:center; background: rgba(21,166,245,.1); border:1px solid rgba(21,166,245,.2); color: var(--cyan); margin: 16px 0 14px; }
.step .ic svg { width: 20px; height: 20px; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.step p { margin-top: 10px; font-size: 13.5px; color: var(--text-dim); text-wrap: pretty; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } .mkt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .steps { grid-template-columns: 1fr; } .mkt-grid { grid-template-columns: 1fr; } }

/* ============================================================ Contact form */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.form-card { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--text-dim); }
.field label .req { color: var(--cyan); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236c7991' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(21,166,245,.12); }
.form-card .btn { margin-top: 4px; }
.form-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); margin-top: 14px; text-wrap: pretty; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.show { display: block; }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; display:grid; place-items:center; margin: 0 auto 18px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: var(--live); }
.form-success .tick svg { width: 28px; height: 28px; }
.form-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.form-success p { margin-top: 10px; color: var(--text-dim); font-size: 14.5px; }
.form-aside .sec-item { margin-bottom: 12px; }
.contact-channels { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.contact-channels a, .contact-channels button.copy-chan { display:flex; align-items:center; gap: 12px; padding: 14px 16px; border:1px solid var(--border); border-radius: 12px; background: var(--surface); width:100%; text-align:left; cursor:pointer; font:inherit; color:inherit; transition: border-color .2s, transform .2s; }
.contact-channels a:hover, .contact-channels button.copy-chan:hover { border-color: var(--cyan); transform: translateX(3px); }
.contact-channels button.copy-chan .copied { display:none; color: var(--cyan); }
.contact-channels button.copy-chan.is-copied .copied { display:inline; }
.contact-channels button.copy-chan.is-copied .detail { display:none; }
.contact-channels a .ci, .contact-channels button.copy-chan .ci { width: 34px; height: 34px; border-radius: 9px; display:grid; place-items:center; background: var(--surface-2); color: var(--cyan); flex-shrink: 0; }
.contact-channels a .ci svg, .contact-channels button.copy-chan .ci svg { width: 17px; height: 17px; }
.contact-channels a b, .contact-channels button.copy-chan b { font-size: 14px; display:block; }
.contact-channels a span, .contact-channels button.copy-chan span { font-size: 12px; color: var(--text-mute); font-family: var(--font-mono); }
/* Dark-themed contact cards (form + aside) on the light page */
.form-card, .form-aside {
  --bg-2: #141b18;
  --bg-1: #0f1512;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f5f2;
  --text-dim: #b3c0b8;
  --text-mute: #7f8d84;
}
.form-aside {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-aside h3 { color: var(--text); }
.form-card { color: var(--text); }

@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================ Dark highlight cards (navy pop on warm paper) */
.mkt-card, .card, .preview, .step, .sg, .sec-item {
  --text: #eef3fb;
  --text-dim: #abbad2;
  --text-mute: #7b8da6;
  --border: rgba(140, 175, 225, 0.16);
  --border-strong: rgba(140, 175, 225, 0.30);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  color: var(--text);
  background: linear-gradient(180deg, #111d33, #0b1422) !important;
  border-color: rgba(140, 175, 225, 0.16);
  box-shadow: 0 20px 46px -28px rgba(12, 28, 55, 0.6);
}
.mkt-card:hover, .card:hover, .preview:hover, .step:hover {
  box-shadow: 0 28px 60px -26px rgba(10, 24, 52, 0.62), 0 0 0 1px rgba(47, 123, 255, 0.28);
}
.mkt-card .thumb {
  background: linear-gradient(180deg, #0c1626, #07101e) !important;
  border-color: rgba(140, 175, 225, 0.14);
}
.mkt-card .thumb .tline:not(.hot),
.mkt-card .thumb .tcell b,
.mkt-card .thumb .ttable .nm {
  background: rgba(150, 180, 222, 0.22);
}
.mkt-card .thumb::after { background: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 7px); }

/* ============================================================ Mobile polish pass */
@media (max-width: 600px) {
  /* a little more usable width */
  .wrap { padding-inline: 18px; }

  /* tighter, intentional vertical rhythm */
  .section-pad { padding-block: clamp(48px, 12vw, 76px); }
  .hero { padding-top: 82px; padding-bottom: 44px; }
  .hero h1 { margin-top: 4px; }
  .page-hero { padding-top: 84px; padding-bottom: 40px; }

  /* console graphic: reflow rows so nothing clips on narrow screens */
  .console-body { padding: 16px; gap: 16px; }
  .svc-rows { gap: 10px; }
  .svc { grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 8px; padding: 13px 13px; }
  .svc-name { grid-column: 1 / -1; flex-wrap: wrap; }
  .svc-name small { flex-basis: 100%; margin-left: 40px; }
  .svc-lat { grid-column: 1; justify-self: start; align-self: center; }
  .svc .badge-status { grid-column: 2; justify-self: end; align-self: center; }

  /* hero: full-width tap-friendly CTAs, tighter meta */
  .hero-cta { gap: 10px; margin-top: 22px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta { gap: 12px 18px; margin-top: 22px; }

  /* nav brand: keep it compact */
  .nav-inner { height: 64px; }
  .brand .mono { width: 34px; height: 34px; font-size: 15px; }
  .brand-txt b { font-size: 14px; }
  .brand-txt span { font-size: 9.5px; letter-spacing: 0.1em; }
  .nav.open .nav-links { top: 64px; }

  /* marketplace: roomier cards, 44px tap targets */
  .mkt-card { padding: 20px; }
  .mkt-filters { gap: 8px; }
  .mkt-filters button { min-height: 44px; padding-block: 11px; }

  /* console graphic breathing room */
  .console-metrics { gap: 8px; }
  .cm { padding: 16px 10px; }

  /* big closing CTA */
  .cta-card { padding: 40px 22px; }
  .cta-card p { font-size: 15.5px; }
  .cta-card .hero-cta .btn { flex: 1 1 100%; }

  /* footer: stack the link columns cleanly */
  .footer { padding-block: 40px; }
  .footer-inner { gap: 32px; }
  .footer-links { gap: 28px 40px; }
  .footer-bottom { gap: 14px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 33px; }
  .page-hero h1 { font-size: 28px; }
}

@media (max-width: 360px) {
  /* very small phones (SE, older Androids): avoid brand sub crowding the hamburger */
  .brand-txt span { display: none; }
}

/* ============================================================ PWA install button */
.pwa-install {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: none; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: #ffffff; background: var(--grad-ai-deep);
  border: none; border-radius: 999px; padding: 12px 18px;
  box-shadow: 0 12px 30px -10px rgba(21,166,245,.6), 0 0 0 1px rgba(255,255,255,.12) inset;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.pwa-install.show { display: inline-flex; }
.pwa-install:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(21,166,245,.72); }
.pwa-install svg { width: 17px; height: 17px; }
@media (max-width: 600px) { .pwa-install { right: 14px; bottom: 14px; padding: 11px 16px; } }

/* iOS Safari "Add to Home Screen" banner */
.ios-a2hs {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%) translateY(10px);
  z-index: 95; width: calc(100% - 28px); max-width: 430px;
  display: none; align-items: center; gap: 12px;
  padding: 12px 13px; border-radius: 16px;
  background: rgba(18, 25, 22, 0.93); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.55);
  color: #f1f5f2; opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.ios-a2hs.show { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); }
.ios-a2hs .ic { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.ios-a2hs .txt { font-family: var(--font-body); font-size: 13px; line-height: 1.45; color: #d7e0da; }
.ios-a2hs .txt b { color: #ffffff; font-weight: 600; white-space: nowrap; }
.ios-a2hs .share { display: inline-flex; vertical-align: -3px; }
.ios-a2hs .share svg { width: 15px; height: 15px; color: #38c2ff; }
.ios-a2hs .x {
  margin-left: auto; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  border: none; background: rgba(255, 255, 255, 0.08); color: #b3c0b8;
  display: grid; place-items: center; cursor: pointer;
}
.ios-a2hs .x svg { width: 15px; height: 15px; }
/* arrow pointing down toward Safari's share button in the bottom toolbar */
.ios-a2hs::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: rgba(18, 25, 22, 0.93);
  border-right: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
