/* ── Elder & Oak — Butler marketing site ──────────────────────────────────── */

/* Google Fonts loaded in HTML: Playfair Display (headings) + Inter (body) */

:root {
  --bg:          #f8f6f3;
  --surface-1:   #f0ede8;
  --surface-2:   #e8e4dd;
  --surface-3:   #dfd9d1;
  --border:      #d0cac0;
  --border-lt:   #b8b2a8;
  --gold:        #d4621a;
  --gold-lt:     #e07830;
  --gold-dim:    #f5ddd0;
  --green:       #3a6b48;
  --green-lt:    #2d8049;
  --green-dim:   #dff0e6;
  --text-1:      #1a1714;
  --text-2:      #4a4540;
  --text-3:      #7a7570;
  --code-bg:     #1a1f1a;
  --code-text:   #a8d5b0;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-1);
  line-height: 1.2;
}

/* ── Layout helpers ──────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Navigation ──────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 243, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
}

.nav-company {
  font-family: 'SFMono-Regular', 'Cascadia Code', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: .01em;
}

.nav-divider {
  color: var(--border-lt);
  font-size: .85rem;
}

.nav-product {
  font-size: .8rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li + li::before {
  content: "|";
  color: var(--border-lt);
  padding: 0 .75rem;
  font-size: .8rem;
  pointer-events: none;
}

.nav-links a {
  font-size: .88rem;
  color: var(--text-2);
  transition: color .15s;
}

.nav-links a:hover { color: var(--text-1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--bg) !important;
  font-size: .84rem;
  font-weight: 600;
  padding: .4rem 1.1rem;
  border-radius: 5px;
  transition: background .15s;
  letter-spacing: .01em;
}

.nav-cta:hover { background: var(--gold-lt) !important; color: var(--bg) !important; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 10% 60%, rgba(58,107,72,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(212,98,26,.07) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,98,26,.09);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: .25rem .85rem;
  margin-bottom: 1.4rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero h1 {
  font-size: 3.2rem;
  margin: 0 0 1.2rem;
  color: var(--text-1);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--gold);
  color: var(--bg);
  font-size: .92rem;
  font-weight: 600;
  padding: .65rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  letter-spacing: .01em;
}

.btn-primary:hover {
  background: var(--gold-lt);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  color: var(--text-2);
  font-size: .92rem;
  font-weight: 500;
  padding: .65rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border-lt);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.btn-secondary:hover {
  border-color: var(--text-3);
  color: var(--text-1);
}

/* ── Terminal mockup ─────────────────────────────────────────────────────── */

.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'SFMono-Regular', 'Cascadia Code', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: .78rem;
  line-height: 1.55;
  box-shadow: 0 24px 64px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.06);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .85rem;
  background: #262c26;
  border-bottom: 1px solid #1a1f1a;
}

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

.terminal-label {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  color: var(--text-3);
  letter-spacing: .04em;
}

.terminal-body { padding: 1.1rem 1.2rem; }

.t-dim    { color: var(--text-3); }
.t-key    { color: #79b8ff; }
.t-str    { color: #9ecbff; }
.t-str-g  { color: var(--code-text); }
.t-punc   { color: var(--text-3); }
.t-url    { color: var(--gold); }
.t-comment { color: #4a5e4a; font-style: italic; }

/* ── Stats bar ───────────────────────────────────────────────────────────── */

.stats-bar {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: .4rem 1rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: .25rem;
  letter-spacing: .03em;
}

/* ── Section headings ────────────────────────────────────────────────────── */

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: .6rem;
}

.section-title {
  font-size: 2.2rem;
  margin: 0 0 .9rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.7;
  margin: 0;
}

/* ── Features ────────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem;
  transition: border-color .2s, background .2s;
}

.feature-card:hover {
  border-color: var(--border-lt);
  background: var(--surface-2);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green-dim);
  border: 1px solid rgba(74,124,89,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin: 0 0 .5rem;
  color: var(--text-1);
}

.feature-card p {
  font-size: .88rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────────────────────── */

.how-bg {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 1.8rem;
  left: calc(33.33% - .5rem);
  right: calc(33.33% - .5rem);
  height: 1px;
  background: linear-gradient(90deg, var(--border-lt), var(--border-lt));
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  font-weight: 600;
  margin: 0 0 .5rem;
  color: var(--text-1);
}

.step p {
  font-size: .88rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* ── Code block ──────────────────────────────────────────────────────────── */

.code-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'SFMono-Regular', 'Cascadia Code', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: .77rem;
  line-height: 1.6;
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .9rem;
  background: #262c26;
  border-bottom: 1px solid #1a1f1a;
}

.code-filename {
  font-size: .72rem;
  color: #8a9a8a;
  letter-spacing: .03em;
}

.code-lang {
  font-size: .68rem;
  color: #8a9a8a;
  background: #1a1f1a;
  padding: .1rem .4rem;
  border-radius: 3px;
  letter-spacing: .04em;
}

.code-body { padding: 1.1rem 1.2rem; }

/* ── Events table ────────────────────────────────────────────────────────── */

.events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
  margin-top: 3rem;
}

.events-table th {
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  padding: .5rem .75rem;
}

.events-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.events-table tr:last-child td { border-bottom: none; }

.events-table tbody tr:hover td {
  background: rgba(212, 98, 26, 0.06);
}

.events-table code {
  background: var(--surface-2);
  color: var(--green-lt);
  padding: .15em .45em;
  border-radius: 3px;
  font-size: .9em;
}

.badge-captured {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--green-lt);
  background: rgba(74,124,89,.12);
  border: 1px solid rgba(74,124,89,.25);
  border-radius: 4px;
  padding: .15rem .5rem;
}

.badge-captured::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-lt);
  flex-shrink: 0;
}

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(212,98,26,.06) 0%, transparent 70%),
    var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 5rem 0;
}

.cta-band h2 { font-size: 2.4rem; margin: 0 0 .9rem; }

.cta-band p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-2);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: .82rem;
  color: var(--text-3);
  transition: color .15s;
}

.footer-links a:hover { color: var(--text-2); }

.footer-copy {
  font-size: .78rem;
  color: var(--text-3);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid, .code-section-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.9rem; }
}
