/* ═══════════════════════════════════════════════════════
   DevopsAgent — Marketing Site Styles
   ═══════════════════════════════════════════════════════ */

:root {
  /* Brand — indigo primary, slate neutrals */
  --br: #6366F1;          /* indigo-500 */
  --br-d: #4F46E5;        /* indigo-600 */
  --br-dk: #4338CA;       /* indigo-700 */
  --br-l: #EEF2FF;        /* indigo-50 */
  --br-b: #C7D2FE;        /* indigo-200 */
  --br-grad-2: #8B5CF6;   /* violet-500 (for hero gradient) */

  /* Accent — emerald, used sparingly */
  --ac: #10B981;
  --ac-l: #ECFDF5;

  /* Text */
  --t1: #0F172A;          /* slate-900 */
  --t2: #334155;          /* slate-700 */
  --t3: #64748B;          /* slate-500 */
  --t4: #94A3B8;          /* slate-400 */

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-s: #F8FAFC;        /* slate-50 */
  --bg-t: #F1F5F9;        /* slate-100 */
  --bdr: #E2E8F0;         /* slate-200 */
  --bdr-l: #F1F5F9;
  --ink: #0B1020;         /* hero dark band */

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --sh-md: 0 4px 8px -2px rgba(15,23,42,.06), 0 2px 4px -2px rgba(15,23,42,.04);
  --sh-lg: 0 12px 28px -6px rgba(15,23,42,.10), 0 6px 12px -4px rgba(15,23,42,.06);
  --sh-br: 0 0 0 1px rgba(99,102,241,.18), 0 10px 28px rgba(99,102,241,.18);

  --ff: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, monospace;
  --nav-h: 64px;
  --max-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ──────────────────────────────────────────────────────
   NAV
   ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--bdr); box-shadow: 0 1px 12px rgba(15,23,42,.04); }
.nav-inner {
  height: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: 32px; }
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--br) 0%, var(--br-grad-2) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(99,102,241,.35);
}
.nav-logo-mark svg { width: 18px; height: 18px; color: #fff; }
.nav-logo-text { font-size: 16px; font-weight: 800; letter-spacing: -.4px; color: var(--t1); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--t2);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--t1); background: var(--bg-t); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-ghost { font-size: 14px; font-weight: 500; color: var(--t3); padding: 8px 14px; transition: color .15s; }
.nav-ghost:hover { color: var(--t1); }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: 6px;
  border: none; background: transparent; margin-left: auto;
}
.nav-mobile-toggle span {
  width: 22px; height: 1.8px; background: var(--t2);
  border-radius: 2px; transition: all .25s;
}
.nav-mobile-open .nav-mobile-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-mobile-open .nav-mobile-toggle span:nth-child(2) { opacity: 0; }
.nav-mobile-open .nav-mobile-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--bdr); padding: 18px;
  flex-direction: column; gap: 4px;
  box-shadow: 0 4px 20px rgba(15,23,42,.08); z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  display: block; padding: 12px 14px; font-size: 15px; font-weight: 500;
  color: var(--t2); border-radius: 8px; transition: all .15s;
}
.nav-mobile-link:hover { background: var(--br-l); color: var(--br-dk); }
.nav-mobile-divider { height: 1px; background: var(--bdr-l); margin: 8px 0; }

