/* ============================================================
   Corestack Technologies — dark, developer-tool-style UI
   Brand green matches the HostFlow app's dark-mode accent (#22c55e)
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-alt: #0d1219;
  --surface: #10161f;
  --surface-2: #151c27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e6edf3;
  --text-dim: #9aa7b5;
  --text-dimmer: #626c7a;

  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-soft: rgba(34, 197, 94, 0.12);
  --primary-border: rgba(34, 197, 94, 0.3);

  --amber: #f59e0b;
  --red: #f87171;
  --blue: #60a5fa;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px var(--primary-border), 0 16px 40px -16px rgba(34, 197, 94, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* ---------- light theme override ----------
   Dark is the brand default (matches the HostFlow app), but a toggle in
   the nav lets visitors switch. Same variable names, different values —
   everything built on var(--bg)/var(--text)/etc. picks this up for free. */
[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f1f4f7;
  --border: rgba(15, 23, 32, 0.09);
  --border-strong: rgba(15, 23, 32, 0.15);

  --text: #10161f;
  --text-dim: #4b5768;
  --text-dimmer: #7c8794;

  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-soft: rgba(22, 163, 74, 0.1);
  --primary-border: rgba(22, 163, 74, 0.3);

  --shadow-md: 0 12px 32px -16px rgba(15, 23, 32, 0.18);
  --shadow-glow: 0 0 0 1px var(--primary-border), 0 16px 36px -18px rgba(22, 163, 74, 0.22);
}
[data-theme="light"] body { background-image: radial-gradient(circle, rgba(15, 23, 32, 0.06) 1px, transparent 1px); }
[data-theme="light"] .nav.scrolled { background: rgba(246, 248, 250, 0.86); }
[data-theme="light"] .hero-glow-1,
[data-theme="light"] .hero-glow-2,
[data-theme="light"] .page-hero-glow { opacity: 0.4; }
[data-theme="light"] .hero-surge { opacity: 0; animation: none; }
[data-theme="light"] .hero-scanline,
[data-theme="light"] .hero-particles,
[data-theme="light"] .radar-ring,
[data-theme="light"] .radar-orbit { opacity: 0.55; }
[data-theme="light"] .btn-ghost { color: var(--text-dim); }
[data-theme="light"] .terminal-bar span:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)) { background: var(--border-strong); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--text); }

.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--primary); border-radius: 2px; display: inline-block; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.92rem;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 26px; font-size: 0.96rem; }

.btn-primary { background: var(--primary); color: #05170c; box-shadow: 0 4px 16px -4px rgba(34, 197, 94, 0.55); }
.btn-primary:hover { background: #34d178; transform: translateY(-1px); box-shadow: 0 8px 22px -4px rgba(34, 197, 94, 0.6); }

.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.85rem; }
.btn-ghost:hover { color: var(--primary); }

/* ================= NAV ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled { padding: 12px 0; background: rgba(10, 14, 20, 0.82); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--border); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-weight: 500; font-size: 1.02rem; color: var(--text); }
.brand .bracket { color: var(--primary); }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 7px; background: var(--primary-soft); border: 1px solid var(--primary-border);
  color: var(--primary); font-weight: 700; font-size: 0.85rem; margin-right: 9px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.88rem; color: var(--text-dim); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 2px; background: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-dim); font-size: 0.82rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--primary-border); color: var(--primary); transform: rotate(12deg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ================= HERO ================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px 0 50px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(680px 380px at 20% -10%, rgba(34, 197, 94, 0.14), transparent 65%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dimmer); pointer-events: none;
}
.hero-scroll-cue .line { width: 1px; height: 30px; background: linear-gradient(var(--primary), transparent); animation: scrollCue 1.8s ease-in-out infinite; }
@keyframes scrollCue {
  0% { opacity: 0; transform: scaleY(0.3); transform-origin: top; }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue .line { animation: none; }
}

/* ---------- animated hero background: drifting glows, scanline, particles ---------- */
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-glow-1 {
  width: 520px; height: 520px; top: -200px; left: -120px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.32), transparent 70%);
  animation: heroDriftA 14s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 420px; height: 420px; top: 20px; right: -140px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 70%);
  animation: heroDriftB 18s ease-in-out infinite alternate;
}
@keyframes heroDriftA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 40px) scale(1.12); }
}
@keyframes heroDriftB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 25px) scale(0.92); }
}

