/*
  guitarpt.app — landing page for the GuitarPT iOS app.
  Mirrors the design language of stems.guitarpt.app so the two
  surfaces feel like one product: same dark palette, same accent
  orange, same SF Pro stack, same hero-atmosphere blobs in the
  background. Layout is a centered column similar to stems-site but
  slightly wider (760 px vs 720 px) to fit the feature/persona grids
  comfortably on desktop.

  Why not share a single CSS file across both sites? They live on
  different Caddy roots and the two pages have meaningfully different
  layouts (single-column app + uploader on stems, multi-section
  marketing surface here). Each site is small (~6 KB CSS) so the
  duplication cost is negligible and avoids a build step.
*/

:root {
  --bg: #0e0f12;
  --bg-elev: #181a20;
  --bg-elev-2: #21242c;
  --border: rgba(255,255,255,.08);
  --text: #f0eee6;
  --text-mute: #9aa0aa;
  --accent: #ff8a3d;
  --accent-soft: rgba(255,138,61,.14);
  --accent-glow: rgba(255,138,61,.45);
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: radial-gradient(ellipse at top, #1a1d27 0%, #0a0b0e 70%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  /* Hero blobs extend beyond the centered column on narrow viewports;
     clip horizontally so they don't create a horizontal scrollbar. */
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffae6f; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Site header ─────────────────────────────────────────────── */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  max-width: 760px;
  margin: 0 auto 32px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand__mark {
  font-size: 28px;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}
.brand__name {
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  font-size: 18px;
}

.site-head nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
}
.nav-link:hover { color: var(--accent); }

.lang-toggle {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-mute);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.lang-toggle .flag { font-size: 15px; }

/* Smooth opacity hint during language swaps. */
[data-lang] { transition: opacity .15s ease; }


/* ── Hero ────────────────────────────────────────────────────── */

/*
  Two heavily-blurred radial blobs drift slowly behind the hero,
  mirroring the stems-site treatment. Same colours (warm orange +
  cool blue from the app icon's stem lines), same loop timing,
  same `prefers-reduced-motion` opt-out.
*/
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 20px 0 60px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero::before {
  width: 460px;
  height: 460px;
  top: -80px;
  left: -120px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: .55;
  filter: blur(70px);
  animation: heroDriftA 16s ease-in-out infinite;
}
.hero::after {
  width: 420px;
  height: 420px;
  top: 140px;
  right: -140px;
  background: radial-gradient(circle, rgba(93, 166, 255, .9) 0%, transparent 70%);
  opacity: .42;
  filter: blur(80px);
  animation: heroDriftB 19s ease-in-out infinite;
}
@keyframes heroDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(190px, 60px) scale(1.18); }
  50%  { transform: translate(130px, 160px) scale(1.24); }
  75%  { transform: translate(-50px, 110px) scale(1.10); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-90px, 90px) scale(1.10); }
  50%  { transform: translate(-220px, 50px) scale(1.20); }
  75%  { transform: translate(-150px, 180px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { animation: none; }
}

.hero__icon-wrap {
  margin: 0 auto 24px;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 60px var(--accent-glow),
    0 10px 30px rgba(0,0,0,.5);
}
.hero__icon {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.hero__lede {
  color: var(--text-mute);
  font-size: 19px;
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.hero__cta-secondary {
  color: var(--text-mute);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.hero__cta-secondary:hover { color: var(--accent); }
.hero__cta-secondary .arrow { transition: transform .15s; }
.hero__cta-secondary:hover .arrow { transform: translateX(3px); }

.hero__platform {
  color: var(--text-mute);
  font-size: 13px;
  margin: 18px 0 0;
}


/* ── App Store button ────────────────────────────────────────── */

/*
  Apple-style "Download on the App Store" button. The Apple logo on
  the left is a hand-traced SVG path so we don't have to ship a PNG
  (vector scales cleanly to retina). Layout mirrors Apple's HIG: small
  caption "Download on the" stacked above a bold "App Store" wordmark.
*/
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.appstore-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.appstore-btn--large {
  padding: 16px 36px;
  font-size: 16px;
}
.appstore-btn__logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.appstore-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.appstore-btn__text small {
  font-size: 11px;
  font-weight: 400;
  opacity: .75;
  letter-spacing: .02em;
}
.appstore-btn__text strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}


/* ── Section headers ─────────────────────────────────────────── */

.section-title {
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin: 0 0 36px;
}


/* ── Features grid ───────────────────────────────────────────── */

.features {
  padding: 40px 0;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s, transform .15s;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature__icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}
.feature__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.feature__body {
  color: var(--text-mute);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}


/* ── Personas ────────────────────────────────────────────────── */

.personas {
  padding: 40px 0;
}
.personas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.persona {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.persona__title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin: 0 0 10px;
}
.persona__body {
  font-size: 16px;
  margin: 0;
  color: var(--text);
}


/* ── Stems promo block ───────────────────────────────────────── */

.stems-promo {
  padding: 50px 0;
  text-align: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  margin: 40px 0;
  padding: 50px 30px;
}
.stems-promo__body {
  color: var(--text-mute);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 24px;
}
.stems-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1a1004;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s, box-shadow .15s;
}
.stems-promo__cta:hover {
  color: #1a1004;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}
.stems-promo__cta .arrow { transition: transform .15s; }
.stems-promo__cta:hover .arrow { transform: translateX(3px); }


/* ── Final CTA ───────────────────────────────────────────────── */

.final-cta {
  padding: 60px 0 20px;
  text-align: center;
}
.final-cta__body {
  color: var(--text-mute);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 28px;
}


/* ── Legal pages (impressum / datenschutz) ───────────────────── */

/*
  Re-used from the stems-site treatment so the imprint and privacy
  policy pages on guitarpt.app look identical to those on
  stems.guitarpt.app. Boring document feel: narrow column, subdued
  accent usage, framed address blocks.
*/
.legal {
  max-width: 680px;
  padding: 16px 0 40px;
}
.legal h1 {
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.legal h2 {
  font-size: 20px;
  margin: 36px 0 10px;
  letter-spacing: -.01em;
  color: var(--text);
}
.legal h3 {
  font-size: 16px;
  margin: 22px 0 6px;
  color: var(--text-mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.legal p,
.legal li {
  color: var(--text);
  margin: 10px 0;
}
.legal__lede {
  color: var(--text-mute);
  font-size: 17px;
  margin: 8px 0 20px;
}
.legal__address {
  font-style: normal;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: inline-block;
  line-height: 1.6;
}
.legal__processors {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.legal__processors li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 10px 0;
}
.legal__back {
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-mute);
}
.legal__back a {
  color: var(--accent);
  text-decoration: none;
}
.legal__back a:hover { text-decoration: underline; }
.legal__stand {
  color: var(--text-mute);
  font-size: 13px;
  font-style: italic;
  margin-top: 28px;
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
}
.legal a:hover { text-decoration-color: var(--accent); }


/* ── Footer ──────────────────────────────────────────────────── */

.site-foot {
  text-align: center;
  padding: 30px 24px 50px;
  color: var(--text-mute);
  font-size: 13px;
  border-top: 1px solid var(--border);
  max-width: 760px;
  margin: 60px auto 0;
}
.site-foot a { color: var(--text-mute); text-decoration: underline; text-decoration-color: var(--border); }
.site-foot a:hover { color: var(--accent); text-decoration-color: var(--accent); }


/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 640px) {
  main { padding: 0 16px 60px; }
  .site-head { padding: 16px; }
  .features__grid { grid-template-columns: 1fr; }
  .hero { padding: 10px 0 40px; }
  .hero__icon-wrap { width: 96px; height: 96px; border-radius: 22px; }
  .stems-promo { padding: 36px 20px; }
  .legal h1 { font-size: 26px; }
  .legal h2 { font-size: 18px; }
}
