/* tagaris.css */
/* Tagaris marketing site. Light theme, shared across all pages. */
/* Palette from docs/brand.md in the Tagaris repo: navy #061633, blue #0A7BFF, */
/* cyan #22BFFF, off-white #F7FAFF, border grey #DCE6F3. */
/* British English, house style applies to all copy. */

:root {
  --accent:        #0a7bff;               /* main Tagaris blue */
  --accent-dim:    #064bd8;               /* deep blue, used for hover and links */
  --accent-bright: #22bfff;               /* bright cyan, decorative use on navy only */
  --accent-rgb:    10, 123, 255;

  --navy:          #061633;               /* headings, footer, terminal */
  --navy-2:        #0b234a;               /* card navy, terminal border */

  --bg-page:       #ffffff;
  --bg-band:       #f7faff;               /* alternating section background */
  --bg-card:       #ffffff;

  --border:        #dce6f3;
  --border-strong: #c3d4e8;

  --text-primary:  #061633;
  --text-muted:    #46536e;               /* body copy */
  --text-subtle:   #7d8aa3;               /* captions and small meta */

  --font-mono:     "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;

  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;

  --shadow-card:   0 1px 3px rgba(6, 22, 51, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Layout */
.page { margin: 0 auto; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--navy);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* ─── Topbar ─────────────────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.topbar-logo {
  height: 40px;
  width: auto;
  display: block;
}

.header-right { display: flex; justify-content: flex-end; align-items: center; }
.topbar-links { display: flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 500; }
.topbar-links a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: .15s ease;
}
.topbar-links a:hover { color: var(--text-primary); background: var(--bg-band); }
.topbar-links a[aria-current="page"] { color: var(--text-primary); }
.topbar-links a.nav-cta {
  color: #fff;
  background: var(--accent);
  margin-left: 6px;
}
.topbar-links a.nav-cta:hover { background: var(--accent-dim); color: #fff; }

@media (max-width: 720px) {
  .topbar-links { gap: 2px; font-size: .86rem; flex-wrap: wrap; justify-content: flex-end; }
  .topbar-links a { padding: 7px 8px; }
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: .15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-secondary {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dim); }

/* ─── Animations ─────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .5s ease-out both; }
.fade-in-delay { animation: fadeInUp .5s ease-out .12s both; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 0 56px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--navy);
}

.hero p.lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── Quick start terminal ───────────────────────────────────────────── */
.term {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  background: var(--navy);
  border: 1px solid var(--navy-2);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(6, 22, 51, 0.18);
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.9;
  padding: 18px 22px;
  overflow-x: auto;
}
.term .cmd { color: #e8f1fd; white-space: nowrap; }
.term .cmd::before { content: "$ "; color: var(--accent-bright); }
.term .note { color: #7d8aa3; white-space: nowrap; }
.term-caption {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 600px) {
  .term { font-size: .78rem; padding: 14px 16px; }
}

/* ─── Browser-framed screenshot ──────────────────────────────────────── */
.browser {
  max-width: 980px;
  margin: 48px auto 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 22, 51, 0.16);
  background: #fff;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-band);
  border-bottom: 1px solid var(--border);
}
.browser-bar .b-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser-bar .b-url {
  margin-left: 10px;
  font-size: .76rem;
  color: var(--text-subtle);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 14px;
}
.browser img { display: block; width: 100%; height: auto; }
.shot-caption {
  text-align: center;
  font-size: .85rem;
  color: var(--text-subtle);
  margin-top: 14px;
}

/* ─── How it works steps ─────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.step .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 12px;
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: .89rem; color: var(--text-muted); line-height: 1.6; }
.step code { font-family: var(--font-mono); font-size: .85em; color: var(--accent-dim); }

/* ─── Feature rows with screenshots ──────────────────────────────────── */
.shot-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 44px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}
.shot-row + .shot-row { margin-top: 64px; }
.shot-row.flip { grid-template-columns: 1.25fr 1fr; }
.shot-row.flip .shot-text { order: 2; }
.shot-row.flip .shot-img { order: 1; }
@media (max-width: 820px) {
  .shot-row, .shot-row.flip { grid-template-columns: 1fr; gap: 20px; }
  .shot-row.flip .shot-text { order: 1; }
  .shot-row.flip .shot-img { order: 2; }
}
.shot-text h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; letter-spacing: -.01em; }
.shot-text p { font-size: .93rem; color: var(--text-muted); line-height: 1.7; }
.shot-text p + p { margin-top: 10px; }
.shot-text code { font-family: var(--font-mono); font-size: .85em; color: var(--accent-dim); }
.shot-text ul { list-style: none; margin-top: 12px; }
.shot-text ul li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .9rem; color: var(--text-muted); padding: 5px 0; line-height: 1.55;
}
.shot-text ul li::before { content: "›"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.shot-img img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(6, 22, 51, 0.14);
}

