/* =========================================================================
   Palmuse — palmuse.app
   Premium cosmic-gold marketing site. Plain CSS, no framework.
   ========================================================================= */

:root {
  color-scheme: dark;

  /* Surface */
  --bg: #05060c;
  --bg-2: #090b15;
  --panel: rgba(17, 21, 36, 0.62);
  --panel-2: rgba(12, 15, 27, 0.78);
  --hairline: rgba(255, 214, 138, 0.16);
  --hairline-strong: rgba(255, 214, 138, 0.34);

  /* Ink */
  --ink: #f7efe0;
  --muted: rgba(247, 239, 224, 0.72);
  --subtle: rgba(247, 239, 224, 0.5);

  /* Gold + accents */
  --gold: #f1c87c;
  --gold-bright: #ffe7af;
  --gold-deep: #c79545;
  --coral: #ff8f6b;
  --teal: #5fd6cb;

  --grad-gold: linear-gradient(105deg, #ffe7af 0%, #f1c87c 42%, #d49a4c 100%);
  --grad-cta: linear-gradient(100deg, #ff8f6b 0%, #ffb27a 46%, #ffd884 100%);
  --grad-text: linear-gradient(180deg, #fff4dc 0%, #f3cd86 60%, #d59f51 100%);

  --shadow-card: 0 28px 70px -28px rgba(0, 0, 0, 0.78);
  --shadow-float: 0 50px 120px -40px rgba(0, 0, 0, 0.85);
  --glow-gold: 0 0 60px -12px rgba(241, 200, 124, 0.55);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --maxw: 1200px;
  --radius: 26px;

  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
}

/* Layered cosmic backdrop, fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1100px 720px at 78% -8%, rgba(255, 178, 92, 0.22), transparent 60%),
    radial-gradient(900px 700px at 8% 18%, rgba(95, 120, 214, 0.12), transparent 55%),
    radial-gradient(1200px 900px at 50% 108%, rgba(255, 198, 120, 0.1), transparent 60%),
    linear-gradient(180deg, #070811 0%, #05060c 46%, #060710 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background-image:
    url("/assets/images/backdrop.jpg");
  background-size: cover;
  background-position: center top;
  mix-blend-mode: screen;
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Drifting starfield */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.starfield span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 236, 196, 0.9);
  box-shadow: 0 0 8px 1px rgba(255, 224, 170, 0.7);
  opacity: 0.6;
  animation: twinkle 4.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(var(--maxw), calc(100% - 44px));
  margin-inline: auto;
}
.section {
  padding: clamp(72px, 9vw, 132px) 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(241, 200, 124, 0.08);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 1px rgba(241, 200, 124, 0.8);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(46px, 6.6vw, 86px);
  line-height: 0.98;
  font-weight: 800;
}
h2 {
  font-size: clamp(34px, 4.6vw, 60px);
}
h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.12;
}
.gold-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
p {
  margin: 0;
  color: var(--muted);
}
.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- Buttons / store badges ---------- */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.store-row.center { justify-content: center; }

.store-badge {
  display: inline-grid;
  grid-template-columns: 26px auto;
  gap: 12px;
  align-items: center;
  min-width: 196px;
  padding: 12px 22px;
  border-radius: 15px;
  color: #fff;
  background: #0a0c12;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.store-badge svg { width: 26px; height: 30px; }
.store-badge .label {
  display: grid;
  gap: 1px;
  line-height: 1.05;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.store-badge .label small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}
.store-badge.live:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.9), var(--glow-gold);
}
.store-badge.app-store svg { fill: #fff; }
.store-badge.soon {
  opacity: 0.62;
  cursor: default;
}
.store-badge.soon .pill {
  margin-left: 6px;
  align-self: center;
  padding: 2px 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.8);
}
.play-a { fill: #00d3ff; }
.play-b { fill: #ffd34d; }
.play-c { fill: #00e27a; }
.play-d { fill: #ff4c78; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gold);
}
.btn-text svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn-text:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px -8px rgba(255, 195, 96, 0.4);
}
.brand span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a { transition: color 0.18s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  color: #1a1208 !important;
  font-weight: 700;
  background: var(--grad-cta);
  box-shadow: 0 12px 30px -12px rgba(255, 160, 110, 0.7);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.78fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(46px, 7vw, 96px) 0 clamp(60px, 8vw, 110px);
}
.hero-copy { max-width: 660px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; color: var(--muted); }
.hero .store-row { margin-bottom: 18px; }
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--subtle);
}
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(241, 200, 124, 0.8);
}

/* Hero device */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
}
.device {
  position: relative;
  width: min(100%, 360px);
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-float), var(--glow-gold);
  background: #05060c;
}
.device img { width: 100%; height: auto; display: block; }
.hero-stage .device {
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}
.hero-stage::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 190, 110, 0.22), transparent 70%);
  z-index: -1;
}
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}
.float-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 10px rgba(241, 200, 124, 0.9);
}
.float-chip.a { top: 12%; left: -26px; animation: floaty 6s ease-in-out infinite; }
.float-chip.b { bottom: 14%; right: -22px; animation: floaty 8s ease-in-out infinite reverse; }

