/* ═══════════════════════════════════════════════════════
   SHA4OWX.AI — PREMIUM DESIGN SYSTEM v5
   Philosophy: Pure black · Electric cyan · Dev-first
   ═══════════════════════════════════════════════════════ */

/* ─── PARTICLE PRELOADER ─── */
#intro-video-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: #000; overflow: hidden;
  opacity: 1; filter: blur(0); transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#intro-video-overlay.fade-out {
  opacity: 0; filter: blur(20px); pointer-events: none;
}
#intro-video-overlay.hidden { display: none; }
/* enter button (appears after shooting star) */
#enter {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, 110px);
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 400;
  letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.22);
  cursor: pointer; pointer-events: all; background: none; border: none;
  opacity: 0; z-index: 15;
  transition: opacity .8s cubic-bezier(.16,1,.3,1), color .35s ease;
}
#enter:hover { color: rgba(255,255,255,.75); }
#enter.show { opacity: 1; }
#enter::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px;
  background: rgba(255,255,255,.25); transition: width .5s cubic-bezier(.16,1,.3,1);
}
#enter:hover::after { width: 100%; }
.arr {
  display: inline-block; width: 18px; height: 1px; background: rgba(255,255,255,.18);
  position: relative; transition: width .35s cubic-bezier(.16,1,.3,1), background .35s;
}
.arr::after {
  content: ''; position: absolute; right: 0; top: -2px; width: 5px; height: 5px;
  border-top: 1px solid rgba(255,255,255,.18); border-right: 1px solid rgba(255,255,255,.18);
  transform: rotate(45deg); transition: border-color .35s;
}
#enter:hover .arr { width: 26px; background: rgba(255,255,255,.5); }
#enter:hover .arr::after { border-color: rgba(255,255,255,.5); }
/* ── BGM toggle ── */
#bgm-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 20;
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s;
  opacity: 0.38;
}
#bgm-toggle:hover { opacity: 0.75; }

/* Bars */
.bgm-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.bgm-bar {
  display: block; width: 1.5px; border-radius: 10px;
  background: rgba(255,255,255,0.9);
  transform-origin: bottom; will-change: transform;
  animation: bgm-bounce 1.2s ease-in-out infinite;
}
.bgm-bar:nth-child(1){ height:5px;  animation-delay:0.0s;  animation-duration:1.05s; }
.bgm-bar:nth-child(2){ height:12px; animation-delay:0.22s; animation-duration:1.30s; }
.bgm-bar:nth-child(3){ height:8px;  animation-delay:0.40s; animation-duration:0.90s; }
.bgm-bar:nth-child(4){ height:10px; animation-delay:0.12s; animation-duration:1.15s; }
@keyframes bgm-bounce {
  0%,100% { transform: scaleY(0.2); }
  50%      { transform: scaleY(1.0); }
}
#bgm-toggle.muted { opacity: 0.18; }
#bgm-toggle.muted .bgm-bar { animation-play-state: paused; transform: scaleY(0.2); }
@media (max-width: 640px) {
  #enter { top: auto; bottom: 14%; transform: translateX(-50%); }
  #bgm-toggle { bottom: 16px; right: 16px; }
}

/* ─── TOKENS ─── */
:root {
  --black:      #000000;
  --black-2:    #080808;
  --black-3:    #0d0d0d;
  --black-4:    #111111;
  --black-5:    #161616;
  --border:     rgba(255,255,255,0.06);
  --border-v:   rgba(255,255,255,0.12);

  --white:      #ffffff;
  --white-80:   rgba(255,255,255,0.8);
  --white-60:   rgba(255,255,255,0.6);
  --white-40:   rgba(255,255,255,0.4);
  --white-20:   rgba(255,255,255,0.2);
  --white-08:   rgba(255,255,255,0.08);
  --white-04:   rgba(255,255,255,0.04);

  --cyan:       #00e5ff;
  --cyan-dim:   rgba(0,229,255,0.1);
  --cyan-glow:  rgba(0,229,255,0.22);
  --cyan-pale:  rgba(0,229,255,0.05);
  --cyan-dark:  rgba(0,229,255,0.03);

  --green:      #10b981;
  --green-glow: rgba(16,185,129,0.15);
  --red:        #ef4444;
  --amber:      #f59e0b;

  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-full: 999px;

  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Cabinet Grotesk', 'Syne', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max: 1200px;
  --px:  clamp(1rem, 5vw, 2.5rem);
}

/* Theme toggle button in nav */
.nav-theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--r-md);
  border: 1px solid transparent; background: none;
  color: var(--white-40); transition: border-color 0.2s, color 0.2s;
}
.nav-theme-btn:hover { border-color: rgba(0,229,255,0.2); color: var(--white-60); }
.nav-theme-btn svg { pointer-events: none; }

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font: inherit; color: var(--white); }
ul { list-style: none; }

/* ─── GRAIN OVERLAY ─── */
#grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 160px;
  mix-blend-mode: overlay;
}

/* ─── DOT GRID ─── */
.dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  z-index: 0;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--white);
}
h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 900; }
h2 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); font-weight: 900; }
h2 em, h1 em { font-style: normal; color: var(--cyan); }
h3 { font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 700; }
p {
  color: var(--white-60);
  line-height: 1.8;
  font-size: clamp(0.875rem, 1.4vw, 0.975rem);
}

/* ─── CONTAINER ─── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
  position: relative;
  z-index: 1;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cyan); color: #000;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.25s, transform 0.18s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary:hover {
  background: #33eeff;
  box-shadow: 0 0 0 1px rgba(0,229,255,0.4), 0 6px 28px rgba(0,229,255,0.28);
  transform: translateY(-2px);
}
.btn-primary.btn-lg  { padding: 16px 30px; font-size: 0.95rem; }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border-v);
  color: var(--white-60); padding: 11px 20px;
  border-radius: var(--r-md); font-size: 0.82rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--white-40); color: var(--white); background: var(--white-08); }

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); padding: 15px 26px;
  border-radius: var(--r-md); font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-light:hover { background: var(--white-08); border-color: rgba(255,255,255,0.45); }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--white-40); font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--white); }

/* ─── RIPPLE ─── */
.ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transform: scale(0);
  animation: ripple-out 0.55s linear forwards;
  pointer-events: none;
}
@keyframes ripple-out { to { transform: scale(4); opacity: 0; } }

/* ─── PRELOADER ─── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  background: var(--black);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
#preloader.out { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,229,255,0.04) 0%, transparent 70%);
}
.pre-logo {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  opacity: 0; transform: scale(0.94);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.pre-logo.in { opacity: 1; transform: scale(1); }
.pre-svg { width: 68px; height: 68px; }
.pre-svg .pre-rect { stroke-dasharray: 310; stroke-dashoffset: 310; transition: stroke-dashoffset 1s var(--ease) 0.2s; }
.pre-svg .pre-x1   { stroke-dasharray: 52; stroke-dashoffset: 52; transition: stroke-dashoffset 0.4s var(--ease) 0.9s; }
.pre-svg .pre-x2   { stroke-dasharray: 52; stroke-dashoffset: 52; transition: stroke-dashoffset 0.4s var(--ease) 1.05s; }
.pre-svg .pre-dot  { opacity: 0; transition: opacity 0.3s ease 1.3s; }
.pre-svg.draw .pre-rect { stroke-dashoffset: 0; }
.pre-svg.draw .pre-x1   { stroke-dashoffset: 0; }
.pre-svg.draw .pre-x2   { stroke-dashoffset: 0; }
.pre-svg.draw .pre-dot  { opacity: 1; }
.pre-name {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 900;
  color: var(--white); letter-spacing: -0.03em;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease) 1s, transform 0.5s var(--ease) 1s;
}
.pre-name.in { opacity: 1; transform: translateY(0); }
.pre-name em { font-style: normal; color: var(--cyan); }
.pre-bar {
  width: min(300px, 70vw); height: 1px;
  background: rgba(255,255,255,0.08); border-radius: 1px; overflow: hidden;
  opacity: 0; transition: opacity 0.4s ease 1.2s;
}
.pre-bar.in { opacity: 1; }
.pre-fill { height: 100%; width: 0%; background: var(--cyan); transition: width 0.4s var(--ease); box-shadow: 0 0 10px var(--cyan); }
.pre-status {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--white-20); letter-spacing: 0.1em;
  opacity: 0; transition: opacity 0.4s ease 1.4s;
}
.pre-bar.in ~ .pre-status { opacity: 1; }

/* ─── CURSOR ─── */
#cur-dot {
  position: fixed; top: 0; left: 0; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); box-shadow: 0 0 8px var(--cyan);
}
#cur-ring {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.35); pointer-events: none; z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, opacity 0.25s;
}
#cur-ring.hover { width: 44px; height: 44px; border-color: rgba(0,229,255,0.65); }
@media (hover: none) { #cur-dot, #cur-ring { display: none; } }

/* ─── NAV — REVOLUTIONARY ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
#nav::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.15) 20%, rgba(0,229,255,0.3) 50%, rgba(0,229,255,0.15) 80%, transparent);
  opacity: 0; transition: opacity 0.5s;
}
#nav.scrolled::after { opacity: 1; }
#nav.scrolled {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 0 60px rgba(0,229,255,0.03);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--px);
  height: 68px; display: flex; align-items: center; gap: 2.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 900;
  letter-spacing: -0.02em; flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.nav-logo:hover { transform: scale(1.03); }
.nav-logo strong { color: var(--cyan); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-full); padding: 3px;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 500; color: var(--white-40);
  transition: color 0.25s, background 0.25s;
  padding: 6px 16px; border-radius: var(--r-full);
  position: relative;
}
.nav-links a:hover { color: var(--white-80); background: rgba(255,255,255,0.05); }
.nav-links a.active {
  color: var(--cyan); background: rgba(0,229,255,0.08);
  box-shadow: 0 0 12px rgba(0,229,255,0.08);
}
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

/* Unified nav item base — shared by all nav-end items */
.nav-end .nav-item,
.nav-end .nav-portfolio-link,
.nav-end .nav-status-pill,
.nav-end .btn-outline,
.nav-end .nav-cmd-trigger {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.05em;
  padding: 6px 13px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  color: var(--white-30); text-decoration: none;
  transition: all 0.25s; cursor: pointer;
  white-space: nowrap;
}
.nav-end .nav-portfolio-link:hover,
.nav-end .nav-status-pill:hover,
.nav-end .btn-outline:hover,
.nav-end .nav-cmd-trigger:hover {
  border-color: rgba(0,229,255,0.2); color: var(--white-60);
  background: rgba(0,229,255,0.03);
}

/* Status pill — green dot accent */
.nav-status-pill .live-dot { width: 5px; height: 5px; }

/* Portfolio link — subtle cyan on hover */
.nav-portfolio-link:hover { color: var(--cyan); }

/* Talk to us — slightly brighter to stand out as CTA */
.nav-end .btn-outline { color: var(--white-50); border-color: var(--border-v); }
.nav-end .btn-outline:hover { color: var(--white); border-color: var(--white-20); background: rgba(255,255,255,0.04); }

/* Command palette trigger */
.nav-cmd-trigger { padding: 6px 10px; gap: 4px; }
.nav-os-icon { display: flex; align-items: center; line-height: 0; }
.nav-os-icon svg { display: block; }
.nav-cmd-key {
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--white-40);
}

.burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 6px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: rgba(255,255,255,0.02); transition: all 0.3s;
}
.burger:hover { border-color: rgba(0,229,255,0.2); background: rgba(0,229,255,0.04); }
.burger span { display: block; width: 100%; height: 1.5px; background: var(--white); border-radius: 1px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.burger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column;
  padding: 0.75rem var(--px) 1.5rem;
  background: rgba(0,0,0,0.97); backdrop-filter: blur(24px);
  border-top: 1px solid var(--border); gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.95rem; font-weight: 500; color: var(--white-60);
  padding: 0.85rem 0; border-bottom: 1px solid var(--border); transition: color 0.2s, padding-left 0.3s;
}
.mobile-menu a:hover { color: var(--white); padding-left: 0.5rem; }
.mobile-menu .mm-cta { color: var(--cyan); border-bottom: none; padding-top: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* ─── SCROLL PROGRESS ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--cyan), rgba(0,229,255,0.25));
  z-index: 9999; transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--cyan);
}

/* ─── SECTION DOTS ─── */
#section-dots {
  position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%);
  z-index: 80; display: flex; flex-direction: column; gap: 8px;
}
.sdot {
  width: 4px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.18); cursor: pointer;
  transition: background 0.3s, height 0.3s, transform 0.3s;
}
.sdot.active { background: var(--cyan); height: 16px; box-shadow: 0 0 8px var(--cyan); }
/* responsive section-dots — see consolidated responsive section */

/* ─── HERO ─── */
#hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; overflow: hidden; padding-top: 64px;
}
#hero-canvas, #matrix-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
#matrix-canvas { opacity: 0.22; }

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--px) clamp(4rem, 9vw, 8rem);
  width: 100%;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em;
  color: var(--white-40); text-transform: uppercase; margin-bottom: 2rem;
  font-family: var(--font-mono);
  opacity: 0; transform: translateY(12px);
}
.hero-label.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.label-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
  animation: label-pulse 2s ease-in-out infinite;
}
@keyframes label-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-h1 { display: flex; flex-direction: column; margin-bottom: 2rem; }
.hero-h1 .line { display: block; overflow: hidden; opacity: 0; }
.hero-h1 .line.visible { animation: lineIn 0.85s var(--ease) forwards; }
@keyframes lineIn {
  from { opacity: 0; transform: translateY(108%); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-accent { color: var(--cyan); display: inline-block !important; min-height: 1.08em; }

.hero-sub {
  max-width: 540px; font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--white-60); line-height: 1.85; margin-bottom: 2.5rem;
  opacity: 0; transform: translateY(16px);
}
.hero-sub.visible { opacity: 1; transform: translateY(0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.br-desk { display: block; }
@media (max-width: 600px) { .br-desk { display: none; } }

.hero-actions {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap; margin-bottom: 3.5rem;
  opacity: 0; transform: translateY(12px);
}
.hero-actions.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

.hero-social-proof {
  display: flex; align-items: center; gap: 0;
  opacity: 0; transform: translateY(8px);
}
.hero-social-proof.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.sp-div { width: 1px; height: 30px; background: var(--border-v); margin: 0 1.75rem; }
.sp-item { display: flex; flex-direction: column; gap: 3px; }
.sp-val-row { display: flex; align-items: baseline; gap: 1px; }
.sp-num {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900; color: var(--white); letter-spacing: -0.03em; line-height: 1;
}
.sp-unit { color: var(--cyan); font-family: var(--font-display); font-size: clamp(0.95rem,1.8vw,1.3rem); font-weight: 900; }
.sp-label { font-size: 0.68rem; color: var(--white-40); letter-spacing: 0.06em; font-family: var(--font-mono); }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--white-40));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{opacity:0;transform:scaleY(0);transform-origin:top} 40%{opacity:1} 100%{opacity:0;transform:scaleY(1)} }
.hero-scroll span { font-size: 0.58rem; letter-spacing: 0.2em; color: var(--white-20); text-transform: uppercase; font-family: var(--font-mono); }

/* ─── HERO PANEL ─── */
.hero-panel {
  position: absolute; right: clamp(2rem, 5vw, 7rem); top: 50%;
  transform: translateY(-50%) translateX(30px);
  z-index: 3; opacity: 0;
  transition: opacity 0.8s var(--ease) 1.2s, transform 0.8s var(--ease) 1.2s;
  will-change: opacity, transform;
}
.hero-panel.visible { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 980px) {
  .hero-panel.visible { transform: none; }
}
/* hero-panel responsive — see consolidated responsive section (now visible on tablet/mobile) */

.hp-card {
  background: rgba(6,6,6,0.9);
  border: 1px solid rgba(0,229,255,0.14);
  border-radius: 18px; padding: 1.1rem;
  backdrop-filter: blur(24px); width: 340px;
  box-shadow: 0 0 0 1px rgba(0,229,255,0.04),
              0 20px 60px rgba(0,0,0,0.7),
              0 0 80px rgba(0,229,255,0.05);
  transform-style: preserve-3d; will-change: transform;
  display: flex; flex-direction: column;
}
.hp-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.68rem; color: var(--white-40); font-family: var(--font-mono);
  margin-bottom: 0.75rem; letter-spacing: 0.06em;
}
.hp-badge {
  margin-left: auto; font-size: 0.52rem; letter-spacing: 0.18em;
  color: var(--green); border: 1px solid rgba(16,185,129,0.35);
  padding: 2px 7px; border-radius: 3px;
}

/* HP Tabs */
.hp-tabs {
  display: flex; gap: 4px; margin-bottom: 0.75rem;
  background: var(--white-04); border-radius: var(--r-sm); padding: 3px;
}
.hp-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--white-20); padding: 5px 8px; border-radius: 4px;
  transition: color 0.2s, background 0.2s; cursor: pointer;
}
.hp-tab.active { background: var(--white-08); color: var(--cyan); }
.hp-tab:hover:not(.active) { color: var(--white-40); }

/* Orb view */
.hp-view { border-radius: var(--r-md); overflow: hidden; }
#hp-ai-view { display: flex; flex-direction: column; max-height: 320px; }
.orb-wrapper {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 8px 0; min-height: 240px;
}
.orb-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.06);
  pointer-events: none; animation: orbRingSpin 20s linear infinite;
}
.orb-ring-1 { width: 115%; height: 115%; opacity: 0.5; }
.orb-ring-2 { width: 130%; height: 130%; opacity: 0.3; animation-direction: reverse; animation-duration: 30s; border-style: dashed; }
@keyframes orbRingSpin { to { transform: rotate(360deg); } }
#orb-canvas {
  display: block; width: 100%; max-width: 280px; height: auto;
  border-radius: var(--r-md); position: relative; z-index: 1;
}

