/* ===================================================================
   GableGrid — Design tokens
   Concept: "Gable" (peaked structure — shelter, stability) + "Grid"
   (data structure). Triangular/gabled dividers over a data-grid field.
=================================================================== */

:root {
  --bg: #0F1B1E;
  --bg-2: #0C1517;
  --panel: #15262A;
  --panel-2: #1C3034;
  --border: rgba(237, 239, 238, 0.09);
  --border-strong: rgba(237, 239, 238, 0.16);

  --text: #EDEFEE;
  --text-muted: #8FA3A6;
  --text-faint: #5C7175;

  --gold: #D4A017;
  --gold-soft: #E8C468;
  --teal: #4FD1C5;
  --teal-soft: #8FE3DA;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --gable: polygon(0 0, 50% 0, 100% 0, 100% 100%, 0 100%);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

::selection { background: var(--gold); color: var(--bg); }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }

p { margin: 0; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 27, 30, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 22px; height: 22px;
  position: relative;
  display: inline-block;
}
.logo-mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 3px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-2);
    padding: 20px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- Gable divider ---------- */
.gable-divider {
  position: relative;
  height: 48px;
  margin-top: -1px;
}
.gable-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  padding: 13px 24px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-2);
  font-weight: 600;
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-soft); }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Pipeline visual */
.pipeline {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 20px 20px;
}
.pipeline-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.pipeline-stages {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
}
.pipeline-line {
  position: absolute;
  top: 17px; left: 4%; right: 4%;
  height: 2px;
  background: var(--border-strong);
}
.pipeline-line .packet {
  position: absolute;
  top: -3px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px 2px var(--teal);
  animation: travel 4.5s linear infinite;
}
@keyframes travel {
  0% { left: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  text-align: center;
}
.stage-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--gold);
  margin-bottom: 12px;
}
.stage-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.stage-sub {
  font-size: 0.68rem;
  color: var(--text-faint);
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-line .packet { animation: none; opacity: 1; left: 50%; }
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--panel);
  padding: 32px 28px;
}
.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.92rem; margin-bottom: 16px; }
.pillar ul { margin: 0; padding: 0; list-style: none; }
.pillar li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px dashed var(--border);
}
.pillar li:first-child { border-top: none; }

/* ---------- Stats strip ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 600;
}
.stat .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Cards / case studies ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-block;
}
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { font-size: 0.88rem; margin-bottom: 14px; }
.card-metric {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-soft);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,160,23,0.07), var(--panel) 40%);
}
.price-name { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.price-amount { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 6px; }
.price-amount span { font-size: 0.95rem; color: var(--text-muted); font-family: var(--font-body); }
.price-desc { font-size: 0.85rem; margin-bottom: 20px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; flex-grow: 1; }
.price-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0 8px 20px;
  position: relative;
  border-top: 1px solid var(--border);
}
.price-list li:first-child { border-top: none; }
.price-list li::before {
  content: '→';
  position: absolute; left: 0; color: var(--teal);
}

.free-banner {
  background: var(--panel-2);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.free-banner strong { color: var(--gold-soft); }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
input, select, textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
textarea { resize: vertical; min-height: 110px; }
.form-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.form-status.ok { color: var(--teal-soft); }
.form-status.err { color: #E88A6A; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--teal-soft); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p.lead { max-width: 60ch; margin-top: 16px; font-size: 1.05rem; }

/* ---------- Misc ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 850px) { .two-col { grid-template-columns: 1fr; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
