/* Open Tuner — landing page
   Palette mirrors the app (src/theme.js): dark bg, amber accent, in-tune green. */

:root {
  --bg:        #0F1115;
  --bg-raised: #151922;
  --white:     #F5F7FA;
  --amber:     #E7A33E;
  --green:     #3ED598;
  --dim:       #8B93A7;
  --hairline:  rgba(255, 255, 255, 0.08);
  --glass:     rgba(255, 255, 255, 0.04);

  --maxw: 1080px;
  --radius: 18px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(231, 163, 62, 0.10), transparent 60%),
    var(--bg);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.site-header,
main > section,
.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.brand-mark { border-radius: 8px; }
.brand-name { font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--dim); font-size: 15px; transition: color 0.15s; }
.site-nav a:hover { color: var(--white); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber);
  color: #1b1300;
  box-shadow: 0 8px 30px rgba(231, 163, 62, 0.25);
}
.btn-primary:hover { background: #f0b458; }
.btn-ghost { border-color: var(--hairline); color: var(--white); background: var(--glass); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.22); }
.btn-small { padding: 9px 16px; font-size: 14px; background: var(--glass); border: 1px solid var(--hairline); }
.btn-small:hover { border-color: rgba(255, 255, 255, 0.22); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 96px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 720; }
.lede {
  color: var(--dim);
  font-size: 18px;
  max-width: 42ch;
  margin: 22px 0 30px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fineprint { color: var(--dim); font-size: 13px; margin-top: 18px; }

/* ── Phone mockups ──────────────────────────────────────────────────────── */
.phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #23282f, #0d0f13);
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}
/* Placeholder shown until a real screenshot is dropped in */
.phone-placeholder {
  position: absolute;
  inset: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    var(--bg-raised);
  color: var(--dim);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.phone-empty .phone-placeholder { display: flex; }

/* ── Features ───────────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-block: 40px;
}
.feature {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature-icon { width: 32px; height: 4px; border-radius: 2px; background: var(--amber); margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--dim); font-size: 15px; margin: 0; }

/* ── Gallery ────────────────────────────────────────────────────────────── */
.gallery { padding-block: 72px; text-align: center; }
.gallery h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 44px; }
.shots {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.shots .phone { margin: 0; max-width: 260px; }
.shots figure { margin: 0; }

/* ── Closing ────────────────────────────────────────────────────────────── */
.closing { text-align: center; padding-block: 40px 88px; }
.closing-mark { border-radius: 14px; margin-bottom: 20px; }
.closing h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 28px; }
.closing .cta-row { justify-content: center; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 32px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  color: var(--dim);
  font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--white); }
.footer-note { margin: 0; margin-left: auto; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 64px; }
  .hero-art { order: -1; }
  .features { grid-template-columns: 1fr; }
  .footer-note { margin-left: 0; width: 100%; }
}