/* ─── Architecture diagram ───────────────────────────────────────────── */
.diagram-wrap {
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
}
.diagram-wrap svg { display: block; width: 100%; height: auto; }

/* ─── Sections ───────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section.band {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  text-align: center;
  margin: 0 0 30px;
}
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 8px;
  color: var(--navy);
}
.section-head p {
  color: var(--text-muted);
  font-size: .97rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ─── Feature cards ──────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.card p { font-size: .89rem; color: var(--text-muted); line-height: 1.6; }
.card p code { font-family: var(--font-mono); font-size: .85em; color: var(--accent-dim); }

.grid-cta { text-align: center; margin-top: 26px; }

/* ─── Spec checklist ─────────────────────────────────────────────────── */
.checklist {
  list-style: none;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--text-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.checklist li::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .checklist { grid-template-columns: 1fr; }
}

/* ─── Split section (text + list) ────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 780px) { .split { grid-template-columns: 1fr; gap: 22px; } }
.split h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; color: var(--navy); margin-bottom: 10px; }
.split p { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }
.split p + p { margin-top: 10px; }
.split .checklist { grid-template-columns: 1fr; max-width: none; gap: 0; }
.split-cta { margin-top: 18px; }

/* ─── Duo prose blocks ───────────────────────────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 950px;
  margin: 0 auto;
}
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }
.duo-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
.duo-block h3 { font-size: 1.06rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.duo-block p { font-size: .91rem; color: var(--text-muted); line-height: 1.7; }
.duo-block p + p { margin-top: 10px; }
.duo-block code { font-family: var(--font-mono); font-size: .85em; color: var(--accent-dim); }

/* ─── Prose section ──────────────────────────────────────────────────── */
.prose {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.prose p { font-size: .95rem; color: var(--text-muted); line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--accent-dim); font-weight: 500; }
.prose a:hover { text-decoration: underline; }

/* ─── CTA band ───────────────────────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 52px 0;
}
.cta-band h2 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.cta-band p { color: #aebad1; font-size: .96rem; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: var(--accent-bright); color: var(--navy); }
.cta-band .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: .15s ease;
}
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.cta-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: #aebad1;
  padding: 44px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 40px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: .86rem; line-height: 1.6; max-width: 30ch; }
.footer-brand p + p { margin-top: 8px; }
.footer-brand a { color: #dbe6f7; }
.footer-brand a:hover { color: #fff; text-decoration: underline; }

.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #8494b3;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: .89rem;
  color: #c6d2e6;
  padding: 4px 0;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: .8rem;
  color: #8494b3;
}

/* ─── Cookie banner ──────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(6, 22, 51, 0.22);
  color: var(--text-primary);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 18px 20px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1 1 560px; min-width: 260px; }
.cookie-banner-title { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--navy); }
.cookie-banner-text p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--text-muted); }
.cookie-banner-text a { color: var(--accent-dim); text-decoration: none; font-weight: 600; }
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  border-radius: 9px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cookie-btn:hover { border-color: var(--accent); color: var(--accent-dim); }
.cookie-btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.cookie-btn.primary:hover { background: #0b234a; color: #fff; }
@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-banner-inner { padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { width: 100%; text-align: center; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in, .fade-in-delay { animation: none; }
}