/* Terminal view */
.hp-terminal {
  height: 200px; overflow-y: auto; overflow-x: hidden;
  background: rgba(0,0,0,0.6); border-radius: var(--r-md);
  padding: 0.75rem; font-family: var(--font-mono);
  font-size: 0.6rem; line-height: 1.65;
  scrollbar-width: none;
}
.hp-terminal::-webkit-scrollbar { display: none; }
.hpt-line { display: flex; gap: 6px; margin-bottom: 3px; }
.hpt-prompt { color: var(--cyan); }
.hpt-cmd   { color: var(--white-60); }
.hpt-resp  { color: var(--green); }
.hpt-meta  { color: var(--white-20); }
.hpt-err   { color: var(--red); }
.hpt-cursor { display: inline-block; width: 5px; height: 10px; background: var(--cyan); animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* HP Stats */
.hp-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; margin-top: 0.75rem;
  border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; overflow: hidden;
}
.hps {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; background: rgba(255,255,255,0.02);
}
.hps:nth-child(2), .hps:nth-child(4) { border-left: 1px solid rgba(255,255,255,0.04); }
.hps:nth-child(1), .hps:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.04); }
.hps-k { font-family: var(--font-mono); font-size: 0.48rem; letter-spacing: 0.14em; color: rgba(0,229,255,0.35); }
.hps-v { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: #fff; }

/* HP Log */
.hp-log-wrap { margin-top: 0.75rem; }
.hp-log-header {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--white-20);
  letter-spacing: 0.1em; margin-bottom: 6px;
}
.hp-req-count {
  margin-left: auto; font-size: 0.5rem; color: var(--cyan);
  background: rgba(0,229,255,0.08); padding: 2px 6px; border-radius: 3px;
}
.hp-log { max-height: 72px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
.hp-log-entry {
  display: flex; gap: 6px; align-items: center;
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--white-20);
  animation: logFade 0.3s ease;
}
.hp-log-entry .hle-method { color: var(--cyan); font-weight: 700; letter-spacing: 0.04em; }
.hp-log-entry .hle-status { color: var(--green); }
.hp-log-entry .hle-status.err { color: var(--red); }
.hp-log-entry .hle-ms { margin-left: auto; color: var(--white-20); }
@keyframes logFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ─── STRIP ─── */
.strip {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--black-2); padding: 14px 0; position: relative;
}
.strip::before, .strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.strip::before { left: 0; background: linear-gradient(to right, var(--black-2), transparent); }
.strip::after  { right: 0; background: linear-gradient(to left, var(--black-2), transparent); }
.strip-inner {
  display: flex; align-items: center; gap: 1.75rem;
  white-space: nowrap; width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 0.65rem; letter-spacing: 0.16em; color: var(--white-40);
  font-weight: 500; text-transform: uppercase; font-family: var(--font-mono);
}
.strip-inner .bull { color: var(--cyan); opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── SECTIONS ─── */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; overflow: hidden; }
.section-dark { background: var(--black-2); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.eyebrow {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 0.85rem;
  display: block; font-family: var(--font-mono);
}
.section-desc { margin-top: 1.1rem; max-width: 420px; }
.section-desc strong { color: var(--white); }

/* ─── ASK ANYTHING (Cheerio-style) ─── */
.ask-section { background: var(--black-2); }
.ask-head h2 em { font-style: normal; color: var(--cyan); }
.ask-widget {
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(160deg, rgba(0,229,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,229,255,0.06) inset;
}
.ask-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
}
.ask-widget-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; color: var(--white-70);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.ask-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: live-pulse 1.4s ease-in-out infinite;
}
.ask-model-tag {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.62rem; font-family: var(--font-mono); color: var(--cyan);
  padding: 4px 10px; border-radius: var(--r-full);
  background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.15);
}
.ask-chat {
  min-height: 180px; max-height: 320px; overflow-y: auto;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: rgba(0,229,255,0.2) transparent;
}
.ask-chat::-webkit-scrollbar { width: 4px; }
.ask-chat::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.25); border-radius: 4px; }
.ask-msg {
  display: flex; gap: 10px; align-items: flex-start;
  animation: aiMsgIn 0.35s var(--ease);
}
.ask-msg-user { justify-content: flex-end; }
.ask-msg-user .ask-bubble {
  background: rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.22);
  color: var(--white-90); border-radius: 16px 16px 4px 16px;
}
.ask-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(0,229,255,0.05));
  border: 1px solid rgba(0,229,255,0.22);
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
}
.ask-bubble {
  background: #111318; border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-75); border-radius: 16px 16px 16px 4px;
  padding: 12px 14px; font-size: 0.88rem; line-height: 1.6; max-width: 88%;
}
.ask-bubble p { margin: 0; }
.ask-bubble strong { color: var(--cyan); font-weight: 600; }
.ask-suggestions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 0 18px 16px;
}
.ask-q {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  color: var(--white-70); font-size: 0.78rem; line-height: 1.45;
  font-family: var(--font-body); transition: all 0.2s var(--ease);
}
.ask-q i { flex-shrink: 0; margin-top: 2px; color: var(--cyan); opacity: 0.85; }
.ask-q:hover {
  background: rgba(0,229,255,0.07); border-color: rgba(0,229,255,0.2);
  color: var(--white-90); transform: translateY(-1px);
}
.ask-q:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.ask-input-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
}
.ask-input-bar input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 12px 16px; font-size: 0.88rem;
  color: var(--white-90); font-family: var(--font-body); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ask-input-bar input:focus {
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.ask-input-bar input::placeholder { color: var(--white-30); }
.ask-input-bar button {
  width: 42px; height: 42px; border-radius: 12px; border: none; flex-shrink: 0;
  background: var(--cyan); color: #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.ask-input-bar button:hover:not(:disabled) {
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,229,255,0.35);
}
.ask-input-bar button:disabled { opacity: 0.45; cursor: not-allowed; }
.ask-typing {
  display: flex; gap: 5px; align-items: center; padding: 4px 0;
}
.ask-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  opacity: 0.5; animation: typBounce 1.4s infinite;
}
.ask-typing span:nth-child(2) { animation-delay: 0.2s; }
.ask-typing span:nth-child(3) { animation-delay: 0.4s; }
@media (max-width: 640px) {
  .ask-suggestions { grid-template-columns: 1fr; }
  .ask-chat { max-height: 260px; }
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── SOLUTIONS GRID ─── */
.sol-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
/* responsive sol-grid — see consolidated responsive section */

.sol-card {
  background: var(--black-2); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background 0.3s, box-shadow 0.3s;
  cursor: pointer; transform-style: preserve-3d; will-change: transform;
}
.sol-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at var(--mx, 50%) var(--my, 0%),
    rgba(0,229,255,0.07) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.sol-card:hover::before { opacity: 1; }
.sol-card:hover { background: var(--black-3); box-shadow: 0 0 0 1px rgba(0,229,255,0.1) inset; }

/* spotlight div added by JS */
.card-spotlight {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle 160px at var(--mx,50%) var(--my,50%),
    rgba(0,229,255,0.07) 0%, transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.sol-card:hover .card-spotlight { opacity: 1; }

.sc-num { font-family: var(--font-mono); font-size: 0.6rem; color: var(--white-20); letter-spacing: 0.1em; }
.sc-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--white-08); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); transition: background 0.3s, border-color 0.3s;
}
.sol-card:hover .sc-icon { background: var(--cyan-pale); border-color: rgba(0,229,255,0.18); }
.sol-card h3 { margin-bottom: 0; }
.sol-card p  { flex: 1; font-size: 0.85rem; }
.sol-card ul { display: flex; flex-direction: column; gap: 4px; margin-top: 0.2rem; }
.sol-card ul li {
  font-size: 0.74rem; color: var(--white-40);
  padding-left: 0.8rem; position: relative;
}
.sol-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--cyan); font-size: 0.62rem; top: 2px; }
.sc-arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--white-20); transition: color 0.2s, transform 0.3s var(--ease);
}
.sol-card:hover .sc-arrow { color: var(--cyan); transform: translate(3px, -3px); }

.sol-cta { background: var(--black-3); justify-content: center; gap: 1rem; }
.sol-cta::before { display: none; }
.cta-micro { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; font-family: var(--font-mono); }
.sol-cta h3 { font-size: 1.3rem; }

/* ─── CAPABILITIES ─── */
.cap-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
/* responsive cap-layout — see consolidated responsive section */

.metrics { display: flex; flex-direction: column; gap: 1.35rem; margin-top: 2rem; }
.metric-item { display: flex; flex-direction: column; gap: 7px; }
.mi-top { display: flex; justify-content: space-between; align-items: baseline; }
.mi-label { font-size: 0.82rem; color: var(--white-60); }
.mi-val { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--cyan); }
.mi-track { height: 2px; background: var(--white-08); border-radius: 2px; overflow: hidden; }
.mi-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(0,229,255,0.25), var(--cyan));
  border-radius: 2px; transition: width 1.4s var(--ease); position: relative;
}
.mi-bar::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

.live-dash { background: var(--black-3); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.ld-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.75rem; font-weight: 500;
}
.ld-title { display: flex; align-items: center; gap: 8px; color: var(--white-60); }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: live-pulse 1.4s ease-in-out infinite; flex-shrink: 0;
}
@keyframes live-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0.5)} 50%{box-shadow:0 0 0 5px rgba(16,185,129,0)} }
.ld-meta { display: flex; align-items: center; gap: 8px; }
.ld-badge { font-size: 0.56rem; letter-spacing: 0.16em; color: var(--green); border: 1px solid rgba(16,185,129,0.3); padding: 2px 7px; border-radius: 3px; font-family: var(--font-mono); }
.ld-region { font-size: 0.64rem; color: var(--white-20); font-family: var(--font-mono); }

#chart-canvas { display: block; width: 100%; }

.ld-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.lstat { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-right: 1px solid var(--border); }
.lstat:last-child { border-right: none; }
.lstat-k { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.12em; color: var(--white-20); }
.lstat-v { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: var(--white); }
.lstat-d { font-size: 0.6rem; }
.lstat-up   { color: var(--green); }
.lstat-down { color: var(--red); }
.lstat-green { color: var(--green) !important; }

.ld-models { display: flex; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.mdl {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 3px; border: 1px solid var(--border);
  color: var(--white-20); transition: all 0.3s; cursor: default;
}
.mdl.active { border-color: rgba(0,229,255,0.4); color: var(--cyan); background: var(--cyan-pale); }

.cap-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.cap-tags span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--white-40); background: var(--white-08);
  border: 1px solid var(--border); padding: 5px 11px; border-radius: var(--r-full);
  transition: color 0.2s, background 0.2s, border-color 0.2s; cursor: default;
}
.cap-tags span:hover { color: var(--white); background: rgba(0,229,255,0.06); border-color: rgba(0,229,255,0.18); }
.cap-tags span i { color: var(--cyan); }

/* ─── PROCESS ─── */
.proc-track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-bottom: 2.5rem;
}
/* responsive proc-track — see consolidated responsive section */

.proc-step {
  border: 1px solid var(--border); border-right: none;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  position: relative; background: var(--black-2);
  transition: background 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
  overflow: hidden;
}
.proc-step::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.proc-step:hover::after { transform: scaleX(1); }
.proc-step:last-child { border-right: 1px solid var(--border); }
.proc-step:hover { background: var(--black-3); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.1); z-index: 2; }

/* responsive proc-step borders — see consolidated responsive section */

.ps-badge {
  font-family: var(--font-mono); font-size: 2.8rem; font-weight: 700;
  color: var(--white-08); letter-spacing: -0.05em; line-height: 1;
  transition: color 0.3s;
}
.proc-step:hover .ps-badge { color: rgba(0,229,255,0.1); }
.ps-body { display: flex; flex-direction: column; gap: 0.55rem; }
.ps-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--white-08); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); transition: background 0.3s, border-color 0.3s; margin-bottom: 0.2rem;
}
.proc-step:hover .ps-icon { background: var(--cyan-pale); border-color: rgba(0,229,255,0.18); }
.ps-body h3 { font-size: 1.05rem; }
.ps-body p  { font-size: 0.82rem; }
.ps-dur {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.65rem; color: var(--white-20); font-family: var(--font-mono);
  letter-spacing: 0.06em; margin-top: auto; padding-top: 0.65rem;
}
.ps-dur i { color: var(--cyan); }

.proc-cta {
  background: var(--black-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem 2.25rem; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.pc-tag {
  font-size: 0.62rem; letter-spacing: 0.2em; color: var(--cyan);
  text-transform: uppercase; font-weight: 600; display: block;
  margin-bottom: 0.45rem; font-family: var(--font-mono);
}
.pc-left h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.pc-left p  { font-size: 0.82rem; }

/* ─── TECH STACK ─── */
/* Code viewer */
.code-viewer {
  background: var(--black-3); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2rem;
}
.cv-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.cv-dots { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.cvd { width: 10px; height: 10px; border-radius: 50%; }
.cvd-red    { background: #ff5f57; }
.cvd-yellow { background: #ffbd2e; }
.cvd-green  { background: #28ca41; }
.cv-tabs { display: flex; gap: 2px; }
.cv-tab {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em;
  color: var(--white-20); padding: 5px 12px; border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s; cursor: pointer;
}
.cv-tab.active { background: var(--white-08); color: var(--cyan); }
.cv-tab:hover:not(.active) { color: var(--white-40); background: var(--white-04); }
.cv-copy-wrap { margin-left: auto; }
.cv-copy {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.58rem; color: var(--white-20);
  padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: color 0.2s, border-color 0.2s;
}
.cv-copy:hover { color: var(--cyan); border-color: rgba(0,229,255,0.2); }
.cv-body { padding: 0; }
.cv-panel { display: none; }
.cv-panel.active { display: block; }
.code-block {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.75;
  color: var(--white-60); padding: 1.25rem 1.5rem;
  overflow-x: auto; white-space: pre;
  counter-reset: line;
}
/* Syntax highlighting */
.c-kw  { color: #c792ea; }   /* keyword — purple */
.c-mod { color: #82aaff; }   /* module — blue */
.c-fn  { color: #82aaff; }   /* function — blue */
.c-str { color: #c3e88d; }   /* string — green */
.c-num { color: #f78c6c; }   /* number — orange */
.c-cm  { color: rgba(255,255,255,0.28); font-style: italic; }  /* comment */
.c-op  { color: var(--white-60); }   /* operator */

.stack-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
/* responsive stack-grid — see consolidated responsive section */

.stack-col {
  background: var(--black-3); padding: 1.5rem;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1rem;
}
.stack-col:last-child { border-right: none; }
.stk-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.6rem; letter-spacing: 0.18em; color: var(--cyan);
  text-transform: uppercase; font-weight: 600; font-family: var(--font-mono);
}
.stk-items { display: flex; flex-direction: column; gap: 6px; }
.stk-items span {
  font-size: 0.8rem; color: var(--white-60); padding: 6px 10px;
  border-radius: var(--r-sm); background: var(--white-08); border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default; position: relative; overflow: hidden;
}
.stk-items span:hover {
  color: var(--white); background: rgba(0,229,255,0.06);
  border-color: rgba(0,229,255,0.18); transform: translateX(4px);
}

/* ─── CTA ─── */
.cta-full { background: var(--black); position: relative; overflow: hidden; text-align: center; }
#cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-content { position: relative; z-index: 2; max-width: 660px; margin: 0 auto; }
.cta-h2 { margin-bottom: 1.25rem; }
.cta-sub { margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.9; }
.cta-sub strong { color: var(--white); }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cta-note { font-size: 0.68rem; color: var(--white-20); letter-spacing: 0.06em; font-family: var(--font-mono); }

/* ─── CONTACT ─── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 5rem; align-items: start; }
/* responsive contact-layout — see consolidated responsive section */

.contact-left h2 { margin: 0.85rem 0; }
.contact-info { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.75rem 0; }
.ci-row {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.85rem; color: var(--white-60); transition: color 0.2s;
}
.ci-row:hover { color: var(--white); }
.ci-row i { color: var(--cyan); flex-shrink: 0; }
.contact-trust { display: flex; flex-direction: column; gap: 0.55rem; }
.ct-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: var(--white-40); }
.ct-item i { color: var(--cyan); flex-shrink: 0; }

#contact-form {
  background: var(--black-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
/* responsive form-row — see consolidated responsive section */
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; color: var(--white-40); text-transform: uppercase; font-family: var(--font-mono); }
.req { color: var(--cyan); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--black-3); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 13px;
  font-size: 0.88rem; color: var(--white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--white-20); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.05);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.66rem; text-align: center; color: var(--white-20); letter-spacing: 0.04em; }
.form-success {
  display: none; align-items: flex-start; gap: 0.7rem;
  background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.18);
  border-radius: var(--r-md); padding: 0.9rem 1.1rem;
  color: var(--green); font-size: 0.85rem;
}
.form-success.show { display: flex; }
.form-success strong { color: var(--green); }

/* ─── FOOTER ─── */
#footer { border-top: 1px solid var(--border); background: var(--black); padding: 2.5rem 0 1.75rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-name { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; }
.footer-name strong { color: var(--cyan); }
.footer-sub { display: block; font-size: 0.65rem; color: var(--white-20); letter-spacing: 0.08em; margin-top: 2px; font-family: var(--font-mono); }
.footer-cta { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--white-40); }
.footer-div { height: 1px; background: var(--border); margin-bottom: 1.75rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.7rem; color: var(--white-20); font-family: var(--font-mono); }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.75rem; color: var(--white-20); transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }

/* ─── FLOAT PILL ─── */
.float-pill {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(0,0,0,0.92); border: 1px solid var(--border-v);
  border-radius: var(--r-full); padding: 9px 9px 9px 14px;
  font-size: 0.75rem; color: var(--white-40);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.float-pill.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: live-pulse 1.5s ease-in-out infinite; }
.fp-btn {
  display: inline-flex; align-items: center;
  background: var(--cyan); color: #000; padding: 6px 14px;
  border-radius: var(--r-full); font-size: 0.75rem; font-weight: 700;
  transition: background 0.2s;
}
.fp-btn:hover { background: #33eeff; }

/* ─── WHATSAPP FLOAT BUTTON ─── */
.wa-float-btn {
  position: fixed;
  bottom: 5.2rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.92);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: var(--r-full);
  padding: 9px 16px 9px 12px;
  color: #25d366;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(37,211,102,0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.wa-float-btn:hover {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.15), 0 0 0 1px rgba(37,211,102,0.1);
}
@media (max-width: 600px) {
  .wa-float-btn span { display: none; }
  .wa-float-btn { padding: 10px; bottom: 5rem; }
}

/* ─── PORTFOLIO PILL (centered bottom) ─── */
.portfolio-pill {
  position: fixed; bottom: 1.5rem; left: 50%; z-index: 90;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(0,10,15,0.92); border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--r-full); padding: 8px 16px 8px 13px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--cyan); text-decoration: none;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 12px rgba(0,229,255,0.06);
  transition: all 0.3s var(--ease);
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
}
.portfolio-pill.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.portfolio-pill:hover {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.35);
  box-shadow: 0 4px 28px rgba(0,0,0,0.4), 0 0 20px rgba(0,229,255,0.12);
  transform: translate(-50%, -2px);
}
.portfolio-pill span { white-space: nowrap; }
@media (max-width: 600px) {
  .portfolio-pill { bottom: 4.5rem; }
}

/* ─── COMMAND PALETTE ─── */
.cmd-palette {
  position: fixed; inset: 0; z-index: 9995;
  display: none; align-items: flex-start; justify-content: center;
  padding-top: min(20vh, 180px);
}
.cmd-palette.open { display: flex; }
.cmd-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  animation: cmdFadeIn 0.2s ease;
}
@keyframes cmdFadeIn { from { opacity: 0; } to { opacity: 1; } }
.cmd-modal {
  position: relative; width: min(520px, 90vw);
  background: rgba(12,12,12,0.98); border: 1px solid rgba(0,229,255,0.12);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,229,255,0.06);
  animation: cmdSlideIn 0.25s var(--ease);
}
@keyframes cmdSlideIn { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cmd-search {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.cmd-search i { color: var(--white-20); flex-shrink: 0; }
.cmd-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--white); font-size: 0.92rem; font-family: var(--font-body);
}
.cmd-search input::placeholder { color: var(--white-20); }
.cmd-search kbd {
  font-family: var(--font-mono); font-size: 0.56rem;
  padding: 3px 7px; border-radius: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--white-20);
}
.cmd-results { padding: 6px; max-height: 340px; overflow-y: auto; }
.cmd-group-label {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.16em;
  color: var(--white-20); text-transform: uppercase; padding: 8px 12px 4px;
}
.cmd-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border-radius: var(--r-md);
  color: var(--white-60); font-size: 0.85rem; transition: all 0.15s;
  cursor: pointer; background: none; border: none; text-align: left;
  font-family: var(--font-body);
}
.cmd-item:hover, .cmd-item.active {
  background: rgba(0,229,255,0.06); color: var(--white);
}
.cmd-item:hover i, .cmd-item.active i { color: var(--cyan); }
.cmd-item i { color: var(--white-20); flex-shrink: 0; transition: color 0.15s; }
.cmd-item span { flex: 1; }
.cmd-item kbd {
  font-family: var(--font-mono); font-size: 0.5rem;
  padding: 2px 5px; border-radius: 3px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--white-20); opacity: 0; transition: opacity 0.15s;
}
.cmd-item:hover kbd { opacity: 1; }

/* ─── AI CHAT VIEW — PREMIUM ─── */
.ai-card-header {
  padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,229,255,0.02);
}
.ai-status-row {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.55rem;
}
.ai-model-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--r-full);
  background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.15);
  color: var(--cyan); font-weight: 600; letter-spacing: 0.04em;
}
.ai-status-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  animation: live-pulse 1.4s ease-in-out infinite;
}
.ai-status-text { color: var(--white-40); letter-spacing: 0.06em; }

