/* Frostbloom: Bubble Pop - mobile-first stylesheet
   Palette: frosted jade cyan + pale violet on icy white */
:root {
  --c-bg: #f3fafa;
  --c-surface: #ffffff;
  --c-ice: #e3f4f3;
  --c-lilac: #ece6fb;
  --c-text: #12333a;
  --c-muted: #3f5f66;
  --c-jade: #0b7a72;
  --c-jade-deep: #075a54;
  --c-jade-soft: #7fd6cf;
  --c-violet: #6a4fc0;
  --c-violet-soft: #c7b8f2;
  --c-line: #b6dcd9;
  --c-soon: #2a2a2a;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  --radius: 18px;
  --header-h: 48px;
  --shadow: 0 10px 30px rgba(18, 51, 58, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--c-jade); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--c-jade-deep); color: #fff; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 3px; }

/* Eyebrow with sparkle accent */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-violet); margin-bottom: 10px;
}
.sparkle {
  width: 12px; height: 12px; flex: none;
  background: var(--c-violet);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3.2s ease-in-out infinite;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(243, 250, 250, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--c-text); font-weight: 800; }
.brand-icon { width: 32px; height: 32px; border-radius: 9px; border: 1.5px solid var(--c-line); }
.header-nav { display: none; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--c-jade); color: var(--c-jade); text-decoration: none; font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.header-cta:hover, .header-cta:active { background: var(--c-jade); color: #fff; }
.header-cta-icon { width: 20px; height: 20px; }
.header-cta-text { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 28px) 0 40px; overflow: hidden; }
.hero-backdrop {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, var(--c-ice) 0, transparent 45%),
    radial-gradient(circle at 90% 10%, var(--c-lilac) 0, transparent 40%),
    var(--c-bg);
}
.hero-inner { display: flex; flex-direction: column; gap: 28px; }
.hero-panel { text-align: center; }
.hero-icon {
  width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 22px;
  border: 2px solid var(--c-surface); box-shadow: 0 0 0 2px var(--c-line), var(--shadow);
  animation: drift 6s ease-in-out infinite;
}
.hero-lead { font-size: 17px; color: var(--c-muted); max-width: 34em; margin-left: auto; margin-right: auto; }
.hero-note { font-size: 14px; color: var(--c-muted); margin: 16px 0 0; }
.hero-banner { margin: 0; }
.hero-banner img {
  width: 100%; max-height: 50vh; object-fit: cover;
  border-radius: var(--radius); border: 2px solid var(--c-surface);
  box-shadow: 0 0 0 2px var(--c-line), var(--shadow);
}

/* ---------- Store buttons (outline ghost) ---------- */
.store-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.store-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 8px 22px; width: 100%;
  border-radius: 14px; border: 2px solid var(--c-jade);
  background: rgba(255, 255, 255, 0.7); color: var(--c-jade-deep);
  font: inherit; text-decoration: none; text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.store-btn--play:hover, .store-btn--play:active { background: var(--c-jade); color: #fff; }
.store-btn--play:active { transform: scale(0.98); }
.store-logo { width: 26px; height: 26px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.store-text strong { font-size: 19px; font-weight: 750; }

/* App Store placeholder: disabled, neutral grey, never brand-colored */
.store-btn--soon {
  background: var(--c-soon); border-color: var(--c-soon); color: #ffffff;
  opacity: 0.55; filter: grayscale(0.6); cursor: not-allowed;
}
.soon-tag {
  position: absolute; top: -9px; right: 10px;
  padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.6;
  background: #ffffff; color: #1d1d1d; border: 1px solid #1d1d1d;
}

/* ---------- Features ---------- */
.features { padding: 56px 0; background: var(--c-surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-lead { color: var(--c-muted); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature-card {
  position: relative; padding: 22px 20px;
  background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-ice) 100%);
  border: 1.5px solid var(--c-line); border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-card:nth-child(even) { background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-lilac) 100%); border-color: var(--c-violet-soft); }
.feature-card:hover, .feature-card:active { border-color: var(--c-jade); transform: translateY(-2px); }
.feature-card p { color: var(--c-muted); margin: 0; font-size: 15px; }
.feature-icon {
  width: 44px; height: 44px; margin-bottom: 14px;
  fill: none; stroke: var(--c-jade); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card:nth-child(even) .feature-icon { stroke: var(--c-violet); }

/* ---------- Download CTA ---------- */
.download {
  padding: 64px 0; color: #ffffff; text-align: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(199, 184, 242, 0.25) 0, transparent 50%),
    linear-gradient(135deg, var(--c-jade-deep) 0%, #3f3487 100%);
}
.download h2 { font-size: 28px; }
.download p { color: #e6f4f3; max-width: 32em; margin: 0 auto 24px; }
.download-icon { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, 0.7); }
.store-btn--light { background: transparent; border-color: #ffffff; color: #ffffff; }
.store-btn--light:hover, .store-btn--light:active { background: #ffffff; color: var(--c-jade-deep); }
.store-buttons--center { align-items: center; }

/* ---------- About ---------- */
.about { padding: 56px 0; }
.about-inner { max-width: 720px; }
.about p { color: var(--c-muted); }
.about-contact { font-weight: 600; color: var(--c-text); }
.about-contact a { display: inline-block; padding: 10px 0; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); background: var(--c-ice); border-top: 1px solid var(--c-line); }
.footer-inner { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-jade-deep); font-size: 15px; }
.footer-links a:hover, .footer-links a:active { color: var(--c-violet); }
.copyright { font-size: 14px; color: var(--c-muted); margin: 0; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--c-line);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; }
.sticky-cta-text { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.25; }
.sticky-cta-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 2px solid var(--c-jade); color: var(--c-jade-deep);
  font-weight: 700; text-decoration: none;
}
.sticky-cta-btn:hover, .sticky-cta-btn:active { background: var(--c-jade); color: #fff; }

/* ---------- Motion: gentle frost fade ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8) rotate(45deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .header-nav { display: flex; gap: 4px; margin-left: auto; }
  .header-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    color: var(--c-text); text-decoration: none; font-weight: 600; border-radius: 10px;
  }
  .header-nav a:hover, .header-nav a:active { color: var(--c-jade); background: var(--c-ice); }
  .header-cta { width: auto; padding: 0 18px; border-radius: 999px; }
  .header-cta-text { display: inline; }
  .store-buttons { flex-direction: row; flex-wrap: wrap; }
  .hero-panel .store-buttons { justify-content: center; }
  .store-btn { width: auto; min-width: 210px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .download h2 { font-size: 40px; }
  .site-footer { padding-bottom: 32px; }
  .sticky-cta { display: none; }
}

/* ---------- Desktop: banner as full hero backdrop, frosted text panel ---------- */
@media (min-width: 1024px) {
  h1 { font-size: 52px; }
  .hero { min-height: 640px; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 64px; }
  .hero-banner { position: absolute; inset: 0; z-index: -1; }
  .hero-banner img { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .hero-panel {
    max-width: 540px; padding: 40px; text-align: left;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.95); border-radius: 28px;
    box-shadow: 0 0 0 1.5px var(--c-line), 0 24px 60px rgba(18, 51, 58, 0.18);
  }
  .hero-icon { margin-left: 0; }
  .hero-lead { margin-left: 0; }
  .hero-panel .store-buttons { justify-content: flex-start; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .feature-card { padding: 28px 24px; }
}