.hero-scanline {
  position: absolute; left: 5%; right: 5%; height: 1px; top: -5%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.55), transparent);
  animation: heroScan 7s linear infinite;
  pointer-events: none;
}
@keyframes heroScan {
  0% { top: -5%; opacity: 0; }
  8% { opacity: 0.7; }
  92% { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

.hero-particles span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.55);
  opacity: 0.55;
  animation: heroParticle 7s ease-in-out infinite;
}
.hero-particles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; animation-duration: 8s; }
.hero-particles span:nth-child(2) { top: 65%; left: 22%; animation-delay: 1.2s; animation-duration: 6.5s; }
.hero-particles span:nth-child(3) { top: 30%; left: 45%; animation-delay: 2.4s; animation-duration: 9s; }
.hero-particles span:nth-child(4) { top: 75%; left: 58%; animation-delay: 0.6s; animation-duration: 7.5s; }
.hero-particles span:nth-child(5) { top: 15%; left: 72%; animation-delay: 3s; animation-duration: 6s; }
.hero-particles span:nth-child(6) { top: 55%; left: 85%; animation-delay: 1.8s; animation-duration: 8.5s; }
@keyframes heroParticle {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-22px); opacity: 0.9; }
}

/* ---------- radar / HUD scanner ---------- */
.hero-radar {
  position: absolute; width: 620px; height: 620px; top: -180px; right: -200px;
  border-radius: 50%; opacity: 0.65; pointer-events: none;
}
.radar-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(34, 197, 94, 0.16); }
.radar-ring-2 { inset: 13%; border-color: rgba(34, 197, 94, 0.13); }
.radar-ring-3 { inset: 28%; border-color: rgba(34, 197, 94, 0.11); }
.radar-ring-4 { inset: 43%; border-color: rgba(34, 197, 94, 0.09); }

.radar-crosshair { position: absolute; background: rgba(34, 197, 94, 0.1); }
.radar-crosshair-h { top: 50%; left: 4%; right: 4%; height: 1px; transform: translateY(-50%); }
.radar-crosshair-v { left: 50%; top: 4%; bottom: 4%; width: 1px; transform: translateX(-50%); }

