:root {
  --bg: #07080d;
  --bg-2: #0d0f17;
  --surface: #11141d;
  --surface-2: #161a25;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #e8eaf2;
  --text-dim: #9ea3b5;
  --text-muted: #6b7088;
  --accent: #4080ff;
  --accent-2: #00d4ff;
  --accent-glow: rgba(64, 128, 255, 0.5);
  --grid: rgba(80, 140, 255, 0.06);
  --density: 0.7;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ---------- LAYOUT ---------- */
.shell { position: relative; z-index: 1; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(48px * var(--density));
}

/* ---------- BACKGROUND ---------- */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 1200px 800px at 70% -10%, rgba(64, 128, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 800px 600px at 0% 30%, rgba(0, 212, 255, 0.06), transparent 60%),
    var(--bg);
}
.global-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 1200px 800px at center top, black, transparent 70%);
}
canvas.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 13, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
  flex: 0 0 auto;
}
.logo-img {
  display: block;
  width: 158px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg);
  border-radius: 3px;
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 1px;
  z-index: 1;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-dropdown-trigger:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }

/* nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
}
.nav-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 6px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.nav-dropdown-panel-wide { min-width: 330px; }
.nav-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel a {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-panel a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.mobile-menu-btn { display: none; }
.mobile-drawer { display: none; }
.mobile-drawer-head { display: none; }
.mobile-drawer-close { display: none; }

/* mobile drawer label */
.drawer-section-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 0 4px;
  font-weight: 600;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: calc(80px * var(--density)) 0 calc(120px * var(--density));
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  margin-bottom: 28px;
}
.eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 24px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #ffffff 0%, #4080ff 60%, #00d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 36px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000814;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3), 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.5), 0 16px 40px -8px var(--accent-glow); }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }

.hero-trusted {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-trusted .stars { display: flex; gap: 2px; }
.hero-trusted .stars svg { width: 14px; height: 14px; fill: var(--accent-2); }

/* ---------- 3D SPHERE ---------- */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sphere-wrap {
  position: relative;
  width: 480px; height: 480px;
}
.sphere-canvas { width: 100%; height: 100%; }
.sphere-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(64, 128, 255, 0.18);
  animation: spin 40s linear infinite;
  pointer-events: none;
}
.sphere-orbit-2 {
  animation: spin 60s linear infinite reverse;
  border-color: rgba(0, 212, 255, 0.12);
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  background: rgba(20, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  min-width: 200px;
  animation: floatCard 6s ease-in-out infinite;
}
.float-card .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.float-card .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-card .value .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.fc-1 { top: 8%; left: -10%; }
.fc-2 { top: 50%; right: -20%; animation-delay: -2s; }
.fc-3 { bottom: 8%; left: 5%; animation-delay: -4s; }

/* ---------- LOGO STRIP ---------- */
.logo-strip {
  padding: calc(40px * var(--density)) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-strip-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.logo-strip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.6;
}
.logo-strip-row .brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}

/* ---------- SECTION ---------- */
.section { padding: calc(120px * var(--density)) 0; }
.section-head {
  text-align: center;
  margin-bottom: calc(64px * var(--density));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}
