/* ============================================
   COMNEXT v2 — AI + Developer aesthetic
   Dark tech · Grid · Cyan + Lime · Mono
   ============================================ */

/* --- Design tokens --- */
:root {
  /* Colors */
  --bg: #05050A;
  --bg-elev: #0C0C14;
  --bg-elev-2: #14141F;
  --surface: #08080F;
  --grid: rgba(0, 229, 255, 0.03);
  --grid-strong: rgba(0, 229, 255, 0.06);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --ink: #F5F5F7;
  --ink-soft: #C7C7CC;
  --muted: #6E6E78;
  --muted-dark: #3A3A45;

  --cyan: #00E5FF;
  --cyan-dim: rgba(0, 229, 255, 0.14);
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --lime: #CFFF50;
  --lime-dim: rgba(207, 255, 80, 0.14);
  --lime-glow: rgba(207, 255, 80, 0.4);
  --magenta: #FF00AA;

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

  /* Timing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1400px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--cyan); color: var(--bg); }

/* --- Grid background (global) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

/* Subtle noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 8.5vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.display-xl .accent { color: var(--cyan); }
.display-xl .lime { color: var(--lime); }
.display-l {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.028em;
  font-weight: 500;
}
.display-l .accent { color: var(--cyan); }
.display-l .lime { color: var(--lime); }
.display-m {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  border-radius: 1px;
  animation: blink-box 2s infinite;
}
@keyframes blink-box {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 5;
}
section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }

/* ===========================================
   NAVIGATION
   =========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-logo .bracket { color: var(--cyan); font-weight: 400; }
.nav-logo .lime { color: var(--lime); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  width: 4px; height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s;
  transform: translateY(-50%);
}
.nav-links a:hover::before { opacity: 1; box-shadow: 0 0 8px var(--cyan-glow); }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.nav-cta span { position: relative; z-index: 2; }
.nav-cta:hover { color: var(--bg); box-shadow: 0 0 24px var(--cyan-glow); }
.nav-cta:hover::before { transform: translateY(0); }

.nav-burger {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-burger span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-right: 4px;
}
.lang-switch button {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active {
  background: var(--cyan);
  color: var(--bg);
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 200;
  }
  .nav-links.open a { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--cyan-glow);
}
.btn-lime {
  background: var(--lime);
  color: var(--bg);
}
.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--lime-glow);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.btn .arrow { transition: transform 0.3s var(--ease); font-size: 14px; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===========================================
   HERO
   =========================================== */
.hero {
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* 3D sphere container (right side) */
#hero-3d {
  position: absolute;
  top: 50%; right: -5%;
  transform: translateY(-50%);
  width: 55%;
  height: 110%;
  z-index: 0;
  pointer-events: none;
}

/* CSS fallback sphere (shown if Three.js fails) */
.sphere-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sphere-spin 32s linear infinite;
}
@keyframes sphere-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.sphere-fallback .ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.2);
  transform: translate(-50%, -50%);
}
.sphere-fallback .ring-1 { width: 420px; height: 420px; animation: pulse-ring 4s ease-in-out infinite; }
.sphere-fallback .ring-2 { width: 500px; height: 500px; border-color: rgba(0, 229, 255, 0.12); animation: pulse-ring 4s ease-in-out infinite 1s; }
.sphere-fallback .ring-3 { width: 600px; height: 600px; border-color: rgba(207, 255, 80, 0.08); animation: pulse-ring 4s ease-in-out infinite 2s; }
@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.sphere-fallback .core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.4) 0%, rgba(0, 229, 255, 0) 70%);
  animation: pulse-core 2s ease-in-out infinite;
}
@keyframes pulse-core {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.6; }
}
.sphere-fallback .dots span {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-glow);
  animation: dot-blink 2s infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}
