/* ==========================================================
   CodemWork — design system
   ========================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0d18;
  --surface: #0e1220;
  --surface-2: #141a2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ecf0fb;
  --muted: #8590ad;
  --muted-2: #5b6783;

  --blue-50: #eaf2ff;
  --blue-200: #a8c4ff;
  --blue-400: #6c97ff;
  --blue-500: #4d8bff;
  --blue-600: #2a6eff;
  --blue-700: #1e57ff;
  --blue-900: #0a1d52;

  --grad: linear-gradient(135deg, #7aa9ff 0%, #4d8bff 35%, #1e57ff 70%, #5b3dff 100%);
  --grad-soft: linear-gradient(180deg, rgba(77, 139, 255, 0.18), rgba(77, 139, 255, 0));

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-med: 360ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 700ms cubic-bezier(.2,.7,.2,1);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1240px;
}

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

::selection { background: var(--blue-700); color: white; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-700); color: white; padding: 12px 18px;
  z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ----------------- Background ambience ----------------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0,0,0,0.7), rgba(0,0,0,0));
  pointer-events: none;
}
.orb {
  position: fixed; z-index: -2; pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}
.orb-1 {
  width: 720px; height: 720px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(77,139,255,0.55), transparent 60%);
  animation: float 28s ease-in-out infinite;
}
.orb-2 {
  width: 600px; height: 600px;
  top: 30%; right: -180px;
  background: radial-gradient(circle, rgba(91,61,255,0.40), transparent 60%);
  animation: float 36s ease-in-out infinite reverse;
}
.orb-3 {
  width: 800px; height: 800px;
  bottom: -300px; left: 20%;
  background: radial-gradient(circle, rgba(30,87,255,0.35), transparent 60%);
  animation: float 42s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(80px, -60px) scale(1.05); }
  66% { transform: translate(-60px, 80px) scale(0.97); }
}
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------- Custom cursor ----------------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.6);
  transition: width var(--t-fast), height var(--t-fast), background var(--t-fast);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: white;
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: rgba(77, 139, 255, 0.2);
  border-color: rgba(77,139,255,0.9);
}
@media (hover: none) {
  .cursor, .cursor-dot { display: none; }
}

/* ----------------- Header ----------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background var(--t-med), backdrop-filter var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-primary {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--muted);
}
.nav-primary a {
  position: relative; padding: 6px 0;
  transition: color var(--t-fast);
}
.nav-primary a:hover { color: var(--text); }
.nav-primary a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--blue-400);
  transition: width var(--t-med);
}
.nav-primary a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switcher {
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
}
.lang-switcher button {
  padding: 5px 10px; border-radius: 999px;
  color: var(--muted); transition: all var(--t-fast);
  letter-spacing: 0.05em;
}
.lang-switcher button:hover { color: var(--text); }
.lang-switcher button.active {
  background: var(--text); color: var(--bg);
}

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

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--body); font-weight: 500; font-size: 14px;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-primary {
  background: var(--text); color: var(--bg);
  box-shadow: 0 8px 32px -8px rgba(77,139,255,0.4);
}
.btn-primary:hover {
  background: var(--blue-500); color: white;
  box-shadow: 0 12px 40px -8px rgba(77,139,255,0.7);
}
.btn-ghost {
  border-color: var(--line-strong); color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--blue-400); }

/* ----------------- Hero ----------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 0 120px;
}
.hero-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 1100px;
}
.hero-title .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero-sub {
  max-width: 640px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--muted);
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  width: 100%; max-width: 880px;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num .muted { color: var(--muted-2); }
.stat-label {
  font-size: 12px; color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted-2); letter-spacing: 0.15em; text-transform: uppercase;
}
.hero-scroll .line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--blue-400), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----------------- Marquee ----------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
}
.marquee-track {
  display: inline-flex; white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  color: var(--muted-2);
  letter-spacing: -0.02em;
}
.marquee-track span:nth-child(odd) {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----------------- Sections ----------------- */
.section { padding: 120px 0; position: relative; }
.section-head {
  max-width: 820px;
  margin: 0 auto 64px;
}
.section-head.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 12px;
  color: var(--blue-400);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.section-title .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title.huge { font-size: clamp(40px, 7vw, 92px); }