.hp-ai-chat {
  height: 170px; overflow-y: auto; overflow-x: hidden;
  background: #08090c; border-radius: 0;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: none; flex-shrink: 1; min-height: 0;
}
.hp-ai-chat::-webkit-scrollbar { display: none; }
.ai-msg {
  display: flex; gap: 8px; align-items: flex-start;
  flex-shrink: 0; min-height: 0;
  animation: aiMsgIn 0.4s var(--ease);
}
@keyframes aiMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ai-msg.ai-user { justify-content: flex-end; }
.ai-msg.ai-user .ai-text,
.ai-msg.ai-user .ai-bubble {
  background: rgba(0,229,255,0.12); border: 1px solid rgba(0,229,255,0.22);
  color: var(--white-90); border-radius: 12px 12px 2px 12px;
  padding: 8px 11px; font-size: 0.62rem; line-height: 1.55; max-width: 88%;
  font-family: var(--font-body);
  word-break: break-word; overflow-wrap: break-word; min-width: 0;
}
.ai-bubble {
  background: #111318; border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-70); border-radius: 12px 12px 12px 2px;
  padding: 8px 11px; font-size: 0.62rem; line-height: 1.55; max-width: 85%;
  font-family: var(--font-body);
  word-break: break-word; overflow-wrap: break-word; min-width: 0;
}
.ai-bubble .ai-text {
  background: none; border: none; padding: 0; margin: 0;
  display: block; color: inherit; font-size: inherit; line-height: inherit;
  max-width: none; border-radius: 0;
}
.ai-msg.ai-system .ai-text {
  background: #111318; border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-70); border-radius: 12px 12px 12px 2px;
  padding: 8px 11px; font-size: 0.62rem; line-height: 1.55; max-width: 85%;
  font-family: var(--font-body);
  word-break: break-word; overflow-wrap: break-word; min-width: 0;
}
.ai-msg.ai-system .ai-bubble .ai-text {
  background: none; border: none; padding: 0; margin: 0;
  display: block; color: inherit; max-width: none; border-radius: 0;
}
.ai-typing-dots { display: flex; gap: 4px; align-items: center; padding: 2px 0; }
.ai-typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); opacity: 0.5; animation: typBounce 1.4s infinite; }
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
.ai-avatar {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(0,229,255,0.05));
  border: 1px solid rgba(0,229,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.ai-suggestions {
  display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap;
}
.ai-chip {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: var(--r-full);
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.15);
  color: var(--cyan); cursor: pointer; transition: all 0.2s;
}
.ai-chip:hover {
  background: rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.3);
  transform: translateY(-1px);
}

.hp-ai-input {
  display: flex; gap: 6px; padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.ai-input-glow {
  position: absolute; top: -1px; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(0,229,255,0.3), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.hp-ai-input:focus-within .ai-input-glow { opacity: 1; }
.hp-ai-input input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 8px 12px; font-size: 0.62rem;
  color: var(--white); outline: none; font-family: var(--font-body);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.hp-ai-input input:focus {
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.04);
}
.hp-ai-input input::placeholder { color: var(--white-20); }
.hp-ai-input button {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--cyan); color: #000; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.hp-ai-input button:hover { background: #33eeff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,229,255,0.3); }

/* AI-active: hide stats & log, expand chat */
.hp-card.ai-active { overflow: hidden; }
.hp-card.ai-active .hp-stats,
.hp-card.ai-active .hp-log-wrap { display: none !important; }
.hp-card.ai-active #hp-ai-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 0 0 14px 14px; }
.hp-card.ai-active .hp-ai-chat { flex: 1; height: auto; min-height: 200px; }
.hp-card.ai-active .hp-ai-input { padding-bottom: 12px; border-radius: 0 0 14px 14px; flex-shrink: 0; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.25); }

/* ═══ ADVANCED DEMOS — Interactive Playground ═══ */
#adv-demos { position: relative; }

/* Shared form elements */
.adv-textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.7rem 0.9rem; color: var(--white-80);
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.6;
  resize: vertical; outline: none; transition: border-color 0.25s;
}
.adv-textarea:focus { border-color: rgba(0,229,255,0.3); }
.adv-textarea::placeholder { color: var(--white-20); }

.adv-select {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--white-80); font-family: var(--font-mono); font-size: 0.75rem;
  padding: 0.5rem 0.75rem; border-radius: var(--r-md); outline: none;
  cursor: pointer; transition: border-color 0.25s;
}
.adv-select:focus { border-color: rgba(0,229,255,0.3); }
.adv-select option { background: #0a0a0a; color: var(--white-80); }

.adv-label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--white-40); letter-spacing: 0.06em; margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.adv-label small { text-transform: none; opacity: 0.6; }

.adv-run-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.5rem;
  background: var(--cyan); color: #000; font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600; border: none; border-radius: var(--r-md);
  cursor: pointer; transition: all 0.25s; letter-spacing: 0.02em;
}
.adv-run-btn:hover { background: #33eeff; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,229,255,0.3); }
.adv-run-btn:disabled { opacity: 0.5; pointer-events: none; }
.adv-run-btn.loading { position: relative; color: transparent; }
.adv-run-btn.loading::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.2); border-top-color: #000;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.adv-preset {
  font-family: var(--font-mono); font-size: 0.7rem; padding: 0.35rem 0.75rem;
  border-radius: var(--r-full); background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15); color: var(--cyan);
  cursor: pointer; transition: all 0.2s;
}
.adv-preset:hover { background: rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.3); transform: translateY(-1px); }

.adv-code-display {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.8rem 1rem; color: var(--white-60);
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.7;
  overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}

/* ─── Multi-Model Arena ─── */
.arena-prompt-bar {
  display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.2rem;
}
.arena-model-row {
  display: flex; align-items: center; gap: 0.75rem;
}
.arena-vs {
  font-weight: 800; font-size: 0.75rem; color: var(--cyan);
  font-family: var(--font-display); letter-spacing: 0.08em;
}
.arena-results {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.arena-col {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.arena-col-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 1rem; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.arena-model-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--white-80); letter-spacing: 0.04em;
}
.arena-latency {
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--cyan);
  background: var(--cyan-pale); padding: 2px 8px; border-radius: var(--r-full);
  letter-spacing: 0.04em;
}
.arena-output {
  padding: 1rem; min-height: 180px; max-height: 300px; overflow-y: auto;
  font-size: 0.8rem; color: var(--white-60); line-height: 1.7;
  font-family: var(--font-body);
}