/* ---------- Trust strip ---------- */
.signal-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.signal-bar div {
  padding: 26px 24px;
  background: rgba(10, 13, 23, 0.86);
}
.signal-bar strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--gold);
  font-weight: 700;
}
.signal-bar span { font-size: 14px; color: var(--muted); }

/* ---------- Section header ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; font-size: 18px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}
.step .num {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #14100a;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--grad-gold);
  margin-bottom: 22px;
  box-shadow: 0 12px 26px -12px rgba(241, 200, 124, 0.7);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15.5px; }

/* ---------- Feature split ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.feature.reverse .feature-media { order: -1; }
.feature-copy .chips { margin-top: 26px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips span {
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(241, 200, 124, 0.08);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.feature-copy p { margin-top: 18px; font-size: 17.5px; max-width: 52ch; }
.feature-copy .btn-text { margin-top: 26px; }

.feature-media {
  position: relative;
  display: grid;
  place-items: center;
}
.feature-media .device { width: min(100%, 330px); }
.feature-media.stack {
  min-height: 540px;
}
.feature-media.stack .device {
  position: absolute;
  width: min(70%, 250px);
}
.feature-media.stack .device.back {
  transform: rotate(6deg) translate(14%, -6%);
  z-index: 1;
  opacity: 0.96;
}
.feature-media.stack .device.front {
  transform: rotate(-5deg) translate(-14%, 8%);
  z-index: 2;
}

/* ---------- Showcase gallery ---------- */
.gallery-wrap { overflow: hidden; }
.gallery {
  display: flex;
  gap: 22px;
  padding: 8px 4px 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .shot {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 290px);
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gallery .shot:hover {
  transform: translateY(-8px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-float), var(--glow-gold);
}
.gallery .shot img { width: 100%; height: auto; }
.gallery-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--subtle);
  text-align: center;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}
.price-card.feature-tier {
  background:
    linear-gradient(160deg, rgba(241, 200, 124, 0.14), rgba(255, 255, 255, 0.03)),
    var(--panel-2);
  border-color: var(--hairline-strong);
}
.price-card .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.price-card h3 { margin-bottom: 8px; }
.price-card .amount {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 16px;
}
.price-card p { font-size: 15px; }
.price-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.price-card li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--muted);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(241, 200, 124, 0.7);
}

/* ---------- Privacy panel ---------- */
.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  padding: clamp(36px, 5vw, 60px);
  border-radius: 34px;
  background:
    linear-gradient(150deg, rgba(241, 200, 124, 0.1), rgba(255, 255, 255, 0.02)),
    var(--panel-2);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.privacy-panel ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.privacy-panel li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.5;
}
.privacy-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}
.privacy-panel .feature-media { max-width: 280px; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(360px, 1fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}
.faq-list { display: grid; gap: 14px; }
.faq-list details {
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: var(--hairline-strong); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 14px; font-size: 15.5px; line-height: 1.62; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
  border-radius: 38px;
  background:
    radial-gradient(700px 360px at 50% -10%, rgba(255, 178, 92, 0.24), transparent 70%),
    var(--panel-2);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-float);
}
.final-cta .sigil {
  width: 84px; height: 84px;
  margin: 0 auto 26px;
  border-radius: 24px;
  display: grid; place-items: center;
  background: rgba(5, 6, 12, 0.6);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--glow-gold);
}
.final-cta .sigil img { width: 58px; height: 58px; border-radius: 16px; }
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { max-width: 50ch; margin: 0 auto 30px; font-size: 18px; }
.final-cta .store-row { justify-content: center; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 50px 0 60px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 11px; }
.footer-brand span { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.footer-tag { margin-top: 14px; max-width: 38ch; font-size: 14px; color: var(--subtle); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }
.footer-base {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 214, 138, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--subtle);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages (contact / privacy / terms / impressum) ---------- */
.legal-page { max-width: 860px; padding: 70px 0 110px; }
.legal-page h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 22px; }
.legal-card {
  padding: 36px;
  margin-top: 26px;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}
.legal-card h2 { margin-top: 26px; font-size: 26px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p,
.legal-card li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal-card a { color: var(--gold); }
.legal-card ul { padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .hero-copy { max-width: none; }
  .feature, .privacy-panel, .faq { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .steps, .pricing { grid-template-columns: 1fr; }
  .signal-bar { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.nav-cta) { display: none; }
  .feature-media.stack { min-height: 460px; }
}

@media (max-width: 720px) {
  /* Float chips overflow narrow viewports — hide them, the device speaks for itself */
  .float-chip { display: none; }
  .hero-stage .device { width: min(86%, 340px); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 30px); }
  h1 { font-size: clamp(34px, 10.5vw, 50px); line-height: 1.02; }
  h2 { font-size: clamp(28px, 8vw, 40px); }
  .signal-bar { grid-template-columns: 1fr; }
  .store-row { width: 100%; }
  .store-badge { flex: 1 1 100%; min-width: 0; justify-content: center; }
  .footer-base { flex-direction: column; }
  .footer-grid { gap: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .hero-stage .device,
  .float-chip,
  .starfield span { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
