/* ── Base ── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --indigo: #635BFF;
  --indigo-dark: #4F46E5;
  --indigo-light: #EEF2FF;
  --teal: #00D4AA;
  --teal-light: #E6FBF6;
  --navy: #0A2540;
  --navy-mid: #1A3A5C;
  --text: #425466;
  --text-light: #697386;
  --border: #E3E8EE;
  --bg: #FFFFFF;
  --bg-off: #F6F9FC;
  --bg-subtle: #FAFBFC;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 52px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--indigo); }
.nav-link--active { color: var(--indigo); }
.lang-switcher { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 600; color: var(--navy);
  cursor: pointer; padding: 5px 10px; border-radius: 6px;
  background: var(--bg-off); border: 1px solid var(--border);
  list-style: none; letter-spacing: 0.04em; user-select: none;
  transition: border-color 0.15s;
}
.lang-current::-webkit-details-marker { display: none; }
.lang-current svg { transition: transform 0.15s; }
.lang-switcher[open] .lang-current { border-color: var(--indigo); }
.lang-switcher[open] .lang-current svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 4px; min-width: 100px;
  box-shadow: 0 4px 16px rgba(10,37,64,0.1); z-index: 200;
}
.lang-option {
  display: block; padding: 7px 12px; font-size: 0.75rem; font-weight: 600;
  color: var(--text-light); text-decoration: none; border-radius: 5px;
  letter-spacing: 0.04em; transition: background 0.1s, color 0.1s;
}
.lang-option:hover { background: var(--bg-off); color: var(--navy); }
.lang-option--active { color: var(--indigo); }
.nav-cta {
  background: var(--indigo);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover { background: var(--indigo-dark); transform: translateY(-1px); }

/* ── Typography base ── */
h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.container { max-width: 1120px; margin: 0 auto; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(99,91,255,0.35);
}
.btn-primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,91,255,0.45);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: var(--bg-subtle);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.825rem; color: var(--text-light); }
.footer-link {
  font-size: 0.825rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--indigo); }

/* ── Page hero ── */
.cs-hero {
  padding: 80px 24px 72px;
  text-align: center;
  background: linear-gradient(180deg, #FAFBFF 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(99,91,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cs-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin: 0 auto 20px;
}
.cs-hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── Sections ── */
.cs-section { padding: 96px 24px; }
.cs-section--dark { background: var(--navy); }
.cs-section--light { background: var(--bg); }
.cs-section--light-off { background: var(--bg-off); }

.cs-section--dark .section-eyebrow { color: var(--teal); }
.cs-section--dark h2 { color: #fff; }
.cs-section--dark .section-lead { color: rgba(255,255,255,0.65); }

.cs-body {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 680px;
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 40px;
}
.cs-body--dark {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 680px;
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 40px;
}
.cs-body--wide { max-width: 760px; }

/* ── GIF Placeholder ── */
.gif-placeholder {
  background: #1a1a2e;
  border-radius: 12px;
  width: 100%;
  margin: 40px 0;
  overflow: hidden;
}
.gif-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Stat Callout ── */
.stat-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px 16px;
  text-align: center;
}
.stat-number {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(90deg, var(--indigo) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  max-width: 340px;
  line-height: 1.5;
}
.stat-source {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* ── Sources Grid ── */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 28px;
}
.source-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
}
.source-icon {
  width: 48px;
  height: 48px;
  background: var(--indigo-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
}
.source-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.source-tool {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}
.cs-sources-caption {
  font-size: 1rem;
  color: var(--text);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ── Pipeline Timeline ── */
.pipeline-timeline {
  display: flex;
  align-items: flex-start;
  margin-top: 48px;
}
.pipeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.pipeline-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99,91,255,0.2);
  border: 2px solid rgba(99,91,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #a8a3ff;
  flex-shrink: 0;
}
.pipeline-step-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.pipeline-step-body p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  max-width: 120px;
  margin: 0 auto;
}
.pipeline-connector {
  flex-shrink: 0;
  width: 32px;
  height: 2px;
  background: rgba(99,91,255,0.35);
  margin-top: 21px;
}

/* ── Callout Cards ── */
.callout-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.callout-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 24px 24px 24px 20px;
}
.callout-card--green { border-left-color: #10B981; }
.callout-card--red   { border-left-color: #EF4444; }
.callout-card-company {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.callout-card-moic {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.callout-card--green .callout-card-moic { color: #059669; }
.callout-card--red   .callout-card-moic { color: #DC2626; }
.callout-card-detail {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Branding Callout (section 5) ── */
.branding-callout {
  border: 1.5px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 8px;
  background: rgba(255,255,255,0.04);
}
.branding-callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.branding-callout-body {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── Built With You cards ── */
.bwy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.bwy-card {
  background: var(--bg-off);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}
.bwy-icon {
  width: 40px;
  height: 40px;
  background: var(--indigo-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  margin-bottom: 16px;
}
.bwy-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.bwy-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── Stack footnote ── */
.stack-footnote {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Tool Logos ── */
.tool-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.tool-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 18px;
  letter-spacing: -0.01em;
  transition: border-color 0.15s;
}
.tool-logo:hover { border-color: var(--indigo); }

/* ── CTA Section ── */
.cs-cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cs-cta-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,91,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cs-cta-section .section-eyebrow { color: var(--teal); }
.cs-cta-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}
.cs-cta-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  position: relative;
}
.cs-cta-section .btn-primary { position: relative; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
  .bwy-cards { grid-template-columns: 1fr; }
  .pipeline-timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .pipeline-connector {
    width: 2px;
    height: 28px;
    margin: 0 auto;
  }
  .callout-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cs-section { padding: 72px 20px; }
  .cs-hero { padding: 56px 20px 52px; }
  .cs-cta-section { padding: 80px 20px; }
  .nav-right { gap: 10px; }
}