.section h2 .accent {
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- CONTACT ---------- */
.contact-section {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.contact-panel {
  min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-form-panel {
  padding: 40px;
}

.contact-form-panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.contact-note {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form[hidden],
.contact-confirmation[hidden] {
  display: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.contact-form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-form-status:empty {
  display: none;
}

.contact-form-status[data-state="error"] {
  color: var(--text-dim);
}

.contact-submit {
  justify-content: center;
  border: none;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-confirmation {
  padding-top: 8px;
}

.contact-confirmation h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-confirmation p {
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

.contact-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  padding: 28px;
}

.contact-info-card .section-tag {
  margin-bottom: 12px;
}

.contact-info-card a,
.contact-info-card strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-info-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-info-card .contact-info-long {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(64, 128, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover { border-color: rgba(64, 128, 255, 0.4); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(64,128,255,0.18), rgba(0,212,255,0.06));
  border: 1px solid rgba(64,128,255,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.service-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; position: relative; z-index: 1; }
.service-card p { font-size: 14px; line-height: 1.55; color: var(--text-dim); margin: 0 0 20px; position: relative; z-index: 1; }
.service-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.service-card ul li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-card ul li::before { content: ''; width: 4px; height: 4px; background: var(--accent-2); border-radius: 50%; }

/* ---------- PROCESS ---------- */
.process-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) { .process-wrap { grid-template-columns: 1fr; } }

.process-steps { display: flex; flex-direction: column; gap: 16px; }
.step {
  background: rgba(20, 24, 38, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.3s;
}
.step.active {
  background: linear-gradient(135deg, rgba(64,128,255,0.08), rgba(0,212,255,0.02));
  border-color: rgba(64, 128, 255, 0.4);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.05);
}
.step.active .step-num { background: var(--accent-2); color: #000; border-color: var(--accent-2); }
.step h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.step p { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.5; }

.process-viz {
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.6), rgba(7, 8, 13, 0.6));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  height: 480px;
  position: relative;
  overflow: hidden;
}

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat-cell { background: var(--bg); padding: 36px 28px; position: relative; }
.stat-cell::before { content: ''; position: absolute; top: 0; left: 0; width: 24px; height: 1px; background: var(--accent-2); }
.stat-num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

/* ---------- USE CASES ---------- */
.uc-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 540px;
}
@media (max-width: 1024px) {
  .uc-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .uc-1 { grid-column: span 2; grid-row: auto; }
  .uc-2, .uc-3 { grid-column: auto; grid-row: auto; }
  .uc-4 { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-1 { grid-column: span 1; }
}
.uc-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.uc-card:hover { border-color: rgba(64, 128, 255, 0.3); }
.uc-1 { grid-column: 1; grid-row: 1 / 3; }
.uc-2 { grid-column: 2; grid-row: 1; }
.uc-3 { grid-column: 3; grid-row: 1; }
.uc-4 { grid-column: 2 / 4; grid-row: 2; }
.uc-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; position: relative; z-index: 2; }
.uc-card p { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin: 0; max-width: 360px; position: relative; z-index: 2; }
.uc-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.uc-viz { position: absolute; inset: 0; pointer-events: none; }

/* ---------- TECH STACK ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.stack-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.stack-group {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-item {
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 840px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); border-color: var(--accent-2); background: rgba(0, 212, 255, 0.08); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 240px; padding-top: 16px; }

/* ---------- CTA ---------- */
.cta-block {
  position: relative;
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(64,128,255,0.18), transparent 60%),
    linear-gradient(180deg, rgba(20,24,38,0.8), rgba(7,8,13,0.8));
  border: 1px solid rgba(64, 128, 255, 0.2);
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 140, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 140, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.cta-block h2 { position: relative; z-index: 1; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
.cta-block p { position: relative; z-index: 1; font-size: 18px; color: var(--text-dim); max-width: 560px; margin: 0 auto 32px; }
.cta-block .btn-row { position: relative; z-index: 1; justify-content: center; margin-bottom: 0; }

/* ---------- FOOTER ---------- */
footer.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--border); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: span 2; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-about p { font-size: 14px; color: var(--text-dim); line-height: 1.55; max-width: 320px; margin: 16px 0 0; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--text-muted); }

/* ---------- BACK TO TOP ---------- */
.back-link {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 8px 16px 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: all 0.2s;
}
.back-link:hover { color: var(--text); border-color: var(--accent-2); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
  .nav-inner { height: 56px; padding: 0; }
  .nav .container { padding: 0 16px; }
  .logo { font-size: 15px; }
  .logo-img { width: 136px; max-height: 36px; }
  .logo-mark { width: 24px; height: 24px; }
  .nav-cta { display: none; }
  .nav-links { display: none; }

  .mobile-menu-btn {
    display: inline-flex !important;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-2);
    background: rgba(255,255,255,0.04);
  }
  .mobile-menu-btn span {
    width: 18px; height: 1.5px;
    background: var(--text);
    position: relative;
    transition: all 0.3s;
  }
  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px; height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
  }
  .mobile-menu-btn span::before { top: -6px; }
  .mobile-menu-btn span::after  { top:  6px; }
  .mobile-menu-btn.open span { background: transparent; }
  .mobile-menu-btn.open span::before { transform: rotate(45deg); top: 0; }
  .mobile-menu-btn.open span::after  { transform: rotate(-45deg); top: 0; }

  .mobile-drawer {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(7, 8, 13, 1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 16px 32px;
    z-index: 60;
    transform: translateY(-110%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s linear 0.35s;
    overflow-y: auto;
    max-height: 100dvh;
  }
  .mobile-drawer.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0s;
  }
  .mobile-drawer-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    margin: 0 -16px 12px;
    padding: 0 16px;
    background: rgba(7, 8, 13, 0.96);
    border-bottom: 1px solid var(--border);
    z-index: 1;
  }
  .mobile-drawer-head .logo {
    font-size: 15px;
  }
  .mobile-drawer-close {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-2);
    background: rgba(255,255,255,0.04);
  }
  .mobile-drawer-close span,
  .mobile-drawer-close span::before {
    content: '';
    display: block;
    width: 18px; height: 1.5px;
    background: var(--text);
  }
  .mobile-drawer-close span {
    transform: rotate(45deg);
  }
  .mobile-drawer-close span::before {
    transform: rotate(90deg);
  }
  .mobile-drawer > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--border); text-decoration: none; }
  .mobile-drawer > a::after { content: '→'; font-family: var(--font-mono); color: var(--accent-2); opacity: 0.5; }
  .mobile-drawer .drawer-cta { display: block; margin-top: 20px; padding: 14px; text-align: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #000; border-radius: 10px; font-weight: 600; border-bottom: none; }
  .mobile-drawer .drawer-cta::after { content: ''; }

  .drawer-group { border-bottom: 1px solid var(--border); }
  .drawer-group-toggle {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 14px 0;
    font-size: 16px; color: var(--text);
    background: none; border: none; cursor: pointer; text-align: left;
  }
  .drawer-group-chevron { transition: transform 0.25s; flex-shrink: 0; }
  .drawer-group-toggle[aria-expanded="true"] .drawer-group-chevron { transform: rotate(180deg); }
  .drawer-group-body { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
  .drawer-group-body.open { max-height: 500px; }
  .drawer-group-body a { display: flex; align-items: center; padding: 10px 0 10px 12px; font-size: 14px; color: var(--text-dim); border-bottom: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
  .drawer-group-body a::after { content: ''; display: none; }
  .drawer-group-body a:last-child { border-bottom: none; padding-bottom: 14px; }

  .container { padding: 0 16px; }
  .hero { padding: 32px 0 56px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 48px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 16px; text-wrap: balance; }
  .hero h1 br { display: inline; }
  .hero h1 br::after { content: ' '; white-space: pre; }
  .hero p.lede { font-size: 16px; margin-bottom: 24px; }
  .eyebrow { font-size: 10px; padding: 5px 10px; margin-bottom: 18px; }
  .btn-row { flex-direction: column; gap: 10px; margin-bottom: 32px; width: 100%; }
  .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 14px; }
  .hero-trusted { font-size: 12px; flex-wrap: wrap; }

  .hero { position: relative; }
  .hero-grid { position: relative; z-index: 1; }
  .hero-visual { position: absolute; inset: 0; height: auto; order: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0.35; }
  .sphere-wrap { width: 340px; height: 340px; transform: none; overflow: visible; flex-shrink: 0; }
  .sphere-canvas { width: 340px !important; height: 340px !important; }
  .float-card { display: none; }

  .logo-strip { padding: 24px 0; }
  .logo-strip-row { gap: 20px 28px; justify-content: center; }
  .logo-strip-row .brand { font-size: 14px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
  .section .lede { font-size: 15px; line-height: 1.55; }
  .section-tag { font-size: 10px; margin-bottom: 12px; }

  .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-form-panel { padding: 24px; }
  .contact-form-panel h3 { font-size: 18px; }
  .contact-note { margin-bottom: 22px; font-size: 12px; }
  .contact-form { gap: 14px; }
  .contact-form label { font-size: 10px; letter-spacing: 0.12em; }
  .contact-form input,
  .contact-form textarea { padding: 12px; font-size: 14px; }
  .contact-submit { width: 100%; }
  .contact-info { gap: 12px; }
  .contact-info-card { padding: 22px; }
  .contact-info-card a,
  .contact-info-card strong { font-size: 15px; }

  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 22px; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 13px; }

  .process-wrap { grid-template-columns: 1fr; gap: 24px; }
  .process-viz { padding: 16px; height: 320px; order: -1; }
  .process-steps { gap: 10px; }
  .step { padding: 14px 16px; gap: 14px; }
  .step h4 { font-size: 14px; }
  .step p { font-size: 12px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 24px 18px; }
  .stat-num { font-size: clamp(30px, 9vw, 42px); margin-bottom: 6px; }
  .stat-label { font-size: 12px; }

  .uc-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; gap: 12px; }
  .uc-1, .uc-2, .uc-3, .uc-4 { grid-column: 1 !important; grid-row: auto !important; }
  .uc-card { padding: 22px; min-height: 0; }
  .uc-card h3 { font-size: 18px; }
  .uc-card p { font-size: 13px; }
  .uc-tag { font-size: 9px; margin-bottom: 8px; }
  .uc-card .uc-viz { position: relative !important; inset: auto !important; height: 140px !important; width: 100% !important; margin-top: 16px; opacity: 0.85; }

  .stack-grid { grid-template-columns: 1fr 1fr !important; }

  .faq-q { font-size: 15px; gap: 12px; align-items: flex-start; }
  .faq-toggle { width: 24px; height: 24px; flex-shrink: 0; }
  .faq-item { padding: 18px 0; }
  .faq-a { font-size: 14px; }
  .faq-item.open .faq-a { padding-top: 12px; max-height: 320px; }

  .cta-block { padding: 48px 24px; border-radius: 16px; }
  .cta-block h2 { font-size: clamp(28px, 8vw, 40px); text-wrap: balance; }
  .cta-block h2 br { display: inline; }
  .cta-block h2 br::after { content: ' '; white-space: pre; }
  .cta-block p { font-size: 15px; }

  .site-footer { padding: 48px 0 24px; margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-bottom: 32px; }
  .footer-about { grid-column: span 2; }
  .footer-about p { font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; font-size: 10px; }

  .back-link { display: none; }
  .global-grid { background-size: 50px 50px; }
}