/* ─── Prompt Engineering Lab ─── */
.plab-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.plab-controls { display: flex; flex-direction: column; gap: 0.6rem; }
.plab-sliders { display: flex; gap: 1rem; margin: 0.3rem 0; }
.plab-slider-group { flex: 1; }
.plab-slider-group input[type="range"] {
  width: 100%; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.08); border-radius: 2px; outline: none;
  margin-top: 0.3rem;
}
.plab-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); cursor: pointer; border: 2px solid rgba(0,0,0,0.3);
  box-shadow: 0 0 8px rgba(0,229,255,0.3);
}
.plab-presets { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.plab-output { display: flex; flex-direction: column; gap: 0.6rem; }
.plab-meta {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.plab-meta-chip {
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--white-40);
  background: rgba(255,255,255,0.04); padding: 3px 10px; border-radius: var(--r-full);
  border: 1px solid var(--border); letter-spacing: 0.04em;
}
.plab-response {
  flex: 1; padding: 1rem; min-height: 200px; max-height: 340px; overflow-y: auto;
  font-size: 0.8rem; color: var(--white-60); line-height: 1.7;
  font-family: var(--font-body); background: rgba(0,0,0,0.3);
  border: 1px solid var(--border); border-radius: var(--r-md);
}

/* ─── Live API Tester ─── */
.apitester-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.apitester-controls { display: flex; flex-direction: column; gap: 0.6rem; }
.apitester-method-row { display: flex; gap: 0.5rem; }
.apitester-response { display: flex; flex-direction: column; gap: 0.6rem; }
.apitester-status-bar {
  display: flex; align-items: center; gap: 0.6rem;
}
.api-status-badge {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  padding: 3px 10px; border-radius: var(--r-full); letter-spacing: 0.05em;
}
.api-status-badge.s2xx { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.api-status-badge.s4xx { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.api-status-badge.s5xx { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.apitester-body { flex: 1; min-height: 250px; max-height: 380px; overflow-y: auto; }

/* ─── AI Code Generator ─── */
.codegen-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.codegen-controls { display: flex; flex-direction: column; gap: 0.6rem; }
.codegen-presets { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.codegen-options { display: flex; gap: 0.5rem; }
.codegen-output { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); }
.codegen-header {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.codegen-filename {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--white-40);
  flex: 1;
}
.codegen-code { flex: 1; min-height: 250px; max-height: 400px; overflow-y: auto; border: none; border-radius: 0; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Full coverage
   ═══════════════════════════════════════════════════════ */

/* Tablet landscape */
@media (max-width: 980px) {
  #hero { flex-direction: column; justify-content: center; }
  .hero-content { padding-bottom: 2rem; }
  .hero-panel {
    display: block !important;
    position: relative; right: auto; top: auto;
    transform: none; opacity: 1;
    max-width: 380px; margin: 0 auto;
    padding: 0 var(--px) 2rem;
  }
  .hero-panel.visible { transform: none; }
}

/* ─── NAV responsive extras ─── */
@media (max-width: 900px) {
  .nav-end .btn-outline,
  .nav-end .nav-status-pill,
  .nav-end .nav-cmd-trigger,
  .nav-end .nav-portfolio-link { display: none !important; }
  .burger { display: flex; }
  .portfolio-pill { display: none !important; }
}
/* Ensure nav-links hidden in simple doesn't break layout */
body.mode-simple .nav-links { display: none; }

@media (max-width: 860px) {
  .proc-track { grid-template-columns: 1fr 1fr; }
  .proc-step:nth-child(2) { border-right: 1px solid var(--border); }
  .proc-step:nth-child(3) { border-top: none; }
  .proc-step:nth-child(4) { border-top: none; border-right: 1px solid var(--border); }
}

@media (min-width: 861px) {
  .mobile-menu {
    display: none !important;
  }
}


@media (max-width: 800px) {
  .stack-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile landscape */
@media (max-width: 700px) {
  .ld-stats { grid-template-columns: repeat(2, 1fr); }
  .lstat:nth-child(2) { border-right: none; }
  .lstat:nth-child(1), .lstat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* Mobile */
@media (max-width: 600px) {
  .sp-div { margin: 0 1rem; }
  .proc-cta { flex-direction: column; text-align: center; }
  .proc-cta .pc-left { text-align: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cv-header { flex-wrap: wrap; gap: 0.5rem; }
  .cv-dots { display: none; }
  .cv-tabs { flex-wrap: wrap; gap: 2px; }
  .cv-copy-wrap { width: 100%; }
  .cv-copy { width: 100%; justify-content: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .footer-nav { gap: 1rem; }
  .hero-panel { max-width: 100%; }
  .hp-card { width: 100%; }
}

/* Small mobile */
@media (max-width: 520px) {
  .sol-grid { grid-template-columns: 1fr; }
  .proc-track { grid-template-columns: 1fr; }
  .proc-step { border-right: 1px solid var(--border); border-top: none; }
  .proc-step:first-child { border-top: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr; }
  .ld-models { justify-content: center; }
  .hero-social-proof { flex-wrap: wrap; gap: 1rem; }
  .sp-div { display: none; }
  .contact-info { gap: 0.65rem; }
}

@media (max-width: 400px) {
  .hero-social-proof { flex-direction: column; gap: 1rem; }
  .sp-div { display: none; }
  .hp-stats { grid-template-columns: 1fr; }
  .hps:nth-child(2), .hps:nth-child(4) { border-left: none; }
  .hps { border-bottom: 1px solid rgba(255,255,255,0.04); }
  .hps:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════
   MODE TOGGLE — Simple / Advanced
   ═══════════════════════════════════════════════════════ */
body.mode-simple .txt-adv,
body.mode-simple .adv-only { display: none !important; }
body.mode-advanced .txt-simple,
body.mode-advanced .simple-only { display: none !important; }

/* ── Floating Mode Toggle Pill ── */
.mode-pill {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 89;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-v);
  border-radius: var(--r-full);
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--white-40);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s;
  pointer-events: none;
}
.mode-pill.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.mode-pill:hover { border-color: var(--cyan-30); }
.mode-pill-text { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.mode-pill-btn {
  background: var(--cyan);
  color: var(--black);
  border: none;
  border-radius: var(--r-full);
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.mode-pill-btn:hover { background: #4df0ff; transform: scale(1.03); }

/* ═══ USE CASE FILTERS ═══ */
.uc-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
  justify-content: center;
}
.uc-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border-v);
  background: var(--white-04);
  color: var(--white-40);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  font-weight: 500;
}
.uc-filter-btn:hover { color: var(--white-80); border-color: rgba(255,255,255,0.2); background: var(--white-08); }
.uc-filter-btn.active {
  background: rgba(0,229,255,0.1);
  border-color: rgba(0,229,255,0.35);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0,229,255,0.08);
}

/* ═══ USE CASES SECTION — Realistic ═══ */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.uc-card {
  background: var(--black-3);
  border: 1px solid var(--border-v);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
}
.uc-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,229,255,0.08);
}
.uc-card.hidden { display: none; }
.uc-mockup {
  position: relative; overflow: hidden;
  background: rgba(0,0,0,0.35);
  padding: 0; height: 370px;
}
/* Subtle gradient fade at very bottom edge only */
.uc-mockup::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 28px; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, transparent, rgba(5,9,16,0.35));
}
@media (max-width: 600px) {
  .uc-mockup::after { display: none; }
}

/* ── Food: add-to-cart flash ── */
.uc-food-add { cursor: pointer; transition: all 0.2s; }
.uc-food-add.uc-added {
  background: rgba(34,197,94,0.15); border-color: #22c55e; color: #22c55e;
}
.uc-food-item.uc-item-flash { animation: uc-row-flash 0.4s ease-out; }
@keyframes uc-row-flash {
  0% { background: rgba(0,229,255,0.08); }
  100% { background: transparent; }
}

/* ── Inventory: count-up + row scan ── */
.uc-dstat-bar { overflow: hidden; }
.uc-dstat-bar div { transform: scaleX(0); transform-origin: left; transition: transform 1.5s ease-out; }
.uc-card.uc-active .uc-dstat-bar div { transform: scaleX(1); }
.uc-dtrow.uc-row-scan { animation: uc-scan-row 0.6s ease-out; }
@keyframes uc-scan-row {
  0% { background: rgba(0,229,255,0.06); }
  100% { background: transparent; }
}
.uc-qty-tick { font-family: var(--font-mono); transition: color 0.3s; }
.uc-qty-tick.uc-qty-changed { color: #00e5ff; }

/* ── WhatsApp: typing dots + message slide ── */
/* .uc-wa-chat layout is defined in the WhatsApp section below */
/* Spacer pushes messages to bottom; shrinks as JS appends msgs */
.uc-wa-spacer { flex: 1; }
.uc-wa-msg { opacity: 0; transform: translateY(8px); }
.uc-wa-msg.uc-msg-show {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}
.uc-wa-typing {
  display: flex; gap: 3px; align-items: center;
  padding: 8px 12px; background: #1f2c34; border-radius: 8px;
  border-top-left-radius: 2px; align-self: flex-start; margin: 2px 0;
}
.uc-wa-typing span {
  width: 5px; height: 5px; border-radius: 50%; background: #8696a0;
  animation: uc-typing-dot 1.4s ease-in-out infinite;
}
.uc-wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.uc-wa-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes uc-typing-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.uc-wa-status.uc-typing-status { color: #00e5ff; font-style: italic; }

/* ── Store: add-to-cart + search typing ── */
.uc-sp-cart-btn {
  margin-top: 4px; padding: 3px 0; border-radius: 4px; text-align: center;
  font-size: 0.5rem; font-weight: 600; color: #00e5ff;
  border: 1px solid rgba(0,229,255,0.2); background: rgba(0,229,255,0.04);
  cursor: pointer; transition: all 0.2s;
}
.uc-sp-cart-btn.uc-in-cart {
  background: rgba(34,197,94,0.12); border-color: #22c55e; color: #22c55e;
}
.uc-store-cart-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 0.6rem; color: var(--white-40);
  border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,229,255,0.03);
  margin-top: auto; flex-shrink: 0;
}
.uc-store-cart-bar .uc-store-cart-count { color: #00e5ff; font-weight: 700; }
.uc-search-cursor { animation: uc-blink 1s step-end infinite; }
@keyframes uc-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Dashboard: count-up + chart draw ── */
.uc-chart-line {
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 2s ease-out;
}
.uc-card.uc-active .uc-chart-line { stroke-dashoffset: 0; }
.uc-card.uc-active .uc-chart-fill {
  animation: uc-fade-in 1s 1.5s ease-out forwards;
}
@keyframes uc-fade-in { to { opacity: 1; } }
.uc-kpi-up { opacity: 0; }
.uc-card.uc-active .uc-kpi-up {
  animation: uc-kpi-pop 0.4s 1.8s ease-out forwards;
}
@keyframes uc-kpi-pop {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Booking: date pick + slot select + confirm ── */
.uc-bcal-dates span { cursor: pointer; transition: all 0.25s; }
.uc-bcal-dates span.uc-bsel {
  background: rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.3); color: #00e5ff; font-weight: 700;
}
.uc-slot { cursor: pointer; transition: all 0.25s; }
.uc-slot.active {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.25);
  color: #00e5ff; font-weight: 600;
}
.uc-booking-confirmed {
  text-align: center; padding: 8px; margin-top: 8px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  border-radius: 8px; font-size: 0.65rem; color: #22c55e; font-weight: 600;
}
.uc-confirmed-icon {
  display: inline-flex; width: 16px; height: 16px; border-radius: 50%;
  background: #22c55e; color: #060a10; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 800; margin-right: 4px; vertical-align: middle;
}
.uc-booking-btn {
  position: relative; overflow: hidden; transition: all 0.3s; cursor: pointer;
}
.uc-booking-btn.uc-btn-confirming {
  opacity: 0.6; pointer-events: none;
}

.uc-info { padding: 1.2rem; margin-top: auto; }
.uc-tag {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: rgba(0,224,255,0.08); color: var(--cyan);
  border-radius: var(--r-full); font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.03em;
}
.uc-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.uc-info p { font-size: 0.8rem; color: var(--white-60); line-height: 1.5; }

/* ── All inner mockup containers fill full height ── */
.uc-app, .uc-dash, .uc-wa, .uc-store, .uc-booking {
  height: 100%; display: flex; flex-direction: column;
}

/* ── Food App ── */
.uc-app { font-family: var(--font-body); font-size: 0.7rem; }
.uc-app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.uc-app-logo { font-weight: 700; font-size: 0.8rem; color: var(--white); }
.uc-app-nav { display: flex; gap: 10px; color: var(--white-30); }
.uc-app-cats { display: flex; gap: 5px; padding: 8px 14px; overflow: hidden; flex-shrink: 0; }
.uc-chip {
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.58rem; color: var(--white-40); white-space: nowrap;
}
.uc-chip.active { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.25); color: #00e5ff; }
.uc-food-item {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.uc-food-img {
  width: 48px; height: 48px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.uc-food-emoji { font-size: 1.2rem; }
.uc-food-detail { flex: 1; min-width: 0; }
.uc-food-name { font-weight: 600; color: var(--white); font-size: 0.72rem; margin-bottom: 2px; }
.uc-food-meta { font-size: 0.55rem; color: var(--white-25); }
.uc-food-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.uc-food-price { color: var(--white-80); font-weight: 700; font-size: 0.72rem; }
.uc-food-add {
  padding: 3px 10px; border-radius: 5px; font-size: 0.55rem; font-weight: 700;
  color: #00e5ff; border: 1px solid rgba(0,229,255,0.25); background: rgba(0,229,255,0.06);
}
.uc-app-cart {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: rgba(0,229,255,0.06);
  border-top: 1px solid rgba(0,229,255,0.12);
  font-size: 0.65rem; color: var(--white-60);
}
.uc-cart-btn { color: #00e5ff; font-weight: 700; }

/* cart stays at bottom, food list fills middle */
.uc-app-cart { margin-top: auto; flex-shrink: 0; }

/* ── Dashboard / Inventory ── */
.uc-dash { font-family: var(--font-body); font-size: 0.65rem; padding: 14px; }
.uc-dash-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.uc-dash-title { font-weight: 700; font-size: 0.78rem; color: var(--white); }
.uc-dash-badge {
  padding: 3px 8px; border-radius: 20px; font-size: 0.5rem; font-weight: 600;
}
.uc-dash-badge-green { background: rgba(34,197,94,0.1); color: #22c55e; }
.uc-dash-period { font-size: 0.6rem; color: var(--white-30); font-family: var(--font-mono); }
.uc-dash-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.uc-dstat {
  flex: 1; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
}
.uc-dstat-val { font-weight: 700; font-size: 0.85rem; color: var(--white); margin-bottom: 2px; }
.uc-dstat-label { font-size: 0.5rem; color: var(--white-30); margin-bottom: 6px; }
.uc-dstat-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.uc-dstat-bar div { height: 100%; border-radius: 2px; }
.uc-dthead {
  display: grid; grid-template-columns: 2fr 1fr 0.6fr 0.8fr;
  padding: 6px 10px; background: rgba(255,255,255,0.03);
  font-size: 0.5rem; color: var(--white-30); font-weight: 600; font-family: var(--font-mono);
}
.uc-dtrow {
  display: grid; grid-template-columns: 2fr 1fr 0.6fr 0.8fr;
  padding: 6px 10px; font-size: 0.55rem; color: var(--white-50);
  border-top: 1px solid rgba(255,255,255,0.03);
}
.uc-status-ok { color: #22c55e; font-weight: 600; }
.uc-status-warn { color: #eab308; font-weight: 600; }
.uc-status-err { color: #ef4444; font-weight: 600; }

/* inventory table fills remaining space */
.uc-dash-table { border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.04); flex: 1; }

/* ── KPI Dashboard ── */
.uc-dash-kpis { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.uc-kpi {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
}
.uc-kpi-icon {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.uc-kpi-val { font-weight: 700; font-size: 0.82rem; color: var(--white); }
.uc-kpi-label { font-size: 0.5rem; color: var(--white-30); }
.uc-kpi-up { color: #22c55e; font-weight: 600; }
.uc-dash-chart { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-top: 4px; }
.uc-chart-label { font-size: 0.5rem; color: var(--white-20); margin-bottom: 4px; font-family: var(--font-mono); flex-shrink: 0; }
.uc-dash-chart svg { flex: 1; width: 100%; min-height: 40px; display: block; }

/* ── WhatsApp Chat (realistic) ── */
.uc-wa { font-family: var(--font-body); }
.uc-wa-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #1f2c34;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.uc-wa-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #00a884; color: #fff; font-size: 0.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.uc-wa-hinfo strong { display: block; font-size: 0.72rem; color: #e9edef; }
.uc-wa-hinfo span { font-size: 0.55rem; color: #22c55e; }
.uc-wa-chat {
  padding: 8px 10px; display: flex; flex-direction: column; gap: 4px;
  flex: 1; min-height: 0; overflow-y: auto;
  background: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
}
/* .uc-wa-spacer div in HTML pushes messages to bottom */
.uc-wa-msg { display: flex; flex-direction: column; max-width: 82%; }
.uc-wa-msg.uc-wa-recv { align-self: flex-start; }
.uc-wa-msg.uc-wa-sent { align-self: flex-end; }
.uc-wa-bubble {
  padding: 6px 10px; border-radius: 8px;
  font-size: 0.55rem; line-height: 1.45; color: #e9edef;
}
.uc-wa-recv .uc-wa-bubble { background: #1f2c34; border-top-left-radius: 2px; }
.uc-wa-sent .uc-wa-bubble { background: #005c4b; border-top-right-radius: 2px; }
.uc-wa-time {
  font-size: 0.4rem; color: rgba(255,255,255,0.2); margin-top: 1px;
  align-self: flex-end;
}
.uc-wa-recv .uc-wa-time { align-self: flex-start; }
.uc-wa-input {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; background: #1f2c34;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.6rem; color: var(--white-20);
}

/* ── Store ── */
.uc-store { font-family: var(--font-body); }
.uc-store-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.uc-store-logo { font-weight: 700; font-size: 0.8rem; color: var(--white); }
.uc-store-search {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.55rem; color: var(--white-20);
}
/* Category chips row */
.uc-store-cats {
  display: flex; gap: 5px; padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04); flex-shrink: 0;
  overflow: hidden;
}
.uc-store-cat {
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  font-size: 0.52rem; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  color: var(--white-40);
}
.uc-store-cat.active {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.25); color: #00e5ff;
}
/* Promo banner */
.uc-store-promo {
  margin: 8px 12px; padding: 8px 12px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(120deg, rgba(0,229,255,0.08), rgba(167,139,250,0.06));
  border: 1px solid rgba(0,229,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
}
.uc-store-promo-text { font-size: 0.58rem; color: var(--white-60); }
.uc-store-promo-text strong { display: block; font-size: 0.65rem; color: var(--white); font-weight: 700; margin-bottom: 1px; }
.uc-store-promo-badge {
  padding: 3px 8px; border-radius: 20px; font-size: 0.5rem; font-weight: 700;
  background: rgba(0,229,255,0.15); color: #00e5ff; white-space: nowrap;
}
.uc-store-grid { display: flex; gap: 8px; padding: 12px; flex: 1; align-items: stretch; }
/* Cart bar pinned at bottom */
.uc-store-cart-bar {
  margin-top: auto; flex-shrink: 0;
}
.uc-store-product { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uc-sp-img {
  flex: 1; min-height: 64px; max-height: 120px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 6px; position: relative;
}
.uc-sp-badge {
  position: absolute; top: 4px; right: 4px;
  padding: 1px 5px; border-radius: 4px; font-size: 0.42rem; font-weight: 700;
  background: rgba(0,229,255,0.15); color: #00e5ff;
}
.uc-sp-name { font-size: 0.6rem; font-weight: 600; color: var(--white-80); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-sp-price { font-size: 0.6rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.uc-sp-old { text-decoration: line-through; color: var(--white-20); font-weight: 400; margin-right: 3px; }
.uc-sp-stars { font-size: 0.45rem; color: #eab308; }
.uc-sp-stars span { color: var(--white-20); }

/* ── Booking ── */
.uc-booking { font-family: var(--font-body); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.uc-booking-header {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.78rem; color: var(--white);
  margin-bottom: 12px;
}
.uc-booking-doc {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 12px;
}
.uc-doc-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(167,139,250,0.15); color: #a78bfa;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.6rem; flex-shrink: 0;
}
.uc-doc-info strong { display: block; font-size: 0.7rem; color: var(--white); }
.uc-doc-info span { font-size: 0.52rem; color: var(--white-30); }
.uc-booking-cal { margin-bottom: 10px; }
.uc-bcal-month { font-size: 0.6rem; font-weight: 600; color: var(--white-60); margin-bottom: 6px; text-align: center; }
.uc-bcal-days, .uc-bcal-dates { display: flex; gap: 4px; justify-content: space-between; }
.uc-bday { font-size: 0.45rem; color: var(--white-20); flex: 1; text-align: center; }
.uc-bcal-dates { margin-top: 4px; }
.uc-bcal-dates span {
  flex: 1; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--white-40);
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
}
.uc-bcal-dates .uc-bsel {
  background: rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.3); color: #00e5ff; font-weight: 700;
}
.uc-booking-slots { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: nowrap; align-content: flex-start; }
.uc-slot {
  flex: 1; padding: 7px 4px; border-radius: 6px; text-align: center;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.55rem; color: var(--white-40); font-family: var(--font-mono);
}
.uc-slot.active {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.25);
  color: #00e5ff; font-weight: 600;
}
.uc-booking-btn {
  width: 100%; padding: 8px; border-radius: 8px;
  background: linear-gradient(135deg, #00e5ff, #00b8d4);
  color: #060a10; text-align: center;
  font-weight: 700; font-size: 0.7rem;
  margin-top: 0; flex-shrink: 0;
}
.uc-booking-btn.uc-btn-confirming {
  background: linear-gradient(135deg, rgba(0,229,255,0.4), rgba(0,184,212,0.4));
  pointer-events: none;
}
/* Feature pills shown below confirm button */
.uc-booking-features {
  display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; flex-shrink: 0;
}
.uc-booking-feat {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 20px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.48rem; color: var(--white-30);
}
/* ── Inventory footer bar ── */
.uc-dash-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; margin-top: auto; flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.52rem; color: var(--white-25);
}
.uc-dash-footer strong { color: var(--white-50); }
.uc-dash-footer-action { color: var(--white-40); cursor: pointer; }

/* ── Dashboard bottom mini-stats ── */
.uc-dash-bottom-row {
  display: flex; gap: 6px; margin-top: 8px; flex-shrink: 0;
}
.uc-dash-mini {
  flex: 1; padding: 6px 8px; border-radius: 6px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; gap: 2px;
}
.uc-dmi-label { font-size: 0.45rem; color: var(--white-25); font-family: var(--font-mono); }
.uc-dmi-val { font-size: 0.65rem; font-weight: 700; color: var(--white-80); }

/* ═══ AI SHOWCASE SECTION ═══ */
.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.showcase-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
/* Chatbot phone frame */
.sc-phone-frame {
  background: #0b141a;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 400px;
}
.sc-phone-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: #1f2c34;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}
.sc-header-info strong { display: block; font-size: 0.8rem; color: #e9edef; }
.sc-online { font-size: 0.65rem; color: #22c55e; display: flex; align-items: center; gap: 0.3rem; }
.sc-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
.sc-messages {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sc-msg {
  max-width: 85%;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  animation: scMsgIn 0.3s var(--ease);
  word-break: break-word; overflow-wrap: break-word; min-width: 0;
}
@keyframes scMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.sc-msg-user { background: #005c4b; color: #e9edef; align-self: flex-end; border-bottom-right-radius: 2px; }
.sc-msg-bot { background: #1f2c34; color: #e9edef; align-self: flex-start; border-bottom-left-radius: 2px; }
.sc-typing { align-self: flex-start; background: #1f2c34; border-radius: 8px; padding: 0.6rem 1rem; display: flex; gap: 4px; }
.sc-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: typBounce 1.4s infinite; }
.sc-typing span:nth-child(2) { animation-delay: 0.2s; }
.sc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.sc-input-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: #1f2c34;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sc-input-bar input {
  flex: 1;
  background: #2a3942;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 0.8rem;
  color: #e9edef;
  font-size: 0.78rem;
  outline: none;
}
.sc-input-bar input::placeholder { color: #8696a0; }
#sc-chat-send {
  background: var(--cyan);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
}

/* Before/After Cards */
.ba-card {
  display: flex;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-v);
  overflow: hidden;
}
.ba-side { flex: 1; padding: 1.2rem; }
.ba-before { background: rgba(255,255,255,0.02); }
.ba-after { background: rgba(0,224,255,0.03); border-left: 1px solid var(--border-v); }
.ba-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: var(--white-40);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}
.ba-badge-glow { background: rgba(0,224,255,0.15); color: var(--cyan); }
.ba-stat { margin-bottom: 0.6rem; }
.ba-num { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--white-80); }
.ba-highlight { color: var(--cyan) !important; }
.ba-unit { font-size: 0.7rem; color: var(--white-40); font-family: var(--font-mono); }
.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  color: var(--cyan);
  background: rgba(0,224,255,0.05);
}

/* ═══ RESULTS SECTION ═══ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.result-card {
  background: var(--black-3);
  border: 1px solid var(--border-v);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.result-card:hover { border-color: var(--cyan-30); transform: translateY(-4px); }
.rc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,224,255,0.08);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.rc-num-row { display: flex; align-items: baseline; justify-content: center; gap: 0.15rem; margin-bottom: 0.5rem; }
.rc-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
}
.rc-suffix {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
}
.rc-label { font-size: 0.8rem; color: var(--white-40); font-family: var(--font-mono); }

/* ═══ INDUSTRIES SECTION ═══ */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ind-card {
  background: var(--black-3);
  border: 1px solid var(--border-v);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.ind-card:hover { border-color: var(--cyan-30); transform: translateY(-4px); }
.ind-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,224,255,0.08);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.ind-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.ind-card p { font-size: 0.8rem; color: var(--white-50); line-height: 1.5; }

/* ═══ TESTIMONIALS ═══ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testi-card {
  background: var(--black-4);
  border: 1px solid var(--border-v);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
}
.testi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.testi-card:hover::before { opacity: 1; }
.testi-card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.testi-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testi-quote {
  font-size: 0.875rem;
  color: var(--white-60);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.2rem;
}
.testi-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: -4px;
  color: var(--cyan);
  font-size: 2.2rem;
  line-height: 1;
  font-family: var(--font-display);
  opacity: 0.7;
}
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(0,229,255,0.06));
  border: 1px solid rgba(0,229,255,0.22);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.testi-name { font-size: 0.875rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.testi-biz { font-size: 0.68rem; color: var(--white-40); font-family: var(--font-mono); margin-top: 2px; }

/* ═══ PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pkg-card {
  background: var(--black-3);
  border: 1px solid var(--border-v);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease);
}
.pkg-card:hover { transform: translateY(-5px); border-color: rgba(0,229,255,0.2); }
.pkg-card.pkg-featured {
  border-color: rgba(0,229,255,0.35);
  background: linear-gradient(180deg, rgba(0,229,255,0.05) 0%, var(--black-3) 50%);
  box-shadow: 0 0 40px rgba(0,229,255,0.06);
}
.pkg-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.22rem 0.9rem;
  border-radius: var(--r-full);
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.pkg-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--cyan-dim);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(0,229,255,0.12);
}
.pkg-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--white); margin-bottom: 0.35rem;
}
.pkg-desc { font-size: 0.78rem; color: var(--white-40); margin-bottom: 1.25rem; line-height: 1.55; }
.pkg-price {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 900;
  color: var(--white); line-height: 1; margin-bottom: 0.3rem;
}
.pkg-price span { font-size: 0.9rem; color: var(--white-40); font-weight: 400; font-family: var(--font-body); }
.pkg-range { font-size: 0.68rem; color: var(--white-20); font-family: var(--font-mono); margin-bottom: 1.25rem; }
.pkg-divider { height: 1px; background: var(--border); margin-bottom: 1.25rem; }
.pkg-features { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.5rem; }
.pkg-feature {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.82rem; color: var(--white-60); line-height: 1.45;
}
.pkg-feature i { color: var(--cyan); flex-shrink: 0; margin-top: 1px; }
.pricing-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--white-20);
  margin-top: 2rem;
  font-family: var(--font-mono);
}
.pricing-note a { color: var(--cyan); text-decoration: underline; text-decoration-style: dotted; }

/* ═══ FAQ ═══ */
.faq-layout { max-width: 780px; margin: 0 auto; }
.faq-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.5rem;
  text-align: left;
  background: var(--black-2);
  color: var(--white-80);
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none; font-family: var(--font-body);
}
.faq-q:hover { background: var(--black-3); color: var(--white); }
.faq-q.open { color: var(--cyan); background: var(--black-3); }
.faq-chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform 0.35s var(--ease);
  color: var(--white-20);
}
.faq-q.open .faq-chevron { transform: rotate(180deg); color: var(--cyan); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease);
  background: var(--black-3);
}
.faq-a.open { max-height: 250px; }
.faq-a-inner { padding: 0 1.5rem 1.15rem; }
.faq-a p {
  font-size: 0.86rem; color: var(--white-60);
  line-height: 1.75; max-width: none;
}

/* ═══ RESPONSIVE — New Simple Sections ═══ */
@media (max-width: 900px) {
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-layout { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-card { flex-direction: column; }
  .ba-after { border-left: none; border-top: 1px solid var(--border-v); }
  .ba-divider { padding: 0.5rem 0; transform: rotate(90deg); }
  .mode-pill { left: 1rem; right: auto; font-size: 0.6rem; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .uc-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .rc-num { font-size: 2rem; }
  .mode-pill { bottom: 1rem; padding: 0.3rem 0.4rem 0.3rem 0.7rem; }
  .mode-pill-text { display: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .pricing-grid { max-width: 100%; }
  .uc-filters { gap: 0.4rem; }
  .uc-filter-btn { font-size: 0.68rem; padding: 0.4rem 0.9rem; }
}

/* ═══════════════════════════════════════════════════════
   AI-POWERED DEVELOPMENT SECTION
   ═══════════════════════════════════════════════════════ */

/* ─── AI Dev Grid ─── */
.ai-dev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3.5rem;
}
.aid-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.aid-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.aid-card:hover {
  border-color: var(--cyan-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,229,255,0.08);
}
.aid-card:hover::before { opacity: 1; }

.aid-icon-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--cyan);
}
.aid-icon-glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, var(--cyan-dim) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  animation: aidPulse 3s ease-in-out infinite;
}
@keyframes aidPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.aid-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--white);
}
.aid-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--white-60);
  margin-bottom: 1rem;
}
.aid-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  background: var(--cyan-dark);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: var(--r-full);
}

/* ─── AI Workflow Pipeline ─── */
.ai-workflow {
  margin-top: 3rem;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.aiw-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: var(--black-4);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--white-60);
}
.aiw-dots { display: flex; gap: 5px; }
.aiw-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.aiw-dots span:first-child { background: #ef4444; }
.aiw-dots span:nth-child(2) { background: #f59e0b; }
.aiw-dots span:last-child { background: #22c55e; }
.aiw-title { flex: 1; display: flex; align-items: center; gap: 0.5rem; color: var(--white-60); }
.aiw-badge {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
  background: rgba(16,185,129,0.12);
  color: #22c55e;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.aiw-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2.5rem 2rem;
}
.aiw-step {
  flex: 1;
  max-width: 200px;
  text-align: center;
}
.aiw-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.7rem;
  border: 1px solid rgba(0,229,255,0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.aiw-step.active .aiw-step-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.aiw-step-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--white-60);
  display: block;
  margin-bottom: 0.6rem;
}
.aiw-step-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.aiw-step-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), #06b6d4);
  border-radius: 3px;
  transition: width 0.6s var(--ease);
}
.aiw-step.active .aiw-step-fill { width: 100%; }
.aiw-step.done .aiw-step-fill { width: 100%; background: var(--green); }

.aiw-connector {
  color: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.aiw-connector svg { display: block; }

/* ═══════════════════════════════════════════════════════
   BUILT FROM SCRATCH SECTION
   ═══════════════════════════════════════════════════════ */
.scratch-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.scratch-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.scratch-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.ss-item { text-align: center; flex: 1; }
.ss-val {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.ss-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ss-div {
  width: 1px;
  height: 36px;
  background: var(--border-v);
}

/* ─── Scratch Code Visual ─── */
.scratch-visual {
  position: relative;
  margin-bottom: 2rem;
}
.sv-window {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sv-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: var(--black-4);
  border-bottom: 1px solid var(--border);
}
.sv-dots { display: flex; gap: 5px; }
.sv-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.sv-dots span:first-child { background: #ef4444; }
.sv-dots span:nth-child(2) { background: #f59e0b; }
.sv-dots span:last-child { background: #22c55e; }
.sv-filename {
  flex: 1;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--white-40);
}
.sv-tag {
  font-size: 0.55rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
  background: var(--cyan-dim);
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.sv-code {
  padding: 1.2rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
}
.sv-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.4rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.sv-line:hover { background: rgba(255,255,255,0.02); }
.sv-ln {
  width: 24px;
  text-align: right;
  color: rgba(255,255,255,0.15);
  font-size: 0.65rem;
  flex-shrink: 0;
  user-select: none;
}
.sv-cursor-line { background: rgba(0,229,255,0.04); }
.sv-cursor {
  color: var(--cyan);
  animation: svBlink 1s step-end infinite;
}
@keyframes svBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Floating Badges ─── */
.sv-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: svFloat 4s ease-in-out infinite;
  z-index: 2;
}
.sv-badge-1 { top: -8px; right: 20px; color: #ef4444; border-color: rgba(239,68,68,0.2); animation-delay: 0s; }
.sv-badge-2 { bottom: 40px; left: -16px; color: #f59e0b; border-color: rgba(245,158,11,0.2); animation-delay: 1s; }
.sv-badge-3 { top: 30%; right: -14px; color: var(--green); border-color: rgba(16,185,129,0.2); animation-delay: 0.5s; }
.sv-badge-4 { bottom: -6px; right: 40px; color: var(--cyan); border-color: rgba(0,229,255,0.15); animation-delay: 1.5s; }

@keyframes svFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ─── Philosophy Points ─── */
.scratch-philosophy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sp-point {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease);
  align-items: flex-start;
}
.sp-point:hover { border-color: var(--cyan-glow); }
.sp-point > i, .sp-point > svg {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.sp-point strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.sp-point span {
  font-size: 0.78rem;
  color: var(--white-40);
  line-height: 1.5;
}

/* ═══ RESPONSIVE — New Sections ═══ */
@media (max-width: 900px) {
  .ai-dev-grid { grid-template-columns: 1fr 1fr; }
  .scratch-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .aiw-pipeline { flex-wrap: wrap; gap: 1.2rem; }
  .aiw-connector { display: none; }
  .aiw-step { max-width: none; flex: 1 1 40%; }
}
@media (max-width: 600px) {
  .ai-dev-grid { grid-template-columns: 1fr; }
  .scratch-stats { flex-direction: column; gap: 1rem; }
  .ss-div { width: 60px; height: 1px; }
  .sv-badge { display: none; }
  .aiw-step { flex: 1 1 100%; }
}

/* ═══════════════════════════════════════════════════════
   AI FEATURES LAB — Interactive Demo Section
   ═══════════════════════════════════════════════════════ */

/* ── Tab Nav ── */
.ailab-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0 0;
  padding: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.ailab-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-40);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
  font-family: var(--font-body);
}
.ailab-tab i { color: var(--white-20); transition: color 0.2s; }
.ailab-tab:hover { color: var(--white-80); background: rgba(255,255,255,0.04); }
.ailab-tab:hover i { color: var(--white-60); }
.ailab-tab.active {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 2px 16px rgba(0,229,255,0.25);
}
.ailab-tab.active i { color: #000; }

/* ── Panels ── */
.ailab-panel { display: none; margin-top: 2rem; }
.ailab-panel.active { display: block; animation: panelIn 0.35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.ailab-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.ailab-two-full { grid-template-columns: 1.5fr 1fr; }

.ailab-demo-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--white-40);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.ailab-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Chatbot quick replies ── */
.sc-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  background: #1a2430;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sc-quick-btn {
  font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-full);
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.15);
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.sc-quick-btn:hover { background: rgba(0,229,255,0.14); border-color: rgba(0,229,255,0.3); transform: translateY(-1px); }

/* ── Info panel ── */
.ailab-info { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 2.2rem; }
.ailab-info h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--white); }
.ailab-info p { font-size: 0.88rem; color: var(--white-60); line-height: 1.75; }
.ailab-bullets { display: flex; flex-direction: column; gap: 0.6rem; }
.ailab-bullet {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.84rem; color: var(--white-60); line-height: 1.45;
}
.ailab-bullet i { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.ailab-saving-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  color: var(--white-80);
  font-weight: 600;
  margin-top: 0.25rem;
  width: fit-content;
}

/* ── Smart Reply Demo ── */
.reply-demo-box {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.rdb-section { display: flex; flex-direction: column; gap: 0.6rem; }
.rdb-label { font-size: 0.7rem; font-weight: 600; color: var(--white-40); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); }
.rdb-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rdb-preset {
  font-size: 0.7rem; padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--white-04); border: 1px solid var(--border);
  color: var(--white-60); cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.rdb-preset:hover { color: var(--white); border-color: rgba(0,229,255,0.2); background: rgba(0,229,255,0.05); }
.rdb-textarea {
  background: var(--black-4); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.7rem 0.85rem;
  color: var(--white); font-size: 0.83rem; outline: none;
  resize: none; transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-body); line-height: 1.6;
}
.rdb-textarea:focus { border-color: rgba(0,229,255,0.3); box-shadow: 0 0 0 3px rgba(0,229,255,0.05); }
.rdb-textarea::placeholder { color: var(--white-20); }
.rdb-generate-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cyan); color: #000;
  padding: 0.65rem 1.25rem; border-radius: var(--r-md);
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; border: none; font-family: var(--font-body);
  align-self: flex-start;
}
.rdb-generate-btn:hover { background: #33eeff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,229,255,0.3); }
.rdb-generate-btn.loading { opacity: 0.7; pointer-events: none; }
.rdb-output {
  background: rgba(0,229,255,0.03); border: 1px solid rgba(0,229,255,0.12);
  border-radius: var(--r-md); padding: 0.9rem;
  animation: panelIn 0.3s var(--ease);
}
.rdb-output-label { font-size: 0.6rem; color: var(--cyan); font-family: var(--font-mono); letter-spacing: 0.1em; margin-bottom: 0.55rem; display: flex; align-items: center; gap: 0.35rem; }
.rdb-response { font-size: 0.83rem; color: var(--white-80); line-height: 1.7; }
.rdb-actions { display: flex; gap: 0.5rem; margin-top: 0.65rem; }
.rdb-action-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; padding: 0.3rem 0.7rem;
  border-radius: var(--r-full);
  background: var(--white-04); border: 1px solid var(--border);
  color: var(--white-60); cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.rdb-action-btn:hover { color: var(--white); border-color: rgba(0,229,255,0.2); }
.rdb-action-regen { border-color: rgba(0,229,255,0.15); color: var(--cyan); }

/* ── Invoice Demo ── */
.inv-demo-box {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.inv-form { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.inv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.inv-field { display: flex; flex-direction: column; gap: 4px; }
.inv-field label { font-size: 0.62rem; font-weight: 600; color: var(--white-40); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); }
.inv-field input, .inv-item-name, .inv-item-qty, .inv-item-price {
  background: var(--black-4); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.5rem 0.65rem;
  color: var(--white); font-size: 0.8rem; outline: none;
  transition: border-color 0.2s; font-family: var(--font-body);
}
.inv-field input:focus, .inv-item-name:focus, .inv-item-qty:focus, .inv-item-price:focus { border-color: rgba(0,229,255,0.3); }
.inv-field input::placeholder { color: var(--white-20); }
.inv-items { display: flex; flex-direction: column; gap: 0.45rem; }
.inv-item-row { display: grid; grid-template-columns: 1fr 56px 80px 28px; gap: 0.4rem; align-items: center; }
.inv-item-qty, .inv-item-price { text-align: right; }
.inv-item-qty::placeholder, .inv-item-price::placeholder { color: var(--white-20); }
.inv-remove-btn { background: none; border: none; color: var(--red); font-size: 1rem; cursor: pointer; padding: 0; line-height: 1; transition: opacity 0.2s; }
.inv-remove-btn:hover { opacity: 0.7; }
.inv-form-footer { display: flex; align-items: center; justify-content: space-between; }
.inv-add-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: var(--cyan);
  background: none; border: none; cursor: pointer;
  transition: opacity 0.2s; font-family: var(--font-body);
}
.inv-add-btn:hover { opacity: 0.75; }
.inv-gen-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--cyan); color: #000;
  padding: 0.5rem 1rem; border-radius: var(--r-md);
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s; font-family: var(--font-body);
}
.inv-gen-btn:hover { background: #33eeff; }
.inv-preview {
  border-top: 1px solid var(--border);
  min-height: 140px;
  background: var(--black-4);
}
.inv-preview-inner { padding: 1rem; }
.inv-preview-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--white-20); padding: 1.5rem;
  font-size: 0.75rem; font-family: var(--font-mono);
}
.inv-preview-placeholder i { color: var(--white-08); }
.inv-doc {
  background: #fff; color: #111;
  border-radius: 6px; padding: 1rem;
  font-size: 0.72rem; line-height: 1.5;
  animation: panelIn 0.4s var(--ease);
}
.inv-doc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; border-bottom: 2px solid #000; padding-bottom: 0.5rem; }
.inv-doc-biz { font-weight: 800; font-size: 0.9rem; color: #000; }
.inv-doc-title { font-weight: 700; font-size: 1rem; color: #000; }
.inv-doc-meta { display: flex; justify-content: space-between; margin-bottom: 0.65rem; font-size: 0.67rem; color: #555; }
.inv-doc-table { width: 100%; border-collapse: collapse; font-size: 0.67rem; }
.inv-doc-table th { background: #000; color: #fff; padding: 4px 6px; text-align: left; }
.inv-doc-table td { padding: 4px 6px; border-bottom: 1px solid #eee; }
.inv-doc-total { margin-top: 0.5rem; text-align: right; font-weight: 700; font-size: 0.82rem; color: #000; border-top: 2px solid #000; padding-top: 0.4rem; }
.inv-doc-footer { margin-top: 0.65rem; font-size: 0.62rem; color: #888; text-align: center; border-top: 1px solid #eee; padding-top: 0.4rem; }

/* ── ROI Calculator ── */
.roi-box {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.roi-inputs { display: flex; flex-direction: column; gap: 1.25rem; }
.roi-field { display: flex; flex-direction: column; gap: 0.55rem; }
.roi-field label { font-size: 0.8rem; color: var(--white-60); font-weight: 500; }
.roi-slider-wrap { display: flex; align-items: center; gap: 1rem; }
.roi-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 3px; background: var(--white-08); border-radius: 3px; outline: none; cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--cyan);
  cursor: pointer; box-shadow: 0 0 8px rgba(0,229,255,0.4);
  transition: transform 0.15s; border: 2px solid #000;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.roi-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); cursor: pointer; border: 2px solid #000; }
.roi-slider-val {
  min-width: 68px; text-align: right;
  font-family: var(--font-mono); font-size: 0.8rem;
  font-weight: 700; color: var(--cyan);
}
.roi-results {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.roi-result-card {
  background: var(--black-4); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  transition: border-color 0.3s; align-items: flex-start;
}
.roi-result-card:hover { border-color: rgba(0,229,255,0.2); }
.roi-result-icon { font-size: 1.3rem; margin-bottom: 0.1rem; }
.roi-result-val { font-family: var(--font-display); font-size: 1.55rem; font-weight: 900; color: var(--cyan); line-height: 1; }
.roi-result-label { font-size: 0.68rem; color: var(--white-40); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ── Smart Alerts Demo ── */
.alerts-phone-frame {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.alerts-phone-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--black-4); border-bottom: 1px solid var(--border);
  font-size: 0.72rem; font-family: var(--font-mono); color: var(--white-60);
}
.alerts-phone-header i { color: var(--cyan); flex-shrink: 0; }
.alerts-badge {
  margin-left: auto;
  background: var(--red); color: #fff;
  font-size: 0.56rem; font-weight: 700;
  padding: 2px 6px; border-radius: 10px;
  min-width: 18px; text-align: center;
  font-family: var(--font-body);
}
.alerts-feed {
  min-height: 280px; max-height: 320px;
  overflow-y: auto; padding: 0.6rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  scrollbar-width: none;
}
.alerts-feed::-webkit-scrollbar { display: none; }
.alert-item {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--black-4);
  animation: alertIn 0.4s var(--ease);
}
@keyframes alertIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.alert-icon { font-size: 1rem; flex-shrink: 0; line-height: 1.3; }
.alert-body { flex: 1; }
.alert-title { font-size: 0.78rem; font-weight: 600; color: var(--white-80); margin-bottom: 1px; }
.alert-desc { font-size: 0.68rem; color: var(--white-40); line-height: 1.4; }
.alert-time { font-size: 0.58rem; color: var(--white-20); font-family: var(--font-mono); flex-shrink: 0; margin-top: 2px; }
.alert-item.alert-warn { border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.04); }
.alert-item.alert-success { border-color: rgba(34,197,94,0.2); background: rgba(34,197,94,0.03); }
.alert-item.alert-info { border-color: rgba(0,229,255,0.15); background: rgba(0,229,255,0.03); }
.alert-item.alert-danger { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.03); }
.alerts-footer {
  padding: 0.6rem 1rem; border-top: 1px solid var(--border);
  background: var(--black-4); display: flex; gap: 0.5rem;
}
.alerts-pause-btn, .alerts-clear-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--white-04); border: 1px solid var(--border);
  color: var(--white-40); cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.alerts-pause-btn:hover, .alerts-clear-btn:hover { color: var(--white); border-color: rgba(0,229,255,0.2); }

/* ══ AI Features Grid ══ */
.aif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.aif-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
  cursor: default;
}
.aif-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--aif-clr, var(--cyan)), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.aif-card:hover::before { opacity: 1; }
.aif-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  border-color: rgba(var(--aif-clr-r, 0), var(--aif-clr-g, 229), var(--aif-clr-b, 255), 0.18);
}
.aif-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--aif-clr) 12%, transparent);
  color: var(--aif-clr);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--aif-clr) 18%, transparent);
}
.aif-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.aif-card p { font-size: 0.78rem; color: var(--white-60); line-height: 1.6; flex: 1; }
.aif-tag {
  font-size: 0.6rem; font-family: var(--font-mono);
  color: var(--white-20); letter-spacing: 0.06em;
  margin-top: auto;
}

