/* cervomorph.com — Cervomorph brand: cool dark slate + gold, Space Grotesk headings */
:root {
  --bg: #0d1117;
  --bg-panel: #141b23;
  --bg-elevated: #1b2430;
  --border: #2a3442;
  --text: #f0ede4;
  --text-muted: #a8a294;
  --accent: #f6ae31;
  --accent-strong: #e59e1f;
  --on-accent: #14110a;
  --grad-border: linear-gradient(135deg, rgba(246, 174, 49, 0.4), rgba(246, 174, 49, 0));
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo, .btn, .card-num, .step-num, .stat strong, .eyebrow { font-family: var(--font-display); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Header */
.site-header {
  border-bottom: 1px solid transparent;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(13, 17, 23, 0.94); }
.header-inner { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo em { font-style: normal; color: var(--accent); }
.logo-mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.logo-mark .ear { transform-origin: 50% 100%; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.logo:hover .ear-l { transform: rotate(-14deg); }
.logo:hover .ear-r { transform: rotate(14deg); }
.site-nav { display: flex; gap: 24px; flex: 1; }
.site-nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 18px rgba(246, 174, 49, 0.25); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Eyebrow + headings */
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(246, 174, 49, 0.35); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 18px;
}
h1 { font-size: 2.9rem; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.18; letter-spacing: -0.015em; margin-bottom: 14px; }
h3 { font-size: 1.08rem; margin-bottom: 8px; }
.accent { color: var(--accent); }

/* Hero — centred (Kit, 2026-10-01) */
.hero { padding: 88px 0 80px; text-align: center; }
.hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero .lede { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin-bottom: 30px; margin-left: auto; margin-right: auto; }
.hero .cta-row { margin-bottom: 44px; justify-content: center; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 26px; justify-content: center; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.hero-stats strong { font-size: 1.35rem; color: var(--accent); letter-spacing: -0.01em; font-family: var(--font-display); }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); max-width: 170px; }

/* Sections — headings centred, content blocks stay left-aligned (Kit, 2026-10-01) */
.section { padding: 84px 0; border-top: 1px solid var(--border); }
.section > .wrap { text-align: center; }
.section h2 { max-width: 680px; margin-left: auto; margin-right: auto; }
.section .section-lede { color: var(--text-muted); max-width: 620px; margin-bottom: 40px; margin-left: auto; margin-right: auto; }
.section > .wrap > .grid,
.section > .wrap > .process,
.section > .wrap > .stat-band,
.section > .wrap > .faq-list,
.section > .wrap.contact-grid,
.section > .wrap.doc-body { text-align: left; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.products-grid { grid-template-columns: minmax(240px, 620px); justify-content: center; }

/* Cards */
.card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-border); opacity: 0; transition: opacity 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(246, 174, 49, 0.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.card:hover::before { opacity: 1; }
.card-num { display: block; font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.92rem; }

/* Process */
.process { list-style: none; display: grid; gap: 14px; max-width: 720px; margin-left: auto; margin-right: auto; }
.process li {
  display: grid; grid-template-columns: 84px 1fr; gap: 24px; align-items: start;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 26px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.process li:hover { border-color: rgba(246, 174, 49, 0.4); transform: translateX(4px); }
.step-num { font-size: 2rem; font-weight: 700; color: rgba(246, 174, 49, 0.35); letter-spacing: -0.02em; line-height: 1; }
.process h3 { margin-bottom: 6px; }
.process p { color: var(--text-muted); font-size: 0.94rem; }

/* Stat band */
.stat-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
  margin-bottom: 48px;
}
.stat {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
}
.stat strong { font-size: 2.2rem; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

/* FAQ */
.faq-wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: rgba(246, 174, 49, 0.4); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 0.98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 500; color: var(--accent);
  transition: transform 0.2s ease; line-height: 1; flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-muted); font-size: 0.94rem; padding: 0 22px 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy { text-align: center; }
.big-mailto { font-size: 1.35rem; font-weight: 700; color: var(--accent); display: inline-block; margin-bottom: 24px; }
.contact-facts { list-style: none; display: grid; gap: 10px; }
.contact-facts li { font-size: 0.92rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; }
.contact-facts strong { color: var(--text); font-weight: 600; margin-right: 8px; }
.contact-form {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 6px;
}
.contact-form label { font-size: 0.85rem; font-weight: 600; margin-top: 12px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 0.95rem; padding: 11px 14px; margin-top: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(246, 174, 49, 0.18);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.8rem; color: var(--text-muted); margin: 14px 0 18px; }
.contact-form .consent input { margin-top: 3px; accent-color: var(--accent); }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 0.85rem; margin-top: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 52px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.footer-grid h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { font-size: 0.8rem; border-top: 1px solid var(--border); padding-top: 20px; }

/* Legal */
.doc-body { max-width: 720px; }
.doc-body h2 { margin-top: 32px; font-size: 1.3rem; }
.doc-body p, .doc-body li { color: var(--text-muted); margin-bottom: 10px; }

/* Responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .process li { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .site-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 14px; }
}