.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 197, 94, 0.5), rgba(34, 197, 94, 0.08) 20deg, transparent 60deg);
  animation: radarSpin 4.5s linear infinite;
  mix-blend-mode: screen;
}
.radar-orbit {
  position: absolute; inset: -7%; border-radius: 50%;
  border: 1px dashed rgba(34, 197, 94, 0.16);
  animation: radarSpin 34s linear infinite reverse;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 6px 2px rgba(34, 197, 94, 0.7);
}
.radar-blip::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--primary);
  animation: radarPing 3s ease-out infinite;
  opacity: 0;
}
.radar-blip-1 { top: 26%; left: 58%; }
.radar-blip-2 { top: 54%; left: 28%; }
.radar-blip-2::after { animation-delay: 1s; }
.radar-blip-3 { top: 66%; left: 66%; }
.radar-blip-3::after { animation-delay: 2s; }
@keyframes radarPing {
  0% { transform: scale(0.5); opacity: 0.9; }
  80% { opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ---------- power surge: something charging up, then releasing ----------
   One coordinated ~18s cycle instead of random flashes: the whole hero
   dims like it's drawing power, flickers erratically a few times, then
   releases a bright radial burst before settling back to calm. */
.hero-bg { animation: surgeFlicker 18s ease-in-out infinite; }

@keyframes surgeFlicker {
  0%, 80% { filter: brightness(1); }
  81% { filter: brightness(0.72); }
  82% { filter: brightness(1); }
  83% { filter: brightness(0.65); }
  84% { filter: brightness(1.45); }
  84.4% { filter: brightness(0.7); }
  85.5% { filter: brightness(1.7); }
  85.9% { filter: brightness(0.68); }
  87% { filter: brightness(2.3); }
  88% { filter: brightness(1.15); }
  90% { filter: brightness(1); }
  100% { filter: brightness(1); }
}

.hero-surge {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(224, 255, 234, 0.95), rgba(34, 197, 94, 0.55) 32%, transparent 68%);
  mix-blend-mode: screen; opacity: 0;
  animation: surgeFlash 18s ease-in-out infinite;
}
@keyframes surgeFlash {
  0%, 86.5% { opacity: 0; transform: scale(0.6); }
  87% { opacity: 0.85; transform: scale(1.25); }
  87.6% { opacity: 0.25; transform: scale(1.5); }
  89% { opacity: 0; transform: scale(1.9); }
  100% { opacity: 0; transform: scale(0.6); }
}

/* thin RGB-split interference bars, timed to flicker during the charge-up */
.hero-glitch {
  position: absolute; left: 0; right: 0; height: 2px; top: 30%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.65) 20%, rgba(34, 197, 94, 0.85) 50%, rgba(244, 63, 94, 0.5) 80%, transparent);
  opacity: 0; mix-blend-mode: screen; pointer-events: none;
  animation: heroGlitch 18s ease-in-out infinite;
}
.hero-glitch-2 { animation-delay: 0.25s; }
@keyframes heroGlitch {
  0%, 80%, 90%, 100% { opacity: 0; transform: translateX(0) scaleX(1); }
  81% { opacity: 0.5; transform: translateX(-9px) scaleX(1.04); top: 18%; }
  82% { opacity: 0.15; transform: translateX(6px) scaleX(0.96); top: 58%; }
  83.5% { opacity: 0.6; transform: translateX(-6px) scaleX(1.05); top: 34%; }
  85% { opacity: 0.3; transform: translateX(5px) scaleX(0.97); top: 68%; }
  87% { opacity: 0.9; transform: translateX(-3px) scaleX(1.08); top: 46%; }
  88.5% { opacity: 0.2; transform: translateX(2px); top: 55%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-glow, .hero-scanline, .hero-particles span, .hero-surge,
  .radar-sweep, .radar-orbit, .radar-blip::after, .hero-glitch { animation: none; }
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--primary);
  margin-bottom: 22px;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.16; margin-bottom: 20px; }
.hero-title .accent { color: var(--primary); }

.hero-sub { font-size: 1.02rem; color: var(--text-dim); max-width: 480px; margin-bottom: 32px; }

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-facts { display: flex; flex-direction: column; gap: 10px; }
.fact { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dimmer); }
.fact i { color: var(--primary); font-size: 0.8rem; width: 14px; }

/* ---------- terminal mockup ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.terminal-bar span:nth-child(1) { background: var(--red); }
.terminal-bar span:nth-child(2) { background: var(--amber); }
.terminal-bar span:nth-child(3) { background: var(--primary); }
.terminal-title { margin-left: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dimmer); }
.terminal-body { padding: 22px 20px; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.9; min-height: 220px; }
.terminal-body .prompt { color: var(--primary); }
.terminal-body .line { color: var(--text-dim); }
.terminal-line { white-space: pre-wrap; }
.terminal-cursor { display: inline-block; width: 7px; height: 15px; background: var(--primary); vertical-align: middle; animation: blink 1s steps(1) infinite; margin-left: 2px; }

/* ================= MARQUEE ================= */
.marquee-section { position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; overflow: hidden; background: var(--bg-alt); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-group { display: flex; gap: 48px; padding-right: 48px; }
.marquee-group span { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); color: var(--text-dimmer); font-size: 0.85rem; white-space: nowrap; }
.marquee-group i { color: var(--primary); font-size: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-fade-l, .marquee-fade-r { position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.marquee-fade-l { left: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.marquee-fade-r { right: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }

/* ================= STACK GRID ================= */
.stack-grid-section { position: relative; padding: 100px 0 110px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }

.stack-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.stack-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stack-card:hover { transform: translateY(-4px); border-color: var(--primary-border); box-shadow: var(--shadow-glow); }
.stack-card h4 {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  color: var(--text); margin: 16px 0 12px;
}

@media (max-width: 980px) {
  .stack-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .stack-cards-grid { grid-template-columns: 1fr; }
}

/* ================= SECTION HEAD ================= */
.section-head { max-width: 600px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin: 0 0 46px; text-align: left; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 0.98rem; }

/* ================= BENTO / SERVICE GRID ================= */
.services { padding: 100px 0; }

.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--primary-border); box-shadow: var(--shadow-glow); }

.bento-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dimmer); margin-bottom: 14px; }
.bento-num::before { content: "// "; color: var(--primary); }

