:root {
  --bg: #fafaf7;
  --panel: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e8e2;
  --accent: #ff5a47;
  --accent-hover: #e64634;
  --kbd-bg: #ffffff;
  --kbd-border: #d6d6d0;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(20, 20, 15, 0.04), 0 8px 24px rgba(20, 20, 15, 0.06);
  --shadow-screen: 0 4px 12px rgba(20, 20, 15, 0.08), 0 24px 60px rgba(20, 20, 15, 0.12);

  --font: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

kbd {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.85em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--kbd-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--kbd-bg);
  color: var(--text);
  margin: 0 0.05em;
  line-height: 1.4;
  white-space: nowrap;
}

em { font-style: italic; color: var(--text); }

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

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  padding: 0.7em 1.2em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-xl {
  font-size: 1.1rem;
  padding: 1em 2em;
}

/* ----- Top bar ----- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.92em;
}

.topbar-cta {
  font-size: 0.92rem;
  padding: 0.5em 1em;
}

/* ----- Main layout ----- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 2rem 0;
}

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

.hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
  text-align: center;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 1.5rem auto;
  display: block;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  line-height: 1.15;
}

.hero h1 kbd {
  font-size: 0.85em;
  padding: 0.08em 0.4em;
  vertical-align: 0.08em;
}

.hero-sub {
  max-width: 38rem;
  margin: 0 auto 3rem auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ----- Simulator frame ----- */

.sim-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-screen);
  margin: 0 auto;
}

.sim-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  border: 0;
  transform-origin: top left;
  /* scale is set by app.js based on container width */
}

.sim-caption {
  margin: 1.25rem auto 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ----- Hero conversion CTA (under the simulator) ----- */

.hero-cta {
  margin: 2.5rem auto 0 auto;
  text-align: center;
}

.cta-meta {
  margin: 1rem 0 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ----- Steps (minimal — no card chrome, just spacing) ----- */

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.steps-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
}

.step-body p {
  margin: 0;
  color: var(--muted);
}

/* ----- Features (minimal — no card chrome, just spacing) ----- */

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

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.6rem 0;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* ----- Download section ----- */

.download {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.download-tagline {
  max-width: 32rem;
  margin: 0 auto 2rem auto;
  color: var(--muted);
}

/* ----- Scroll-reveal animations (subtle, conversion-friendly) ----- */

@media (prefers-reduced-motion: no-preference) {
  .reveal,
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  .reveal.in,
  .reveal-stagger.in > * {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-stagger.in > *:nth-child(1) { transition-delay: 0.00s; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

footer p { margin: 0; }

/* ----- Responsive ----- */

@media (max-width: 760px) {
  .topbar { padding: 0.75rem 1rem; }
  .brand-tag { display: none; }

  main { padding: 0 1rem; }
  section { padding: 3rem 0; }

  .hero { padding-top: 2.5rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }

  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .sim-caption { font-size: 0.85rem; }
}
