/* ============================================
   KARDENGE — Cyber-Physical Integration
   Dark mode | Electric blue + Phosphor green
   ============================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Colors */
  --bg: #0A0A0F;
  --bg-2: #0E0E15;
  --surface: #12121A;
  --surface-2: #181822;
  --border: #1E1E2E;
  --border-strong: #2A2A3D;

  --text: #F0F0F0;
  --text-2: #B5B5C5;
  --text-3: #6E6E80;

  --primary: #00A8FF;       /* electric blue */
  --primary-2: #0080CC;
  --primary-rgb: 0, 168, 255;
  --accent: #39FF14;        /* phosphor green */
  --accent-2: #00FF9D;
  --accent-rgb: 57, 255, 20;
  --gradient: linear-gradient(135deg, #00A8FF 0%, #39FF14 100%);
  --gradient-soft: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--accent-rgb), 0.08) 100%);

  /* Type */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Shadows */
  --glow-blue: 0 0 40px rgba(var(--primary-rgb), 0.25);
  --glow-green: 0 0 40px rgba(var(--accent-rgb), 0.18);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 30px rgba(0,0,0,0.5);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 14px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  margin-bottom: 20px;
  max-width: 900px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 700px;
  margin-bottom: 60px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient);
  color: #000;
  box-shadow: var(--glow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.45), var(--glow-green);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-large { padding: 18px 36px; font-size: 16px; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 18px;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--gradient);
  border-radius: 8px;
  position: relative;
  box-shadow: var(--glow-blue);
}
.logo-mark::after {
  content: 'K';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 700;
  font-size: 16px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: 0.3s var(--ease);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(var(--primary-rgb), 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(57,255,20,0.10), transparent 50%);
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 100px;
  background: rgba(var(--accent-rgb), 0.04);
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-foot {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg-2);
}
.trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.check {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- PROBLEM ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s var(--ease);
}
.problem-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.problem-icon {
  font-size: 36px;
  margin-bottom: 20px;
}
.problem-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.problem-card p {
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- BENTO / SERVICES ---------- */
.bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 50px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.bento-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.bento-card:hover::before { opacity: 1; }
.bento-card > * { position: relative; z-index: 1; }

.bento-large {
  grid-row: span 2;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: rgba(var(--primary-rgb), 0.2);
}
.bento-medium { grid-column: 2; }
.bento-small { grid-column: 2; }

.tile-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}
.tile-title {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 16px;
}
.bento-large .tile-title { font-size: clamp(28px, 3vw, 40px); }
.tile-body {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 24px;
}
.tile-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.tile-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 24px;
  position: relative;
}
.tile-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.tile-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.4);
  padding-bottom: 2px;
  display: inline-block;
}
.tile-link:hover { color: var(--accent); border-color: var(--accent); }