.section-lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 17px; color: var(--muted);
}
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ----------------- Services ----------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  grid-column: span 2;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
  overflow: hidden;
  min-height: 280px;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77,139,255,0.4);
  background: linear-gradient(180deg, rgba(77,139,255,0.06), rgba(255,255,255,0.01));
}
.service-card.highlight {
  background: linear-gradient(180deg, rgba(77,139,255,0.12), rgba(91,61,255,0.06));
  border-color: rgba(77,139,255,0.3);
}
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(77,139,255,0.15), transparent 60%);
  opacity: 0; transition: opacity var(--t-med); pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card.wide {
  grid-column: span 4;
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 32px;
  min-height: auto;
}
.service-content { display: flex; flex-direction: column; gap: 8px; max-width: 70%; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: rgba(77,139,255,0.10);
  color: var(--blue-200);
  display: grid; place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(77,139,255,0.2);
}
.service-icon svg { width: 28px; height: 28px; }
.service-icon.small { width: 44px; height: 44px; margin-bottom: 0; }
.service-icon.small svg { width: 22px; height: 22px; }
.service-card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: auto;
}
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 20px;
}
.chips li {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}
.card-arrow {
  position: absolute; top: 28px; right: 32px;
  font-size: 22px; color: var(--muted-2);
  transition: transform var(--t-med), color var(--t-med);
}
.service-card:hover .card-arrow {
  transform: translate(4px, -4px);
  color: var(--blue-400);
}
.card-link {
  display: inline-flex;
  font-family: var(--mono); font-size: 13px;
  color: var(--blue-400);
  border-bottom: 1px solid rgba(77,139,255,0.3);
  padding-bottom: 4px;
  transition: gap var(--t-fast);
  flex-shrink: 0;
}

/* ----------------- Process ----------------- */
.process-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left var(--t-med);
  position: relative;
}
.process-step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--grad);
  transition: width var(--t-med);
}
.process-step:hover { padding-left: 24px; }
.process-step:hover::before { width: 3px; }
.step-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--blue-400);
}
.step-body h3 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step-body p {
  color: var(--muted);
  font-size: 16px;
  max-width: 540px;
}
.step-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  text-align: right;
  letter-spacing: 0.05em;
}