/* ═══ TESTIMONIALS ═══ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testi-card {
  background: var(--black-4);
  border: 1px solid var(--border-v);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
}
.testi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.testi-card:hover::before { opacity: 1; }
.testi-card:hover { border-color: rgba(0,229,255,0.2); transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,0.45); }
.testi-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testi-quote {
  font-size: 0.875rem;
  color: var(--white-60);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.2rem;
}
.testi-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: -4px;
  color: var(--cyan);
  font-size: 2.2rem;
  line-height: 1;
  font-family: var(--font-display);
  opacity: 0.7;
}
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(0,229,255,0.06));
  border: 1px solid rgba(0,229,255,0.22);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.testi-name { font-size: 0.875rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.testi-biz { font-size: 0.68rem; color: var(--white-40); font-family: var(--font-mono); margin-top: 2px; }

/* ═══ PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pkg-card {
  background: var(--black-3);
  border: 1px solid var(--border-v);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 0;
}
.pkg-card:hover { transform: translateY(-5px); border-color: rgba(0,229,255,0.2); }
.pkg-card.pkg-featured {
  border-color: rgba(0,229,255,0.35);
  background: linear-gradient(180deg, rgba(0,229,255,0.05) 0%, var(--black-3) 50%);
  box-shadow: 0 0 40px rgba(0,229,255,0.06);
}
.pkg-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.22rem 0.9rem;
  border-radius: var(--r-full);
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.pkg-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--cyan-dim);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(0,229,255,0.12);
}
.pkg-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--white); margin-bottom: 0.35rem; }
.pkg-desc { font-size: 0.78rem; color: var(--white-40); margin-bottom: 1.25rem; line-height: 1.55; }
.pkg-price { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 0.3rem; }
.pkg-price span { font-size: 0.9rem; color: var(--white-40); font-weight: 400; font-family: var(--font-body); }
.pkg-range { font-size: 0.68rem; color: var(--white-20); font-family: var(--font-mono); margin-bottom: 1.25rem; }
.pkg-divider { height: 1px; background: var(--border); margin-bottom: 1.25rem; }
.pkg-features { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.5rem; flex: 1; }
.pkg-feature { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.82rem; color: var(--white-60); line-height: 1.45; }
.pkg-feature i { color: var(--cyan); flex-shrink: 0; margin-top: 1px; }
.pricing-note { text-align: center; font-size: 0.75rem; color: var(--white-20); margin-top: 2rem; font-family: var(--font-mono); max-width: 100%; }
.pricing-note a { color: var(--cyan); text-decoration: underline; text-decoration-style: dotted; }

/* ═══ FAQ ═══ */
.faq-layout { max-width: 780px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.5rem;
  text-align: left;
  background: var(--black-2);
  color: var(--white-80);
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s, color 0.2s;
  cursor: pointer; border: none; font-family: var(--font-body);
}
.faq-q:hover { background: var(--black-3); color: var(--white); }
.faq-q.open { color: var(--cyan); background: var(--black-3); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.35s var(--ease); color: var(--white-20); }
.faq-q.open .faq-chevron { transform: rotate(180deg); color: var(--cyan); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); background: var(--black-3); }
.faq-a.open { max-height: 250px; }
.faq-a-inner { padding: 0 1.5rem 1.15rem; }
.faq-a p { font-size: 0.86rem; color: var(--white-60); line-height: 1.75; max-width: none; }

/* ═══ USE CASE FILTERS ═══ */
.uc-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2.2rem; justify-content: center;
}
.uc-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border-v);
  background: var(--white-04);
  color: var(--white-40);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.uc-filter-btn:hover { color: var(--white-80); border-color: rgba(255,255,255,0.2); background: var(--white-08); }
.uc-filter-btn.active { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.35); color: var(--cyan); box-shadow: 0 0 14px rgba(0,229,255,0.08); }
.uc-card.hidden { display: none; }
.uc-card { transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s, opacity 0.3s; }