.bridge-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.bridge-stats > div {
  display: flex;
  flex-direction: column;
}
.bridge-stats strong {
  font-family: var(--font-display);
  font-size: 28px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.bridge-stats span {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ---------- PROCESS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
  z-index: 0;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
}
.step:hover { border-color: var(--primary); transform: translateY(-4px); }
.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: var(--gradient);
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: var(--glow-blue);
}
.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.step p {
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- OUTCOMES ---------- */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.outcome {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s var(--ease);
}
.outcome:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: var(--surface-2);
}
.outcome-icon {
  font-size: 32px;
  margin-bottom: 16px;
  width: 56px; height: 56px;
  background: var(--gradient-soft);
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.outcome h3 { font-size: 19px; margin-bottom: 10px; }
.outcome p { color: var(--text-2); font-size: 14px; }

/* ---------- WHY ---------- */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-content p {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 16px;
}
.why-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.why-row:last-child { border-bottom: none; }
.why-row > div:first-child { color: var(--text-3); text-decoration: line-through; }
.why-row > div:last-child { color: var(--text); }
.why-row.why-head {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.why-head > div:first-child { color: var(--text-3); text-decoration: none; }
.why-head > div:last-child { color: var(--accent); }

/* ---------- CALCULATOR ---------- */
.calculator {
  max-width: 880px;
  margin: 50px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.calc-row {
  margin-bottom: 32px;
}
.calc-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.calc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.calc-opt {
  padding: 12px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.calc-opt:hover { border-color: var(--primary); color: var(--text); }
.calc-opt.active {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}
.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.calc-result {
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
}
.calc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 8px;
}
.calc-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc-note {
  font-size: 12px;
  color: var(--text-3);
  margin: 20px 0 28px;
  text-align: center;
}
.calculator .btn { width: 100%; }

/* ---------- TESTIMONIALS ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}
.quote p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.quote footer {
  font-size: 13px;
  color: var(--text-3);
  font-style: normal;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 50px auto 0;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
  padding: 22px 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 60px;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
  padding: 0 28px 24px;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15), transparent 70%),
    var(--bg);
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.cta-inner {
  text-align: center;
  position: relative;
}
.cta-inner h2 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-inner p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-foot {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-top: 20px;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 70px 0 30px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-3);
  font-size: 14px;
  max-width: 300px;
}
.footer-brand em { color: var(--primary); font-style: normal; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: var(--text-2);
  font-size: 14px;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}
.footer-bottom a:hover { color: var(--primary); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 0; }
  .problem-grid,
  .outcomes-grid,
  .quotes { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-large, .bento-medium, .bento-small { grid-column: 1; grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .header .btn-sm { display: none; }
  .problem-grid,
  .outcomes-grid,
  .quotes,
  .steps { grid-template-columns: 1fr; }
  .calculator { padding: 28px 22px; }
  .calc-results { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero { min-height: auto; padding: 120px 0 60px; }
}

/* ==================================================
   PHASE 1 BUNDLE — INTERACTIVE EFFECTS & FEATURES
   ================================================== */

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient);
  z-index: 200;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
  transition: width 0.05s linear;
}

/* ---------- CURSOR SPOTLIGHT ---------- */
.cursor-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,255,0.08) 0%, rgba(var(--accent-rgb), 0.04) 30%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: screen;
}
@media (hover: hover) {
  body:hover .cursor-spotlight { opacity: 1; }
}

/* ---------- PARTICLE CANVAS (HERO) ---------- */
.particle-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-inner { z-index: 2; }
.hero-bg { z-index: 1; }

/* ---------- LIVE CHIP ---------- */
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.live-chip strong {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---------- TYPEWRITER ---------- */
.typewriter {
  display: inline-block;
  min-width: 200px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.typewriter::after {
  content: '|';
  display: inline-block;
  -webkit-text-fill-color: var(--primary);
  color: var(--primary);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---------- MAGNETIC BUTTON ---------- */
.btn-magnetic {
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}

/* ---------- GLITCH HOVER ---------- */
.glitch-hover {
  position: relative;
  display: inline-block;
}
.glitch-hover:hover::before,
.glitch-hover:hover::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  background: var(--gradient);
}
.glitch-hover:hover::before {
  animation: glitch-1 0.4s linear;
  color: #00A8FF;
  -webkit-text-fill-color: #00A8FF;
  z-index: -1;
}
.glitch-hover:hover::after {
  animation: glitch-2 0.4s linear;
  color: #39FF14;
  -webkit-text-fill-color: #39FF14;
  z-index: -2;
}
@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}
@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
}