/* ──────────────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--r-full);
  border: none; cursor: pointer;
  transition: all .18s; text-decoration: none;
  letter-spacing: -.2px; line-height: 1;
}
.btn-primary {
  background: var(--t1); color: #fff;
  box-shadow: 0 4px 12px rgba(15,23,42,.18);
}
.btn-primary:hover { background: #1E293B; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,23,42,.22); }

.btn-br {
  background: var(--br); color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,.32);
}
.btn-br:hover { background: var(--br-d); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(99,102,241,.38); }

.btn-ghost {
  background: transparent; color: var(--t2);
  border: 1.5px solid var(--bdr);
}
.btn-ghost:hover { border-color: var(--t4); color: var(--t1); background: var(--bg-s); }

.btn-white {
  background: #fff; color: var(--br-dk);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }

.btn-outline-w {
  background: rgba(255,255,255,.10); color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline-w:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); }

/* ──────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 88px) 0 96px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(99,102,241,.10) 0%, transparent 60%),
    radial-gradient(40% 50% at 80% 20%, rgba(139,92,246,.08) 0%, transparent 70%),
    #FFFFFF;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 860px; margin: 0 auto; padding: 0 24px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-full);
  padding: 5px 14px 5px 6px; margin-bottom: 28px;
  box-shadow: var(--sh-sm);
  font-size: 13px; color: var(--t2);
}
.hero-pill-badge {
  background: var(--br); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 10px; border-radius: var(--r-full);
}
.hero-h1 {
  font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; line-height: 1.06;
  letter-spacing: -2px; color: var(--t1); margin-bottom: 22px;
}
.hero-h1 .accent {
  background: linear-gradient(120deg, var(--br) 0%, var(--br-grad-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: 19px; color: var(--t3); line-height: 1.65;
  max-width: 640px; margin: 0 auto 32px;
}
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t3); }
.hero-trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }

/* Code preview card */
.hero-code {
  margin: 64px auto 0; max-width: 880px; position: relative; z-index: 2;
  border-radius: var(--r-2xl); overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.35), 0 18px 36px -18px rgba(99,102,241,.25);
  border: 1px solid rgba(99,102,241,.20);
}
.hero-code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #07091A;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-code-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-code-dot.r { background: #ff5f57; } .hero-code-dot.y { background: #febc2e; } .hero-code-dot.g { background: #28c840; }
.hero-code-title { font-size: 12.5px; color: #94A3B8; margin-left: 6px; font-family: var(--mono); }
.hero-code-body {
  padding: 24px 28px; font-family: var(--mono); font-size: 13.5px;
  color: #E2E8F0; line-height: 1.7;
}
.hl-k { color: #C4B5FD; } .hl-s { color: #86EFAC; } .hl-c { color: #64748B; }
.hl-tag { color: #FBBF24; font-weight: 700; }
.hl-ok { color: #10B981; font-weight: 700; }
.hl-warn { color: #F59E0B; font-weight: 700; }

/* ──────────────────────────────────────────────────────
   SECTIONS
   ────────────────────────────────────────────────────── */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-s); }
.section-dark { background: var(--ink); color: #E2E8F0; }
.section-dark .section-h2 { color: #fff; }
.section-dark .section-sub { color: #94A3B8; }

.section-hdr { margin-bottom: 56px; }
.section-hdr-c { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-label {
  display: inline-flex; align-items: center;
  background: var(--br-l); border: 1px solid var(--br-b); color: var(--br-dk);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-full); margin-bottom: 18px;
}
.section-h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  line-height: 1.14; letter-spacing: -1.4px; color: var(--t1); margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--t3); line-height: 1.65; max-width: 580px;
}
.section-hdr-c .section-sub { margin-left: auto; margin-right: auto; }

/* ──────────────────────────────────────────────────────
   HOW IT WORKS
   ────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-xl);
  padding: 32px 28px; position: relative; transition: all .25s;
  box-shadow: var(--sh-sm);
}
.step:hover { border-color: var(--br-b); box-shadow: var(--sh-br); transform: translateY(-3px); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--br) 0%, var(--br-grad-2) 100%);
  color: #fff; font-weight: 800; font-size: 16px;
  margin-bottom: 18px; box-shadow: 0 4px 12px rgba(99,102,241,.32);
}
.step-h { font-size: 18px; font-weight: 700; color: var(--t1); margin-bottom: 8px; letter-spacing: -.4px; }
.step-p { font-size: 14.5px; color: var(--t3); line-height: 1.65; }

/* ──────────────────────────────────────────────────────
   DECISION TRIPTYCH
   ────────────────────────────────────────────────────── */
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dec-card {
  background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-xl);
  padding: 28px; transition: all .25s;
}
.dec-card:hover { box-shadow: var(--sh-lg); border-color: var(--br-b); transform: translateY(-3px); }
.dec-tag {
  display: inline-flex; padding: 4px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 14px;
}
.dec-tag.green { background: var(--ac-l); color: #047857; }
.dec-tag.indigo { background: var(--br-l); color: var(--br-dk); }
.dec-tag.red { background: #FEF2F2; color: #B91C1C; }
.dec-h { font-size: 19px; font-weight: 700; color: var(--t1); margin-bottom: 10px; letter-spacing: -.4px; }
.dec-p { font-size: 14.5px; color: var(--t3); line-height: 1.65; margin-bottom: 14px; }
.dec-meta {
  font-family: var(--mono); font-size: 12px; color: var(--t3);
  background: var(--bg-s); border: 1px solid var(--bdr-l);
  border-radius: var(--r-sm); padding: 8px 12px;
}

/* ──────────────────────────────────────────────────────
   FEATURE GRID
   ────────────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-xl);
  padding: 26px; transition: all .25s; box-shadow: var(--sh-sm);
}
.feat-card:hover { border-color: var(--br-b); box-shadow: var(--sh-br); transform: translateY(-2px); }
.feat-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--br-l); color: var(--br-dk);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 18px;
}
.feat-title { font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 8px; letter-spacing: -.3px; }
.feat-desc { font-size: 14px; color: var(--t3); line-height: 1.65; }

/* ──────────────────────────────────────────────────────
   ARCHITECTURE
   ────────────────────────────────────────────────────── */
.arch {
  background: var(--ink); border-radius: var(--r-2xl);
  padding: 36px; overflow: auto;
  border: 1px solid rgba(99,102,241,.18);
  box-shadow: 0 24px 48px -16px rgba(15,23,42,.4);
}
.arch pre {
  font-family: var(--mono); font-size: 12.5px; color: #CBD5E1;
  line-height: 1.5; white-space: pre;
}

/* ──────────────────────────────────────────────────────
   INTEGRATION CHIPS
   ────────────────────────────────────────────────────── */
.int-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.int-chip {
  background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-md);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
  transition: all .2s; font-size: 13.5px; font-weight: 600; color: var(--t2);
}
.int-chip:hover { border-color: var(--br-b); background: var(--br-l); color: var(--br-dk); }
.int-chip.soon { opacity: .6; }
.int-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }
.int-chip.soon .int-dot { background: var(--t4); }

/* ──────────────────────────────────────────────────────
   ROADMAP
   ────────────────────────────────────────────────────── */
.road-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 36px;
}
.road-tab {
  background: #fff; border: 1px solid var(--bdr); color: var(--t2);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-full); cursor: pointer;
  transition: all .18s;
}
.road-tab:hover { border-color: var(--br-b); color: var(--br-dk); }
.road-tab.active { background: var(--t1); border-color: var(--t1); color: #fff; }

.road-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.road-item {
  background: #fff; border: 1px solid var(--bdr); border-radius: var(--r-lg);
  padding: 18px 20px; display: flex; align-items: flex-start; gap: 14px;
  transition: all .2s;
}
.road-item:hover { border-color: var(--br-b); box-shadow: var(--sh-md); }
.road-num {
  flex-shrink: 0; width: 30px; height: 30px;
  background: var(--br-l); color: var(--br-dk);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.road-body { flex: 1; }
.road-h { font-size: 14.5px; font-weight: 700; color: var(--t1); margin-bottom: 4px; }
.road-p { font-size: 13.5px; color: var(--t3); line-height: 1.55; }

/* ──────────────────────────────────────────────────────
   CTA BAND
   ────────────────────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(139,92,246,.6) 0%, transparent 60%),
    radial-gradient(80% 100% at 100% 100%, rgba(99,102,241,.7) 0%, transparent 60%),
    linear-gradient(135deg, var(--br-dk), var(--br));
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -1.4px; line-height: 1.15; margin-bottom: 14px; color: #fff;
}
.cta-band p {
  font-size: 17.5px; color: rgba(255,255,255,.85);
  max-width: 580px; margin: 0 auto 32px; line-height: 1.65;
}
.cta-band-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ──────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────── */
.footer { background: #FFFFFF; border-top: 1px solid var(--bdr); padding: 64px 0 28px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 36px; padding-bottom: 40px;
  border-bottom: 1px solid var(--bdr-l);
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-tagline { font-size: 14px; color: var(--t3); line-height: 1.65; max-width: 320px; }
.footer-col-h {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--t1); margin-bottom: 16px;
}
.footer-link {
  display: block; font-size: 13.5px; color: var(--t3);
  margin-bottom: 10px; transition: color .15s;
}
.footer-link:hover { color: var(--br-dk); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--t4);
}
.footer-badges { display: flex; gap: 8px; }
.footer-badge {
  background: var(--br-l); border: 1px solid var(--br-b); color: var(--br-dk);
  font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .05em;
}

/* ──────────────────────────────────────────────────────
   REVEAL ANIMATION
   ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .08s; } .rd2 { transition-delay: .16s; } .rd3 { transition-delay: .24s; }
.rd4 { transition-delay: .32s; } .rd5 { transition-delay: .40s; } .rd6 { transition-delay: .48s; }

/* ──────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .decision-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-ghost { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .section { padding: 64px 0; }
  .steps, .feat-grid, .road-list, .footer-top { grid-template-columns: 1fr; }
  .hero-code { margin-top: 40px; }
  .hero-code-body { padding: 18px 18px; font-size: 12px; }
  .arch { padding: 18px; }
  .arch pre { font-size: 10.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
