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

:root {
  --bg:      #F3F2EE;
  --bg2:     #ECEAE4;
  --surface: #FAFAF8;
  --border:  rgba(0,0,0,0.09);
  --text:    #0E0E0E;
  --muted:   #6b6b6b;
  --accent:  #10b981;
  --accent2: #6366f1;
  --accent3: #e8642a;
  --grad:    linear-gradient(135deg, #10b981, #6366f1);
  --mono:    'DM Mono', monospace;
}

/* ── DARK MODE ── */
html.dark {
  --bg:      #0c0b10;
  --bg2:     #131118;
  --surface: #1a1820;
  --border:  rgba(255,255,255,0.08);
  --text:    #f0eff0;
  --muted:   rgba(240,239,240,0.50);
}
html.dark .nav {
  background: rgba(12,11,16,0.92);
  border-bottom-color: rgba(255,255,255,0.07);
}
html.dark .nav .logo-text { color: #f0eff0; }
html.dark .nav .nav-links a { color: rgba(255,255,255,0.55); }
html.dark .nav .nav-links a:hover { color: #ffffff; }
html.dark .nav .btn-nav {
  background: rgba(255,255,255,0.1) !important;
  color: #f0eff0 !important;
  border-color: rgba(255,255,255,0.15) !important;
}
html.dark .nav .btn-nav:hover { background: rgba(255,255,255,0.18) !important; }
html.dark .hero-wrap { background: #0c0b10; }
html.dark .marquee-wrap { background: #131118; }
html.dark .footer-copy { color: rgba(240,239,240,0.4); }
html.dark .logo-text { color: #f0eff0; }

/* dark mode toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  background: none; border: 1px solid var(--border);
  cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
  color: var(--muted);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: rgba(16,185,129,.07); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
html.dark .icon-moon { display: none; }
html.dark .icon-sun  { display: block; }
.icon-sun { display: none; }
.icon-moon { display: block; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  background: rgba(243,242,238,0.92);
  transition: background .3s, border-color .3s;
}
.nav.nav-top {
  background: rgba(11,10,16,0.75);
  border-bottom-color: rgba(255,255,255,0.07);
}
.nav.nav-top .logo-text { color: #f8f7f5; }
.nav.nav-top .nav-links a { color: rgba(255,255,255,0.55); }
.nav.nav-top .nav-links a:hover { color: #ffffff; }
.nav.nav-top .btn-nav {
  background: rgba(255,255,255,0.92) !important;
  color: #0c0b10 !important;
  border-color: rgba(255,255,255,0.92) !important;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--text) !important; border: 1px solid var(--text);
  color: var(--surface) !important; padding: 8px 20px; border-radius: 6px;
  font-size: 13px !important; font-weight: 600 !important;
  transition: opacity .2s !important;
}
.btn-nav:hover { opacity: .8 !important; }

/* ── HERO ── */
.hero-wrap {
  background: #0b0a10;
  position: relative;
  overflow: hidden;
}
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 32px 80px;
  max-width: 1200px; margin: 0 auto;
  gap: 60px;
  position: relative; z-index: 1;
  color: #f8f7f5;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
}
.orb-1 { width: 700px; height: 700px; background: rgba(16,185,129,.14); top: -200px; left: -200px; animation: orbDrift1 18s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: rgba(99,102,241,.1); bottom: -100px; right: -100px; animation: orbDrift2 22s ease-in-out infinite; }
.orb-3 { width: 400px; height: 400px; background: rgba(232,100,42,.06); top: 40%; left: 45%; animation: orbDrift3 15s ease-in-out infinite; }
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(60px, -50px) scale(1.12); }
  66%       { transform: translate(-30px, 60px) scale(0.92); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-70px, 40px) scale(1.1); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(40px, -60px) scale(1.15); }
  80%       { transform: translate(-40px, 30px) scale(0.9); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 85%);
}
.hero-content { flex: 1; max-width: 600px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 4px;
  border: 1px solid rgba(16,185,129,.3);
  background: rgba(16,185,129,.1);
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: #34d399;
  margin-bottom: 28px; letter-spacing: 0.5px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: .4; }
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 6vw, 76px); font-weight: 700; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 24px;
}
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 18px; color: rgba(248,247,245,0.6); line-height: 1.7; margin-bottom: 40px; max-width: 480px; }
.hero-cta { display: flex; gap: 16px; align-items: center; margin-bottom: 56px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 28px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity .2s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary.btn-large { padding: 18px 36px; font-size: 17px; }
.btn-ghost {
  color: rgba(248,247,245,0.6); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s;
}
.btn-ghost:hover { color: #f8f7f5; }
.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: #f8f7f5; }
.stat-label { font-size: 12px; color: rgba(248,247,245,0.45); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

/* ── HERO VISUAL ── */
.hero-visual { flex: 0 0 420px; display: flex; justify-content: center; align-items: center; }
.card-stack { position: relative; width: 340px; height: 360px; }
.ui-card {
  position: absolute; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface);
}
.card-back-2 {
  inset: 0; transform: rotate(-6deg) translateY(16px) translateX(-12px);
  opacity: .35; background: rgba(124,92,252,.08);
}
.card-back-1 {
  inset: 0; transform: rotate(-3deg) translateY(8px) translateX(-6px);
  opacity: .6;
}
.card-front {
  inset: 0; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 20px 60px rgba(16,185,129,.2), 0 4px 24px rgba(0,0,0,.4), 0 0 0 1px rgba(16,185,129,.2);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.card-header { display: flex; align-items: center; justify-content: space-between; }
.card-dots { display: flex; gap: 6px; }
.card-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.card-dots span:nth-child(1) { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #febc2e; }
.card-dots span:nth-child(3) { background: #28c840; }
.card-tag { font-size: 11px; color: #34d399; background: rgba(16,185,129,.12); padding: 3px 10px; border-radius: 100px; border: 1px solid rgba(16,185,129,.25); }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ai-line {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(0,0,0,.07), rgba(0,0,0,.03));
  width: var(--w);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.ai-prompt {
  display: flex; align-items: center; gap: 10px;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2);
  border-radius: 10px; padding: 10px 14px;
  font-size: 12px; color: #34d399;
}
.prompt-icon { animation: spin 3s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.avatar-row { display: flex; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); border: 2px solid var(--bg);
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; background: linear-gradient(135deg, #ff4bac, #7c5cfc); }
.avatar:nth-child(2) { background: linear-gradient(135deg, #00e5ff, #7c5cfc); }
.card-label { font-size: 11px; color: var(--muted); }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 14px 0; background: var(--bg2);
}
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: marquee 20s linear infinite;
  font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.dot { color: var(--accent); }

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 16px;
  background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2);
  padding: 4px 12px; border-radius: 4px;
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; letter-spacing: -1.5px; margin-bottom: 16px;
}
.section-header p { font-size: 17px; color: var(--muted); max-width: 500px; margin: 0 auto; }

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service-card:hover { border-color: rgba(16,185,129,.4); transform: translateY(-5px); box-shadow: 0 12px 32px rgba(16,185,129,.1); }
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-proof {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* ── WORK ── */
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 20px;
}
.work-card-large { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.work-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: border-color .2s;
}
.work-card:hover { border-color: rgba(16,185,129,.4); }
.work-preview {
  padding: 32px; min-height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.preview-1 { background: linear-gradient(135deg, rgba(124,92,252,.15), rgba(0,229,255,.05)); }
.preview-2 { background: linear-gradient(135deg, rgba(0,229,255,.1), rgba(124,92,252,.05)); }
.preview-3 { background: linear-gradient(135deg, rgba(255,75,172,.1), rgba(124,92,252,.05)); }
.preview-ui { width: 100%; background: var(--bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.preview-bar { background: var(--surface); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.preview-content { display: flex; gap: 12px; padding: 16px; }
.preview-block { background: rgba(255,255,255,.05); border-radius: 8px; }
.block-tall { width: 60%; height: 120px; }
.preview-side { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.block-short { height: 32px; }
.block-medium { height: 52px; }
.chat-mock { padding: 8px; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 260px; }
.chat-msg {
  padding: 10px 14px; border-radius: 12px; font-size: 12px; max-width: 80%;
}
.chat-msg.user { background: rgba(124,92,252,.3); align-self: flex-end; border-radius: 12px 12px 2px 12px; }
.chat-msg.ai { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-radius: 12px 12px 12px 2px; }
.typing { display: flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); animation: typing-dot .8s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.app-mock { width: 100%; max-width: 260px; }
.app-header-mock { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.app-title-mock { height: 14px; width: 100px; background: rgba(255,255,255,.1); border-radius: 4px; }
.app-btn-mock { height: 28px; width: 60px; background: rgba(124,92,252,.3); border-radius: 6px; }
.app-cards-mock { display: flex; flex-direction: column; gap: 8px; }
.app-card-mock { height: 48px; background: rgba(255,255,255,.05); border-radius: 8px; border: 1px solid var(--border); }
.app-card-accent { background: rgba(124,92,252,.15); border-color: rgba(124,92,252,.3); }
.work-info { padding: 28px; }
.work-tag { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.work-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; margin: 8px 0; }
.work-info p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── PRODUCTS ── */
.products-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px;
}
.product-card-wide { grid-column: 1 / -1; flex-direction: row !important; gap: 0 !important; padding: 0 !important; overflow: hidden; }
.product-card-wide .product-card-inner { padding: 32px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.product-card-wide .product-preview { flex: 0 0 380px; border-radius: 0; border: none; border-left: 1px solid var(--border); margin-top: 0; }

.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: border-color .25s, transform .2s, box-shadow .2s;
}
.product-card:hover:not(.product-card-soon) { border-color: rgba(16,185,129,.35); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,185,129,.1); }
.product-card-tall { grid-row: span 2; }
.product-card-soon { opacity: .75; cursor: default; }
.product-card-soon:hover { transform: none !important; }

.product-header { display: flex; align-items: center; gap: 12px; }
.product-logo {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; color: #fff;
  flex-shrink: 0;
}
/* Brand-accurate RallyOpp orange from crawl: #E8642A */
.rallyopp-logo { background: linear-gradient(135deg, #E8642A, #C44E1A); }
.practops-logo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.novavms-logo  { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.novago-logo   { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.njhc-logo     { background: linear-gradient(135deg, #22c55e, #15803d); }

.product-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.product-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.product-url { font-size: 12px; color: var(--muted); }
.product-live {
  font-size: 11px; font-weight: 600; color: #4ade80;
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25);
  padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.product-soon {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.product-desc { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product-tags span {
  font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted);
  background: rgba(0,0,0,.04); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 3px; letter-spacing: 0.3px;
}

/* ── shared preview shell — always dark so it reads as an app screenshot ── */
.product-preview {
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.12);
  background: #13151f; margin-top: 4px;
}
.pp-bar {
  background: #1e2130; padding: 7px 11px; border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 8px;
}
.pp-dots { display: flex; gap: 5px; }
.pp-dots span { width: 7px; height: 7px; border-radius: 50%; }
.pp-dots span:nth-child(1) { background: #ff5f57; }
.pp-dots span:nth-child(2) { background: #febc2e; }
.pp-dots span:nth-child(3) { background: #28c840; }
.pp-addr { font-size: 10px; color: #9b9bbf; background: #13151f; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.08); }

/* ── RallyOpp mock (warm cream bg, orange accent) ── */
.rallyopp-preview { background: #FAFAF8; border-color: #E8E0D8; }
.rallyopp-preview .pp-bar { background: #F0EDE8; border-color: #E8E0D8; }
.rally-mock { padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.rally-hero-band { background: linear-gradient(160deg, #fff3e8 0%, #f9fafb 40%, #fff3e8 100%); border-radius: 10px; padding: 14px; border: 1px solid #E8E0D8; }
.rally-headline { height: 12px; width: 80%; background: #1A1A1A; border-radius: 4px; margin-bottom: 7px; opacity: .15; }
.rally-sub { height: 8px; width: 55%; background: #6B6459; border-radius: 4px; margin-bottom: 12px; opacity: .3; }
.rally-btns { display: flex; gap: 8px; }
.rally-btn-primary { height: 26px; width: 90px; background: #E8642A; border-radius: 6px; }
.rally-btn-ghost { height: 26px; width: 70px; background: transparent; border: 1px solid #E8E0D8; border-radius: 6px; }
.rally-tools { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.rally-tool-card { background: #fff; border: 1px solid #E8E0D8; border-radius: 8px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rally-tool-accent { border-color: rgba(232,100,42,.35); background: rgba(232,100,42,.05); }
.rally-tool-icon { font-size: 14px; }
.rally-tool-lines div { height: 5px; border-radius: 3px; background: #E8E0D8; margin-bottom: 3px; }
.rally-tool-lines div:first-child { width: 36px; }
.rally-tool-lines div:last-child { width: 24px; }

/* ── PractOps mock ── */
.practops-preview .pp-body { display: flex; }
.pp-sidebar { width: 44px; border-right: 1px solid var(--border); padding: 10px 7px; display: flex; flex-direction: column; gap: 8px; }
.pp-nav-item { height: 7px; border-radius: 4px; background: rgba(255,255,255,.07); }
.pp-nav-active-po { background: rgba(99,102,241,.4); }
.pp-main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.pp-agent-card { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: rgba(255,255,255,.04); border-radius: 7px; border: 1px solid var(--border); }
.pp-agent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.po-dot { background: #6366f1; box-shadow: 0 0 6px rgba(99,102,241,.6); animation: pulse 1.5s infinite; }
.po-dot-idle { background: rgba(255,255,255,.2); }
.pp-agent-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pp-agent-lines div { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); }
.pp-agent-lines div:first-child { width: 70%; }
.pp-agent-lines div:last-child { width: 45%; }
.pp-agent-status { font-size: 9px; color: var(--muted); white-space: nowrap; }

/* ── PractOps agents grid ── */
.agents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agent-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
}
.agent-chip strong { display: block; font-size: 13px; font-weight: 600; }
.agent-chip span { display: block; font-size: 11px; color: var(--muted); }
.agent-stella { border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.05); }
.agent-luna   { border-color: rgba(168,85,247,.3);  background: rgba(168,85,247,.05); }
.agent-nova   { border-color: rgba(236,72,153,.3);  background: rgba(236,72,153,.05); }
.agent-orion  { border-color: rgba(14,165,233,.3);  background: rgba(14,165,233,.05); }

/* ── Nova Go mock — kanban pipeline ── */
.novago-preview .pp-body { display: flex; }
.pp-nav-active-ng { background: rgba(139,92,246,.4); }
.ng-pipeline { display: flex; gap: 6px; padding: 10px; flex: 1; }
.ng-stage { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ng-stage-label { height: 7px; border-radius: 3px; background: rgba(255,255,255,.1); margin-bottom: 4px; }
.ng-cards { display: flex; flex-direction: column; gap: 5px; }
.ng-card { height: 28px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.ng-card-accent { background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.3); }

/* ── NovaVMS mock ── */
.novavms-preview .pp-body { display: flex; }
.pp-nav-active-nv { background: rgba(14,165,233,.4); }
.pp-row { display: flex; align-items: center; gap: 8px; padding: 5px 7px; background: rgba(255,255,255,.03); border-radius: 6px; }
.pp-cell { height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); }
.pp-cell-wide { flex: 1; }
.pp-cell-status { width: 38px; border-radius: 100px; height: 14px; }
.nv-status-blue   { background: rgba(14,165,233,.25); }
.nv-status-green  { background: rgba(34,197,94,.2); }
.nv-status-yellow { background: rgba(245,158,11,.2); }

/* ── NJ Home Clarity mock ── */
.njhc-preview .pp-body-map { display: flex; gap: 8px; padding: 10px; }
.njhc-map { flex: 1; background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.15); border-radius: 8px; position: relative; min-height: 80px; }
.njhc-pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.5); }
.njhc-pin-1 { top: 25%; left: 40%; }
.njhc-pin-2 { top: 55%; left: 60%; }
.njhc-pin-3 { top: 40%; left: 25%; }
.njhc-card { width: 100px; display: flex; flex-direction: column; gap: 5px; }
.njhc-card-img { height: 48px; background: rgba(34,197,94,.1); border-radius: 6px; border: 1px solid rgba(34,197,94,.15); }
.njhc-card-price { height: 9px; width: 70%; background: rgba(255,255,255,.15); border-radius: 4px; }
.njhc-card-addr { height: 7px; width: 90%; background: rgba(255,255,255,.07); border-radius: 4px; }
.njhc-card-tags { display: flex; gap: 4px; }
.njhc-card-tags span { height: 12px; width: 30px; background: rgba(34,197,94,.2); border-radius: 4px; }

.product-screenshot-preview { background: transparent !important; }
.screenshot-wrap { overflow: hidden; }
.screenshot-wrap img {
  width: 100%; display: block; object-fit: cover; object-position: top; max-height: 260px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .screenshot-wrap img { transform: scale(1.04); }

.more-coming { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.more-coming p { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card-wide { flex-direction: column !important; }
  .product-card-wide .product-preview { flex: none; border-left: none; border-top: 1px solid var(--border); border-radius: 0 0 20px 20px; }
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-left h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; letter-spacing: -1.5px; margin: 16px 0 24px;
}
.about-left p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.about-left .btn-primary { margin-top: 12px; }
.values-list { display: flex; flex-direction: column; gap: 32px; }
.value-item { display: flex; gap: 20px; }
.value-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700;
  color: #10b981; min-width: 28px; padding-top: 2px;
}
.value-item h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.value-item p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── CTA ── */
.section-cta { padding: 80px 0; }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(99,102,241,.04));
  border: 1px solid rgba(16,185,129,.18);
  border-radius: 24px; padding: 80px; text-align: center;
  box-shadow: 0 4px 24px rgba(16,185,129,.08);
}
.orb-cta-1 { width: 400px; height: 400px; background: rgba(16,185,129,.18); top: -150px; left: -100px; }
.orb-cta-2 { width: 300px; height: 300px; background: rgba(99,102,241,.12); bottom: -100px; right: -50px; }
.cta-box .section-tag { position: relative; z-index: 1; }
.cta-box h2 {
  position: relative; z-index: 1;
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; letter-spacing: -2px; margin: 16px 0 20px;
}
.cta-box p { position: relative; z-index: 1; color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.cta-box .btn-primary { position: relative; z-index: 1; }

/* ── CONTACT FORM ── */
.cta-box { padding: 64px; text-align: left; }
.cta-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; position: relative; z-index: 1; }
.cta-left { display: flex; flex-direction: column; gap: 16px; }
.cta-left h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; }
.cta-left p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.cta-email { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; font-family: var(--mono); letter-spacing: 0.3px; transition: opacity .2s; }
.cta-email:hover { opacity: .7; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.3px; text-transform: uppercase; font-family: var(--mono); }
.form-group input,
.form-group textarea {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 14px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
  resize: none; width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-submit { align-self: flex-start; cursor: pointer; transition: opacity .2s, transform .1s; }
.form-submit:active { transform: scale(0.97); }
.form-success { display: none; font-size: 14px; color: var(--accent); font-family: var(--mono); }
.form-success.visible { display: block; }

@media (max-width: 860px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-box { padding: 40px 32px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── NAV LINK HOVER POLISH ── */
.nav-links a:not(.btn-nav) {
  position: relative;
}
.nav-links a:not(.btn-nav)::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.btn-nav):hover::after { transform: scaleX(1); }

/* ── BUTTON PRESS ── */
.btn-primary:active { transform: scale(0.97) translateY(0) !important; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border); padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-copy { color: var(--muted); font-size: 13px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── TECH STACK STRIP ── */
.stack-strip {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.stack-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.stack-label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}
.stack-logos {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.stack-logos span {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--text); letter-spacing: 0.3px;
}
.stack-dot { color: var(--border) !important; }

/* ── WORD CYCLE ── */
.cycle-word {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 0;
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cycle-word.animating {
  animation: wordIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── LAB NOTES ── */
.lab-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.lab-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.lab-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .25s;
}
.lab-card:hover { border-color: rgba(16,185,129,.35); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16,185,129,.1); }
.lab-card:hover::before { opacity: 1; }
.lab-card-featured { padding: 36px; }
.lab-card-featured h3 { font-size: 22px; }
.lab-card-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.18);
  padding: 3px 10px; border-radius: 3px;
  align-self: flex-start;
}
.lab-card h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700;
  letter-spacing: -0.4px; line-height: 1.3;
}
.lab-card p { color: var(--muted); font-size: 14px; line-height: 1.75; flex: 1; }
.lab-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.lab-date { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lab-read { font-size: 13px; font-weight: 600; color: var(--accent); }

@media (max-width: 900px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card-featured { padding: 28px; }
  .lab-card-featured h3 { font-size: 18px; }
}

/* ── SCROLL REVEAL ── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE NAV ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 200;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s, background .3s;
}
.nav.nav-top .hamburger span { background: #f0eff0; }
html.dark .hamburger span { background: #f0eff0; }
.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-menu {
  display: none; position: fixed; inset: 0; top: 73px; z-index: 99;
  background: var(--bg); padding: 24px 32px; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
  animation: menuSlideIn .2s ease;
}
@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--text); text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid var(--border); letter-spacing: -0.5px;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mobile-cta {
  margin-top: 16px; background: var(--grad);
  color: #fff !important; padding: 16px 24px; border-radius: 10px;
  text-align: center; border: none;
}

/* ── WAITLIST FORM ── */
.waitlist-form {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.waitlist-input {
  flex: 1; min-width: 0;
  background: rgba(0,0,0,.04); border: 1px solid var(--border);
  border-radius: 7px; padding: 9px 12px;
  font-size: 13px; color: var(--text); outline: none;
  transition: border-color .2s;
  font-family: 'Inter', sans-serif;
}
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-input::placeholder { color: var(--muted); }
.waitlist-btn {
  padding: 9px 16px; border-radius: 7px; font-size: 13px; font-weight: 600;
  background: var(--text); color: var(--bg); border: none; cursor: pointer;
  white-space: nowrap; transition: opacity .2s;
  font-family: 'Inter', sans-serif;
}
.waitlist-btn:hover { opacity: .8; }
.waitlist-success { font-size: 12px; color: var(--accent); font-family: var(--mono); display: none; margin-top: 8px; }
.waitlist-success.show { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 100px; text-align: center; }
  .hero-sub { max-width: 100%; color: rgba(248,247,245,0.6); }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .work-card-large { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card-large { grid-column: auto; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stack-inner { gap: 12px; }
  .section { padding: 64px 0; }
}
