/* ═══════════════════════════════════════════════════════
   HYPRLOGICK — PRODUCTION STYLESHEET (No Framework)
   All layout, components, and animations in one file
   ═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg-base:       #09090b;
  --bg-surface:    #111116;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --cyan:          #00f0ff;
  --purple:        #8b5cf6;
  --emerald:       #10b981;
  --text-primary:  #f4f4f5;
  --text-muted:    #71717a;
  --text-subtle:   #3f3f46;
  --border:        rgba(255,255,255,0.07);
  --radius:        12px;
  --radius-lg:     20px;
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --container:     1280px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg-surface);
}
html::-webkit-scrollbar { width: 5px; }
html::-webkit-scrollbar-track { background: var(--bg-base); }
html::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 4px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Grid Overlay ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 2rem; position: relative; z-index: 2; }
.z-layer { position: relative; z-index: 2; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.15; }
h3 { font-size: 1.2rem; font-weight: 700; }
.mono { font-family: var(--font-mono); }

.text-muted   { color: var(--text-muted); }
.text-subtle  { color: var(--text-subtle); }
.text-cyan    { color: var(--cyan); }
.text-purple  { color: var(--purple); }
.text-emerald { color: var(--emerald); }

.grad-cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, #0099ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #c084fc 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-emerald {
  background: linear-gradient(135deg, var(--emerald) 0%, #34d399 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-hero {
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Section Header ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0.75rem auto 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 1rem;
}

/* ── Glass Card ─────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.card.glow-cyan:hover   { border-color: rgba(0,240,255,0.4);   box-shadow: 0 0 30px rgba(0,240,255,0.12), 0 20px 60px rgba(0,0,0,0.4); }
.card.glow-purple:hover { border-color: rgba(139,92,246,0.4);  box-shadow: 0 0 30px rgba(139,92,246,0.12), 0 20px 60px rgba(0,0,0,0.4); }
.card.glow-emerald:hover{ border-color: rgba(16,185,129,0.4);  box-shadow: 0 0 30px rgba(16,185,129,0.12), 0 20px 60px rgba(0,0,0,0.4); }

/* Animated gradient border on hover */
.card.glow-border { position: relative; }
.card.glow-border::after {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--emerald), var(--cyan));
  background-size: 300% 300%;
  animation: border-spin 4s linear infinite;
  z-index: -1; opacity: 0; transition: opacity 0.3s;
}
.card.glow-border:hover::after { opacity: 0.45; }
@keyframes border-spin {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
  transition: all 0.25s ease; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0099ff);
  color: #09090b;
  box-shadow: 0 0 20px rgba(0,240,255,0.3), 0 4px 15px rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(0,240,255,0.5), 0 8px 25px rgba(0,0,0,0.4); }
.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); font-weight: 600;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 1rem 2rem;
  transition: all 0.35s ease;
}
#navbar.scrolled {
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #0099ff);
  display: flex; align-items: center; justify-content: center;
  color: #09090b; font-weight: 700; font-size: 0.8rem; font-family: var(--font-mono);
  box-shadow: 0 0 15px rgba(0,240,255,0.3);
  transition: box-shadow 0.3s;
}
.nav-logo:hover .nav-logo-icon { box-shadow: 0 0 25px rgba(0,240,255,0.6); }
.nav-logo-text { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  position: relative; transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--cyan);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
#mobileMenuBtn { display: none; color: var(--text-muted); padding: 6px; transition: color 0.2s; }
#mobileMenuBtn:hover { color: var(--text-primary); }

#mobileMenu {
  display: none; padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
#mobileMenu.open { display: block; }
.mobile-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.mobile-link:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 7rem 2rem 4rem;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 600px; background: rgba(0,240,255,0.08); top: -200px; left: -100px; }
.hero-glow-2 { width: 500px; height: 500px; background: rgba(139,92,246,0.08); bottom: -150px; right: -100px; }

#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-copy { }
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-copy .lead { color: rgba(244,244,245,0.5); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.proof-item { display: flex; align-items: center; gap: 8px; color: rgba(244,244,245,0.3); font-size: 0.85rem; }
.proof-item i { color: var(--emerald); font-size: 0.75rem; }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-card { padding: 1.25rem; width: 100%; max-width: 340px; }
.hero-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px rgba(16,185,129,0.5); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.hero-card-log { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(244,244,245,0.3); line-height: 1.6; }
.hero-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; }
.hero-stat-val { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }
.hero-stat-lbl { font-size: 0.65rem; color: rgba(244,244,245,0.3); margin-top: 2px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(244,244,245,0.2); font-size: 0.75rem; font-family: var(--font-mono);
  animation: bounce 2s ease-in-out infinite; z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(6px);} }