/* ----------------- Work ----------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card {
  display: flex; flex-direction: column;
  gap: 20px;
  cursor: pointer;
}
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, #0d1224, #161d36);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform var(--t-med), border-color var(--t-med);
}
.work-card:hover .work-thumb {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(77,139,255,0.4);
}
.work-thumb[data-stripe="2"] { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px), linear-gradient(135deg, #0a1226, #221a3b); }
.work-thumb[data-stripe="3"] { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px), linear-gradient(135deg, #08172a, #0e2a4a); }
.work-thumb[data-stripe="4"] { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px), linear-gradient(135deg, #0a0d1e, #13284a); }
.work-label {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.work-meta h3 {
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.work-meta p { color: var(--muted); font-size: 15px; max-width: 480px; }
.work-meta .chips { margin-top: 12px; }

/* Mockups */
.work-mockup { width: 70%; max-width: 360px; }
.mockup-app .mock-screen {
  background: #0a0e1f;
  border-radius: 22px;
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 14px;
  aspect-ratio: 9/16;
  max-height: 280px;
}
.mock-bar { display: flex; justify-content: space-between; align-items: center; }
.mock-bar span:first-child { width: 32px; height: 6px; background: rgba(255,255,255,0.15); border-radius: 6px; }
.mock-bar span:last-child { width: 20px; height: 20px; background: var(--blue-500); border-radius: 50%; }
.mock-amount {
  font-family: var(--display);
  font-size: 28px; font-weight: 500;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.mock-amount i { font-style: normal; opacity: 0.5; font-size: 16px; }
.mock-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mock-row i { width: 24px; height: 24px; background: rgba(77,139,255,0.2); border-radius: 6px; }
.mock-row b { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 6px; }
.mock-row u { width: 32px; height: 6px; background: rgba(255,255,255,0.12); border-radius: 6px; text-decoration: none; }
.mock-cta { margin-top: auto; height: 32px; background: var(--blue-600); border-radius: 8px; }

.mockup-web .mock-window {
  width: 100%;
  background: #0a0e1f;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  overflow: hidden;
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: 28px 1fr;
}
.mock-tabs {
  grid-column: 1/-1;
  display: flex; align-items: center; gap: 4px;
  padding: 0 10px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mock-tabs i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mock-tabs i:nth-child(1) { background: #ff5f57; }
.mock-tabs i:nth-child(2) { background: #febc2e; }
.mock-tabs i:nth-child(3) { background: #28c840; }
.mock-side {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 8px;
  background: rgba(255,255,255,0.02);
}
.mock-side span { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.mock-side span:nth-child(1) { background: var(--blue-500); }
.mock-main { padding: 18px; display: grid; place-items: end; }
.mock-chart {
  display: flex; align-items: end; gap: 6px;
  width: 100%; height: 80%;
}
.mock-chart .bar {
  flex: 1; height: var(--h);
  background: linear-gradient(180deg, var(--blue-400), var(--blue-700));
  border-radius: 3px 3px 0 0;
}

.mockup-chat {
  width: 100%; max-width: 320px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
}
.bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 12px;
  max-width: 80%;
  font-family: var(--body);
}
.bubble.bot {
  background: rgba(255,255,255,0.08);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.bubble.me {
  background: var(--blue-600);
  color: white;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.bubble.typing { display: flex; gap: 4px; padding: 12px 16px; }
.bubble.typing i {
  width: 5px; height: 5px; background: white; border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.bubble.typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.mockup-flow {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px;
  width: 90%;
}
.mockup-flow .node {
  padding: 10px 14px;
  background: rgba(77,139,255,0.12);
  border: 1px solid rgba(77,139,255,0.3);
  border-radius: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--blue-200);
}
.mockup-flow .line {
  width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--blue-400), transparent);
  position: relative;
}
.mockup-flow .line::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; background: var(--blue-400);
  transform: translateY(-50%);
  animation: pulse 2s ease-in-out infinite;
}

/* ----------------- Stack ----------------- */
.stack-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.stack-item {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  transition: all var(--t-fast);
}
.stack-item:hover {
  color: var(--text);
  border-color: var(--blue-400);
  background: rgba(77,139,255,0.08);
  transform: translateY(-2px);
}

/* ----------------- Testimonial ----------------- */
.testimonial { padding: 80px 0 120px; }
.quote {
  position: relative;
  max-width: 880px; margin: 0 auto;
  text-align: center;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(77,139,255,0.05), transparent);
}
.quote-mark {
  width: 36px; height: 36px;
  color: var(--blue-400);
  margin: 0 auto 24px;
  opacity: 0.5;
}
.quote p {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.quote footer {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  text-align: left;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: white;
}
.who { font-weight: 500; }
.who-role { font-size: 13px; color: var(--muted); }

/* ----------------- FAQ ----------------- */
.faq-container { max-width: 900px; }
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  list-style: none;
  transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-200); }
.plus {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--blue-400);
  transition: transform var(--t-med);
}
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-answer {
  padding-bottom: 24px;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ----------------- Contact ----------------- */
.contact { padding: 120px 0 160px; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text .section-title { margin-bottom: 20px; }
.contact-channels {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 14px;
}
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.02);
  transition: all var(--t-fast);
}
.channel:hover {
  border-color: var(--blue-400);
  background: rgba(77,139,255,0.06);
  transform: translateX(4px);
}
.ch-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(77,139,255,0.12);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--blue-200);
}
.ch-label { font-size: 12px; color: var(--muted); }
.ch-value { font-family: var(--mono); font-size: 14px; }

.contact-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color var(--t-fast), background var(--t-fast);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  background: rgba(0,0,0,0.5);
}
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--t-fast);
}
.pill:hover { border-color: var(--blue-400); }
.pill input { accent-color: var(--blue-500); width: 14px; height: 14px; }
.pill input:checked + span { color: var(--blue-200); }
.pill:has(input:checked) {
  background: rgba(77,139,255,0.10);
  border-color: var(--blue-400);
}
.form-success {
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  background: rgba(5,7,13,0.95);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 22px;
  color: var(--blue-200);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med);
  text-align: center; padding: 24px;
}
.form-success.show { opacity: 1; pointer-events: auto; }

/* ----------------- Footer ----------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 24px;
  background: rgba(0,0,0,0.4);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  align-items: start;
}
.footer-brand p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer-cols a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom {
  display: flex; justify-content: space-between;
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}
.footer-bottom .status { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
}

/* ----------------- Reveal animations ----------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ----------------- Responsive ----------------- */
@media (max-width: 960px) {
  .nav-primary { display: none; }
  .menu-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { grid-column: span 1; }
  .service-card.wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .service-content { max-width: 100%; }
  .work-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 60px 1fr; gap: 20px; }
  .step-time { grid-column: 1/-1; text-align: left; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .contact-form { padding: 24px; }
  .quote { padding: 36px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero { padding: 120px 0 100px; }
  .header-actions .btn { display: none; }
  .nav-primary { display: none; }
}