@media (max-width: 768px) {
  .mobile-drawer { display: block; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero { min-height: auto; padding: 48px 0 72px; position: relative; }
  .hero-grid { position: relative; z-index: 1; gap: 0; }
  .hero h1 { font-size: clamp(44px, 7vw, 72px); }
  .hero-visual { position: absolute; inset: 0; height: auto; overflow: hidden; order: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0.4; }
  .sphere-wrap { width: 480px; height: 480px; overflow: visible; }
  .float-card { display: none; }
  .uc-grid { gap: 12px; }
  .uc-card { min-height: 200px; }
}

/* ============================================================
   SERVICE PAGES — shared layout & components
   ============================================================ */

.service-detail {
  position: relative;
  padding: calc(48px * var(--density)) 0 calc(64px * var(--density));
  overflow: hidden;
}

.service-detail::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 740px 420px at 78% 12%, rgba(64,128,255,0.14), transparent 62%),
    radial-gradient(ellipse 520px 320px at 18% 34%, rgba(0,212,255,0.06), transparent 64%);
}

.service-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 38px;
  align-items: start;
  min-height: 0;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.breadcrumb-link:hover {
  color: var(--text);
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse 2s infinite;
}

.service-title {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 750;
}

.service-title .accent {
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-lede {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
}

.service-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 720px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
}

