/* ============================================
   AI AGENTS & AUTOMATION — Premium Dark
   ============================================ */

:root {
  /* Palette */
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-soft: #141414;
  --bg-card: #161616;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --text-faint: #52525b;
  --border: #1f1f1f;
  --border-mid: #262626;
  --border-strong: #3f3f46;
  --accent: #fafafa;
  --accent-warm: #f59e0b;
  --accent-warm-soft: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --danger: #ef4444;
  --success: #22c55e;

  /* Spacing */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 13vw, 180px);

  /* Type */
  --fs-mono: 0.75rem;
  --fs-eyebrow: 0.75rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --fs-h1: clamp(2.75rem, 1.4rem + 5.5vw, 6rem);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px -10px var(--accent-glow);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: var(--accent-warm); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg);
  padding: 12px 20px; z-index: 9999;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 600;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.site-header.scrolled {
  border-bottom-color: var(--border-mid);
  background: rgba(10, 10, 10, 0.88);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-warm);
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: transform var(--t-med);
}
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-name { color: var(--text); }
.brand:hover .brand-name { opacity: 0.85; }

.primary-nav {
  display: flex;
  gap: 32px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.primary-nav a { transition: color var(--t-fast); position: relative; }
.primary-nav a:hover { color: var(--text); }
.primary-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent-warm);
  transition: width var(--t-med);
}
.primary-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: var(--bg-soft);
}
.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: 999px;
  transition: all var(--t-fast);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active {
  background: var(--text);
  color: var(--bg);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform var(--t-med), opacity var(--t-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay — covers full screen, sits below header */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile drawer — slides in from left */
.mobile-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 78%;
  max-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 80px 16px 40px 16px;
  background: #111111;
  border-right: 1px solid rgba(245,158,11,0.2);
  z-index: 500;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  padding: 16px 12px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: all var(--t-fast);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:last-of-type {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:active {
  background: rgba(245,158,11,0.1);
  color: var(--accent-warm);
  padding-left: 18px;
}
.lang-switch--mobile {
  margin-top: 24px;
  align-self: flex-start;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  width: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--t-med);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-sm { padding: 9px 16px; font-size: 0.8125rem; }
.btn-block { width: 100%; padding: 16px 24px; font-size: 1rem; }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, var(--shadow-sm);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm-soft));
  opacity: 0;
  transition: opacity var(--t-med);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}
.btn-primary:hover::before { opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-elev);
}
.btn-arrow {
  display: inline-block;
  transition: transform var(--t-med);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   SECTION HEADS
   ============================================ */
.section-head {
  max-width: 740px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-warm);
  margin-bottom: 18px;
}
.section-num::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--accent-warm);
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.section-lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.5;
  text-wrap: pretty;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.net-nodes .node {
  fill: var(--text-muted);
  opacity: 0.7;
}
.net-nodes .node-pulse {
  fill: var(--accent-warm);
  animation: nodePulse 3s ease-in-out infinite;
  transform-origin: center;
}
.net-nodes .node-pulse:nth-child(2) { animation-delay: 0.4s; }
.net-nodes .node-pulse:nth-child(3) { animation-delay: 0.8s; }
.net-nodes .node-pulse:nth-child(8) { animation-delay: 1.2s; }
.net-nodes .node-pulse:nth-child(9) { animation-delay: 1.6s; }
.net-nodes .node-pulse:nth-child(12) { animation-delay: 2s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.5; r: 4; }
  50% { opacity: 1; r: 6; }
}
.net-glows circle {
  animation: glowPulse 4s ease-in-out infinite;
  transform-origin: center;
}
.net-glows .glow-1 { animation-delay: 0s; }
.net-glows .glow-2 { animation-delay: 0.8s; }
.net-glows .glow-3 { animation-delay: 1.6s; }
.net-glows .glow-4 { animation-delay: 2.4s; }
.net-glows .glow-5 { animation-delay: 3.2s; }
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.9; transform: scale(1.2); }
}
.net-lines line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 3s ease-out forwards;
}
.net-lines line:nth-child(2) { animation-delay: 0.05s; }
.net-lines line:nth-child(3) { animation-delay: 0.1s; }
.net-lines line:nth-child(4) { animation-delay: 0.15s; }
.net-lines line:nth-child(5) { animation-delay: 0.2s; }
.net-lines line:nth-child(6) { animation-delay: 0.25s; }
.net-lines line:nth-child(7) { animation-delay: 0.3s; }
.net-lines line:nth-child(8) { animation-delay: 0.35s; }
.net-lines line:nth-child(9) { animation-delay: 0.4s; }
.net-lines line:nth-child(10) { animation-delay: 0.45s; }
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.hero-orbs {
  position: absolute;
  inset: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.5), transparent 70%);
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  top: 40%; right: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  animation: orbFloat 22s ease-in-out infinite reverse;
}
.orb-3 {
  width: 320px; height: 320px;
  bottom: -60px; left: 30%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
  animation: orbFloat 26s ease-in-out infinite;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero-title .muted {
  color: var(--text-muted);
  font-weight: 500;
  background: linear-gradient(180deg, var(--text-muted), var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding-top: 32px;
  border-top: 1px solid var(--border-mid);
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-num {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent-warm);
  font-feature-settings: 'tnum';
}
.meta-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}
.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border-mid);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: opacity var(--t-fast);
}
.scroll-hint:hover { opacity: 1; }
.scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--text-muted));
  position: relative;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--accent-warm);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(36px); opacity: 0; }
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--border-mid);
  background: var(--bg-soft);
}
.trust-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 40px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
  color: var(--text-muted);
}
.trust-logo {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity var(--t-med), color var(--t-med);
  width: 100%;
  max-width: 130px;
}
.trust-logo svg { width: auto; height: 100%; }
.trust-logo:hover {
  opacity: 1;
  color: var(--text);
}