.service-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary);
  font-size: 1.05rem; margin-bottom: 16px;
}

.bento-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.bento-card p { color: var(--text-dim); font-size: 0.87rem; }

.services-footer { margin-top: 40px; text-align: center; }

/* ================= PRODUCTS: STATUS CONSOLE ================= */
/* Framed as a monitoring dashboard rather than a card grid or list —
   reuses the terminal-bar chrome from the hero mockup so it reads as
   one consistent "developer tool" visual language across the page. */
.products { padding: 110px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.status-console {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}

.status-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim);
}
.status-summary .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.55); animation: blink 1.6s ease-in-out infinite; flex-shrink: 0; }

.status-list { display: flex; flex-direction: column; }

.status-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 22px; align-items: start;
  padding: 28px 22px; border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease);
}
.status-row:last-child { border-bottom: none; }
.status-row:hover { background: rgba(255, 255, 255, 0.015); }

.status-icon {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid var(--primary-border);
  color: var(--primary); font-size: 1.05rem; margin-top: 2px;
}
.status-icon .status-dot {
  position: absolute; bottom: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--surface);
}

.status-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.status-heading h3 { font-size: 1.1rem; font-weight: 700; }
.status-badge {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--primary); border: 1px solid var(--primary-border); border-radius: 999px;
  padding: 3px 9px; text-transform: uppercase;
}
.status-tagline { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dimmer); margin-bottom: 10px; }
.status-info > p { color: var(--text-dim); font-size: 0.9rem; max-width: 480px; margin-bottom: 14px; }

.status-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; min-width: 130px; }

@media (max-width: 760px) {
  .status-row { grid-template-columns: 1fr; gap: 14px; }
  .status-icon { margin-top: 0; }
  .status-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

/* ================= PROCESS ================= */
.process { padding: 100px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 24px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent); }
.timeline-item { position: relative; padding-top: 58px; }
.timeline-num {
  position: absolute; top: 0; left: 0; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; color: var(--primary);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.timeline-item:hover .timeline-num { transform: scale(1.06); border-color: var(--primary-border); }
.timeline-item h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 7px; }
.timeline-item p { font-size: 0.85rem; color: var(--text-dim); }

/* ================= PAGE HERO (interior pages) ================= */
.page-hero { position: relative; padding: 150px 0 70px; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(600px 320px at 85% -20%, rgba(34, 197, 94, 0.12), transparent 65%);
}
.page-hero-glow {
  position: absolute; width: 420px; height: 420px; top: -160px; right: -100px;
  border-radius: 50%; filter: blur(70px); pointer-events: none;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28), transparent 70%);
  animation: heroDriftA 15s ease-in-out infinite alternate;
}

/* smaller radar HUD, reused on interior pages without the full glitch/particle treatment */
.page-hero-radar {
  position: absolute; width: 340px; height: 340px; top: -90px; right: -60px;
  border-radius: 50%; opacity: 0.5; pointer-events: none;
}
.page-hero-radar .radar-ring, .page-hero-radar .radar-ring-2 { position: absolute; border-radius: 50%; border: 1px solid rgba(34, 197, 94, 0.14); }
.page-hero-radar .radar-ring { inset: 0; }
.page-hero-radar .radar-ring-2 { inset: 18%; border-color: rgba(34, 197, 94, 0.11); }
.page-hero-radar .radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 197, 94, 0.45), rgba(34, 197, 94, 0.06) 20deg, transparent 55deg);
  animation: radarSpin 5.5s linear infinite;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-glow, .page-hero-radar .radar-sweep { animation: none; }
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: var(--text-dim); font-size: 1.02rem; max-width: 560px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dimmer); margin-bottom: 20px; }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--primary); }