.service-detail .btn-row {
  margin-bottom: 28px;
}

.service-fit-item {
  min-height: 98px;
  padding: 16px;
  background: rgba(17, 20, 29, 0.72);
}

.service-fit-item strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
}

.service-fit-item span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.workflow-panel {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(64, 128, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(64,128,255,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.workflow-panel::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(0,212,255,0.16);
  border-radius: 20px;
}

.workflow-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0,212,255,0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0,212,255,0.2), transparent 56%),
    rgba(64,128,255,0.05);
  box-shadow: 0 0 60px rgba(0,212,255,0.12);
}

.workflow-core::before,
.workflow-core::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.workflow-core::before {
  inset: 16px;
  border: 1px dashed rgba(64,128,255,0.24);
  animation: spin 28s linear infinite;
}

.workflow-core::after {
  inset: 34px;
  background: var(--accent-2);
  box-shadow: 0 0 26px var(--accent-2);
}

.workflow-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(0,212,255,0.26), transparent);
}

.workflow-line.line-1 { transform: rotate(-28deg); }
.workflow-line.line-2 { transform: rotate(18deg); }
.workflow-line.line-3 { transform: rotate(74deg); }
.workflow-line.line-4 { transform: rotate(154deg); }

.workflow-card {
  position: absolute;
  width: 190px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.workflow-card.card-1 { top: 32px; left: 28px; }
.workflow-card.card-2 { top: 118px; right: 28px; }
.workflow-card.card-3 { bottom: 34px; left: 42px; }

.workflow-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.workflow-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.workflow-card span {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.service-subnav {
  position: sticky;
  top: 61px;
  z-index: 40;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(16px);
}

.service-subnav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.service-subnav .container::-webkit-scrollbar {
  display: none;
}

.service-subnav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-subnav a:hover {
  border-color: rgba(64, 128, 255, 0.36);
  color: var(--text);
}

.detail-section {
  padding: calc(96px * var(--density)) 0;
  border-bottom: 1px solid var(--border);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 132px;
}

.sticky-heading h2,
.full-head h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.sticky-heading p,
.full-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}

.module-grid {
  display: grid;
  gap: 14px;
}

.info-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(64,128,255,0.1), transparent 58%);
  pointer-events: none;
}