/* ============================================
   ERA / STATS / BEFORE-AFTER
   ============================================ */
.era {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-mid);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: clamp(60px, 9vw, 100px);
}
.stat {
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg);
  transition: background var(--t-med);
  position: relative;
}
.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.stat:hover { background: var(--bg-elev); }
.stat:hover::after { opacity: 1; }
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-warm);
  margin-bottom: 24px;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.stat-num {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
  color: var(--text);
  font-feature-settings: 'tnum';
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  padding: clamp(32px, 5vw, 56px);
  background: var(--bg-soft);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.before-after::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(245, 158, 11, 0.04), transparent 60%);
  pointer-events: none;
}
.ba-col {
  display: flex;
  flex-direction: column;
  position: relative;
}
.ba-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.ba-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
}
.ba-before .ba-icon {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}
.ba-after .ba-icon {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}
.ba-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ba-before .ba-label { color: var(--danger); }
.ba-after .ba-label { color: var(--success); }
.ba-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.ba-col li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}
.ba-before li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 1px;
  background: var(--danger);
  opacity: 0.6;
}
.ba-after li {
  color: var(--text);
}
.ba-after li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 1px;
  background: var(--success);
}
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-warm);
  width: 64px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.ba-arrow svg { width: 100%; height: auto; }

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-mid);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(245, 158, 11, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
  z-index: -1;
}
.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }
.service-card:hover .card-icon {
  color: var(--accent-warm);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  color: var(--text-muted);
  border: 1px solid var(--border-mid);
  margin-bottom: 28px;
  transition: all var(--t-med);
}
.card-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.card-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.card-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
  text-wrap: pretty;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.card-list li {
  font-size: 0.9375rem;
  padding-left: 22px;
  position: relative;
  color: var(--text);
  line-height: 1.5;
}
.card-list li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--accent-warm);
}
.card-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-mono);
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid var(--border-mid);
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-mid);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(245, 158, 11, 0.04), transparent 60%);
  pointer-events: none;
}
.process-wrap {
  position: relative;
}
.process-line {
  position: absolute;
  left: 22px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--border-mid);
  border-radius: 1px;
}
.process-line-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-warm), var(--accent-warm-soft));
  border-radius: 1px;
  transition: height 300ms linear;
  box-shadow: 0 0 12px var(--accent-glow);
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 60px);
}
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 36px;
  align-items: start;
  position: relative;
}
.step-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.step-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  margin-left: 15px;
  position: relative;
  z-index: 1;
  transition: all var(--t-med);
}
.step.in-view .step-dot {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15), 0 0 16px var(--accent-glow);
}
.step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color var(--t-med);
}
.step.in-view .step-num { color: var(--accent-warm); }
.step-body {
  padding-top: 0;
}
.step-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 12px;
  max-width: 620px;
}
.step-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ============================================
   WHY US
   ============================================ */