/* Fade overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 40% at 70% 50%, rgba(0, 229, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 100%, rgba(207, 255, 80, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-content { grid-template-columns: 1fr; }
  #hero-3d { position: relative; width: 100%; height: 300px; top: auto; right: auto; transform: none; order: 2; }
}

.hero-text { max-width: 760px; }

/* Terminal prompt bar */
.terminal-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 8px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 32px;
}
.terminal-bar .dots { display: inline-flex; gap: 5px; }
.terminal-bar .dots span { width: 8px; height: 8px; border-radius: 50%; }
.terminal-bar .dots span:nth-child(1) { background: #ff5f56; }
.terminal-bar .dots span:nth-child(2) { background: #ffbd2e; }
.terminal-bar .dots span:nth-child(3) { background: #27c93f; }
.terminal-bar .prompt { color: var(--cyan); margin-left: 8px; }

.hero h1 {
  color: var(--ink);
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 500;
}
.hero h1 .accent { color: var(--cyan); }
.hero h1 .lime-accent { color: var(--lime); }

.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* AI typing response */
.ai-response {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
  position: relative;
  overflow: hidden;
}
.ai-response::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.ai-response .label {
  display: block;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ai-response .typed {
  color: var(--ink);
  display: inline;
}
.ai-response .cursor {
  display: inline-block;
  width: 9px;
  height: 15px;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1s step-start infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Hero meta chips */
.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.meta-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: var(--bg-elev);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime-glow);
}

/* ===========================================
   SECTION HEADER
   =========================================== */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.section-header .eyebrow { margin-bottom: 14px; }
@media (max-width: 900px) {
  .section-header { grid-template-columns: 1fr; gap: 20px; }
}

/* ===========================================
   CODE BLOCK
   =========================================== */
.code-block {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.code-block-header .dots { display: inline-flex; gap: 5px; }
.code-block-header .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-dark); }
.code-block-header .lang { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); }
.code-block pre { padding: 18px 20px; margin: 0; overflow-x: auto; }
.code-block code { color: var(--ink-soft); }
.code-block .kw { color: var(--magenta); }
.code-block .str { color: var(--lime); }
.code-block .fn { color: var(--cyan); }
.code-block .comment { color: var(--muted); font-style: italic; }
.code-block .num { color: #FFA657; }

/* ===========================================
   SERVICES (card-grid with code blocks)
   =========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 229, 255, 0.08);
}
.service-card:hover::before { opacity: 1; }
.service-card .num-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card .num-badge::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--cyan);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.service-card h3 .accent { color: var(--cyan); }
.service-card h3 .lime { color: var(--lime); }
.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.service-card .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.service-card .tech-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  background: var(--bg-elev-2);
  color: var(--ink-soft);
  border-radius: 100px;
  border: 1px solid var(--line);
  letter-spacing: 0.06em;
}
.service-card .link-arrow {
  position: absolute;
  top: 32px; right: 32px;
  color: var(--muted);
  font-size: 20px;
  transition: all 0.3s var(--ease);
}
.service-card:hover .link-arrow {
  color: var(--cyan);
  transform: rotate(-45deg) translate(2px, -2px);
}
@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===========================================
   TECH STACK STRIP
   =========================================== */
.stack-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--surface);
}
.stack-track {
  display: inline-flex;
  gap: 60px;
  animation: scroll-stack 36s linear infinite;
  white-space: nowrap;
  padding-right: 60px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.stack-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.stack-track span::after {
  content: "+";
  color: var(--cyan);
  font-size: 16px;
  font-weight: 500;
}
@keyframes scroll-stack {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================================
   METRICS / STATS
   =========================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.metric {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.metric .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.metric .value {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.9;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.metric .value .unit {
  color: var(--cyan);
  font-size: 0.55em;
  margin-left: 4px;
}
.metric p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 900px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .metrics-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ===========================================
   WORK (cases list)
   =========================================== */
.work-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.work-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 1fr 100px 28px;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: all 0.3s var(--ease);
  position: relative;
}
.work-row::before {
  content: "";
  position: absolute;
  left: -10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.work-row:hover { padding-left: 16px; }
.work-row:hover::before { transform: scaleY(1); transform-origin: top; }
.work-row:hover .work-title { color: var(--cyan); }
.work-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.work-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s var(--ease);
  letter-spacing: -0.02em;
}
.work-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.work-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 9px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.work-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.work-arrow {
  color: var(--muted);
  transition: all 0.3s var(--ease);
  font-size: 18px;
}
.work-row:hover .work-arrow {
  color: var(--cyan);
  transform: rotate(-45deg) translate(2px, -2px);
}
@media (max-width: 800px) {
  .work-row { grid-template-columns: 40px 1fr 28px; gap: 14px; }
  .work-tags, .work-year { display: none; }
}

/* ===========================================
   PRICING
   =========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all 0.35s var(--ease);
}
.price-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.price-card.featured {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.04) 0%, transparent 50%), var(--bg-elev);
  box-shadow: 0 0 0 1px var(--cyan-glow), 0 20px 60px rgba(0, 229, 255, 0.08);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--cyan);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.price-card .tier-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.price-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-weight: 500;
}
.price-card .price small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 400;
}
.price-card .for {
  color: var(--ink-soft);
  font-size: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.price-card ul.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin: 6px 0 12px;
}
.price-card ul.features li {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  font-family: var(--font-mono);
}
.price-card ul.features li::before {
  content: "+";
  color: var(--cyan);
  flex-shrink: 0;
  font-weight: 700;
  margin-top: -2px;
}
.price-card .btn { justify-content: center; width: 100%; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ===========================================
   CHATBOT DOCK
   =========================================== */
.chatbot-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
}
.chatbot-trigger {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px var(--cyan-glow);
  transition: transform 0.3s var(--ease);
  font-size: 24px;
  position: relative;
}
.chatbot-trigger::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  opacity: 0.5;
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.chatbot-trigger:hover { transform: scale(1.06); }
.chatbot-panel {
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 140px);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  position: absolute;
  bottom: 0; right: 0;
}
.chatbot-panel.open {
  display: flex;
  animation: chatbot-slide 0.3s var(--ease-out);
}
@keyframes chatbot-slide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.chatbot-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}
.chatbot-header h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
}
.chatbot-header h4::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: blink 1.5s infinite;
}
.chatbot-close {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s;
}
.chatbot-close:hover { color: var(--ink); }
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
.msg {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.5;
  animation: msg-in 0.25s var(--ease-out);
  font-family: var(--font-body);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot {
  background: var(--bg-elev-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid var(--line);
}
.msg.user {
  background: var(--cyan);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.msg.typing {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
  align-self: flex-start;
}
.msg.typing span {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.chatbot-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 20px 12px;
}
.chatbot-suggestions button {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-elev-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.chatbot-suggestions button:hover {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}
.chatbot-input {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  background: var(--surface);
}
.chatbot-input input {
  flex: 1;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.chatbot-input input:focus { border-color: var(--cyan); }
.chatbot-input button {
  width: 38px; height: 38px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 8px;
  font-size: 16px;
  transition: transform 0.2s;
}
.chatbot-input button:hover { transform: scale(1.05); }
.chatbot-footer {
  padding: 8px 20px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===========================================
   CTA FINAL
   =========================================== */
.cta-final {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, var(--cyan-dim), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  max-width: 16ch;
  margin: 0 auto 36px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cta-final h2 .accent { color: var(--cyan); }
.cta-final h2 .lime { color: var(--lime); }

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: var(--surface);
  padding: 70px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand h3 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.footer-brand h3 .bracket { color: var(--cyan); }
.footer-brand h3 .lime { color: var(--lime); }
.footer-brand p { color: var(--muted); max-width: 32ch; font-size: 13px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-soft);
  font-size: 13px;
  font-family: var(--font-mono);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===========================================
   PAGE HERO (inner pages)
   =========================================== */
.page-hero {
  padding: 200px var(--gutter) 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 30%, var(--cyan-dim), transparent 60%),
    radial-gradient(ellipse 40% 30% at 15% 70%, var(--lime-dim), transparent 60%);
  z-index: 1;
}
.page-hero-content {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.page-hero h1 {
  max-width: 16ch;
  margin: 20px 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
}
.page-hero h1 .accent { color: var(--cyan); }
.page-hero h1 .lime-accent { color: var(--lime); }

/* ===========================================
   FAQ
   =========================================== */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  transition: color 0.3s var(--ease);
  letter-spacing: -0.01em;
}
.faq-item:hover summary h3 { color: var(--cyan); }
.faq-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--cyan);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 0 24px; animation: faq-open 0.4s var(--ease); }
.faq-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 70ch;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   REVEAL ANIMATIONS
   =========================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ===========================================
   CONTACT FORM
   =========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1;
  letter-spacing: -0.025em;
}
.contact-info h2 .accent { color: var(--cyan); }
.contact-info p { color: var(--ink-soft); margin-bottom: 32px; max-width: 42ch; font-size: 15px; }

.contact-channels { display: flex; flex-direction: column; gap: 0; }
.contact-channels a {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s var(--ease);
}
.contact-channels a:last-child { border-bottom: 1px solid var(--line); }
.contact-channels a:hover { padding-left: 10px; }
.contact-channels a:hover strong { color: var(--cyan); }
.contact-channels .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 4px;
}
.contact-channels strong {
  display: block;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  transition: color 0.3s;
  letter-spacing: -0.01em;
}
.contact-channels .arrow { font-size: 18px; color: var(--muted); transition: all 0.3s var(--ease); }
.contact-channels a:hover .arrow {
  transform: translate(4px, -4px) rotate(-45deg);
  color: var(--cyan);
}

.contact-form {
  background: var(--bg-elev);
  padding: 36px 32px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.form-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; }
.form-section:last-child { border-bottom: none; padding-bottom: 0; }
.form-section-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.form-section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  line-height: 1;
  padding: 6px 9px;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  background: var(--cyan-dim);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.form-section-header h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.form-section-header p {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  transition: border 0.2s, background 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-dark); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--bg-elev-2);
}
.form-group textarea { resize: vertical; min-height: 110px; font-family: var(--font-body); font-size: 14px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
  margin-top: 12px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--cyan-glow);
}
.form-submit .arrow { transition: transform 0.3s var(--ease); }
.form-submit:hover .arrow { transform: translateX(4px); }
.form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.04em;
}
.form-success, .form-error {
  padding: 14px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 13px;
  display: none;
  font-family: var(--font-mono);
}
.form-success { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan); }
.form-error { background: rgba(255, 0, 170, 0.1); color: var(--magenta); border: 1px solid var(--magenta); }

.service-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.service-pill { position: relative; cursor: pointer; }
.service-pill input { position: absolute; opacity: 0; }
.service-pill span {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
  background: var(--surface);
  letter-spacing: 0.02em;
}
.service-pill input:checked + span {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}

/* ===========================================
   VALUES / PROCESS
   =========================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s var(--ease);
}
.value:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.value .value-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}
.value h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}
.value p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; gap: 16px; } }

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 500;
  color: var(--cyan);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.process-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.process-content h2 .accent { color: var(--cyan); }
.process-content p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.process-content h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 20px 0 10px;
  font-weight: 500;
}
.process-content ul { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.process-content ul li { display: flex; align-items: flex-start; gap: 10px; }
.process-content ul li::before { content: "+"; color: var(--cyan); flex-shrink: 0; font-weight: 700; }
@media (max-width: 700px) {
  .process-step { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
}