/* ═══ RESPONSIVE — New Sections ═══ */
@media (max-width: 1024px) {
  .aif-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ailab-two, .ailab-two-full { grid-template-columns: 1fr; }
  .ailab-info { padding-top: 0; }
  .ailab-tabs { border-radius: var(--r-lg); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .roi-results { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ailab-tab span { display: none; }
  .ailab-tab { padding: 0.5rem 0.7rem; }
  .testi-grid { grid-template-columns: 1fr; }
  .pricing-grid { max-width: 100%; }
  .aif-grid { grid-template-columns: 1fr 1fr; }
  .inv-form-row { grid-template-columns: 1fr; }
  .inv-item-row { grid-template-columns: 1fr 50px 70px 24px; }
  .roi-results { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .aif-grid { grid-template-columns: 1fr; }
}

/* ═══ TABLET PORTRAIT FIXES (consolidate missing block) ═══ */
@media (max-width: 900px) {
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .cap-layout { grid-template-columns: 1fr; gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  #section-dots { display: none; }
  .nav-links { display: none; }
}

/* ═══ ROI icon fix ═══ */
.roi-result-icon-wrap {
  display: flex; align-items: center;
  margin-bottom: 0.25rem;
}

/* ═══ ALERT ICON WRAP (replaces emoji spans) ═══ */
.alert-icon-wrap {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.alert-icon-warn    { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.alert-icon-success { background: rgba(34,197,94,0.15);   color: #22c55e; }
.alert-icon-info    { background: rgba(0,229,255,0.1);    color: #00e5ff; }
.alert-icon-danger  { background: rgba(239,68,68,0.15);   color: #ef4444; }

/* ═══ WHATSAPP BLAST DEMO ═══ */
.blast-demo-box {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.blast-form { display: flex; flex-direction: column; gap: 0.85rem; }
.blast-field { display: flex; flex-direction: column; gap: 5px; }
.blast-field > label {
  font-size: 0.62rem; font-weight: 600; color: var(--white-40);
  text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono);
}
.blast-field input, .blast-textarea {
  background: var(--black-4); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.5rem 0.7rem;
  color: var(--white); font-size: 0.8rem; outline: none;
  transition: border-color 0.2s; font-family: var(--font-body);
}
.blast-field input:focus, .blast-textarea:focus { border-color: rgba(0,229,255,0.3); }
.blast-textarea { resize: none; line-height: 1.6; font-size: 0.78rem; }
.blast-audience-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.blast-aud-btn {
  font-size: 0.68rem; padding: 0.28rem 0.7rem;
  border-radius: var(--r-full);
  background: var(--white-04); border: 1px solid var(--border);
  color: var(--white-40); cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.blast-aud-btn.active {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3);
  color: var(--cyan);
}
.blast-aud-btn:hover { color: var(--white-80); border-color: rgba(255,255,255,0.2); }
.blast-scenario-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.blast-scn-btn {
  font-size: 0.68rem; padding: 0.28rem 0.7rem;
  border-radius: var(--r-full);
  background: var(--white-04); border: 1px solid var(--border);
  color: var(--white-40); cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.blast-scn-btn.active {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3);
  color: var(--cyan);
}
.blast-scn-btn:hover { color: var(--white-80); border-color: rgba(255,255,255,0.2); }
.blast-stats-row {
  display: flex; gap: 0.75rem;
  padding: 0.75rem; background: var(--black-4);
  border-radius: var(--r-md); border: 1px solid var(--border);
}
.blast-stat { flex: 1; text-align: center; }
.blast-stat span {
  display: block; font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800; color: var(--cyan); line-height: 1;
}
.blast-stat label { font-size: 0.58rem; color: var(--white-20); font-family: var(--font-mono); letter-spacing: 0.06em; margin-top: 3px; display: block; }
.blast-send-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--cyan); color: #000;
  padding: 0.65rem; border-radius: var(--r-md);
  font-size: 0.82rem; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.blast-send-btn:hover { background: #33eeff; transform: translateY(-1px); }
.blast-send-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.blast-preview { display: flex; flex-direction: column; gap: 0.6rem; }
.blast-preview-label {
  font-size: 0.6rem; color: var(--white-20); font-family: var(--font-mono);
  letter-spacing: 0.08em; display: flex; align-items: center; gap: 0.35rem;
}
.blast-phone {
  background: #0b141a; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.06); overflow: hidden; flex: 1;
}
.blast-phone-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem; background: #1f2c34;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.blast-biz-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cyan); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.75rem; flex-shrink: 0;
}
.blast-biz-name { font-size: 0.72rem; font-weight: 700; color: #e9edef; }
.blast-biz-sub  { font-size: 0.55rem; color: #8696a0; }
.blast-phone-body { padding: 0.6rem 0.75rem; min-height: 72px; }
.blast-bubble {
  background: #005c4b; color: #e9edef;
  padding: 0.45rem 0.65rem; border-radius: 8px 8px 2px 8px;
  font-size: 0.73rem; line-height: 1.5; max-width: 90%;
}
.blast-time {
  font-size: 0.55rem; color: #8696a0; margin-top: 3px;
  display: flex; align-items: center; gap: 3px; justify-content: flex-end;
}
.blast-result {
  flex-direction: column; gap: 0.45rem;
  padding: 0.7rem; background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.15); border-radius: var(--r-md);
  animation: panelIn 0.4s var(--ease);
}
.blast-result-row {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--white-80); font-family: var(--font-mono);
}
.blast-result-row span { font-weight: 700; color: var(--white); }

/* ── Blast: number rows ── */
.blast-num-row {
  display: flex; align-items: center; gap: 0.45rem;
  margin-bottom: 0.45rem;
}
.wademo-flag { /* reuse from wademo */
  font-size: 0.75rem; color: var(--white-60);
  background: var(--black-4); border: 1px solid var(--border);
  padding: 0.42rem 0.55rem; border-radius: var(--r-sm);
  white-space: nowrap; flex-shrink: 0;
}
.blast-num-input {
  flex: 1; background: var(--black-4); border: 1px solid var(--border);
  color: var(--white); border-radius: var(--r-sm);
  padding: 0.42rem 0.6rem; font-size: 0.78rem; font-family: var(--font-mono);
  outline: none; transition: border-color 0.2s;
}
.blast-num-input:focus { border-color: rgba(0,229,255,0.35); }
.blast-num-remove {
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: var(--white-40); border-radius: var(--r-sm);
  padding: 0.38rem 0.45rem; cursor: pointer; display: flex;
  align-items: center; transition: all 0.2s; flex-shrink: 0;
}
.blast-num-remove:hover { border-color: rgba(239,68,68,0.4); color: #ef4444; }
.blast-add-num-btn {
  display: flex; align-items: center; gap: 0.35rem;
  background: none; border: 1px dashed rgba(0,229,255,0.3);
  color: var(--cyan); border-radius: var(--r-sm);
  padding: 0.4rem 0.75rem; font-size: 0.72rem; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body); margin-top: 2px;
}
.blast-add-num-btn:hover { background: rgba(0,229,255,0.06); border-color: var(--cyan); }
.blast-num-count { color: var(--white-40); font-weight: 400; font-size: 0.6rem; }
/* Blast error / success banners */
.blast-error-box, .blast-success-box {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.75rem; border-radius: var(--r-sm);
  font-size: 0.76rem;
}
.blast-error-box {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}
.blast-success-box {
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  color: #86efac;
}
/* Per-number status list */
.blast-status-list {
  flex-direction: column; gap: 0.4rem;
  padding: 0.6rem; background: var(--black-4);
  border: 1px solid var(--border); border-radius: var(--r-md);
  margin-top: 0.5rem;
}
.blast-status-row {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; color: var(--white-60); font-family: var(--font-mono);
}
.blast-status-row.success { color: #86efac; }
.blast-status-row.fail    { color: #fca5a5; }
.blast-status-icon { font-size: 0.8rem; flex-shrink: 0; }
.blast-status-label { margin-left: auto; font-size: 0.65rem; opacity: 0.8; }

/* ═══ LIVE DASHBOARD DEMO ═══ */
.dash-demo-box {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dash-top-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.dash-stat-card {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--black-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem 0.85rem;
  transition: border-color 0.3s;
}
.dash-stat-card:hover { border-color: rgba(0,229,255,0.15); }
.dash-stat-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex-shrink: 0;
  background: color-mix(in srgb, var(--dsc, #00e5ff) 12%, transparent);
  color: var(--dsc, #00e5ff);
  border: 1px solid color-mix(in srgb, var(--dsc, #00e5ff) 20%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.dash-stat-body { min-width: 0; }
.dash-stat-val {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 800;
  color: var(--white); line-height: 1; white-space: nowrap;
}
.dash-stat-val.dash-warn { color: #ef4444; }
.dash-stat-label { font-size: 0.58rem; color: var(--white-40); font-family: var(--font-mono); letter-spacing: 0.05em; margin-top: 2px; }
.dash-stat-delta {
  font-size: 0.58rem; display: flex; align-items: center; gap: 2px;
  margin-top: 2px; font-family: var(--font-mono);
}
.dash-up   { color: #22c55e; }
.dash-down { color: #ef4444; }
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.dash-chart-wrap, .dash-orders-wrap {
  background: var(--black-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem;
}
.dash-chart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.6rem;
}
.dash-chart-title { font-size: 0.65rem; color: var(--white-60); font-weight: 600; }
.dash-chart-legend { display: flex; align-items: center; gap: 0.35rem; font-size: 0.6rem; color: var(--white-40); font-family: var(--font-mono); }
.dash-legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
#dash-chart { display: block; width: 100%; }
.dash-orders-list { display: flex; flex-direction: column; gap: 0; }
.dash-order-row {
  display: grid; grid-template-columns: 44px 1fr auto 72px;
  gap: 0.4rem; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.68rem;
}
.dash-order-row:last-child { border-bottom: none; }
.dash-order-id    { color: var(--white-20); font-family: var(--font-mono); font-size: 0.6rem; }
.dash-order-item  { color: var(--white-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-order-amt   { color: var(--white-80); font-weight: 600; text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.dash-order-status{ font-size: 0.6rem; font-family: var(--font-mono); text-align: right; white-space: nowrap; }

/* ═══ RESPONSIVE — Blast + Dashboard ═══ */
@media (max-width: 900px) {
  .blast-demo-box { grid-template-columns: 1fr; }
  .dash-top-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-bottom    { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash-top-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-order-row { grid-template-columns: 44px 1fr auto; }
  .dash-order-status { display: none; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE FIX PATCH — Comprehensive phone layout repairs
   ═══════════════════════════════════════════════════════ */

/* ── 1. Prevent ANY horizontal scroll on mobile ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.section { overflow-x: hidden; }

/* ── 2. Hero — reduce excessive padding on phones ── */
@media (max-width: 600px) {
  #hero {
    padding-top: 60px;
    min-height: 100dvh;
    align-items: flex-start;
  }
  .hero-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-label {
    margin-bottom: 1.2rem;
    font-size: 0.6rem;
  }
  .hero-h1 {
    margin-bottom: 1.25rem;
  }
  .hero-sub {
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
  }
  .hero-actions {
    margin-bottom: 2rem;
  }
  .hero-scroll {
    display: none;
  }
}

/* ── 3. Hero panel — prevent overflow, collapse on tiny phones ── */
@media (max-width: 600px) {
  .hero-panel {
    padding: 0 0 2rem;
    max-width: 100%;
  }
  .hp-card {
    width: 100%;
    border-radius: 12px;
    padding: 0.9rem;
  }
  .hp-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .hero-panel {
    display: none !important;
  }
}

/* ── 4. Section padding — less on small phones ── */
@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }
  .section-head {
    margin-bottom: 2rem;
  }
}
@media (max-width: 400px) {
  .section {
    padding: 2.75rem 0;
  }
}

/* ── 5. Nav — fix wrap on very narrow screens ── */
@media (max-width: 360px) {
  .nav-wrap {
    padding: 0 0.75rem;
  }
  .nav-logo span {
    font-size: 0.95rem;
  }
}

/* ── 6. Marquee strip — tighten spacing on mobile ── */
@media (max-width: 600px) {
  .strip {
    padding: 10px 0;
  }
  .strip-inner {
    gap: 1.1rem;
    font-size: 0.58rem;
  }
}

/* ── 7. AI Lab tabs — prevent overflow, fix icon-only layout ── */
@media (max-width: 480px) {
  .ailab-tabs {
    gap: 0.25rem;
    padding: 4px;
  }
  .ailab-tab {
    padding: 0.45rem 0.6rem;
    min-width: 36px;
    flex: 1;
    justify-content: center;
  }
}
@media (max-width: 360px) {
  .ailab-tab {
    padding: 0.4rem 0.45rem;
  }
}

/* ── 8. Invoice demo — stack on mobile ── */
@media (max-width: 600px) {
  .inv-demo-box {
    display: flex;
    flex-direction: column;
  }
  .inv-form-row {
    grid-template-columns: 1fr;
  }
  .inv-item-row {
    grid-template-columns: 1fr 46px 64px 24px;
    gap: 0.3rem;
  }
  .inv-preview {
    min-height: 100px;
  }
}

/* ── 9. ROI Calculator — single column results on small screens ── */
@media (max-width: 480px) {
  .roi-results {
    grid-template-columns: 1fr !important;
  }
  .roi-box {
    padding: 1rem;
    gap: 1.25rem;
  }
}

/* ── 10. WhatsApp Blast — ensure full stack ── */
@media (max-width: 600px) {
  .blast-demo-box {
    grid-template-columns: 1fr !important;
    padding: 0.9rem;
    gap: 1rem;
  }
  .blast-stats-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .blast-stat {
    flex: 1 1 30%;
    min-width: 60px;
  }
}

/* ── 11. Dashboard — 1-col stat cards on tiny phones ── */
@media (max-width: 480px) {
  .dash-top-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .dash-stat-card {
    padding: 0.6rem 0.7rem;
    gap: 0.5rem;
  }
  .dash-stat-val {
    font-size: 0.88rem;
  }
}
@media (max-width: 360px) {
  .dash-top-stats {
    grid-template-columns: 1fr;
  }
}

/* ── 12. AI Features grid — 1-col on small phones ── */
@media (max-width: 480px) {
  .aif-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
  .aif-card {
    padding: 1.25rem;
  }
}

/* ── 13. Results grid — proper 2-col on small phones ── */
@media (max-width: 400px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* ── 14. Testimonials — single col on small phones ── */
@media (max-width: 480px) {
  .testi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 15. Pricing cards — full width, no max-width constraint ── */
@media (max-width: 480px) {
  .pricing-grid {
    max-width: 100% !important;
    gap: 1rem;
  }
  .pkg-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ── 16. Contact form — tighten on small phones ── */
@media (max-width: 480px) {
  .contact-layout {
    gap: 2rem !important;
  }
  .contact-left h2 {
    font-size: 2.2rem;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
}

/* ── 17. Footer — tighten up ── */
@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    gap: 1.25rem;
  }
  .footer-cta {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .footer-bottom {
    gap: 1rem;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}

/* ── 18. Float pill + mode pill — prevent overlap & overflow ── */
@media (max-width: 600px) {
  .float-pill {
    right: 1rem;
    bottom: 1rem;
    font-size: 0.68rem;
    padding: 7px 7px 7px 12px;
  }
  .float-pill span:not(.fp-dot):not(.fp-btn) {
    display: none; /* hide text, keep dot + button */
  }
  .mode-pill {
    bottom: 1rem;
    left: 1rem;
  }
}
@media (max-width: 360px) {
  .float-pill {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .mode-pill {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

/* ── 19. CTA section — fix on small phones ── */
@media (max-width: 600px) {
  .cta-full {
    padding: 3.5rem 0;
  }
  .cta-h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .cta-btns {
    gap: 0.85rem;
  }
  .btn-outline-light {
    padding: 12px 20px;
  }
}

/* ── 20. Process track — fix on small phones ── */
@media (max-width: 480px) {
  .proc-track {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .proc-step {
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border);
  }
  .proc-step:first-child {
    border-top: 1px solid var(--border) !important;
  }
  .proc-cta {
    margin-top: 2rem;
    padding: 1.5rem;
  }
}

/* ── 21. Built from scratch — code window on mobile ── */
@media (max-width: 600px) {
  .scratch-philosophy {
    gap: 0.85rem;
  }
  .scratch-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .ss-div {
    display: none;
  }
  .sv-window {
    font-size: 0.75rem;
  }
  .sv-code {
    font-size: 0.68rem;
  }
}

/* ── 22. Industries grid — 1-col on 480px ── */
@media (max-width: 480px) {
  .ind-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 23. Use cases grid — 1-col on phone ── */
@media (max-width: 480px) {
  .uc-grid {
    grid-template-columns: 1fr !important;
  }
  .uc-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    justify-content: flex-start;
  }
  .uc-filter-btn {
    flex-shrink: 0;
  }
}

/* ── 24. Use-case cards — mobile fix ── */
@media (max-width: 600px) {
  .uc-mockup { max-width: 100% !important; width: 100% !important; }
  .uc-dash-stats { flex-direction: column; gap: 6px; }
  .uc-store-grid { flex-wrap: wrap; gap: 10px; padding: 10px; }
  .uc-store-product {
    flex: 1 1 calc(50% - 5px); min-width: 0;
  }
  .uc-sp-img { height: 52px; }
  .uc-sp-name { font-size: 0.58rem; }
  .uc-sp-price { font-size: 0.58rem; }
  .uc-sp-stars { font-size: 0.42rem; }
  .uc-sp-cart-btn { font-size: 0.45rem; padding: 2px 0; }
  .uc-dash-kpis { gap: 5px; }
  .uc-kpi { padding: 6px 8px; }
  .uc-booking-slots { gap: 4px; }
  .uc-bcal-dates span { width: 28px; height: 24px; font-size: 0.55rem; }
  .uc-store-cart-bar { font-size: 0.55rem; padding: 6px 10px; }
  .uc-bday { width: 28px; font-size: 0.4rem; }
  .uc-food-img { width: 40px; height: 40px; }
  .uc-food-emoji { font-size: 1rem; }
  .uc-wa-bubble { font-size: 0.52rem; }
  .uc-dthead, .uc-dtrow { grid-template-columns: 1.5fr 1fr 0.5fr 0.7fr; font-size: 0.48rem; padding: 5px 8px; }
}

/* ── 25. Command palette — full-width on mobile ── */
@media (max-width: 600px) {
  .cmd-modal {
    width: calc(100% - 2rem);
    margin: 0 1rem;
  }
}

/* ── 26. AI Dev grid — 1-col on small phones ── */
@media (max-width: 480px) {
  .ai-dev-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
}

/* ── 27. Sol grid on tablet — consistent 2-col ── */
@media (max-width: 900px) {
  .sol-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 28. Sol grid on phone — 1-col ── */
@media (max-width: 500px) {
  .sol-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 29. Section dots — hide on mobile ── */
@media (max-width: 900px) {
  #section-dots {
    display: none;
  }
  #scroll-progress {
    height: 1.5px;
  }
}

/* ── 30. General form input iOS zoom fix ── */
@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }

/* ─── ADV-DEMOS Responsive ─── */
@media (max-width: 900px) {
  .arena-results, .plab-layout, .apitester-layout, .codegen-layout {
    grid-template-columns: 1fr;
  }
  .arena-model-row { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .plab-sliders { flex-direction: column; }
  .apitester-method-row { flex-direction: column; }
}
}

/* ═══ WHATSAPP DEMO ═══════════════════════════════════════════ */
.wademo-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.wademo-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: #25D366;
  font-size: 1rem;
}
.wademo-sub {
  color: var(--muted);
  font-size: .88rem;
  margin: 0;
  line-height: 1.5;
}
.wademo-form { display: flex; flex-direction: column; gap: .9rem; }
.wademo-field label {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wademo-phone-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 .75rem;
  transition: border-color .2s;
}
.wademo-phone-row:focus-within { border-color: #25D366; }
.wademo-flag {
  font-size: .88rem;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  padding-right: .75rem;
  padding-top: .65rem;
  padding-bottom: .65rem;
}
.wademo-phone-row input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: .95rem;
  padding: .65rem 0;
  width: 100%;
  font-family: inherit;
}
.wademo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem;
}
.wademo-preset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.wademo-preset:hover,
.wademo-preset.active {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37,211,102,.08);
}
.wademo-box textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  font-size: .9rem;
  padding: .65rem .75rem;
  resize: none;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.wademo-box textarea:focus { border-color: #25D366; }
.wademo-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #25D366;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s, transform .15s;
  width: 100%;
}
.wademo-send-btn:hover    { opacity: .88; transform: translateY(-1px); }
.wademo-send-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.wademo-result,
.wademo-error {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  padding: .65rem .9rem;
  border-radius: 8px;
}
.wademo-result {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.3);
  color: #22c55e;
}
.wademo-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.3);
  color: #ef4444;
}
.wademo-note {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .73rem;
  color: var(--muted);
  margin: 0;
  opacity: .7;
}

/* ═══ DEMO CURSOR TOUR (Premium) ═══ */

/* Intro splash — smooth blend in/out */
.tour-splash {
  position: fixed; inset: 0; z-index: 10002;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.3rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  animation: tourSplashIn 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
}
.tour-splash-out {
  animation: tourSplashOut 0.8s cubic-bezier(0.16,1,0.3,1) forwards !important;
}
@keyframes tourSplashIn {
  0%   { opacity: 0; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
  100% { opacity: 1; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
@keyframes tourSplashOut {
  0%   { opacity: 1; }
  100% { opacity: 0; transform: scale(1.03); }
}
.tour-splash-text {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--white); letter-spacing: -0.03em; line-height: 1.1;
  opacity: 0;
  animation: tourWordIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.25s forwards;
}
.tour-splash-sub {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--cyan); letter-spacing: -0.03em; line-height: 1.1;
  opacity: 0;
  animation: tourWordIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
}
@keyframes tourWordIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.97); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Full-page blur overlay */
.tour-page-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  animation: tourFadeIn 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}
.tour-page-overlay.out {
  animation: tourFadeOut 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes tourFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes tourFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Demo section lifts above overlay */
.tour-section-lifted {
  position: relative; z-index: 101;
  background: var(--black-2) !important;
}

/* Cursor — all motion handled by JS transform3d, CSS only handles opacity & effects */
.tour-cursor {
  position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none;
  will-change: transform; transform: translate3d(0,0,0);
  opacity: 0;
  filter: drop-shadow(0 2px 10px rgba(0,229,255,0.5));
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1);
}
.tour-cursor-click svg {
  animation: cursorPress 0.25s cubic-bezier(0.22,1,0.36,1);
}
@keyframes cursorPress {
  0%   { transform: scale(1);    }
  45%  { transform: scale(0.68); }
  100% { transform: scale(1);    }
}

/* Click ripple — double ring effect */
.tour-ripple {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(0,229,255,0.5);
  box-shadow: 0 0 12px rgba(0,229,255,0.2);
  will-change: transform, opacity;
  animation: rippleExpand 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes rippleExpand {
  0%   { transform: translate(-50%,-50%) scale(0.2); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2.8);  opacity: 0; }
}

/* Tab glow on click */
.tour-tab-glow {
  box-shadow: 0 0 16px rgba(0,229,255,0.3), inset 0 0 8px rgba(0,229,255,0.08) !important;
  border-color: rgba(0,229,255,0.4) !important;
  transition: box-shadow 0.3s, border-color 0.3s !important;
}

/* Tooltip */
.tour-tooltip {
  position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none;
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.06em;
  color: #00e5ff; background: rgba(0,8,12,0.92);
  border: 1px solid rgba(0,229,255,0.2); padding: 5px 12px;
  border-radius: 8px; white-space: nowrap;
  will-change: transform; transform: translate3d(0,0,0);
  opacity: 0; transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════════════
   PORTFOLIO PAGE
   ═══════════════════════════════════════════════════ */

.pf-page { background: var(--black); }

/* Back link in nav */
.pf-back-link {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-size: 0.78rem; color: var(--white-60);
  text-decoration: none; transition: color 0.2s;
}
.pf-back-link:hover { color: var(--cyan); }

/* Hero */
.pf-hero {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.pf-hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.08;
  color: var(--white); margin: 0.8rem 0 0;
}
.pf-hero-title em {
  font-style: normal; color: var(--cyan);
}
.pf-hero-sub {
  font-family: var(--font-body); font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--white-60); margin-top: 1rem; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* Section tag (reuse) */
.pf-hero .section-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  color: var(--cyan); text-transform: uppercase;
}

/* Portfolio section */
.pf-section { padding-top: 0; }

/* Filter pills */
.pf-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.pf-filter {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 7px 16px; border-radius: var(--r-full);
  border: 1px solid var(--border-v); background: transparent; color: var(--white-60);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.pf-filter:hover { color: var(--white); border-color: var(--white-20); }
.pf-filter.active {
  background: var(--cyan); color: var(--black); border-color: var(--cyan);
  font-weight: 500;
}

/* Project grid */
.pf-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
}

/* Project card */
.pf-card {
  position: relative; overflow: hidden;
  background: var(--black-3); padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  min-height: 200px;
}
.pf-card .card-spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  transition: opacity 0.3s; opacity: 0;
}
.pf-card:hover .card-spotlight { opacity: 1; }
.pf-card:hover {
  background: var(--black-4);
  box-shadow: 0 0 0 1px rgba(0,229,255,0.12) inset, 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* Card hidden (filter animation) */
.pf-card-hidden { opacity: 0; transform: scale(0.95); }

/* Card inner elements */
.pf-card-cat {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.2); padding: 3px 10px;
  border-radius: var(--r-full); width: fit-content;
  position: relative; z-index: 1;
}
.pf-card-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem); color: var(--white);
  margin: 0; line-height: 1.2;
  position: relative; z-index: 1;
}
.pf-card-desc {
  font-family: var(--font-body); font-size: 0.82rem;
  color: var(--white-40); line-height: 1.55; margin: 0;
  position: relative; z-index: 1; flex: 1;
}
.pf-card-link {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em;
  color: var(--white-40); display: flex; align-items: center; gap: 0.3rem;
  transition: color 0.2s;
  position: relative; z-index: 1; margin-top: auto;
}
.pf-card:hover .pf-card-link { color: var(--cyan); }

/* Responsive */
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
  .pf-back-link span { display: none; }
}

/* ═══════════════════════════════════════════════════
   ADMIN DASHBOARD — Premium Overhaul
   ═══════════════════════════════════════════════════ */

.adm-page { background: #060a10; min-height: 100vh; }

/* ── Login ──────────────────────────────────────────── */
.adm-login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 1.5rem; position: relative; overflow: hidden;
}
.adm-login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,229,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 20% 100%, rgba(0,229,255,0.03) 0%, transparent 50%);
}
.adm-login-card {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(12,18,30,0.95), rgba(8,12,22,0.98));
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 20px; padding: clamp(2.5rem, 6vw, 3.5rem);
  max-width: 400px; width: 100%; text-align: center;
  box-shadow: 0 4px 60px rgba(0,0,0,0.5), 0 0 80px rgba(0,229,255,0.03);
  backdrop-filter: blur(20px);
}
.adm-login-icon { margin-bottom: 1.2rem; }
.adm-login-title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900;
  color: var(--white); margin: 0 0 0.3rem;
}
.adm-login-title span { color: var(--cyan); }
.adm-login-sub {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--white-30);
  margin-bottom: 2rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.adm-input-wrap {
  position: relative; width: 100%;
}
.adm-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--white-20); pointer-events: none;
}
.adm-input {
  width: 100%; padding: 13px 14px 13px 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.4);
  color: var(--white); font-family: var(--font-mono); font-size: 0.82rem;
  outline: none; transition: all 0.3s; box-sizing: border-box;
}
.adm-input:focus {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.06);
}
.adm-input::placeholder { color: var(--white-20); }
.adm-textarea { padding-left: 14px !important; }
.adm-btn-primary {
  width: 100%; margin-top: 1rem; padding: 13px; border: none;
  background: linear-gradient(135deg, #00e5ff, #00b8d4);
  color: #060a10; font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 700; border-radius: 10px;
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.adm-btn-primary:hover {
  background: linear-gradient(135deg, #33eeff, #00e5ff);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,229,255,0.25);
}
.adm-login-error {
  font-family: var(--font-mono); font-size: 0.7rem; color: #ff4466;
  margin-top: 0.8rem; min-height: 1em;
}

/* ── Dashboard ──────────────────────────────────────── */
.adm-dashboard { display: flex; flex-direction: column; height: 100vh; }

/* ── Topbar ─────────────────────────────────────────── */
.adm-topbar {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0 1.2rem; height: 56px; flex-shrink: 0;
  background: rgba(8,12,22,0.95); border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}
.adm-topbar-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}
.adm-topbar-logo strong { color: var(--cyan); }
.adm-topbar-nav {
  display: flex; gap: 4px; margin-left: 1.5rem;
}
.adm-nav-pill {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.04em;
  color: var(--white-30); background: none; border: 1px solid transparent;
  padding: 6px 14px; border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.adm-nav-pill:hover { color: var(--white-60); background: rgba(255,255,255,0.03); }
.adm-nav-pill.active {
  color: var(--cyan); background: rgba(0,229,255,0.06);
  border-color: rgba(0,229,255,0.15);
}
.adm-topbar-right {
  display: flex; align-items: center; gap: 1rem; margin-left: auto;
}
.adm-topbar-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--white-30);
  letter-spacing: 0.05em;
}
.adm-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff4466; flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255,68,102,0.4);
}
.adm-status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
  animation: live-pulse 2s ease-in-out infinite;
}
.adm-btn-ghost {
  color: var(--white-20); background: none; border: 1px solid rgba(255,255,255,0.06);
  padding: 7px; border-radius: 8px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.adm-btn-ghost:hover { color: var(--white-60); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); }

/* AI toggle */
.adm-ai-toggle { display: flex; align-items: center; }
.adm-toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.adm-toggle-text {
  font-family: var(--font-mono); font-size: 0.58rem; color: var(--white-30);
  letter-spacing: 0.06em;
}
.adm-toggle-input { display: none; }
.adm-toggle-slider {
  width: 36px; height: 20px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  position: relative; transition: all 0.3s;
}
.adm-toggle-slider::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white-20); transition: all 0.3s;
}
.adm-toggle-input:checked + .adm-toggle-slider {
  background: rgba(0,229,255,0.15); border-color: rgba(0,229,255,0.3);
}
.adm-toggle-input:checked + .adm-toggle-slider::after {
  left: 19px; background: var(--cyan);
  box-shadow: 0 0 8px rgba(0,229,255,0.4);
}

/* ── Views ──────────────────────────────────────────── */
.adm-view { flex: 1; overflow: hidden; }
.adm-view-inbox { display: flex; flex-direction: column; }

/* ── Main layout ────────────────────────────────────── */
.adm-layout { display: flex; flex: 1; overflow: hidden; }

/* ── Sidebar ────────────────────────────────────────── */
.adm-sidebar {
  width: 340px; flex-shrink: 0; display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.05);
  background: rgba(8,12,22,0.6); overflow: hidden;
}
.adm-sidebar-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.adm-sidebar-tabs { display: flex; gap: 3px; flex: 1; }
.adm-sidebar-tab {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white-25);
  background: none; border: 1px solid transparent;
  padding: 5px 12px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 5px; transition: all 0.2s;
}
.adm-sidebar-tab:hover { color: var(--white-50); }
.adm-sidebar-tab.active {
  color: var(--cyan); background: rgba(0,229,255,0.06);
  border-color: rgba(0,229,255,0.12);
}
.adm-sidebar-count {
  font-family: var(--font-mono); font-size: 0.5rem; color: var(--cyan);
  background: rgba(0,229,255,0.1); padding: 1px 6px; border-radius: 10px;
}
.adm-lead-count { color: #ff9f43; background: rgba(255,159,67,0.1); }
.adm-new-msg-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.15);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; margin-left: auto;
}
.adm-new-msg-btn:hover { background: rgba(0,229,255,0.2); }
.adm-inquiry-list { flex: 1; overflow-y: auto; }
.adm-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem 1.5rem; gap: 0.6rem; text-align: center;
}
.adm-empty-state p {
  font-family: var(--font-body); font-size: 0.85rem; color: var(--white-30); margin: 0;
}
.adm-empty-state span {
  font-family: var(--font-body); font-size: 0.72rem; color: var(--white-15); line-height: 1.6;
}

/* ── Inquiry items ──────────────────────────────────── */
.adm-inq-item {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.8rem 1rem; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all 0.15s;
}
.adm-inq-item:hover { background: rgba(255,255,255,0.02); }
.adm-inq-item.active {
  background: rgba(0,229,255,0.04);
  border-left: 2px solid var(--cyan);
}
.adm-inq-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(0,229,255,0.04));
  border: 1px solid rgba(0,229,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--cyan);
}
.adm-inq-content { flex: 1; min-width: 0; }
.adm-inq-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.adm-inq-row:last-child { margin-top: 3px; }
.adm-inq-name {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  color: var(--white-80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-inq-time {
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--white-15);
  flex-shrink: 0;
}
.adm-inq-preview {
  font-family: var(--font-body); font-size: 0.72rem; color: var(--white-25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.adm-unread-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  flex-shrink: 0; box-shadow: 0 0 6px rgba(0,229,255,0.4);
}
.adm-inq-badge {
  font-family: var(--font-mono); font-size: 0.48rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}
.adm-badge-contact { color: #a78bfa; background: rgba(167,139,250,0.1); }
.adm-badge-demo { color: #ff9f43; background: rgba(255,159,67,0.1); }
.adm-badge-incoming { color: #22c55e; background: rgba(34,197,94,0.1); }
.adm-badge-admin { color: var(--cyan); background: rgba(0,229,255,0.08); }

/* ── Chat area ──────────────────────────────────────── */
.adm-chat {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  background: #060a10;
}
.adm-chat-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.adm-chat-empty-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center;
}
.adm-chat-empty-inner p {
  font-family: var(--font-body); font-size: 0.9rem; color: var(--white-20); margin: 0;
}
.adm-chat-empty-inner span {
  font-family: var(--font-body); font-size: 0.75rem; color: var(--white-10);
}
.adm-chat-head {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(8,12,22,0.8); backdrop-filter: blur(8px);
}
.adm-back-btn {
  display: none; background: none; border: none; color: var(--white-40);
  cursor: pointer; padding: 4px;
}
.adm-chat-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(0,229,255,0.04));
  border: 1px solid rgba(0,229,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--cyan);
}
.adm-chat-head-info { flex: 1; }
.adm-chat-name {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--white); display: block;
}
.adm-chat-phone {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--white-25);
}
.adm-chat-type {
  font-family: var(--font-mono); font-size: 0.5rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 3px 8px; border-radius: 5px;
}