.why {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-mid);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.why-item {
  padding: clamp(28px, 3.5vw, 44px);
  background: var(--bg);
  transition: background var(--t-med);
  position: relative;
}
.why-item:hover { background: var(--bg-elev); }
.why-item:hover .why-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-warm);
  border-color: rgba(245, 158, 11, 0.25);
  transform: rotate(-3deg);
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border-mid);
  margin-bottom: 20px;
  transition: all var(--t-med);
}
.why-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  text-wrap: balance;
}
.why-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-mid);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 40%, rgba(245, 158, 11, 0.04), transparent 60%);
  pointer-events: none;
}
.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}
.about-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.about-placeholder svg {
  width: 100%;
  height: 100%;
}
.about-image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
  display: block;
}
.about-image-note {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.about-text .section-num {
  display: none;
}
.about-text .section-title {
  margin-bottom: 20px;
}
.about-text .section-lead {
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.6;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-warm);
  border: 1px solid rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
}
.about-feature p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.about-cta {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.about-cta a {
  color: var(--accent-warm);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  transition: all var(--t-fast);
}
.about-cta a:hover {
  color: var(--accent-warm-soft);
  opacity: 0.9;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-mid);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  transition: all var(--t-med);
}
.testimonial:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.t-quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--accent-warm);
  opacity: 0.4;
  margin-bottom: 12px;
  margin-top: 4px;
}
.t-quote {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 28px;
  flex: 1;
  text-wrap: pretty;
}
.t-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-mid);
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.t-name {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.t-role {
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.t-stat {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--accent-warm);
  font-weight: 500;
}
.testimonials-note {
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-mid);
  background: var(--bg-soft);
}
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--border-mid);
  transition: background var(--t-fast);
}
.faq-item summary {
  cursor: pointer;
  padding: 24px 8px;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-warm); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  transition: transform var(--t-med);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: opacity var(--t-med);
}
.faq-icon::before {
  width: 12px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1.5px; height: 12px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-icon { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-item[open] summary { color: var(--accent-warm); }
.faq-answer {
  padding: 0 8px 28px;
  overflow: hidden;
  animation: faqOpen 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.cta {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-mid);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 30%, rgba(245, 158, 11, 0.07), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.cta-text .section-title { margin-bottom: 24px; }
.cta-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}
.cta-list li::before {
  content: '→';
  position: absolute; left: 0; top: 0;
  color: var(--accent-warm);
  font-weight: 500;
}

.cta-direct {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-mid);
}
.cta-direct-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cta-direct-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent-warm);
  letter-spacing: -0.01em;
  border-bottom: 1px solid currentColor;
}
.cta-direct-link:hover { color: var(--accent-warm-soft); }

.cta-form {
  padding: clamp(28px, 3.5vw, 44px);
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}
.form-row input,
.form-row textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  resize: vertical;
  font-family: inherit;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-warm);
  background: var(--bg-soft);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.form-note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 4px;
}
.form-status {
  font-size: 0.9375rem;
  padding: 12px 16px;
  border-radius: var(--r-md);
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}
.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-mid);
  background: var(--bg-soft);
  font-size: 0.875rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-mid);
  margin-bottom: 28px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-row .brand-name {
  font-size: 1rem;
  font-weight: 600;
}
.footer-tag {
  margin-top: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col p {
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .net-nodes .node-pulse, .net-glows circle, .net-lines line,
  .orb, .badge-dot, .scroll-line::after { animation: none !important; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 16/9; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .header-actions .btn { display: none; }
  .header-actions .lang-switch { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { height: 64px; }

  .hero { padding-top: 110px; min-height: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 20px; }
  .meta-divider { display: none; }
  .scroll-hint { display: none; }

  .before-after { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); padding: 12px 0; width: 48px; margin: 0 auto; }

  .step { grid-template-columns: 56px 1fr; gap: 20px; }
  .step-dot { margin-left: 12px; }
  .process-line { left: 18px; }

  .why-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .footer-cols { grid-template-columns: 1fr; gap: 32px; }

  .faq-item summary { padding: 20px 4px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -0.035em; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 16px; }
}
