/* ============================================================
   BA Star — Global Stylesheet
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; } /* guard against any element forcing horizontal scroll */
img { max-width: 100%; display: block; }

/* ── Custom Properties ── */
:root {
  /* ── Atlassian-inspired palette (matches BA Star webapp) ── */
  --bg:            #ffffff;
  --bg-subtle:     #f4f5f7;   /* webapp --background */
  --bg-dark:       #0d1b2e;   /* webapp dark --background */
  --bg-dark-2:     #1e3a5f;   /* webapp logoBar */

  --accent:        #0052cc;   /* webapp --primary — Jira blue */
  --accent-hover:  #0747a6;
  --accent-light:  #deebff;   /* webapp --info-bg */
  --accent-dim:    rgba(0, 82, 204, 0.10);

  --text:          #172b4d;   /* webapp --foreground */
  --text-muted:    #6b778c;   /* webapp --muted-foreground */
  --text-subtle:   #97a0af;
  --text-on-dark:  #c7d6e8;   /* webapp dark --foreground */
  --text-dim-dark: #8fa3b8;

  --border:        #dfe1e6;   /* webapp --border */
  --border-dark:   rgba(255,255,255,0.07);

  --font:          'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.07);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);

  --max-w:   1100px;
  --gutter:  clamp(20px, 5vw, 48px);
}

/* ── Base ── */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-muted); line-height: 1.8; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(48px, 6vw, 76px) 0; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

/* Dark hero nav (index.html only) */
.dark-hero .nav { background: transparent; }
.dark-hero .nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

/* Light pages nav */
body:not(.dark-hero) .nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.15s;
}

.nav-logo:hover { opacity: 0.85; text-decoration: none; }

.nav-logo img.logo-icon {
  width: 47px;
  height: 47px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }

.nav-logo-name {
  font-family: 'Audiowide', sans-serif;
  font-size: 1.17rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.2s;
}

.nav-logo-sub {
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 3px;
  transition: color 0.2s;
}

.dark-hero .nav:not(.scrolled) .nav-logo-name { color: #f1f5f9; }
.dark-hero .nav:not(.scrolled) .nav-logo-sub  { color: #6b8baf; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

.dark-hero .nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.65); }
.dark-hero .nav:not(.scrolled) .nav-links a:hover { color: rgba(255,255,255,0.95); }
.dark-hero .nav:not(.scrolled) .nav-links a.active { color: #a5b4fc; }

/* Nav CTA */
.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: white !important;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79,70,229,0.35);
  text-decoration: none !important;
}

.dark-hero .nav:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
}
.dark-hero .nav:not(.scrolled) .nav-cta:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  transition: all 0.2s;
  background: var(--text);
}