/* ── Messages ───────────────────────────────────────── */
.adm-messages {
  flex: 1; overflow-y: auto; padding: 1.2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.adm-msg {
  max-width: 72%; padding: 0.7rem 0.9rem;
  border-radius: 14px; position: relative;
  word-wrap: break-word; white-space: pre-wrap;
}
.adm-msg-me {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(0,229,255,0.05));
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 14px 14px 4px 14px;
}
.adm-msg-them {
  align-self: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px 14px 14px 4px;
}
.adm-msg-body {
  font-family: var(--font-body); font-size: 0.8rem; color: var(--white-80); line-height: 1.6;
}
.adm-msg-meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  font-family: var(--font-mono); font-size: 0.52rem; color: var(--white-15);
  margin-top: 0.35rem;
}
.adm-ack { display: flex; align-items: center; }
.adm-msg-sender {
  display: block; font-family: var(--font-mono); font-size: 0.52rem;
  font-weight: 600; letter-spacing: 0.04em; margin-bottom: 3px;
}
.adm-sender-you { color: var(--cyan); }
.adm-sender-them { color: var(--white-30); }

/* ── Send bar ───────────────────────────────────────── */
.adm-send-bar {
  display: flex; gap: 0.6rem; padding: 0.8rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(8,12,22,0.8);
}
.adm-send-input {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.4);
  color: var(--white); font-family: var(--font-body); font-size: 0.82rem;
  outline: none; transition: all 0.3s;
}
.adm-send-input:focus {
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.05);
}
.adm-send-btn {
  width: 42px; height: 42px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #00e5ff, #00b8d4);
  color: #060a10; cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.adm-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,229,255,0.3);
}

/* ── Modal ──────────────────────────────────────────── */
.adm-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.adm-modal {
  background: linear-gradient(135deg, rgba(12,18,30,0.98), rgba(8,12,22,0.99));
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 16px; padding: 1.8rem; max-width: 440px; width: 100%;
  box-shadow: 0 8px 60px rgba(0,0,0,0.5);
}
.adm-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.adm-modal-head-left { display: flex; align-items: center; gap: 8px; }
.adm-modal-head span {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--white);
}
.adm-modal-close {
  background: none; border: none; color: var(--white-30);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: all 0.2s;
}
.adm-modal-close:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.adm-modal form { display: flex; flex-direction: column; gap: 0.8rem; }
.adm-textarea {
  resize: vertical; min-height: 90px; font-family: var(--font-body) !important;
  line-height: 1.6; padding-left: 14px !important;
}
.adm-modal-hint {
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--white-15);
  margin-top: 0.8rem;
}

/* ═══════════════════════════════════════════════════
   HEALTH VIEW — Full-page metrics dashboard
   ═══════════════════════════════════════════════════ */
.adm-view-health {
  overflow-y: auto; padding: 1.5rem 2rem;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(0,229,255,0.03) 0%, transparent 60%),
    #060a10;
}

/* Status banner */
.adm-health-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; border-radius: 14px; margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}
.adm-hb-online {
  border-color: rgba(34,197,94,0.15);
  background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(34,197,94,0.02));
}
.adm-hb-offline {
  border-color: rgba(255,68,102,0.15);
  background: linear-gradient(135deg, rgba(255,68,102,0.06), rgba(255,68,102,0.02));
}
.adm-health-banner-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.adm-health-banner-dot.online {
  background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,0.5);
  animation: live-pulse 2s ease-in-out infinite;
}
.adm-health-banner-dot.offline {
  background: #ff4466; box-shadow: 0 0 10px rgba(255,68,102,0.5);
}
.adm-health-banner-info { flex: 1; }
.adm-health-banner-title {
  display: block; font-family: var(--font-body); font-size: 0.9rem;
  font-weight: 600; color: var(--white);
}
.adm-health-banner-sub {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--white-30); margin-top: 2px;
}
.adm-health-banner-uptime {
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
  color: var(--cyan); background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.1); padding: 6px 14px;
  border-radius: 8px; white-space: nowrap;
}

/* Metrics grid */
.adm-health-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 1.5rem;
}
.adm-hcard {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.2rem; border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.adm-hcard:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.adm-hcard-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.adm-hcard-cyan { background: rgba(0,229,255,0.08); color: #00e5ff; }
.adm-hcard-green { background: rgba(34,197,94,0.08); color: #22c55e; }
.adm-hcard-purple { background: rgba(167,139,250,0.08); color: #a78bfa; }
.adm-hcard-orange { background: rgba(255,159,67,0.08); color: #ff9f43; }
.adm-hcard-red { background: rgba(255,68,102,0.08); color: #ff4466; }
.adm-hcard-data { min-width: 0; }
.adm-hcard-value {
  display: block; font-family: var(--font-mono); font-size: 1.3rem;
  font-weight: 700; color: var(--white); line-height: 1.2;
}
.adm-hcard-label {
  display: block; font-family: var(--font-mono); font-size: 0.55rem;
  color: var(--white-25); letter-spacing: 0.05em; margin-top: 2px;
}

/* Log sections */
.adm-health-logs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 1.5rem;
}
.adm-hlog-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px; overflow: hidden;
}
.adm-hlog-head {
  display: flex; align-items: center; gap: 8px;
  padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em;
  color: var(--white-40); text-transform: uppercase;
}
.adm-hlog-list {
  max-height: 220px; overflow-y: auto; padding: 0.3rem 0;
}
.adm-hlog-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 1rem; transition: background 0.1s;
}
.adm-hlog-row:hover { background: rgba(255,255,255,0.02); }
.adm-hlog-time {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--white-25);
}
.adm-hlog-status {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
}
.adm-hlog-row.ok .adm-hlog-status { color: #22c55e; }
.adm-hlog-row.fail .adm-hlog-status { color: #ff4466; }
.adm-hlog-route {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--cyan);
}
.adm-hlog-empty {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--white-15);
  padding: 1.5rem 1rem; text-align: center;
}
.adm-health-footer {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--white-15);
  text-align: center; padding: 0.5rem;
}
.adm-health-footer strong { color: var(--white-30); font-weight: 500; }

/* ── Mobile bottom nav ──────────────────────────────── */
.adm-mobile-nav {
  display: none; /* shown only on mobile */
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,12,22,0.97); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,229,255,0.1);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  gap: 0;
}
.adm-mobile-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--white-25);
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.06em;
  padding: 8px 0; cursor: pointer; transition: color 0.2s;
}
.adm-mobile-nav-btn.active { color: var(--cyan); }
.adm-mobile-nav-btn span { text-transform: uppercase; }

/* ── Mobile responsive ──────────────────────────────── */
@media (max-width: 700px) {
  .adm-topbar-nav { display: none; }
  .adm-mobile-nav { display: flex; }
  .adm-dashboard { padding-bottom: 60px; }
  .adm-topbar { gap: 0.5rem; padding: 0 0.8rem; }
  .adm-sidebar { width: 100%; border-right: none; }
  .adm-sidebar-hidden { display: none; }
  .adm-chat { display: none; }
  .adm-chat-visible { display: flex !important; }
  .adm-back-btn { display: flex; }
  .adm-msg { max-width: 88%; }
  .adm-ai-toggle { order: -1; }
  .adm-toggle-text { display: none; }
  .adm-view-health { padding: 1rem; padding-bottom: 80px; }
  .adm-health-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .adm-health-logs { grid-template-columns: 1fr; }
  .adm-hcard { padding: 0.8rem; }
  .adm-hcard-value { font-size: 1.1rem; }
  .adm-topbar-right { gap: 0.5rem; }
}

/* ═══════════════════════════════════════════════════
   TUTORIAL / GUIDE PAGE — Interactive
   ═══════════════════════════════════════════════════ */

.tut-page {
  background: var(--black); color: var(--white-80);
  font-family: var(--font-body);
}

/* ── Progress Bar ── */
.tut-progress-bar {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: rgba(255,255,255,0.04); z-index: 200;
}
.tut-progress-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, #00e5ff, #66f0ff);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(0,229,255,0.4);
}
.tut-progress-fill.tut-progress-complete {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 12px rgba(34,197,94,0.5);
}


/* ── Scroll Animations ── */
.tut-anim {
  opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease;
}
.tut-anim[data-anim="fade-up"] { transform: translateY(30px); }
.tut-anim[data-anim="fade-left"] { transform: translateX(-30px); }
.tut-anim[data-anim="fade-right"] { transform: translateX(30px); }
.tut-anim[data-anim="scale-in"] { transform: scale(0.92); }
.tut-anim[data-anim="slide-right"] { transform: translateX(-20px); }
.tut-anim[data-anim="shake"] { transform: translateX(-5px); }
.tut-anim.tut-visible {
  opacity: 1; transform: none;
}