/* ---------- 3D TILT ---------- */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ---------- ANIMATED GRADIENT BORDER (BENTO LARGE) ---------- */
.gradient-border {
  position: relative;
  background: var(--surface);
}
.gradient-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(
    var(--angle, 0deg),
    transparent 0%,
    var(--primary) 30%,
    var(--accent) 60%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotateBorder {
  to { --angle: 360deg; }
}
/* Fallback animation for browsers without @property */
.gradient-border::after {
  background-size: 300% 300%;
  animation: rotateBorder 5s linear infinite, shiftBorder 5s linear infinite;
}
@keyframes shiftBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- ACTIVITY FEED ---------- */
/* ================================================
   LIVE FEED — base + domain-specific styles
   ================================================ */
.activity-feed {
  margin-top: 28px;
  padding: 0;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  overflow: hidden;
}
.activity-feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
}
.activity-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 130px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.activity-row {
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  animation: feedSlideDown 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
}
.activity-row .activity-msg {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-row .activity-msg b { color: var(--primary); font-weight: 500; }
.activity-row .activity-time { color: var(--text-3); font-size: 10px; flex-shrink: 0; }

/* Base animations */
@keyframes feedSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes feedSlideLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes feedSlideRight {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes feedPop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- HERO LIVE FEED ---------- */
.hero-live-feed { margin-top: 32px; max-width: 500px; }
.hero-live-feed .activity-feed-stream { max-height: 110px; }
.section-live-feed { margin-top: 28px; }

/* Feed inside homepage service cards — compact height */
.bento-card .activity-feed-stream { max-height: 100px; }

/* ---- AI feed ---- */
[data-live-feed="ai"] { border-color: rgba(0,168,255,0.3); }
[data-live-feed="ai"] .activity-feed-header { color: var(--accent); }
[data-live-feed="ai"] .activity-row { animation-name: feedSlideDown; }
[data-live-feed="ai"] .ai-agent { color: var(--primary); font-weight: 600; }
[data-live-feed="ai"] .ai-event { flex: 1; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
[data-live-feed="ai"] .ai-event b { color: #39FF14; font-weight: 500; }
[data-live-feed="ai"] .ai-time { color: var(--text-3); font-size: 10px; flex-shrink: 0; }

/* ---- NETWORK feed — green-on-black NOC terminal ---- */
[data-live-feed="network"] {
  background: #000c00;
  border-color: rgba(57,255,20,0.45);
}
[data-live-feed="network"] .activity-feed-header {
  background: #001200;
  color: #39FF14;
  border-bottom-color: rgba(57,255,20,0.2);
  justify-content: space-between;
}
[data-live-feed="network"] .live-dot {
  background: #39FF14;
  box-shadow: 0 0 8px #39FF14;
}
[data-live-feed="network"] .activity-row {
  animation-name: feedSlideLeft;
  gap: 6px;
  padding: 4px 14px;
  border-bottom: 1px solid rgba(57,255,20,0.05);
}
[data-live-feed="network"] .activity-row:last-child { border-bottom: none; }
.net-ts   { color: rgba(57,255,20,0.35); font-size: 10px; flex-shrink: 0; }
.net-dev  { color: #00f5ff; font-weight: 600; min-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.net-ok   { color: #39FF14; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.net-warn { color: #ffb300; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.net-clock { color: rgba(57,255,20,0.5); font-size: 10px; letter-spacing: 0.05em; }

/* ---- ANDROID feed — Logcat style ---- */
[data-live-feed="android"] {
  background: #0d1117;
  border-color: rgba(76,175,80,0.35);
}
[data-live-feed="android"] .activity-feed-header {
  background: #0a0f0a;
  color: #4CAF50;
  border-bottom-color: rgba(76,175,80,0.15);
}
[data-live-feed="android"] .live-dot {
  background: #4CAF50;
  box-shadow: 0 0 8px #4CAF50;
}
[data-live-feed="android"] .activity-row {
  animation-name: feedSlideRight;
  gap: 8px;
  padding: 4px 14px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.log-lv { font-weight: 800; font-size: 11px; width: 12px; flex-shrink: 0; }
.log-lv-I { color: #4CAF50; }
.log-lv-D { color: #26C6DA; }
.log-lv-W { color: #FFA726; }
.log-lv-E { color: #EF5350; }
.log-tag  { color: #CE93D8; font-size: 11px; flex-shrink: 0; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.log-msg  { color: #78909C; font-size: 11px; flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* ---- WEB feed — HTTP request log ---- */
[data-live-feed="web"] {
  background: #08081a;
  border-color: rgba(99,102,241,0.4);
}
[data-live-feed="web"] .activity-feed-header {
  background: #050512;
  color: #818cf8;
  border-bottom-color: rgba(99,102,241,0.15);
}
[data-live-feed="web"] .live-dot {
  background: #818cf8;
  box-shadow: 0 0 8px #818cf8;
}
[data-live-feed="web"] .activity-row {
  animation-name: feedSlideDown;
  display: grid;
  grid-template-columns: 40px 1fr 38px 40px;
  gap: 8px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(99,102,241,0.06);
}
.web-method     { font-weight: 700; font-size: 11px; }
.web-method-GET { color: #60a5fa; }
.web-method-POST{ color: #a78bfa; }
.web-path       { color: #e2e8f0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-s200 { color: #4ade80; font-weight: 600; font-size: 11px; }
.web-s201 { color: #60a5fa; font-weight: 600; font-size: 11px; }
.web-s304 { color: #64748b; font-weight: 600; font-size: 11px; }
.web-time { color: #475569; font-size: 10px; text-align: right; }

/* ---- DESKTOP feed — process monitor ---- */
[data-live-feed="desktop"] {
  background: #070c14;
  border-color: rgba(0,168,255,0.3);
}
[data-live-feed="desktop"] .activity-feed-header {
  background: #040a10;
  border-bottom-color: rgba(0,168,255,0.1);
}
[data-live-feed="desktop"] .activity-row {
  animation-name: feedSlideDown;
  display: grid;
  grid-template-columns: 1fr 46px 54px 56px;
  gap: 8px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(0,168,255,0.05);
}
.proc-name   { color: #38bdf8; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proc-cpu    { color: #94a3b8; font-size: 11px; text-align: right; }
.proc-mem    { color: #94a3b8; font-size: 11px; text-align: right; }
.proc-badge  { font-size: 9px; padding: 2px 5px; border-radius: 3px; font-weight: 700; letter-spacing: 0.06em; text-align: center; }
.proc-run    { background: rgba(57,255,20,0.12); color: #39FF14; }
.proc-active { background: rgba(255,179,0,0.12); color: #ffb300; }
.proc-idle   { background: rgba(100,116,139,0.12); color: #64748b; }

/* ---- TRANSFORM feed — KPI ticker ---- */
[data-live-feed="transform"] {
  background: #060a06;
  border-color: rgba(57,255,20,0.25);
}
[data-live-feed="transform"] .activity-feed-header {
  background: #040804;
  color: #39FF14;
  border-bottom-color: rgba(57,255,20,0.12);
}
[data-live-feed="transform"] .live-dot {
  background: #39FF14;
  box-shadow: 0 0 8px #39FF14;
}
[data-live-feed="transform"] .activity-row {
  animation-name: feedPop;
  gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(57,255,20,0.05);
}
.kpi-arrow { color: #39FF14; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.kpi-value { color: #fff; font-weight: 600; font-size: 12px; min-width: 52px; flex-shrink: 0; }
.kpi-label { color: #94a3b8; font-size: 11px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-agent { color: rgba(57,255,20,0.4); font-size: 10px; flex-shrink: 0; }

/* ---------- BEFORE / AFTER SLIDER ---------- */
.ba-slider {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 50px;
  user-select: none;
  cursor: ew-resize;
  border: 1px solid var(--border);
}
.ba-side {
  position: absolute;
  inset: 0;
  padding: 40px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.ba-after {
  background: linear-gradient(135deg, rgba(0,168,255,0.08), rgba(57,255,20,0.05)), var(--surface-2);
}
.ba-before {
  background: linear-gradient(135deg, rgba(255,80,80,0.05), rgba(180,0,0,0.04)), var(--surface);
  /* clip-path controlled by JS */
  clip-path: inset(0 50% 0 0);
}
.ba-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  align-self: flex-start;
  margin-bottom: 24px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.ba-tag.bad {
  background: rgba(255,80,80,0.1);
  color: #FF6B6B;
  border-color: rgba(255,80,80,0.3);
}
.ba-content { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ba-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ba-row > div { flex: 1; }
.ba-row strong {
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.ba-row p {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
}
.ba-emoji {
  font-size: 22px;
  width: 36px;
  text-align: center;
}
.ba-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.ba-time.good { background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.ba-time.bad { background: rgba(255,80,80,0.12); color: #FF6B6B; }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}
.ba-handle-line {
  width: 2px;
  height: 100%;
  background: var(--gradient);
  margin: 0 auto;
  box-shadow: var(--glow-blue);
}
.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #000;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 0 30px rgba(0,168,255,0.5);
  cursor: ew-resize;
  pointer-events: all;
  transition: transform 0.2s ease;
}
.ba-handle-circle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ---------- TERMINAL SECTION ---------- */
.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.terminal-grid p {
  color: var(--text-2);
  font-size: 16px;
}
.terminal {
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  height: 420px;
  display: flex;
  flex-direction: column;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #15151f;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28C840; }
.terminal-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-3);
}
.terminal-body {
  flex: 1;
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  overflow: hidden;
  white-space: pre;
}
.term-cmd { color: var(--text); }
.term-cmd::before { content: '$ '; color: var(--accent); }
.term-ok { color: var(--accent); }
.term-info { color: var(--primary); }

/* ---------- COUNTER (animated numbers) ---------- */
[data-count] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ---------- SECTION FADE-IN (already partial) — refined ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE FOR NEW ELEMENTS ---------- */
@media (max-width: 960px) {
  .terminal-grid { grid-template-columns: 1fr; gap: 40px; }
  .terminal { height: 360px; }
  .ba-slider { height: 580px; }
  .ba-side { padding: 28px 20px; }
}
@media (max-width: 640px) {
  .cursor-spotlight { display: none; }
  .ba-slider { height: 720px; }
  .ba-row { padding: 10px 12px; gap: 10px; }
  .ba-emoji { font-size: 18px; width: 28px; }
  .ba-row strong { font-size: 13px; }
  .ba-row p { font-size: 11px; }
  .ba-handle-circle { width: 44px; height: 44px; font-size: 16px; padding: 0 10px; }
  .live-chip { font-size: 11px; padding: 6px 12px; }
  .terminal { height: 320px; font-size: 11px; }
  .terminal-body { font-size: 11px; padding: 14px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .particle-bg { display: none; }
  .cursor-spotlight { display: none; }
}

/* ============================================
   INNER PAGES — Components & Layout
   ============================================ */

/* ---------- NAV DROPDOWN ---------- */
.nav-has-dropdown { position: relative; }
.nav-dropdown-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--text-2); font-weight: 500;
  cursor: pointer; user-select: none; padding: 4px 0;
}
.nav-dropdown-label::after {
  content: '▾'; font-size: 10px; color: var(--text-3);
  transition: transform 0.2s var(--ease); margin-left: 2px;
}
.nav-has-dropdown.open .nav-dropdown-label::after { transform: rotate(180deg); }
.nav-has-dropdown.open .nav-dropdown-label { color: var(--text); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 16px); left: -12px;
  min-width: 230px;
  background: rgba(10,10,18,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px; z-index: 300;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.nav-has-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-2); font-weight: 500;
  transition: all 0.15s var(--ease);
}
.nav-dropdown-menu a:hover { background: rgba(var(--primary-rgb),0.08); color: var(--text); }
.nav-dropdown-menu a strong { display: block; font-size: 13px; color: var(--text); }
.nav-dropdown-menu a small { font-size: 11px; color: var(--text-3); }
.dd-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gradient-soft);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  padding: 160px 0 80px;
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(var(--primary-rgb), 0.14), transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(var(--accent-rgb), 0.07), transparent 55%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 68px); margin-bottom: 20px; }
.page-hero p { font-size: 18px; color: var(--text-2); margin: 0 auto 32px; max-width: 640px; }
.page-hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- SERVICE GRID (detail pages) ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 50px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: all 0.3s var(--ease);
}
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-soft); opacity: 0;
  transition: opacity 0.3s var(--ease); pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-num {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--primary);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.service-num::before { content: ''; display: inline-block; width: 16px; height: 1px; background: var(--primary); }
.service-icon {
  font-size: 28px; margin-bottom: 16px;
  width: 52px; height: 52px; background: var(--gradient-soft);
  border-radius: 14px; display: grid; place-items: center;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.service-tag {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--accent);
}

/* ---------- ENGAGEMENT MODELS ---------- */
.engagement-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 50px;
}
.engagement-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.engagement-card.featured {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.07), var(--surface));
}
.engagement-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 3px 10px; border-radius: 100px;
}
.engagement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.engagement-icon { font-size: 36px; margin-bottom: 20px; }
.engagement-card h3 { font-size: 22px; margin-bottom: 10px; }
.engagement-card > p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
.engagement-card ul { display: grid; gap: 10px; margin-bottom: 28px; }
.engagement-card ul li {
  font-size: 14px; color: var(--text-2);
  padding-left: 22px; position: relative;
}
.engagement-card ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700; font-size: 12px;
}

/* ---------- EXPLAINER BLOCK ---------- */
.explainer {
  background: var(--surface); border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-lg); padding: 48px; margin-top: 50px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.explainer-text h3 { font-size: 26px; margin-bottom: 14px; }
.explainer-text p { color: var(--text-2); font-size: 16px; line-height: 1.7; margin-bottom: 12px; }
.explainer-visual {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
}
.ev-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ev-label span:first-child { color: var(--text-3); font-size: 12px; min-width: 90px; }
.ev-label strong { color: var(--text); }
.ev-label em { margin-left: auto; color: var(--accent); font-style: normal; font-size: 12px; }

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.7fr;
  gap: 60px; align-items: start; margin-top: 50px;
}
.contact-info h3 { font-size: 22px; margin-bottom: 14px; }
.contact-info p { color: var(--text-2); font-size: 15px; margin-bottom: 32px; line-height: 1.7; }
.contact-detail {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.contact-detail-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-soft); border: 1px solid rgba(var(--primary-rgb), 0.2);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-detail-text span { font-size: 13px; color: var(--text-3); }
.contact-detail-text a { color: var(--primary); }
.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.form-group label .req { color: var(--primary); }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-2);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  transition: all 0.2s var(--ease); outline: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E80' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.form-select option { background: #12121A; }
.form-submit { width: 100%; padding: 16px; font-size: 16px; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 14px; }
.form-success {
  display: none; text-align: center; padding: 40px 24px;
  font-size: 16px; color: var(--accent);
}

/* ---------- ABOUT PAGE ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 50px; }
.about-story-text p { color: var(--text-2); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.about-story-text p strong { color: var(--text); }
.about-card {
  background: var(--surface); border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-lg); padding: 36px; position: sticky; top: 100px;
}
.about-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: #000; margin-bottom: 20px;
  box-shadow: var(--glow-blue);
}
.about-card-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.about-card-title { color: var(--primary); font-size: 13px; margin-bottom: 24px; font-family: var(--font-mono); letter-spacing: 0.05em; }
.about-card-divider { height: 1px; background: var(--border); margin: 20px 0; }
.credentials-list { display: grid; gap: 12px; }
.credential-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.credential-item::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient); flex-shrink: 0; margin-top: 5px;
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.value-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.3s var(--ease);
}
.value-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.value-icon { font-size: 26px; margin-bottom: 12px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-2); }

/* ---------- HOW IT WORKS PAGE ---------- */
.process-timeline { margin-top: 60px; position: relative; }
.process-timeline::before {
  content: ''; position: absolute;
  left: 43px; top: 44px; bottom: 44px; width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0.25;
}
.timeline-step {
  display: grid; grid-template-columns: 88px 1fr;
  gap: 28px; margin-bottom: 44px; position: relative;
}
.timeline-num {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--surface); border: 2px solid rgba(var(--primary-rgb), 0.5);
  display: grid; place-items: center; flex-shrink: 0;
  position: relative; z-index: 1;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.15);
}
.timeline-num span {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700;
  background: var(--gradient); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.timeline-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-top: 4px;
  transition: border-color 0.3s var(--ease);
}
.timeline-content:hover { border-color: var(--border-strong); }
.timeline-content h3 { font-size: 22px; margin-bottom: 10px; }
.timeline-content > p { color: var(--text-2); font-size: 16px; margin-bottom: 20px; line-height: 1.7; }
.timeline-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.timeline-detail {
  background: var(--bg-2); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 14px; color: var(--text-2);
}
.timeline-detail strong {
  display: block; font-size: 11px; font-family: var(--font-mono);
  color: var(--accent); letter-spacing: 0.08em; margin-bottom: 4px;
}

/* ---------- NETWORK AUTOMATION SECTION ---------- */
.automation-section {
  background: linear-gradient(160deg, rgba(var(--primary-rgb),0.05), rgba(var(--accent-rgb),0.02)), var(--bg-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.automation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.automation-text h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 14px; }
.automation-text > p { color: var(--text-2); font-size: 16px; margin-bottom: 16px; line-height: 1.7; }
.automation-list { display: grid; gap: 10px; margin-top: 28px; }
.automation-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
.automation-item:hover { border-color: var(--primary); }
.automation-item-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gradient-soft); display: grid;
  place-items: center; font-size: 15px; flex-shrink: 0;
}
.automation-item strong { display: block; color: var(--text); margin-bottom: 2px; font-size: 14px; }
.automation-item p { font-size: 13px; color: var(--text-3); margin: 0; }
.automation-terminal {
  background: #060610; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
}
.script-header {
  background: #12121e; border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: center; gap: 8px;
}
.script-dots { display: flex; gap: 6px; }
.script-dots span { width: 10px; height: 10px; border-radius: 50%; }
.script-dots .d-red { background: #FF5F57; }
.script-dots .d-yellow { background: #FFBD2E; }
.script-dots .d-green { background: #28C840; }
.script-title { margin-left: 10px; font-size: 12px; color: var(--text-3); }
.script-body { padding: 20px; font-size: 12px; line-height: 1.75; }
.sl { display: block; }
.sl.comment { color: var(--text-3); }
.sl.cmd { color: var(--text-2); }
.sl.cmd::before { content: '$ '; color: var(--accent); }
.sl.out { color: var(--primary); padding-left: 16px; }
.sl.ok { color: var(--accent); }
.sl.blank { display: block; height: 8px; }
.script-tools { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.script-tool {
  padding: 5px 12px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 100px; font-size: 11px; color: var(--primary);
  font-family: var(--font-mono); letter-spacing: 0.05em;
}

/* ---------- NAV ACTIVE LINK ---------- */
.nav-links a.nav-active { color: var(--primary); }

/* ---------- RESPONSIVE: NEW PAGES ---------- */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .engagement-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .explainer { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .values-grid { grid-template-columns: 1fr; }
  .automation-grid { grid-template-columns: 1fr; }
  .timeline-step { grid-template-columns: 70px 1fr; gap: 20px; }
  .process-timeline::before { left: 34px; }
  .timeline-num { width: 68px; height: 68px; }
  .timeline-num span { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 60px; }
  .contact-form-wrap { padding: 28px 20px; }
  .timeline-details { grid-template-columns: 1fr; }
  .explainer { padding: 28px 22px; }
  .about-card { padding: 28px 22px; }
}
