:root {
  --ink: #0d1b4c;
  --ink-soft: #4a5170;
  --paper: #ffffff;
  --paper-soft: #f4f6fb;
  --accent: #3273d8;
  --accent-light: #6fa2ec;
  --accent-dark: #1a429b;
  --navy: #0d1b4c;
  --hero-bg: #060b1c;
  --hero-bg-2: #0a1330;
  --hero-ink: #f5f7fd;
  --hero-ink-soft: #a7b1cf;
  --border: #e2e6ec;
  --radius: 12px;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-top: 0;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  background: var(--hero-bg);
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hero-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.logo-mark { height: 28px; width: auto; }

.logo span { color: var(--accent-light); }

nav { display: flex; align-items: center; }

nav a {
  color: var(--hero-ink-soft);
  text-decoration: none;
  margin-left: 30px;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

nav a:hover { color: var(--hero-ink); }

nav a.nav-cta {
  margin-left: 30px;
  color: var(--hero-bg);
  background: var(--hero-ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

nav a.nav-cta:hover { background: var(--accent-light); color: var(--hero-bg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(50, 115, 216, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(50, 115, 216, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--hero-ink);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.btn-block { width: 100%; text-align: center; }

button.btn { border: none; cursor: pointer; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 20% 15%, var(--hero-bg-2), var(--hero-bg) 60%);
  overflow: hidden;
  padding: 80px 0 100px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid rgba(111, 162, 236, 0.35);
  border-radius: 999px;
  background: rgba(111, 162, 236, 0.08);
}

.hero h1 {
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--hero-ink);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--hero-ink-soft);
  margin-bottom: 34px;
  max-width: 46ch;
}

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

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 60% 40%, rgba(50, 115, 216, 0.45), transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(111, 162, 236, 0.25), transparent 55%);
  filter: blur(30px);
  z-index: 0;
}

.flow-graph {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: auto;
}

.flow-path {
  stroke-dasharray: 10 8;
  animation: flow-dash 2.6s linear infinite;
}

@keyframes flow-dash {
  to { stroke-dashoffset: -180; }
}

.bottleneck-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: bottleneck-pulse 2.4s ease-in-out infinite;
}

@keyframes bottleneck-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.graph-label {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--hero-ink-soft);
}

.graph-label-muted { fill: #6b7699; }

/* ---------- services ---------- */

.services { padding: 96px 0; }

.services h2, .approach h2, .contact h2 {
  font-size: 1.9rem;
  margin-bottom: 48px;
  text-align: center;
}

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

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 16px 32px rgba(13, 27, 76, 0.08);
  transform: translateY(-3px);
  border-color: rgba(50, 115, 216, 0.3);
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(50, 115, 216, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg { width: 24px; height: 24px; }

.service-card h3 {
  color: var(--ink);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- approach / timeline ---------- */

.approach {
  padding: 96px 0;
  background: var(--paper-soft);
}

.approach-inner { max-width: 760px; margin: 0 auto; }

.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  position: relative;
  padding-bottom: 44px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: -4px;
  width: 2px;
  background: var(--border);
}

.timeline-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-content h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.timeline-content p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- contact ---------- */

.contact { padding: 96px 0 110px; }

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner > p { color: var(--ink-soft); margin-bottom: 32px; }

form { text-align: left; }

.form-row { margin-bottom: 18px; }

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(50, 115, 216, 0.15);
}

.hidden-field { display: none; }

/* ---------- thanks page ---------- */

.thanks {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.thanks-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  padding: 44px 0;
  color: #c3cae0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .logo-mark { height: 34px; }

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #8f9ac2;
  margin-top: 2px;
}

.footer-meta { text-align: right; }

.footer-meta a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
}

.footer-meta p { margin: 6px 0 0; color: #8f9ac2; }

/* ---------- scroll reveal ---------- */

.js-anim .fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.js-anim .fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto 12px; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-sub { max-width: none; }
  nav a:not(.nav-cta) { display: none; }
  nav a.nav-cta { margin-left: 0; }
  .logo { font-size: 0.9rem; }
  .logo-mark { height: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .timeline-step { grid-template-columns: 44px 1fr; gap: 16px; }
  .timeline-marker { width: 44px; height: 44px; font-size: 0.85rem; }
  .timeline-step:not(:last-child)::before { left: 21px; top: 44px; }
}
