@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Instrument+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --teal:       #0d9488;
  --teal-mid:   #14b8a6;
  --teal-lt:    #5eead4;
  --teal-wash:  #f0fdfa;
  --violet:     #7c3aed;
  --violet-lt:  #ede9fe;
  --amber:      #d97706;
  --amber-lt:   #fef3c7;
  --slate:      #0f172a;
  --slate-mid:  #1e293b;
  --slate-soft: #334155;
  --slate-lt:   #64748b;
  --border:     #e2e8f0;
  --off:        #f8fafc;
  --white:      #ffffff;

  --flow-physical:  #0d9488;
  --flow-info:      #7c3aed;
  --flow-financial: #d97706;

  --nav-h: 72px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Instrument Sans', sans-serif;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(15,23,42,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 48px;
}
.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}
.nav-logo-text span { color: var(--teal-mid); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-mid) !important; color: var(--white) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ── HERO (shared) ── */
.hero {
  min-height: 100vh;
  background: var(--slate);
  padding: calc(var(--nav-h) + 80px) 48px 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 70% 40%, rgba(13,148,136,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 400px 300px at 20% 70%, rgba(124,58,237,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 300px 200px at 90% 80%, rgba(217,119,6,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title .accent-teal   { color: var(--teal-mid); }
.hero-title .accent-violet { color: #a78bfa; }
.hero-title .accent-amber  { color: #fbbf24; }
.hero-body {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
}
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-1px); }
.btn-ghost {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
}
.btn-ghost:hover { color: var(--white); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 13px 26px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ── FLOWS MINI VISUAL ── */
.flows-visual {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 32px 28px;
}
.flows-visual-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 24px;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.flow-row:last-child { margin-bottom: 0; }
.flow-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.flow-pip.p { background: var(--flow-physical); }
.flow-pip.i { background: var(--flow-info); }
.flow-pip.f { background: var(--flow-financial); }
.flow-line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.flow-line.p { background: linear-gradient(90deg, var(--flow-physical), rgba(13,148,136,0.2)); }
.flow-line.i { background: linear-gradient(90deg, var(--flow-info), rgba(124,58,237,0.2)); }
.flow-line.f { background: linear-gradient(90deg, var(--flow-financial), rgba(217,119,6,0.2)); }
.flow-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: rgba(255,255,255,0.4);
  animation: flowpulse 3s ease-in-out infinite;
}
.flow-row:nth-child(2) .flow-line::after { animation-delay: 1s; }
.flow-row:nth-child(3) .flow-line::after { animation-delay: 2s; }
@keyframes flowpulse { 0%,100%{left:-60%} 50%{left:110%} }
.flow-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-node-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: 0.8; }
.flow-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 80px;
  text-align: right;
}
.flow-name.p { color: var(--teal-lt); }
.flow-name.i { color: #c4b5fd; }
.flow-name.f { color: #fcd34d; }
.flows-visual-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ── SECTIONS ── */
.section { padding: 96px 48px; }
.section-light { background: var(--white); }
.section-off { background: var(--off); }
.section-dark { background: var(--slate); }
.section-teal { background: var(--teal-wash); }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-label.on-dark { color: var(--teal-mid); }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title.on-dark { color: var(--white); }
.section-body {
  font-size: 16px;
  color: var(--slate-lt);
  line-height: 1.75;
  max-width: 580px;
  font-weight: 300;
}
.section-body.on-dark { color: rgba(255,255,255,0.5); }

/* ── THREE FLOWS CARDS ── */
.flows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--border);
  border: 1.5px solid var(--slate);
  margin-top: 48px;
}
.flow-card {
  padding: 36px 30px;
  background: var(--white);
  position: relative;
}
.flow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.flow-card.p::before { background: var(--flow-physical); }
.flow-card.i::before { background: var(--flow-info); }
.flow-card.f::before { background: var(--flow-financial); }
.flow-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.flow-card.p .flow-card-num { color: var(--flow-physical); }
.flow-card.i .flow-card-num { color: var(--flow-info); }
.flow-card.f .flow-card-num { color: var(--flow-financial); }
.flow-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.flow-card-sub {
  font-size: 13px;
  margin-bottom: 16px;
  font-style: italic;
}
.flow-card.p .flow-card-sub { color: var(--flow-physical); }
.flow-card.i .flow-card-sub { color: var(--flow-info); }
.flow-card.f .flow-card-sub { color: var(--flow-financial); }
.flow-card-body { font-size: 14px; color: var(--slate-lt); line-height: 1.7; margin-bottom: 20px; }
.flow-card-list { list-style: none; }
.flow-card-list li {
  font-size: 13px;
  color: var(--slate-soft);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.flow-card-list li:last-child { border-bottom: none; }
.flow-card-list li::before { content: '→'; font-size: 11px; margin-top: 2px; flex-shrink: 0; }
.flow-card.p .flow-card-list li::before { color: var(--flow-physical); }
.flow-card.i .flow-card-list li::before { color: var(--flow-info); }
.flow-card.f .flow-card-list li::before { color: var(--flow-financial); }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.service-card {
  border: 1.5px solid var(--border);
  padding: 32px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.service-card:hover { border-color: var(--teal); box-shadow: 0 4px 24px rgba(13,148,136,0.08); }
.service-card.featured {
  grid-column: span 2;
  border-color: var(--teal);
  background: var(--teal-wash);
}
.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.service-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.service-desc { font-size: 14px; color: var(--slate-lt); line-height: 1.7; margin-bottom: 20px; }
.service-price {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 4px;
}
.service-price-note { font-size: 12px; color: var(--slate-lt); font-family: 'JetBrains Mono', monospace; }

/* ── PROCESS STEPS ── */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 48px; position: relative; }
.process-steps::before {
  content: '';
  position: absolute;
  top: 24px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--flow-physical), var(--flow-info), var(--flow-financial));
  opacity: 0.3;
}
.process-step { padding: 0 20px; text-align: center; }
.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.process-step:nth-child(1) .process-num { background: var(--flow-physical); }
.process-step:nth-child(2) .process-num { background: var(--flow-info); }
.process-step:nth-child(3) .process-num { background: var(--flow-financial); }
.process-step:nth-child(4) .process-num { background: var(--slate); }
.process-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.process-body { font-size: 13px; color: var(--slate-lt); line-height: 1.6; }

/* ── CREDENTIALS ── */
.creds-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.cred-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px;
  border-radius: 2px;
}
.cred-icon { font-size: 28px; margin-bottom: 14px; }
.cred-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.cred-body { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ── AI PHILOSOPHY ── */
.ai-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--border); margin-top: 48px; }
.ai-panel { padding: 40px 36px; }
.ai-panel.wrong { background: #fef2f2; }
.ai-panel.right { background: var(--teal-wash); }
.ai-panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ai-panel.wrong .ai-panel-label { color: #dc2626; }
.ai-panel.right .ai-panel-label { color: var(--teal); }
.ai-panel-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.ai-panel-body { font-size: 14px; color: var(--slate-lt); line-height: 1.7; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--teal);
  padding: 72px 48px;
  text-align: center;
}
.cta-strip-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.cta-strip-title { font-family: 'Syne', sans-serif; font-size: clamp(24px,3vw,38px); font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-strip-body { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 36px; font-weight: 300; }
.btn-white { background: var(--white); color: var(--teal); padding: 14px 32px; border-radius: 4px; font-size: 15px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.15s, box-shadow 0.15s; font-family: 'Instrument Sans', sans-serif; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ── FOOTER ── */
footer {
  background: var(--slate-mid);
  padding: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer-brand { }
.footer-logo { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 8px; }
.footer-logo span { color: var(--teal-mid); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-email { font-size: 14px; color: var(--teal-mid); text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { max-width: 1100px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: rgba(255,255,255,0.2); font-family: 'JetBrains Mono', monospace; display: flex; justify-content: space-between; }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-2 { transition-delay: 0.1s; }
.fade-up-3 { transition-delay: 0.2s; }
.fade-up-4 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 48px) 24px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .flows-visual { display: none; }
  .section { padding: 64px 24px; }
  .flows-grid, .services-grid, .process-steps, .creds-grid, .ai-split { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .process-steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cta-strip { padding: 56px 24px; }
}