/* ── Scroll Hint ── */
.tut-scroll-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 2rem; color: var(--white-15);
  font-family: var(--font-mono); font-size: 0.6rem;
  animation: tut-bounce 2s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes tut-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Nav */
.tut-nav {
  position: sticky; top: 3px; z-index: 100;
  background: rgba(6,10,16,0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tut-nav-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1.5rem;
}
.tut-nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}
.tut-nav-logo strong { color: var(--cyan); }
.tut-nav-badge {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.12);
  padding: 4px 10px; border-radius: 6px;
}
.tut-nav-back {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--white-30);
  text-decoration: none; transition: color 0.2s;
}
.tut-nav-back:hover { color: var(--white-60); }

/* Container */
.tut-container { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero */
.tut-hero {
  padding: 5rem 0 3rem; text-align: center;
  background:
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(0,229,255,0.05) 0%, transparent 60%);
}
.tut-hero-tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--cyan); margin-bottom: 1.2rem;
}
.tut-hero-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: var(--white); line-height: 1.15; margin: 0 0 1rem;
}
.tut-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), #66f0ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tut-hero-sub {
  font-size: 1rem; color: var(--white-40); max-width: 520px;
  margin: 0 auto 1.5rem; line-height: 1.7;
}
.tut-hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--white-20);
  flex-wrap: wrap;
}
.tut-dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--white-15);
}

/* ── Table of Contents with checkmarks ── */
.tut-toc { padding: 0 0 3rem; }
.tut-toc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.tut-toc-item {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  text-decoration: none; transition: all 0.3s;
}
.tut-toc-item:hover {
  background: rgba(0,229,255,0.04); border-color: rgba(0,229,255,0.12);
}
.tut-toc-num {
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--cyan); opacity: 0.5;
}
.tut-toc-label {
  font-family: var(--font-body); font-size: 0.78rem; color: var(--white-60);
  font-weight: 500;
}
.tut-toc-check {
  position: absolute; top: 6px; right: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s;
}
.tut-toc-check.checked {
  background: #22c55e; border-color: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.4);
}
.tut-toc-check.checked::after {
  content: '';
  display: block; width: 5px; height: 8px;
  margin: 1px auto 0;
  border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Content area */
.tut-content { padding-bottom: 4rem; }

/* Section */
.tut-section {
  padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.04);
}
.tut-section-num {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--cyan); opacity: 0.4;
  margin-bottom: 0.6rem;
}
.tut-section-title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800; color: var(--white); margin: 0 0 0.7rem;
}
.tut-section-desc {
  font-size: 0.9rem; color: var(--white-40); line-height: 1.7;
  max-width: 620px; margin-bottom: 2rem;
}
.tut-section-desc strong { color: var(--white-60); }

/* ── Expandable Cards ── */
.tut-card {
  display: flex; flex-direction: column;
  border-radius: 12px; margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.tut-card-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem; cursor: pointer; transition: background 0.2s;
}
.tut-card-header:hover { background: rgba(255,255,255,0.015); }
.tut-card-header h4 {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--white); margin: 0; flex: 1;
}
.tut-card-toggle {
  transition: transform 0.3s; color: var(--white-20); flex-shrink: 0;
}
.tut-card-expandable .tut-card-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  padding: 0 1.4rem;
}
.tut-card-expandable.expanded .tut-card-body {
  max-height: 500px; padding: 0 1.4rem 1.2rem;
}
.tut-card-expandable.expanded .tut-card-toggle {
  transform: rotate(180deg); color: var(--cyan);
}
.tut-card p, .tut-card-body p {
  font-size: 0.8rem; color: var(--white-40); line-height: 1.65; margin: 0 0 0.6rem;
}
.tut-card-body p:last-child { margin-bottom: 0; }
.tut-card-highlight {
  background: rgba(0,229,255,0.03); border-color: rgba(0,229,255,0.1);
}
.tut-card-warn {
  background: rgba(255,159,67,0.04); border-color: rgba(255,159,67,0.12);
}
.tut-card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,229,255,0.08); color: #00e5ff;
}
.tut-icon-green { background: rgba(34,197,94,0.08); color: #22c55e; }
.tut-icon-purple { background: rgba(167,139,250,0.08); color: #a78bfa; }
.tut-icon-orange { background: rgba(255,159,67,0.08); color: #ff9f43; }

/* ── Mode Compare (Section 01) ── */
.tut-mode-compare {
  display: flex; align-items: center; gap: 12px; margin: 0.8rem 0;
}
.tut-mode-box {
  flex: 1; padding: 12px; border-radius: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
}
.tut-mode-box p { font-size: 0.72rem; margin: 0; }
.tut-mode-label {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  margin-bottom: 6px;
}
.tut-mode-simple .tut-mode-label { color: #00e5ff; }
.tut-mode-dev .tut-mode-label { color: #a78bfa; }
.tut-mode-vs {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  color: var(--white-15); flex-shrink: 0;
}
.tut-card-note {
  font-size: 0.75rem !important; color: var(--white-30) !important;
  padding-top: 4px;
}
.tut-card-warn-inline {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 6px;
  background: rgba(255,159,67,0.06); border: 1px solid rgba(255,159,67,0.1);
  color: #ff9f43; font-size: 0.75rem; margin-top: 0.5rem;
}
.tut-card-warn-inline span { color: var(--white-40); }
.tut-card-warn-inline strong { color: #ff9f43; }

/* ── "Try it" Buttons ── */
.tut-try-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 1rem; padding: 10px 20px; border-radius: 8px;
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.15);
  color: #00e5ff; font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 600; text-decoration: none;
  transition: all 0.3s;
}
.tut-try-btn:hover {
  background: rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.3);
  transform: translateX(4px);
  box-shadow: 0 0 16px rgba(0,229,255,0.1);
}

/* ── Navbar Breakdown (Section 02) ── */
.tut-nav-breakdown {
  margin-bottom: 1.8rem;
}
.tut-nav-breakdown-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-radius: 10px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08);
}
.tut-nbb-left { display: flex; align-items: center; }
.tut-nbb-right { display: flex; align-items: center; gap: 8px; }
.tut-nbb-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--white-40);
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.25s;
}
.tut-nbb-item:hover {
  background: rgba(0,229,255,0.06); color: var(--white-60);
}
.tut-nbb-item.active {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.25);
  color: #00e5ff;
}
.tut-nbb-icon {
  font-family: var(--font-display); font-weight: 900; font-size: 0.85rem;
  color: var(--white-60);
}
.tut-nbb-item.active .tut-nbb-icon { color: #00e5ff; }
.tut-nbb-dot-green {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; display: inline-block;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}
.tut-nbb-cta {
  background: rgba(0,229,255,0.06) !important;
  border: 1px solid rgba(0,229,255,0.12) !important;
  color: #00e5ff !important; font-weight: 600;
}
.tut-nbb-cta.active {
  background: rgba(0,229,255,0.15) !important;
  border-color: rgba(0,229,255,0.35) !important;
}
.tut-nbb-kbd {
  width: 20px; height: 20px; border-radius: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: var(--white-30);
}
.tut-nbb-item.active .tut-nbb-kbd {
  background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.25);
  color: #00e5ff;
}
.tut-nav-info-box {
  margin-top: 8px; padding: 14px 18px; border-radius: 10px;
  background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.1);
  font-size: 0.78rem; color: var(--white-40); line-height: 1.6;
  opacity: 0.5; transition: all 0.3s;
}
.tut-nav-info-box.visible {
  opacity: 1; background: rgba(0,229,255,0.06); border-color: rgba(0,229,255,0.18);
}
.tut-nav-info-box strong { color: #00e5ff; }
.tut-nav-info-arrow { display: none; }

/* ── Expandable Demo Items (Section 03) ── */
.tut-demo-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 1.5rem;
}
.tut-demo-item {
  display: flex; gap: 12px; padding: 0.9rem 1.1rem;
  border-radius: 10px; background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.03);
  transition: all 0.3s; cursor: pointer;
}
.tut-demo-item:hover { background: rgba(255,255,255,0.03); }
.tut-demo-item h4 {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: var(--white); margin: 0; display: flex; align-items: center; gap: 6px;
}
.tut-demo-main { flex: 1; }
.tut-demo-expand-icon {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--white-20);
  transition: transform 0.3s, color 0.3s; display: inline-block;
}
.tut-demo-expandable.expanded .tut-demo-expand-icon {
  transform: rotate(45deg); color: var(--cyan);
}
.tut-demo-detail {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, margin 0.35s;
  margin-top: 0;
}
.tut-demo-expandable.expanded .tut-demo-detail {
  max-height: 200px; margin-top: 0.5rem;
}
.tut-demo-detail p {
  font-size: 0.75rem; color: var(--white-35); line-height: 1.55; margin: 0 0 0.5rem;
}
.tut-demo-try {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.65rem; color: #00e5ff;
  text-decoration: none; padding: 4px 10px; border-radius: 5px;
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.12);
  transition: all 0.2s;
}
.tut-demo-try:hover {
  background: rgba(0,229,255,0.12); transform: translateX(2px);
}
.tut-demo-icon {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.1);
  color: var(--cyan); font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tut-demo-icon-live { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); color: #22c55e; }
.tut-demo-item-special { background: rgba(34,197,94,0.03); border-color: rgba(34,197,94,0.08); }
.tut-live-badge {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.08em;
  color: #22c55e; background: rgba(34,197,94,0.1);
  padding: 2px 6px; border-radius: 4px; margin-left: 2px;
  vertical-align: middle;
}

/* ── Flow / Timeline (Section 04) ── */
.tut-flow {
  position: relative; padding-left: 28px; margin-bottom: 1.5rem;
}
.tut-flow::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 1px; background: rgba(0,229,255,0.1);
}
.tut-flow-item { position: relative; padding-bottom: 1.5rem; }
.tut-flow-item:last-child { padding-bottom: 0; }
.tut-flow-dot {
  position: absolute; left: -24px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(0,229,255,0.3); border: 1px solid rgba(0,229,255,0.5);
  transition: all 0.4s;
}
.tut-flow-item.tut-visible .tut-flow-dot {
  background: #00e5ff; box-shadow: 0 0 8px rgba(0,229,255,0.5);
}
.tut-flow-content h4 {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--white); margin: 0 0 0.3rem;
}
.tut-flow-content p {
  font-size: 0.78rem; color: var(--white-35); line-height: 1.6; margin: 0;
}

/* ── Interactive Form Mock (Section 05) ── */
.tut-form-mock {
  border-radius: 12px; padding: 1.2rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
  display: flex; flex-direction: column; gap: 8px;
}
.tut-form-field {
  padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; transition: all 0.3s;
}
.tut-form-field:hover {
  border-color: rgba(0,229,255,0.15); background: rgba(0,229,255,0.02);
}
.tut-form-field.active {
  border-color: rgba(0,229,255,0.3); background: rgba(0,229,255,0.04);
  box-shadow: 0 0 0 2px rgba(0,229,255,0.08);
}
.tut-form-field-label {
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--white-30);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.tut-form-field-input {
  font-size: 0.8rem; color: var(--white-50);
}
.tut-form-field-tall .tut-form-field-input {
  min-height: 40px;
}
.tut-form-info {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(0,229,255,0.04); border: 1px solid rgba(0,229,255,0.08);
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--white-30);
  transition: all 0.3s;
}
.tut-form-info.active { color: #00e5ff; border-color: rgba(0,229,255,0.2); }

/* ── Submit Flow (Section 05 card) ── */
.tut-submit-flow {
  display: flex; align-items: center; gap: 8px; margin: 0.6rem 0;
  flex-wrap: wrap;
}
.tut-submit-step {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.7rem; color: var(--white-40);
}
.tut-submit-num {
  width: 18px; height: 18px; border-radius: 5px;
  background: rgba(0,229,255,0.1); color: var(--cyan);
  font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tut-submit-arrow { color: var(--white-10); font-size: 0.8rem; }

/* ── Interactive Steps (Section 06) ── */
.tut-steps-interactive {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 1.5rem;
}
.tut-istep {
  display: flex; align-items: center; gap: 14px;
  padding: 1rem 1.2rem; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s;
}
.tut-istep:hover {
  background: rgba(0,229,255,0.02); border-color: rgba(0,229,255,0.1);
}
.tut-istep-num {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(0,229,255,0.05));
  border: 1px solid rgba(0,229,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.tut-istep-num span {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--cyan);
}
.tut-istep-content { flex: 1; }
.tut-istep-content h4 {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: var(--white); margin: 0 0 0.15rem;
}
.tut-istep-content p {
  font-size: 0.72rem; color: var(--white-30); margin: 0;
}
.tut-istep-visual {
  flex-shrink: 0;
}
.tut-mini-tabs {
  display: flex; gap: 3px;
}
.tut-mini-tabs span {
  width: 18px; height: 18px; border-radius: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono); font-size: 0.5rem; color: var(--white-20);
  display: flex; align-items: center; justify-content: center;
}
.tut-mini-tabs span.active {
  background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}
.tut-mini-input {
  padding: 4px 10px; border-radius: 5px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--white-30);
  white-space: nowrap;
}
.tut-mini-typing {
  border-color: rgba(0,229,255,0.2);
}
.tut-mini-btn {
  padding: 4px 14px; border-radius: 5px;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.1));
  border: 1px solid rgba(34,197,94,0.2);
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  color: #22c55e; text-align: center;
}

/* ── Floating Element Cards (Section 07) ── */
.tut-float-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 1.5rem;
}
.tut-float-card {
  padding: 1rem; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s;
}
.tut-float-card:hover {
  border-color: rgba(0,229,255,0.12); transform: translateY(-2px);
}
.tut-float-card h4 {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: var(--white); margin: 0.8rem 0 0.3rem;
}
.tut-float-card p {
  font-size: 0.72rem; color: var(--white-30); line-height: 1.55; margin: 0;
}
.tut-float-preview {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 12px; border-radius: 8px;
  background: rgba(0,0,0,0.3);
}
.tut-float-mock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  white-space: nowrap;
}
.tut-fmp-spots {
  background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.12); color: var(--white-60);
}
.tut-fmp-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #22c55e;
  display: inline-block;
}
.tut-fmp-book {
  color: #00e5ff; margin-left: 4px;
}
.tut-fmp-work {
  background: rgba(167,139,250,0.06); border: 1px solid rgba(167,139,250,0.15);
  color: #a78bfa;
}
.tut-fmp-mode {
  background: rgba(255,159,67,0.06); border: 1px solid rgba(255,159,67,0.12);
  color: #ff9f43;
}
.tut-float-mock-dots {
  display: flex; flex-direction: column; gap: 6px;
}
.tut-float-mock-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.tut-float-mock-dots span.active {
  background: #00e5ff; box-shadow: 0 0 6px rgba(0,229,255,0.5);
}

/* ── Keyboard Demo (Section 08) ── */
.tut-kbd-demo {
  padding: 1.5rem; border-radius: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  text-align: center; margin-bottom: 1.5rem;
}
.tut-kbd-keys {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 1rem;
}
.tut-kbd-key {
  padding: 8px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  color: var(--white-60);
  box-shadow: 0 2px 0 rgba(255,255,255,0.05);
  transition: all 0.15s;
}
.tut-kbd-key.pressed {
  background: rgba(0,229,255,0.15); border-color: rgba(0,229,255,0.3);
  color: #00e5ff; transform: translateY(2px);
  box-shadow: none;
}
.tut-kbd-plus { color: var(--white-15); font-weight: 700; }
.tut-kbd-desc {
  font-size: 0.78rem; color: var(--white-35); line-height: 1.6;
  margin: 0 0 1rem; max-width: 400px; margin-left: auto; margin-right: auto;
}
.tut-kbd-desc strong { color: var(--white-60); }
.tut-kbd-try {
  padding: 8px 18px; border-radius: 7px; border: 1px solid rgba(0,229,255,0.15);
  background: rgba(0,229,255,0.06); color: #00e5ff;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.tut-kbd-try:hover {
  background: rgba(0,229,255,0.12); border-color: rgba(0,229,255,0.3);
}
.tut-kbd-result {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, margin 0.4s;
  margin-top: 0;
}
.tut-kbd-result.visible {
  max-height: 200px; margin-top: 1rem;
}
.tut-kbd-palette {
  border-radius: 10px; overflow: hidden;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08);
  max-width: 320px; margin: 0 auto; text-align: left;
}
.tut-kbd-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--white-20); font-size: 0.75rem;
}
.tut-kbd-options { padding: 4px; }
.tut-kbd-opt {
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.72rem; color: var(--white-40);
  transition: background 0.15s;
}
.tut-kbd-opt.active {
  background: rgba(0,229,255,0.06); color: #00e5ff;
}

/* ── CTA Confetti ── */
.tut-cta {
  position: relative;
  text-align: center; padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.tut-cta-badge {
  display: inline-block; margin-bottom: 0.8rem;
  padding: 4px 14px; border-radius: 20px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.15);
  font-family: var(--font-mono); font-size: 0.6rem; color: #22c55e;
  letter-spacing: 0.05em;
}
.tut-cta h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--white); margin: 0 0 0.5rem;
}
.tut-cta p {
  font-size: 0.85rem; color: var(--white-35); margin: 0 0 1.5rem;
}
.tut-cta-btns { display: flex; gap: 10px; justify-content: center; }
.tut-cta-primary {
  padding: 12px 28px; border-radius: 10px;
  background: linear-gradient(135deg, #00e5ff, #00b8d4);
  color: #000; font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 700; text-decoration: none; transition: all 0.3s;
}
.tut-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,229,255,0.25);
}
.tut-cta-secondary {
  padding: 12px 28px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-60); font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.tut-cta-secondary:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.tut-cta-confetti {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; pointer-events: none;
}
.tut-confetti-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 2px;
  background: hsl(var(--hue), 80%, 60%);
  animation: tut-confetti-fly 1.2s ease-out forwards;
  animation-delay: var(--delay);
  opacity: 0;
}
@keyframes tut-confetti-fly {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

/* Footer */
.tut-footer {
  text-align: center; padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.tut-footer p {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--white-15);
  margin: 0;
}

/* ── Tutorial Mobile ────────────────────────────────── */
@media (max-width: 700px) {
  .tut-hero { padding: 3.5rem 0 2rem; }
  .tut-toc-grid { grid-template-columns: repeat(2, 1fr); }
  .tut-mock-hero { height: 160px; }
  .tut-nav-breakdown-bar { flex-wrap: wrap; gap: 6px; }
  .tut-nbb-right { flex-wrap: wrap; }
  .tut-section { padding: 2rem 0; }
  .tut-cta-btns { flex-direction: column; align-items: center; }
  .tut-cta-primary, .tut-cta-secondary { width: 100%; text-align: center; }
  .tut-nav-badge { display: none; }
  .tut-float-grid { grid-template-columns: 1fr; }
  .tut-mode-compare { flex-direction: column; }
  .tut-mode-vs { display: none; }
  .tut-istep { flex-wrap: wrap; }
  .tut-istep-visual { width: 100%; }
  .tut-submit-flow { flex-direction: column; align-items: flex-start; }
  .tut-submit-arrow { transform: rotate(90deg); }
  .tut-progress-label { display: none; }
}

/* ═══ GOOGLE REVIEWS ═══ */
.google-reviews-badge {
  text-align: center; margin-top: 2rem; padding: 12px 24px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.8rem; color: var(--white-60);
}
.google-reviews-badge .g-stars { color: #fbbc04; letter-spacing: 1px; }
.testi-card .google-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.6rem; color: var(--white-40); margin-top: 8px;
  padding: 3px 8px; background: rgba(255,255,255,0.04); border-radius: 4px;
}
.testi-card .google-tag img { border-radius: 50%; }
.testi-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.testi-readmore {
  background: none; border: none; color: var(--cyan); font-size: 0.75rem;
  font-family: var(--font-mono); cursor: pointer; padding: 0; margin: 6px 0 10px;
  opacity: 0.8; transition: opacity 0.2s;
}
.testi-readmore:hover { opacity: 1; text-decoration: underline; }