/* ── tokens ────────────────────────────────────────────────────── */
:root {
  --page:      #f5f4f2;
  --card:      #ffffff;
  --card-2:    #f0efed;
  --border:    rgba(46, 41, 78, 0.1);
  --border-2:  rgba(46, 41, 78, 0.2);
  --text:      #0f172a;
  --text-2:    #64748b;
  --text-3:    #94a3b8;
  --primary:   #DDD92A;
  --primary-2: #b8b520;
  --primary-bg: rgba(221, 217, 42, 0.15);
  --grid-line: rgba(15, 23, 42, 0.05);
  --shadow:    0 4px 20px rgba(15,23,42,0.1), 0 1px 4px rgba(15,23,42,0.07);
  --font:      'Inter', 'Libre Franklin', system-ui, sans-serif;
  --font-display: 'Nunito Sans', 'Inter', system-ui, sans-serif;
  --radius:    12px;
}

/* ── base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }


/* ── nav ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 243, 238, 0.65);
  transition: color 0.15s;
}
.nav-link:hover { color: #f5f3ee; }

/* ── buttons ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #2D2A32;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  border: 1.5px solid var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.btn-primary:hover {
  background: var(--primary-2);
  border-color: var(--primary-2);
  color: #fff;
}
.btn-primary--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-primary--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-primary--lg {
  font-size: 0.875rem;
  padding: 0.75rem 2rem;
}
.btn-sm {
  font-size: 0.7rem;
  padding: 0.45rem 1rem;
}

.btn-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}
.btn-text:hover { color: var(--text); }

/* ── eyebrow labels ────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.875rem;
}
.eyebrow--centered { justify-content: center; }

.eyebrow-beta {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #2D2A32;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
}

/* ── hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 80px 2rem 2.5rem;
  background-color: var(--page);
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 3.5rem 3.5rem;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-line { white-space: nowrap; }

.hero-sub {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 44ch;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.hero-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.meta-item svg { color: var(--primary); }

/* ── hero visual ───────────────────────────────────────────────── */
.hero-visual { position: relative; }

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.deco-ring--1 { width: 320px; height: 320px; top: -80px; right: -60px; }
.deco-ring--2 { width: 200px; height: 200px; bottom: -40px; right: -20px; opacity: 0.5; }
.deco-dot-cluster { position: absolute; bottom: -16px; left: -16px; pointer-events: none; opacity: 0.45; }