/* ── Stats Bar ───────────────────────────────────────────── */
#stats {
  position: relative; z-index: 2;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-mono); font-weight: 900; font-size: 2.4rem; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { color: var(--text-muted); font-size: 0.875rem; }

/* ── Services ────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card { padding: 2rem; }
.service-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; }
.service-card .card-num { font-family: var(--font-mono); font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.05); line-height: 1; user-select: none; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: rgba(244,244,245,0.5); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.25rem; }
.service-card-footer { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.06); opacity: 0; transition: opacity 0.3s; }
.service-card:hover .service-card-footer { opacity: 1; }

/* ── Icon Wrap ───────────────────────────────────────────── */
.icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.icon-wrap.cyan   { background: rgba(0,240,255,0.1);   color: var(--cyan);    border: 1px solid rgba(0,240,255,0.2); }
.icon-wrap.purple { background: rgba(139,92,246,0.1);  color: var(--purple);  border: 1px solid rgba(139,92,246,0.2); }
.icon-wrap.emerald{ background: rgba(16,185,129,0.1);  color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }
.icon-wrap.sm { width: 36px; height: 36px; font-size: 0.85rem; border-radius: 8px; }

/* ── Tags ────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  padding: 3px 10px; border-radius: 4px; letter-spacing: 0.05em;
}
.tag.cyan   { background: rgba(0,240,255,0.1);   color: var(--cyan);    border: 1px solid rgba(0,240,255,0.2); }
.tag.purple { background: rgba(139,92,246,0.1);  color: var(--purple);  border: 1px solid rgba(139,92,246,0.2); }
.tag.emerald{ background: rgba(16,185,129,0.1);  color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }

/* ── Engine / Tabs ───────────────────────────────────────── */
#engine { overflow: hidden; }
#engine .bg-blob {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; border-radius: 50%;
  background: rgba(139,92,246,0.05); filter: blur(140px);
  pointer-events: none;
}
.engine-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 2rem; align-items: start; }
.tab-buttons { display: flex; flex-direction: column; gap: 10px; }
.tab-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 1rem 1.25rem; border-radius: 12px; width: 100%;
  border: 1px solid var(--border); text-align: left;
  color: var(--text-muted); transition: all 0.2s;
}
.tab-btn:hover { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }
.tab-btn.active { border-color: rgba(0,240,255,0.4); background: rgba(0,240,255,0.05); color: var(--text-primary); }
.tab-btn-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); color: rgba(244,244,245,0.3);
  transition: all 0.2s;
}
.tab-btn.active .tab-btn-icon { background: rgba(0,240,255,0.2); color: var(--cyan); }
.tab-btn-meta { }
.tab-phase { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(244,244,245,0.3); margin-bottom: 2px; }
.tab-label { font-weight: 600; font-size: 0.9rem; }
.tab-chevron { margin-left: auto; color: var(--cyan); font-size: 0.75rem; opacity: 0; transition: opacity 0.2s; }
.tab-btn.active .tab-chevron { opacity: 1; }

.tab-panel { display: none; padding: 2rem; min-height: 280px; }
.tab-panel.active { display: block; }
.tab-panel h3 { margin: 1.25rem 0 0.75rem; }
.tab-panel p { color: rgba(244,244,245,0.5); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.25rem; }

/* ── Portfolio ───────────────────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.portfolio-card { cursor: pointer; transition: transform 0.3s; }
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9; background: var(--bg-surface);
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }
.portfolio-play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-play-overlay { opacity: 1; }
.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; padding-left: 3px;
}
.portfolio-badge {
  position: absolute; top: 10px; left: 10px;
}
.portfolio-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  color: white; font-family: var(--font-mono); font-size: 0.7rem;
  padding: 3px 8px; border-radius: 4px;
}
.portfolio-card-body { padding: 0.9rem 1rem; }
.portfolio-card-body h3 { font-size: 0.875rem; color: rgba(244,244,245,0.9); font-weight: 600; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  z-index: 2000; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 860px;
  overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in { from{opacity:0;transform:scale(0.96);} to{opacity:1;transform:scale(1);} }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-title { font-weight: 600; font-size: 0.95rem; }
.modal-close { color: var(--text-muted); padding: 4px 8px; border-radius: 4px; transition: color 0.2s; }
.modal-close:hover { color: var(--text-primary); }
.modal-video { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── ROI Calculator ──────────────────────────────────────── */
#calculator .bg-blob-1 {
  position: absolute; bottom: 0; right: 0;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(0,240,255,0.04); filter: blur(120px); pointer-events: none;
}
#calculator .bg-blob-2 {
  position: absolute; top: 0; left: 0;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(16,185,129,0.04); filter: blur(100px); pointer-events: none;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; max-width: 900px; margin: 0 auto; }
