:root {
  --bg: #0d0c0a;
  --surface: #15130f;
  --surface-2: #1c1914;
  --line: #2a251d;
  --text: #f4f1ea;
  --muted: #a59d8e;
  --accent: #e2a53f;
  --accent-soft: rgba(226, 165, 63, 0.14);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --menu-ease: cubic-bezier(0.32, 0.08, 0.24, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

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

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 12, 10, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  z-index: 70;
  position: relative;
}

.brand svg { width: 26px; height: 26px; }

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  transition: color 160ms var(--ease-out);
}

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

.main-nav a[aria-current="page"] { color: var(--text); }

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.menu-button {
  display: none;
  z-index: 70;
  position: relative;
  appearance: none;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
}

.menu-button .bar {
  display: block;
  width: 20px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 260ms var(--menu-ease), opacity 200ms var(--menu-ease);
}

.menu-button .bar + .bar { margin-top: 6px; }

/* ---------- Mobile menu panel ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  background: rgba(13, 12, 10, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(24px);
  backdrop-filter: saturate(1.4) blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--menu-ease), visibility 0s linear 320ms;
}

.mobile-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms var(--menu-ease);
}

.mobile-menu a {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
  padding: 10px 0;
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms var(--menu-ease), transform 300ms var(--menu-ease);
}

.mobile-menu a[aria-current="page"] { color: var(--accent); }

.mobile-menu[data-open="true"] a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu[data-open="true"] a:nth-child(1) { transition-delay: 60ms; }
.mobile-menu[data-open="true"] a:nth-child(2) { transition-delay: 110ms; }
.mobile-menu[data-open="true"] a:nth-child(3) { transition-delay: 160ms; }
.mobile-menu[data-open="true"] a:nth-child(4) { transition-delay: 210ms; }

body[data-menu-open="true"] { overflow: hidden; }

body[data-menu-open="true"] .menu-button .bar:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
body[data-menu-open="true"] .menu-button .bar:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-button { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 108px 0 84px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -340px;
  right: -280px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 165, 63, 0.13), transparent 62%);
  pointer-events: none;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 15ch;
}

.hero p.lead {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 36px;
}

.page-hero { padding: 88px 0 40px; }

.page-hero h1 { font-size: clamp(34px, 5.6vw, 58px); }

.page-hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

/* ---------- Buttons ---------- */

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}

.button:active { transform: scale(0.97); }

.button.primary { background: var(--accent); color: #1a1305; }

.button.primary:hover { background: #eeb459; }

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.button.ghost:hover { background: var(--surface); }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section + .section { border-top: 1px solid var(--line); }

.section-title-group { margin-top: 24px; margin-bottom: 40px; }

h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-sub { color: var(--muted); max-width: 60ch; margin: 0; }

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card .icon svg { width: 22px; height: 22px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Product rows ---------- */

.product {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.product + .product { border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .product .visual { order: -1; }
}

.product h3 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.product .tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 16px;
}

.product p { color: var(--muted); margin: 0 0 16px; }

.product ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15.5px;
}

.product ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}

.product ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual svg { width: 62%; height: auto; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: var(--surface);
}

.stat .num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat .label { color: var(--muted); font-size: 15px; }

/* ---------- Prose (about) ---------- */

.prose { max-width: 68ch; }

.prose p { color: var(--muted); margin: 0 0 20px; }

.prose p strong { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h3 { margin: 0 0 14px; font-size: 18px; }

.contact-card dl { margin: 0; }

.contact-card dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 16px;
}

.contact-card dt:first-child { margin-top: 0; }

.contact-card dd { margin: 4px 0 0; font-size: 16.5px; }

.contact-card a { color: var(--accent); }

.contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--muted);
  font-size: 14.5px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav { display: flex; gap: 20px; }

.site-footer a { color: var(--muted); }

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

/* ---------- Reveal on scroll ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .mobile-menu, .mobile-menu a, .menu-button .bar, .button { transition: none; }
}