/* ── browser frame (shared) ────────────────────────────────────── */
.mock-browser {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.browser-chrome {
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.url-bar {
  margin-left: 8px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font);
  max-width: 320px;
}

/* ── dashboard mock ────────────────────────────────────────────── */
/* app interior keeps the real app colours for authenticity */
.mock-topbar {
  background: #0f172a;
  padding: 0 1.25rem;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-logo { font-size: 0.8125rem; font-weight: 700; color: #f1f5f9; }
.mock-topbar-right { display: flex; align-items: center; gap: 8px; }
.mock-topbar-btn {
  font-size: 0.75rem;
  font-weight: 600;
  background: #DDD92A;
  color: #2D2A32;
  padding: 4px 10px;
  border-radius: 5px;
}

.mock-body { padding: 1rem 1.25rem 1.5rem; background: #f5f4f2; }

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: #ffffff;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.mock-table thead tr { border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.mock-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}
.mock-table td {
  padding: 9px 12px;
  color: #0f172a;
  border-bottom: 1px solid #f8fafc;
}
.mock-table tbody tr:last-child td { border-bottom: none; }

.pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.pill-approved { background: #dcfce7; color: #166534; }
.pill-review   { background: #dbeafe; color: #1e40af; }
.pill-draft    { background: #fef3c7; color: #92400e; }
.pill-released { background: #0f172a; color: #f1f5f9; }

/* ── screenshot placeholders ───────────────────────────────────── */
.screenshot-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.screenshot-frame--wide { width: 100%; }
.screenshot-img { width: 100%; height: auto; display: block; }


/* ── container ─────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── section headings ──────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 3rem;
}
.section-heading--centered { text-align: center; }

/* ── features ──────────────────────────────────────────────────── */
.features {
  padding: 60px 0;
  background-color: #ffffff;
}

.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.features-header .section-heading { margin-bottom: 0; }
.features-desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  gap: 2rem;
}

.feature-card {
  padding: 0;
  background: transparent;
}

.feature-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
}
.features-grid .feature-card:nth-child(1) .feature-icon { color: #F46036; }
.features-grid .feature-card:nth-child(2) .feature-icon { color: #1B998B; }
.features-grid .feature-card:nth-child(3) .feature-icon { color: #C5D86D; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.feature-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; }

/* ── workbench preview ─────────────────────────────────────────── */
.workbench-section {
  padding: 60px 0;
  background-color: #f0efed;
}

.workbench-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}
.workbench-header .section-heading { margin-bottom: 0; }
.workbench-sub { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }

/* workbench browser — app interior stays in its own palette */
.wb-topbar {
  background: #0f172a;
  padding: 0 1.25rem;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wb-logo  { font-size: 0.8125rem; font-weight: 700; color: #f1f5f9; flex-shrink: 0; }
.wb-title {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wb-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  padding: 1px 7px;
  border-radius: 10px;
}
.wb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wb-action {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 5px;
}
.wb-action--primary { background: #DDD92A; color: #2D2A32; border-color: #DDD92A; }

.wb-body {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  min-height: 240px;
}

.wb-palette {
  border-right: 1px solid #e2e8f0;
  padding: 0.875rem;
  background: #f8fafc;
}
.wb-panel-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}
.wb-palette-items { display: flex; flex-direction: column; gap: 4px; }
.wb-palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 0.75rem;
  color: #64748b;
  cursor: default;
}
.wb-palette-item:hover { background: #e2e8f0; }

.wb-pe { display: inline-block; flex-shrink: 0; }
.wb-pe--event   { width:14px; height:14px; border-radius:50%; border:2px solid #1B998B; }
.wb-pe--task    { width:16px; height:12px; border-radius:2px; border:2px solid #60a5fa; }
.wb-pe--gateway { width:12px; height:12px; transform:rotate(45deg); border:2px solid #f59e0b; }
.wb-pe--flow    { width:14px; height:0; border-top:2px solid #94a3b8; position:relative; top:1px; }

.wb-canvas {
  overflow: hidden;
  background:
    linear-gradient(#eceae6 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, #eceae6 1px, transparent 1px) 0 0 / 22px 22px,
    #fbfbfa;
}
.wb-diagram { display: block; width: 100%; height: auto; min-height: 180px; }

.wb-props {
  border-left: 1px solid #e2e8f0;
  padding: 0.875rem;
  background: #f8fafc;
}
.wb-prop-group { margin-bottom: 0.75rem; }
.wb-prop-key {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}
.wb-prop-val { font-size: 0.8125rem; color: #0f172a; }

/* ── change management / revisions ─────────────────────────────── */
.revisions-section {
  padding: 60px 0;
  background-color: #ffffff;
}

/* diagram frame */
.rev-frame {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}

.rev-legend { display: flex; gap: 1.125rem; flex-wrap: wrap; }
.rev-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
}
.rev-swatch { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.rev-sw-released { background: #0f172a; }
.rev-sw-change   { background: #3b82f6; }
.rev-sw-current  { background: var(--primary); border: 1px solid var(--primary-2); }

.rev-canvas {
  overflow-x: auto;
  background:
    linear-gradient(#eceae6 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, #eceae6 1px, transparent 1px) 0 0 / 22px 22px,
    #fbfbfa;
  padding: 1.5rem 1.5rem 1.25rem;
}
.rev-diagram { display: block; width: 100%; min-width: 860px; height: auto; }

/* lifecycle strip */
/* left header column: heading on top, lifecycle box pinned to the bottom so its
   bottom edge lines up with the bottom of the header row (the description column) */
.rev-head-col {
  display: flex;
  flex-direction: column;
}
/* section 2 only: keep the gap above the box equal to the gap below it (to the diagram) */
.revisions-section .workbench-header { margin-bottom: 1.5rem; }
.rev-lifecycle {
  width: fit-content;
  max-width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 1.375rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.rev-lc-flow { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.rev-lc-chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.rev-lc-arrow { color: var(--text-3); flex-shrink: 0; }
.rev-lc-draft      { background: #fef3c7; color: #92400e; }
.rev-lc-review     { background: #dbeafe; color: #1e40af; }
.rev-lc-approved   { background: #dcfce7; color: #166534; }
.rev-lc-released   { background: #0f172a; color: #f1f5f9; }
.rev-lc-superseded { background: #e7e5e1; color: #64748b; }

/* ── cta ───────────────────────────────────────────────────────── */
.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #0f172a 0%, #060d1a 100%);
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cta-text .eyebrow { color: #DDD92A; }

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  margin-bottom: 0.375rem;
}
.cta-sub { font-size: 0.9375rem; color: #94a3b8; }

/* footer row — sits inside the CTA section, below the beta call to action */
/* full-bleed divider: spans the whole window since .cta-section has no side padding */
.cta-divider {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cta-footer {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.875rem; color: #64748b; }

/* ── responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-sub { max-width: 100%; }
  .deco-ring--1, .deco-ring--2, .deco-dot-cluster { display: none; }
  .features-header { grid-template-columns: 1fr; gap: 0.75rem; }
  .workbench-header { grid-template-columns: 1fr; gap: 0.75rem; }
  .wb-body { grid-template-columns: 1fr; }
  .wb-palette, .wb-props { display: none; }
  .wb-canvas { min-height: 180px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 1rem 1.5rem; }
  .hero-inner { padding: 2rem 1.5rem; border-radius: 14px; }
  .container { padding: 0 1.25rem; }
  .nav { padding: 0 1.25rem; }
  .cta-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .mock-table th:nth-child(3), .mock-table th:nth-child(4),
  .mock-table td:nth-child(3), .mock-table td:nth-child(4) { display: none; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