.info-card h3 {
  position: relative;
  margin: 0 0 9px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.info-card p,
.info-card li {
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.info-card p {
  margin: 0;
}

.check-list,
.step-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li,
.plain-list li {
  padding-left: 22px;
}

.check-list li::before,
.plain-list li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

.step-list {
  counter-reset: service-step;
}

.step-list li {
  position: relative;
  min-height: 74px;
  padding: 0 0 18px 50px;
  border-bottom: 1px solid var(--border);
}

.step-list li:last-child {
  min-height: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.step-list li::before {
  counter-increment: service-step;
  content: counter(service-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.05);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

.deliverables-grid,
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--border);
}

.deliverable-card,
.example-card {
  min-height: 178px;
  padding: 24px;
  background: rgba(17,20,29,0.76);
}

.card-label {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deliverable-card h3,
.example-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.deliverable-card p,
.example-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.full-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(64, 128, 255, 0.4);
  background-color: rgba(22, 26, 37, 0.42);
}

.related-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.related-card p {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.related-card span {
  margin-top: auto;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

.related-card.next-service {
  grid-column: span 2;
  min-height: 240px;
  border-color: rgba(64, 128, 255, 0.32);
  background:
    radial-gradient(ellipse at top right, rgba(64,128,255,0.16), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.related-card.next-service h3 {
  max-width: 520px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.related-card.next-service p {
  max-width: 560px;
  font-size: 14px;
}

/* project / case-study pages */

.project-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 38px;
  align-items: start;
}

.project-meta-block {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 14px;
}

.project-meta-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.project-meta-card .card-label {
  margin-bottom: 8px;
}

.project-meta-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--border);
}

.result-card {
  min-height: 160px;
  padding: 24px;
  background: rgba(17,20,29,0.76);
}

.result-num {
  margin: 0 0 6px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-2);
}

.result-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

/* service / project page responsive */

@media (max-width: 1024px) {
  .service-hero-grid,
  .split-layout,
  .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .service-hero-grid {
    min-height: 0;
  }

  .sticky-heading,
  .project-meta-block {
    position: static;
  }

  .workflow-panel {
    min-height: 360px;
    order: -1;
  }

  .deliverables-grid,
  .examples-grid,
  .related-grid,
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-card.next-service {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .service-detail {
    padding: 30px 0 46px;
  }

  .service-hero-grid {
    gap: 28px;
  }

  .breadcrumb-link {
    margin-bottom: 20px;
    font-size: 10px;
  }

  .service-kicker {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .service-title {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .service-lede {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .service-fit-grid,
  .deliverables-grid,
  .examples-grid,
  .related-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .related-card.next-service {
    grid-column: auto;
  }

  .workflow-panel {
    min-height: 420px;
    border-radius: 18px;
  }

  .workflow-card {
    width: calc(100% - 56px);
    left: 28px !important;
    right: auto !important;
  }

  .workflow-card.card-1 { top: 40px; }
  .workflow-card.card-2 { top: 170px; }
  .workflow-card.card-3 { bottom: 40px; }

  .workflow-core {
    width: 108px;
    height: 108px;
    opacity: 0.58;
  }

  .workflow-line {
    display: none;
  }

  .service-subnav {
    top: 57px;
  }

  .detail-section {
    padding: 56px 0;
  }

  .info-card,
  .deliverable-card,
  .example-card,
  .related-card {
    padding: 22px;
  }
}

/* =====================================================
   SERVICE PAGE TEMPLATE (tpl-*)
   Used by data-extraction and future service detail pages
   ===================================================== */

/* ---- Breadcrumb ---- */
.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.svc-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.svc-breadcrumb a:hover { color: var(--accent-2); }
.svc-breadcrumb .sep { color: var(--border-2); }
.svc-breadcrumb .here { color: var(--text-dim); }
.svc-breadcrumb .eyebrow { margin-bottom: 0; }

/* ---- Hero ---- */
.tpl-hero {
  position: relative;
  padding: calc(72px * var(--density)) 0 calc(64px * var(--density));
  border-bottom: 1px solid var(--border);
}
.tpl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 85% 10%, rgba(0, 212, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(64, 128, 255, 0.07), transparent 60%);
  mask-image: linear-gradient(180deg, black, transparent);
}
.tpl-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
}
@media (max-width: 1024px) { .tpl-hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.tpl-hero-left { position: relative; }
.tpl-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
}
.tpl-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tpl-hero p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 36px;
}
.tpl-spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}
@media (max-width: 640px) { .tpl-spec-strip { grid-template-columns: 1fr 1fr; } }
.tpl-spec-cell {
  background: rgba(13, 15, 23, 0.7);
  padding: 16px 18px;
}
.tpl-spec-cell .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.tpl-spec-cell .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.tpl-hero .btn-row { margin-bottom: 0; }
.tpl-hero-right {
  position: relative;
  min-height: 460px;
}

/* ---- Mod stack (hero right panel) ---- */
.tpl-modstack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 8px 8px 28px;
}
.tpl-modstack::before {
  content: '';
  position: absolute;
  left: 14px; top: 24px; bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,212,255,0.5) 12%, rgba(64,128,255,0.4) 50%, rgba(0,212,255,0.5) 88%, transparent);
}
.tpl-mod {
  position: relative;
  background: rgba(20, 24, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  transition: all 0.3s;
}
.tpl-mod:hover { border-color: rgba(0,212,255,0.4); transform: translateX(2px); }
.tpl-mod::before {
  content: '';
  position: absolute;
  left: -22px; top: 50%;
  width: 14px; height: 1px;
  background: rgba(0,212,255,0.5);
}
.tpl-mod::after {
  content: '';
  position: absolute;
  left: -28px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-2);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
.tpl-mod .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
}
.tpl-mod h4 { margin: 0 0 2px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.tpl-mod .desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; font-family: var(--font-mono); }
.tpl-mod .meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; text-align: right; }
.tpl-mod .meta .v { display: block; color: var(--accent-2); font-size: 12px; font-weight: 600; }
@keyframes flow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.tpl-mod.live::after { animation: flow-pulse 2.4s ease-in-out infinite; }