.dark-hero .nav:not(.scrolled) .nav-hamburger span { background: rgba(255,255,255,0.85); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
  line-height: 1;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79,70,229,0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  color: white;
  border-color: rgba(255,255,255,0.32);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.btn-dark {
  background: var(--text);
  color: white;
}
.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { font-size: 0.8125rem; padding: 8px 16px; }

/* Orange "Get in touch" CTA — the orange from logo.svg (#fa8000).
   !important so it overrides any base variant (primary/ghost/outline/nav). */
.cta-orange {
  background: #fa8000 !important;
  border-color: #fa8000 !important;
  color: #fff !important;
}
.cta-orange:hover {
  background: #e57100 !important;
  border-color: #e57100 !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(250, 128, 0, 0.35);
}

/* ── Section Label ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.label-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Section Header ── */
.section-hd {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-hd h2 { margin-bottom: 14px; }

.section-hd p {
  font-size: 1.0625rem;
  max-width: 540px;
  line-height: 1.8;
}

.section-hd.center { text-align: center; }
.section-hd.center p { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(79,70,229,0.2);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.card-icon svg { width: 22px; height: 22px; }

/* ── Hero ── */
.hero {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding-top: 72px; /* nav offset */
  min-height: 100vh; /* dark hero fills the viewport */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* As a flex child the container must fill the width, or its margin:0 auto
   collapses it to content width and the headline stops wrapping. */
.hero > .container { width: 100%; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(0,82,204,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 85% 75%, rgba(0,82,204,0.15) 0%, transparent 55%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6vw, 72px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,82,204,0.18);
  border: 1px solid rgba(0,82,204,0.40);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #80b3ff;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  background: #5b9ef5;
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.82); }
}

.hero h1 {
  color: #f1f5f9;
  max-width: 960px;
  margin: 0 auto 24px;
  font-size: clamp(1.9rem, 6vw, 3.25rem);
}

/* Keep "product thinking and technical execution" on one row on desktop */
.hero h1 .hero-line2 { white-space: nowrap; }

@media (max-width: 720px) {
  .hero h1 .hero-line2 { white-space: normal; }
}

.hero h1 .gradient-text {
  background: linear-gradient(130deg, #b3d0ff 0%, #80b3ff 40%, #5b9ef5 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

/* Hero lead — the product definition; the most important statement on the site */
.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  color: #cbd5e1;
  max-width: 720px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-lead strong {
  color: #f1f5f9;
  font-weight: 600;
}

.hero-lead-note {
  font-size: 0.82em;
  color: #94a3b8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-trust {
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 12px 32px;
  width: fit-content;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #dbe4f0;
  font-weight: 500;
  opacity: 0;
  animation: trust-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.trust-item:nth-child(1) { animation-delay: 0.15s; }
.trust-item:nth-child(2) { animation-delay: 0.30s; }
.trust-item:nth-child(3) { animation-delay: 0.45s; }
.trust-item:nth-child(4) { animation-delay: 0.60s; }

.trust-item svg {
  width: 15px;
  height: 15px;
  color: #5b9ef5;
  flex-shrink: 0;
}

@keyframes trust-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-item {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 480px) {
  .hero-trust { grid-template-columns: auto; }
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.step {
  background: var(--bg);
  padding: 36px 32px;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step h3 { margin-bottom: 12px; font-size: 1.125rem; }

/* ── Benefits grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── Integrations ── */
.integrations-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.int-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}

.int-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.int-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Dark callout ── */
.callout-dark {
  background: var(--bg-dark);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 64px) clamp(32px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}

.callout-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 0% 50%, rgba(0,82,204,0.25) 0%, transparent 60%);
  pointer-events: none;
}

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

.callout-dark h2, .callout-dark h3 { color: #f1f5f9; }
.callout-dark .label { color: #818cf8; }
.callout-dark .label-dot { background: #818cf8; }
.callout-dark p { color: #94a3b8; }

/* ── Highlight box ── */
.highlight-box {
  background: var(--accent-light);
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: var(--r-md);
  padding: 20px 24px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: calc(72px + 64px) 0 64px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 6vw, 3rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.125rem;
  max-width: 560px;
  line-height: 1.8;
}

/* ── Checklist ── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.check-list li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Two-column item-type grid (How it works "what it produces") */
.produces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
}

@media (max-width: 640px) {
  .produces-grid { grid-template-columns: 1fr; }
}

/* ── Data Flow Diagram ── */
.df-diagram {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  background: var(--bg-subtle);
  position: relative;
}

.df-infra {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  margin-bottom: 32px;
}

.df-infra-label {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--bg-subtle);
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.df-nodes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.df-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  text-align: center;
  min-width: 120px;
}

.df-node.primary {
  border-color: var(--accent);
  background: var(--accent-light);
}

.df-node-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.df-node.primary .df-node-title { color: var(--accent); }

.df-node-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.df-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 16px auto;
  max-width: 320px;
}

.df-arrow-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--border), var(--accent));
  border-radius: 2px;
}

.df-arrow-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-subtle);
  padding: 2px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  text-align: center;
}

.df-external {
  max-width: 320px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  text-align: center;
}

/* ── Deployment options ── */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.deploy-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: all 0.2s;
}

.deploy-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.deploy-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-subtle);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.deploy-card h4 { margin-bottom: 6px; }
.deploy-card p { font-size: 0.875rem; }

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ── Context source cards ── */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.source-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.source-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0,82,204,0.2);
}

.source-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.source-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.source-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .sources-grid { grid-template-columns: 1fr; }
}

/* ── Case study cards ── */
.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.case-card-body { padding: 36px; }

.case-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.case-card h3 { margin-bottom: 12px; font-size: 1.375rem; }

.case-stat-row {
  display: flex;
  gap: 28px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.case-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.case-stat span {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.case-quote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--accent-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 24px;
}

.case-quote blockquote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.case-quote cite {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: normal;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  color: var(--text-dim-dark);
  padding: 56px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.8375rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 16px;
}

.footer-email {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #5b9ef5;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-email:hover { color: #93c5fd; text-decoration: none; }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: #f1f5f9; text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 0.8125rem; color: #64748b; }

.footer-bottom a { font-size: 0.8125rem; color: #94a3b8; }
.footer-bottom a:hover { color: #f1f5f9; }

/* ── Utility ── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile nav open */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #0d1117;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open li { border-bottom: 1px solid rgba(255,255,255,0.05); }

  .nav-links.open a {
    display: block;
    padding: 14px 0;
    color: rgba(255,255,255,0.75) !important;
    font-size: 1rem;
  }

  .nav-links.open .nav-cta {
    display: inline-flex;
    margin-top: 12px;
    background: var(--accent) !important;
    color: white !important;
  }

  .steps-grid { grid-template-columns: 1fr; }
  .grid-2     { grid-template-columns: 1fr; }
  .grid-3     { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: 1fr; }
  .callout-dark-inner { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-trust {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }

  .df-nodes { flex-direction: column; align-items: stretch; }
  .df-node  { min-width: 0; }
}

/* ── Mobile: collapse inline multi-column grids & undo desktop-only overrides ── */
@media (max-width: 768px) {
  /* Any inline 2-column grid stacks to one column */
  [style*="1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Long nowrap phrases must wrap on small screens (prevents horizontal overflow) */
  [style*="nowrap"] { white-space: normal !important; }

  /* Desktop-only spacer between the comparison cards and the text above them */
  [style*="margin-top:84px"] { margin-top: 0 !important; }
}