.calc-inputs { padding: 2rem; }
.calc-inputs-title { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.75rem; }
.slider-group { margin-bottom: 2rem; }
.slider-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.slider-label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.slider-val { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; }
.slider-val.cyan   { color: var(--cyan); }
.slider-val.emerald{ color: var(--emerald); }
.slider-range { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.2); margin-top: 5px; }
.calc-note { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.2); border-top: 1px solid var(--border); padding-top: 1rem; }

.roi-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: var(--border); outline: none; cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px rgba(0,240,255,0.5); cursor: pointer;
  transition: box-shadow 0.2s;
}
.roi-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 18px rgba(0,240,255,0.8); }
.roi-slider.emerald-track::-webkit-slider-thumb { background: var(--emerald); box-shadow: 0 0 10px rgba(16,185,129,0.5); }

.calc-results { display: flex; flex-direction: column; gap: 0.75rem; }
.result-card { padding: 1.5rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.03); }
.result-card.highlight { background: rgba(0,240,255,0.05); border-color: rgba(0,240,255,0.3); box-shadow: 0 0 20px rgba(0,240,255,0.08); }
.result-label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.5rem; }
.result-val { font-family: var(--font-mono); font-weight: 900; line-height: 1; }
.result-val.xl { font-size: 2.8rem; }
.result-val.lg { font-size: 2rem; }
.result-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: start; }
.contact-form-wrap { padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; color: var(--text-primary);
  font-size: 0.9rem; font-family: var(--font-sans);
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input::placeholder { color: var(--text-subtle); }
.form-input:focus { border-color: rgba(0,240,255,0.4); box-shadow: 0 0 0 3px rgba(0,240,255,0.1); }
.form-input.error { border-color: rgba(239,68,68,0.6); }
.form-error { font-size: 0.78rem; color: #f87171; margin-top: 4px; }
textarea.form-input { resize: none; }

.form-alert { display: none; margin-top: 1rem; padding: 1rem; border-radius: 8px; font-size: 0.875rem; align-items: center; gap: 10px; }
.form-alert.show { display: flex; }
.form-alert.success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--emerald); }
.form-alert.error-msg { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }

.contact-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card { padding: 1.5rem; }
.contact-info-card h4 { font-size: 0.75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; }
.audit-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.audit-item { display: flex; align-items: flex-start; gap: 12px; }
.audit-item p { font-size: 0.875rem; color: rgba(244,244,245,0.4); line-height: 1.5; }

.response-badge { display: flex; align-items: center; gap: 16px; }
.response-dot { position: relative; }
.dot-core { width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); }
.dot-ring { position: absolute; inset: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0%{transform:scale(1);opacity:0.6;} 100%{transform:scale(2.2);opacity:0;} }
.response-text p:first-child { font-weight: 600; font-size: 0.875rem; }
.response-time { font-family: var(--font-mono); font-weight: 700; font-size: 1.25rem; color: var(--emerald); }

.social-links { display: flex; gap: 10px; margin-top: 0.75rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.2s;
}
.social-link:hover { color: var(--cyan); border-color: rgba(0,240,255,0.3); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  position: relative; background: var(--bg-surface);
  border-top: 1px solid var(--border); padding: 3.5rem 2rem 2rem;
  overflow: hidden;
}
.footer-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { color: rgba(244,244,245,0.4); font-size: 0.875rem; line-height: 1.6; max-width: 280px; margin-top: 1rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(244,244,245,0.6); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.875rem; color: rgba(244,244,245,0.4); transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.2; margin-bottom: 1.5rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: rgba(244,244,245,0.25); flex-wrap: wrap; gap: 8px; }

/* ── Scroll Reveal (replaces AOS) ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: 1fr; text-align: center; }
  .hero-visual   { display: none; }
  .hero-ctas     { justify-content: center; }
  .hero-proof    { justify-content: center; }
  .engine-grid   { grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links     { display: none; }
  .nav-actions .btn { display: none; }
  #mobileMenuBtn { display: flex; }
  .hero-inner    { padding-top: 2rem; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .calc-grid     { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr 1fr; }
  .stat-number   { font-size: 1.8rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .portfolio-grid{ grid-template-columns: 1fr; }
  .hero-ctas     { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
