@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Spline+Sans+Mono:ital,wght@0,300..700;1,300..700&display=swap');

:root {
  /* Design system tokens - Neutral (Light Mode) */
  --bg: #e5ddd0;
  --surface: #fffdfa;
  --surface-2: #f1ebe0;
  --surface-3: #e7e0d2;
  --line: #d8cfbf;
  --line-soft: #e4dccd;
  --ink: #221d15;
  --muted: #6a6253;
  --text-3: #9b927f;
  
  /* Brand tokens - Ember (Light Mode) */
  --accent: #c2632f;
  --accent-2: #a9531f;
  --accent-contrast: #ffffff;
  --accent-weak: #f8e6da;
  --accent-line: #f0d3bf;
  --brand-glow: rgba(194, 99, 47, 0.2);

  /* Radii tokens */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Spacing */
  --tap: 48px;

  /* Easing */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Shadows */
  --shadow: 0 16px 36px -16px rgba(58, 44, 24, 0.3);
  --shadow-sheet: 0 -16px 44px -18px rgba(58, 44, 24, 0.3);
  --shadow-pop: 0 24px 52px -16px rgba(58, 44, 24, 0.36);

  /* Fonts */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  font-family: var(--font-ui);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, var(--brand-glow), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(58, 44, 24, 0.05), transparent 30rem),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-logo {
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.brand:hover .brand-logo {
  transform: scale(1.08);
}

.nav-links, .footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a, .footer-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover, .footer-links a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 64px;
  padding: 74px 0 90px;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 860px;
  margin-bottom: 26px;
  font-weight: 800;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  font-weight: 700;
}

h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-weight: 650;
}

.hero-text {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  max-width: 690px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-weight: 650;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  transition: transform 0.12s var(--ease), background-color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.button:hover {
  transform: scale(1.02);
}

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

.button.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  box-shadow: 0 8px 22px -10px var(--brand-glow);
}

.button.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.button.secondary {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

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

.phone-card {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(340px, 100%);
  height: 590px;
  border: 10px solid #1a1e1d;
  border-radius: 40px;
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 40px 16px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-top {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 90px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #1a1e1d;
  z-index: 10;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: 0 4px 12px -8px rgba(58, 44, 24, 0.15);
  transition: transform 0.2s var(--ease);
}

.app-card:hover {
  transform: translateY(-2px);
}

.app-card.active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.app-card h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.app-card p {
  color: inherit;
  opacity: 0.8;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.app-card.active .status-pill {
  background: var(--accent);
  color: var(--accent-contrast);
}

.status-pill.muted {
  background: var(--surface-2);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  min-height: 220px;
  box-shadow: 0 4px 12px -8px rgba(58, 44, 24, 0.15);
  transition: transform 0.2s var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(58, 44, 24, 0.25);
}

.feature-card p, .split-section p, .cta-section p, .legal-page p, .legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 56px;
  align-items: start;
}

.cta-section {
  margin: 56px 0 84px;
  padding: 52px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.cta-section p { color: rgba(255, 253, 250, 0.75); max-width: 690px; }
.cta-section .eyebrow { color: #df8a5b; } /* Use dark-mode Ember accent on dark background */
.cta-section .button.primary { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.cta-section .button.primary:hover { background: var(--surface-2); border-color: var(--surface-2); }

.site-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  max-width: 850px;
  padding: 60px 0 90px;
}

.legal-page h1 {
  font-size: clamp(40px, 7vw, 70px);
  margin-bottom: 18px;
}

.legal-page h2 {
  font-size: 28px;
  margin-top: 42px;
  margin-bottom: 14px;
}

.legal-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

@media (max-width: 860px) {
  .page-shell { width: min(100% - 28px, 1120px); }
  .site-header { align-items: flex-start; flex-direction: column; padding: 20px 0; }
  .nav-links { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 42px; }
  .phone-card { justify-content: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 18px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 26px 0; }
  .cta-section { padding: 32px; }
}
