/* Ember's own palette: near-black neutrals, white-alpha hairlines, Geist, and one ember accent. */
@font-face {
  font-family: "Geist";
  src: url("assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121212;
  --page: #161616;
  --panel: #1c1c1c;
  --tile: rgb(255 255 255 / 6%);
  --line: rgb(255 255 255 / 9%);
  --line-strong: rgb(255 255 255 / 16%);
  --text: #ededed;
  --muted: rgb(255 255 255 / 64%);
  --faint: rgb(255 255 255 / 46%);
  --ember: #ff7a2f;
  --flame: linear-gradient(135deg, #ffc15e 0%, #ff8a3d 45%, #e8492c 100%);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
::selection { background: rgb(255 122 47 / 32%); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 8px; }

.aura {
  position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 50% 18%, rgb(255 110 40 / 0.13), transparent 70%),
    radial-gradient(600px 300px at 20% 8%, rgb(255 193 94 / 0.05), transparent 70%);
}

.ember-text { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }

/* Buttons: Eden-style pills; the flame for the one action that matters. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 550; letter-spacing: -0.01em; transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ember { background: var(--flame); color: #1c0a03; box-shadow: 0 10px 30px rgb(255 110 40 / 0.25); }
.btn-ember:hover { filter: brightness(1.08); }
.btn-pill { border: 1px solid var(--line-strong); color: var(--text); }
.btn-pill:hover { border-color: rgb(255 255 255 / 28%); background: rgb(255 255 255 / 4%); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }

/* Nav */
/* A floating glass pill: it keeps a gap above it while the page scrolls under it. */
.nav {
  position: sticky; top: 16px; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  width: calc(100% - 32px); max-width: calc(var(--max) - 48px); margin: 16px auto 0; padding: 8px 8px 8px 18px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: linear-gradient(180deg, rgb(32 32 32 / 0.62), rgb(22 22 22 / 0.5));
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 10px 40px rgb(0 0 0 / 0.45), 0 1px 2px rgb(0 0 0 / 0.4);
}
.nav .btn-sm { height: 40px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 650; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); }
.links a:hover { color: var(--text); }

main { position: relative; z-index: 1; }
section { max-width: var(--max); margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }

/* Hero */
.hero { text-align: center; padding-top: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; color: var(--muted); background: rgb(255 255 255 / 2.5%); }
.eyebrow:hover { color: var(--text); border-color: rgb(255 255 255 / 26%); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.hero h1 { margin: 26px auto 0; max-width: 1060px; text-wrap: balance; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 650; letter-spacing: -0.045em; }
.lede { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.meta { margin: 16px 0 0; font-size: 13.5px; color: var(--faint); }

.demo { position: relative; margin: 64px auto 0; max-width: 1080px; }
.demo-glow { position: absolute; inset: 8% 6% -6%; background: radial-gradient(closest-side, rgb(255 110 40 / 0.35), transparent 75%); filter: blur(40px); }
.demo-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: #121212; box-shadow: 0 40px 120px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(0 0 0 / 0.5); aspect-ratio: 16 / 9; }
.demo-frame video { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgb(18 18 18 / 0.72); backdrop-filter: blur(10px); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.sound:hover { border-color: rgb(255 255 255 / 30%); }
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: inline; }
.sound[aria-pressed="true"] .mute { display: none; }

/* One app instead of six */
.replaces { margin-top: 96px; text-align: center; }
.replaces ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.replaces li { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / 2%); }
.replaces b { font-weight: 600; color: var(--text); text-decoration: line-through; text-decoration-color: rgb(255 122 47 / 70%); text-decoration-thickness: 2px; }
.replaces span { font-size: 13px; color: var(--faint); }

/* Cards */
.card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }

.pillars { margin-top: 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; scroll-margin-top: 90px; }
.pillar { padding: 12px 24px 26px; }
.pillar .figure {
  margin: 0 -12px; aspect-ratio: 5 / 4;
  --hairline-plate: var(--panel);
  --hairline-hi: var(--ember);
  --hairline-edge: rgb(255 255 255 / 66%);
  --hairline-mid: rgb(255 255 255 / 34%);
  --hairline-lo: rgb(255 255 255 / 15%);
  --hairline-stroke: 1;
}
.pillar h3 { margin: 4px 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* Feature rows */
.feature { margin-top: 120px; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature h2, .privacy h2 { margin: 0; text-wrap: balance; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 650; }
.feature .copy > p:not(.kicker) { color: var(--muted); font-size: 16.5px; margin: 18px 0 0; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); }
kbd { font-family: inherit; font-size: 0.86em; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: rgb(255 255 255 / 5%); color: var(--text); }
.shot { position: relative; }
.shot img { border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 30px 90px rgb(0 0 0 / 0.5); }
.shot.stack { padding-bottom: 40px; }
.shot.stack img:first-child { width: 82%; }
.shot.stack .over { position: absolute; right: 0; bottom: 0; width: 70%; box-shadow: 0 30px 80px rgb(0 0 0 / 0.65); }

/* Everything else */
.grid-section { margin-top: 128px; }
.section-title { margin: 0 0 24px; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.03em; font-weight: 650; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { padding: 22px 22px 24px; }
.mini h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -0.01em; }
.mini p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Privacy */
.privacy { margin-top: 120px; scroll-margin-top: 90px; }
.privacy-card { padding: 44px; display: grid; gap: 34px; background: linear-gradient(180deg, rgb(255 122 47 / 0.06), transparent 60%), var(--panel); border-color: rgb(255 122 47 / 0.22); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols h3 { margin: 0 0 6px; font-size: 16.5px; }
.cols p { margin: 0; color: var(--muted); font-size: 15px; }

/* Closing */
.closing { margin-top: 140px; padding-bottom: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing img { filter: drop-shadow(0 20px 60px rgb(255 110 40 / 0.35)); }
.closing h2 { margin: 22px 0 6px; font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.045em; font-weight: 650; }
.closing > p:not(.meta) { margin: 0 0 28px; color: var(--muted); font-size: 18px; }

.footer { max-width: var(--max); margin: 60px auto 0; padding: 18px 24px max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--faint); }
.footer a { color: var(--muted); display: inline-block; padding: 11px 2px; }
.footer a:hover { color: var(--text); }

@media (max-width: 960px) {
  .replaces ul { grid-template-columns: repeat(3, 1fr); }
  .pillars, .grid { grid-template-columns: 1fr 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-top: 88px; }
  .feature.flip .copy { order: 0; }
  .cols { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav { top: max(10px, env(safe-area-inset-top)); margin-top: 10px; width: calc(100% - 20px); padding-left: 14px; }
  .ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .ctas .btn { width: 100%; }
  .demo { margin-top: 44px; }
  .demo-frame { border-radius: 14px; }
  .replaces { margin-top: 72px; }
  .pillars { margin-top: 64px; }
  .feature, .feature.flip { margin-top: 72px; }
  .grid-section, .privacy { margin-top: 88px; }
  .closing { margin-top: 96px; }
  .shot.stack { padding-bottom: 28px; }
  .shot.stack img:first-child { width: 88%; }
  .shot.stack .over { width: 78%; }
  .footer { flex-direction: column; gap: 4px; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 44px; }
  .replaces ul { grid-template-columns: 1fr 1fr; }
  .pillars, .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 40px); letter-spacing: -0.04em; }
  .hero h1 br { display: none; }
  .hero h1 .ember-text { display: block; }
  .lede { font-size: 17px; }
  .privacy-card { padding: 28px; }
  .sound span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
