:root {
  --gold-top: #e5c58a;
  --gold-bot: #c89a4e;
  --ink: #1a1410;
  --ink-soft: rgba(26, 20, 16, 0.72);
  --ink-mute: rgba(26, 20, 16, 0.55);
  --brown: #2b221c;
  --rec: #d62828;
  --line: rgba(26, 20, 16, 0.14);
  --panel: rgba(255, 248, 230, 0.35);
  --radius: 1.25rem;
  --max: 1120px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--gold-bot);
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(229, 197, 138, 0.55), rgba(200, 154, 78, 0.35)),
    url("assets/bg-gold.png") center / cover no-repeat;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(229, 197, 138, 0.72);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo img {
  border-radius: 7px;
}

.nav {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.35rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

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

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: var(--brown);
  color: #f6ead2;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 28px rgba(26, 20, 16, 0.18);
}

.btn:hover {
  transform: translateY(-1px);
  background: #3a2e26;
}

.btn:active {
  transform: translateY(0);
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  box-shadow: none;
}

.link-quiet {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-quiet:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    min-height: calc(100vh - 4.5rem);
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.app-shot {
  width: min(100%, 420px);
  /* PNG already has macOS window shadow in alpha — CSS drop-shadow creates a visible rect edge */
  animation: float-in 1s ease both;
}

.app-shot-sm {
  width: min(100%, 360px);
  margin-inline: auto;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head h2,
.story-block h2,
.beta-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p,
.story-block p,
.beta-panel > p {
  margin: 0;
  color: var(--ink-soft);
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 2.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brown);
  box-shadow: 0 24px 48px rgba(26, 20, 16, 0.22);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.steps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.steps li {
  display: grid;
  gap: 0.55rem;
  padding: 1.35rem 0 0;
  border-top: 2px solid var(--ink);
}

.steps-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

.steps strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.steps p {
  margin: 0;
  max-width: 22ch;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Story / why */
.why-grid {
  display: grid;
  gap: 3rem;
  max-width: 40rem;
}

.why-grid h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.why-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.why-grid .note,
.section-head .note,
.story-block .note {
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 500;
}

/* Control */
.control-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .control-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.control-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.control-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.4;
}

.control-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.control-list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-weight: 700;
}

.control-shot {
  width: min(100%, 520px);
  margin-inline: auto;
  border-radius: 1rem;
}

/* Story legacy (if any) */
.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.story-block .note {
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 500;
}

/* Atmosphere */
.atmosphere {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.atmosphere-img {
  width: 100%;
  max-height: 52vh;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(26, 20, 16, 0.18);
}

.atmosphere-caption {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Feature shots */
.shots {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .shots {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.shots figure {
  margin: 0;
}

.shots img {
  width: min(100%, 380px);
  margin-inline: auto;
}

.shots figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-mute);
}

/* Record */
.record {
  padding-bottom: clamp(4rem, 10vh, 6.5rem);
  text-align: center;
}

.record .section-head {
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: 0;
}

.record .section-head h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.record .section-head p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.record .req-line {
  margin-top: 1.5rem !important;
  font-size: 1.08rem !important;
  font-weight: 500 !important;
  color: var(--ink-soft) !important;
}

/* Beta */
.beta {
  padding-top: clamp(3rem, 8vh, 5rem);
  padding-bottom: clamp(4rem, 10vh, 6rem);
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.beta-panel {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: 2rem 1.75rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  text-align: center;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

@media (min-width: 560px) {
  .beta-form {
    flex-direction: row;
  }
}

.beta-form input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.85);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.beta-form input::placeholder {
  color: var(--ink-mute);
}

.beta-form input:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(43, 34, 28, 0.12);
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.is-ok {
  color: #1f6b3a;
}

.form-status.is-err {
  color: var(--rec);
}

/* Requirements */
.reqs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}

.reqs li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.reqs li:last-child {
  border-bottom: 1px solid var(--line);
}

.reqs strong {
  color: var(--ink);
  font-weight: 700;
}

.reqs em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .app-shot {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