/* ---- Section template ---- */
.tpl-sec { padding: calc(96px * var(--density)) 0; position: relative; }
.tpl-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) { .tpl-sec-head { flex-direction: column; align-items: flex-start; } }
.tpl-sec-head .left { max-width: 640px; }
.tpl-sec-head .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.tpl-sec-head .tag::before { content: ''; width: 18px; height: 1px; background: var(--accent-2); }
.tpl-sec-head h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.tpl-sec-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tpl-sec-head .right { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); text-align: right; white-space: nowrap; }

/* ---- Deliverables grid ---- */
.tpl-deliver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 1024px) { .tpl-deliver-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tpl-deliver-grid { grid-template-columns: 1fr; } }
.tpl-deliver-cell { background: var(--bg); padding: 32px 28px; position: relative; transition: background 0.3s; }
.tpl-deliver-cell:hover { background: rgba(20, 24, 38, 0.5); }
.tpl-deliver-cell .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tpl-deliver-cell .idx .pill {
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent-2);
  font-size: 9px;
}
.tpl-deliver-cell h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.tpl-deliver-cell p { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin: 0 0 18px; }
.tpl-deliver-cell .out {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.tpl-deliver-cell .out span::before { content: '→ '; color: var(--accent-2); }

/* ---- Stack pills ---- */
.tpl-stack {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 24px;
}
@media (max-width: 1024px) { .tpl-stack { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .tpl-stack { grid-template-columns: repeat(2, 1fr); } }
.tpl-stack-pill {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: all 0.25s;
}
.tpl-stack-pill:hover { border-color: rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.04); transform: translateY(-2px); }
.tpl-stack-pill .name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tpl-stack-pill .role { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ---- Process timeline ---- */
.tpl-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 900px) { .tpl-timeline { grid-template-columns: 1fr; } }
.tpl-timeline-step { position: relative; padding: 28px 24px 28px 0; border-left: 1px solid var(--border); }
.tpl-timeline-step:first-child { border-left: 1px solid var(--accent-2); }
.tpl-timeline-step::before {
  content: '';
  position: absolute;
  left: -5px; top: 28px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-2);
}
.tpl-timeline-step:first-child::before { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 10px rgba(0, 212, 255, 0.6); }
.tpl-timeline-step .week { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-left: 18px; margin-bottom: 12px; display: block; }
.tpl-timeline-step h4 { font-size: 16px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.005em; margin-left: 18px; }
.tpl-timeline-step p { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 0 0 12px; margin-left: 18px; }
.tpl-timeline-step .out { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; margin-left: 18px; }
.tpl-timeline-step .out::before { content: '◆ '; color: var(--accent-2); }