/* ================= ABOUT ================= */
.about-section { padding: 90px 0; }
.about-copy p { color: var(--text-dim); font-size: 1rem; max-width: 720px; margin-bottom: 20px; }
.about-copy p:last-child { margin-bottom: 0; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.value-card:hover { transform: translateY(-3px); border-color: var(--primary-border); }
.value-card i { color: var(--primary); font-size: 1.15rem; margin-bottom: 12px; display: block; }
.value-card h4 { font-size: 0.94rem; margin-bottom: 7px; }
.value-card p { font-size: 0.84rem; color: var(--text-dim); }

/* ================= CANDID / NOT-A-FIT (about page) ================= */
.candid-section { padding: 0 0 90px; }
.candid-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 44px;
}
.candid-box h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; margin-bottom: 12px; }
.candid-intro { color: var(--text-dim); font-size: 0.95rem; max-width: 560px; margin-bottom: 30px; }

.candid-list { display: flex; flex-direction: column; }
.candid-item { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--border); }
.candid-item:first-child { border-top: none; }
.candid-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dimmer); flex-shrink: 0; padding-top: 2px; }
.candid-item h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.candid-item p { color: var(--text-dim); font-size: 0.88rem; max-width: 560px; }

@media (max-width: 760px) {
  .candid-box { padding: 30px 24px; }
  .candid-item { gap: 14px; }
}

.team-section { padding: 0 0 90px; }
.team-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; max-width: 480px;
}
.team-avatar {
  width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: var(--radius-md); background: var(--primary-soft); border: 1px solid var(--primary-border);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--primary);
}
.team-card h4 { font-size: 1.02rem; margin-bottom: 3px; }
.team-card .role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--primary); margin-bottom: 8px; display: block; }
.team-card p { font-size: 0.84rem; color: var(--text-dim); }

/* ================= ARCHITECTURE / FLOW DIAGRAM (services page) ================= */
.architecture-section { padding: 90px 0 50px; }

.flow-diagram { display: flex; align-items: center; gap: 18px; overflow-x: auto; padding: 6px 2px 14px; }
.flow-col { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.flow-col-stack { gap: 12px; }

.flow-box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; min-width: 168px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.flow-box:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.flow-box i { color: var(--primary); font-size: 1rem; }
.flow-box span { font-weight: 700; font-size: 0.9rem; }
.flow-box small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dimmer); }

.flow-box-main { border-color: var(--primary-border); background: var(--primary-soft); min-width: 180px; }
.flow-box-sub { padding: 12px 16px; min-width: 168px; }
.flow-box-sub span { font-size: 0.84rem; }

.flow-arrow { color: var(--text-dimmer); font-size: 1rem; flex-shrink: 0; }

.flow-footnote {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-dim);
  margin-top: 8px; padding-top: 22px; border-top: 1px dashed var(--border-strong);
}
.flow-footnote i { color: var(--primary); }

@media (max-width: 760px) {
  .flow-diagram { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
  .flow-col, .flow-col-stack { width: 100%; }
  .flow-box, .flow-box-main, .flow-box-sub { min-width: 0; width: 100%; }
}

/* ================= MOBILE APP DEVELOPMENT (services page) ================= */
.mobile-section { padding: 90px 0; border-top: 1px solid var(--border); }

.mobile-approaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }

.approach-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.approach-card:hover { transform: translateY(-4px); border-color: var(--primary-border); box-shadow: var(--shadow-glow); }

.approach-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: var(--primary);
}
.approach-card > p { color: var(--text-dim); font-size: 0.88rem; }

.approach-when { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.approach-when-label { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dimmer); margin-bottom: 6px; }
.approach-when p { font-size: 0.84rem; color: var(--text-dim); }

.approach-tradeoff { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--text-dimmer); }
.approach-tradeoff i { color: var(--amber); margin-top: 2px; }

.mobile-included {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px 24px;
}
.mobile-included-label { display: block; font-family: var(--font-mono); font-size: 0.74rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; color: var(--text-dim); }
.check-list i { color: var(--primary); font-size: 0.78rem; margin-top: 4px; }

@media (max-width: 980px) {
  .mobile-approaches { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .check-list { grid-template-columns: 1fr; }
}

/* ================= FAQ (services page) ================= */
.faq-section { padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 4px 22px; transition: border-color 0.25s var(--ease);
}
.faq-item[open] { border-color: var(--primary-border); }

.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--text-dimmer); font-size: 0.78rem; transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(180deg); color: var(--primary); }