/* ---- Trust strip ---- */
.tpl-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 768px) { .tpl-trust { grid-template-columns: 1fr 1fr; } }
.tpl-trust-cell { background: rgba(7, 8, 13, 0.7); padding: 28px 24px; }
.tpl-trust-cell .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent-2); margin-bottom: 10px; }
.tpl-trust-cell h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.tpl-trust-cell p { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 0; }

/* ---- Objections Q&A ---- */
.tpl-objections { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .tpl-objections { grid-template-columns: 1fr; } }
.tpl-obj { padding: 24px; background: rgba(20, 24, 38, 0.4); border: 1px solid var(--border); border-radius: 14px; }
.tpl-obj .q { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--text); display: flex; gap: 10px; }
.tpl-obj .q::before { content: 'Q'; font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); letter-spacing: 0.1em; flex-shrink: 0; margin-top: 3px; }
.tpl-obj .a { font-size: 14px; color: var(--text-dim); line-height: 1.6; display: flex; gap: 10px; }
.tpl-obj .a::before { content: 'A'; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; flex-shrink: 0; margin-top: 3px; }

/* ---- Other services nav ---- */
.tpl-other-svcs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 1024px) { .tpl-other-svcs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tpl-other-svcs { grid-template-columns: 1fr; } }
.tpl-other-svc {
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.tpl-other-svc:hover { border-color: rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.03); transform: translateY(-2px); }
.tpl-other-svc.current { background: linear-gradient(135deg, rgba(64, 128, 255, 0.08), rgba(0, 212, 255, 0.02)); border-color: rgba(64, 128, 255, 0.35); }
.tpl-other-svc .num { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.12em; }
.tpl-other-svc .name { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.tpl-other-svc .arrow { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); margin-top: 4px; }