.faq-item p { color: var(--text-dim); font-size: 0.9rem; padding: 0 0 20px; max-width: 640px; }

/* ================= TECH STACK GRID (services page) ================= */
.tech-section { padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tech-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.tech-card h4 { font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); margin-bottom: 14px; font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 10px; }

/* ================= OPPORTUNITIES (freelancers page) ================= */
.opportunities-section { padding: 0 0 90px; }
.opportunities-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 32px; max-width: 760px;
}
.opportunities-status {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.88rem; font-weight: 500; color: var(--text);
  margin-bottom: 14px;
}
.status-dot-static { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dimmer); flex-shrink: 0; }
.opportunities-panel > p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 24px; max-width: 620px; }
.opportunities-kinds { padding-top: 20px; border-top: 1px dashed var(--border-strong); }
.ok-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dimmer); margin-bottom: 12px; }

/* ================= CAREERS ================= */
.careers-section { padding: 90px 0; }
.careers-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; max-width: 640px;
}
.careers-card p { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 16px; }
.careers-card p:last-of-type { margin-bottom: 26px; }
.careers-freelance-note { font-size: 0.85rem; color: var(--text-dimmer); margin-top: 20px; }
.careers-freelance-note a { color: var(--primary); font-weight: 600; }
.careers-freelance-note a:hover { text-decoration: underline; }

/* ================= CONTACT ================= */
.contact { padding: 90px 0 110px; }
.contact-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }

.contact-info h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.contact-info > p { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 30px; max-width: 420px; }

.portal-callout {
  display: flex; align-items: center; gap: 14px;
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 30px;
}
.portal-callout i { color: var(--primary); font-size: 1.1rem; }
.portal-callout div { flex: 1; }
.portal-callout strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.portal-callout span { font-size: 0.8rem; color: var(--text-dim); }

.contact-fact { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-fact i { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--primary); font-size: 0.85rem; }
.cf-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dimmer); margin-bottom: 3px; }
.contact-fact a, .contact-fact span:not(.cf-label) { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.contact-fact a:hover { color: var(--primary); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; margin-bottom: 8px; color: var(--text-dim); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg);
  color: var(--text); font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form-row select { color-scheme: dark; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }

.g-recaptcha { transform: scale(0.93); transform-origin: left top; margin-bottom: 4px; }
.form-hint { font-size: 0.8rem; color: var(--red); margin-top: 8px; display: flex; align-items: center; gap: 6px; }

.form-submit { width: 100%; margin-top: 4px; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-submit .fa-spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  margin-top: 18px; padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
}
.form-success i { color: var(--primary); font-size: 1.1rem; margin-top: 1px; }
.form-success strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.form-success span { font-size: 0.84rem; color: var(--text-dim); }

.form-fallback { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border-strong); }
.form-fallback p { font-size: 0.83rem; color: var(--text-dim); margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start; }
.form-fallback p i { color: var(--primary); margin-top: 2px; }
.form-fallback textarea { width: 100%; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 10px; }

/* ================= CTA BANNER ================= */
.cta-banner { position: relative; padding: 100px 0; overflow: hidden; text-align: center; border-top: 1px solid var(--border); }
.cta-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(34, 197, 94, 0.12), transparent 65%); }
.cta-inner { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p { color: var(--text-dim); max-width: 460px; margin: 0 auto 32px; }

/* ================= FOOTER ================= */
.footer { padding: 60px 0 28px; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { color: var(--text-dimmer); font-size: 0.85rem; margin-top: 12px; max-width: 240px; }

.footer-col h4 { font-family: var(--font-mono); font-size: 0.78rem; margin-bottom: 14px; color: var(--text-dimmer); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col a, .footer-col span { display: block; font-size: 0.86rem; color: var(--text-dim); margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dimmer); flex-wrap: wrap; gap: 10px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 22px 24px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .hero { padding: 128px 0 60px; }
  .bento-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 22px; }
  .team-card { flex-direction: column; text-align: center; }
}
