/* ==========================================================================
   Acid Jelly: Laser Pop — landing page styles
   Mobile-first. Enhanced at >=768px and >=1024px.
   Theme: Acid Green Glow on Lab Charcoal (neon lab / match-3)
   ========================================================================== */

:root {
  /* Color scheme */
  --charcoal: #0c1410;      /* lab bench charcoal */
  --charcoal-2: #101c16;    /* raised panel */
  --charcoal-3: #16261d;    /* card surface */
  --acid: #8bff2e;          /* neon acid green */
  --acid-deep: #5fd400;     /* pressed / border */
  --laser: #35e6ff;         /* laser cyan */
  --jelly-pink: #ff3ea5;    /* jelly pop magenta */
  --ink: #eafff0;           /* primary text */
  --ink-soft: #a9c6b4;      /* secondary text */
  --line: rgba(139, 255, 46, 0.18);
  --grey-soon: #2a2a2a;     /* disabled store plate */

  /* Type */
  --font-display: ui-monospace, "SF Mono", "Roboto Mono", "Consolas", monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1120px;
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; height: auto; }
a { color: var(--acid); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(12, 20, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-icon { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.brand-name { font-size: 15px; }

.site-nav { display: none; margin-left: auto; gap: 22px; }
.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a:active { color: var(--acid); }

.nav-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--acid), var(--acid-deep));
  color: #05170a;
  box-shadow: 0 0 16px rgba(139, 255, 46, 0.45);
}
.nav-cta-text { display: none; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.nav-cta-icon { color: #05170a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 16px 44px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(139, 255, 46, 0.16), transparent 70%),
    radial-gradient(50% 40% at 85% 30%, rgba(53, 230, 255, 0.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(255, 62, 165, 0.06));
  z-index: 0;
}
/* laser grid lines */
.hero-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 255, 46, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 230, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 40%, transparent 100%);
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero-icon {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(139, 255, 46, 0.28);
}

.hero h1 {
  font-size: clamp(30px, 8vw, 46px);
  color: var(--ink);
  text-shadow: 0 0 22px rgba(139, 255, 46, 0.35);
}
.hero-sub {
  margin: 14px auto 0;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero-note {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--laser);
}

.hero-banner {
  margin: 26px auto 0;
  max-width: 640px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(139, 255, 46, 0.5), rgba(53, 230, 255, 0.4), rgba(255, 62, 165, 0.4));
  box-shadow: 0 0 40px rgba(53, 230, 255, 0.18);
}
.hero-banner img {
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgba(12, 20, 16, 0.6);
}

/* ---------- Store buttons ---------- */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin: 22px auto 0;
  max-width: 320px;
}

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.store-btn-glyph { flex: 0 0 auto; }
.store-btn-copy { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn-copy small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.store-btn-copy strong { font-size: 17px; font-family: var(--font-display); }

/* Google Play — glossy acid-gel capsule */
.store-btn--play {
  color: #05170a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, var(--acid), var(--acid-deep));
  border-color: rgba(139, 255, 46, 0.7);
  box-shadow: 0 0 22px rgba(139, 255, 46, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.store-btn--play:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 0 30px rgba(139, 255, 46, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.store-btn--play:active { transform: translateY(0) scale(0.98); }

/* App Store — disabled Coming Soon plate (neutral grey, not brand color) */
.store-btn--soon {
  color: #cfcfcf;
  background: var(--grey-soon);
  border-color: #3a3a3a;
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
}
.soon-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #3a3a3a;
  color: #e6e6e6;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.03em;
  border: 1px solid #4a4a4a;
}

/* ---------- Sections shared ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section-head h2, .download h2, .about h2 {
  font-size: clamp(24px, 6vw, 34px);
  color: var(--ink);
}
.section-lede { margin: 10px 0 0; color: var(--ink-soft); }

.features { padding: 52px 16px; max-width: var(--wrap); margin: 0 auto; }

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--charcoal-3), var(--charcoal-2));
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 255, 46, 0.4);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 255, 46, 0.12);
}
.feature-card h3 {
  font-size: 18px;
  margin: 4px 0 8px;
  color: var(--ink);
}
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* translucent jelly blob accent */
.feature-blob {
  display: block;
  width: 40px; height: 40px;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  margin-bottom: 6px;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.35);
}
.feature-blob--green { background: radial-gradient(circle at 32% 28%, #d6ff9a, rgba(139, 255, 46, 0.55)); }
.feature-blob--cyan  { background: radial-gradient(circle at 32% 28%, #b6f6ff, rgba(53, 230, 255, 0.55)); }
.feature-blob--pink  { background: radial-gradient(circle at 32% 28%, #ffc0e0, rgba(255, 62, 165, 0.55)); }

/* ---------- Download CTA ---------- */
.download {
  padding: 60px 16px;
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(139, 255, 46, 0.14), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(53, 230, 255, 0.12), transparent 70%),
    var(--charcoal-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.download-inner { max-width: 640px; margin: 0 auto; }
.download-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 8px 30px rgba(139, 255, 46, 0.3); }
.download-sub { margin: 12px auto 0; max-width: 42ch; color: var(--ink-soft); }
.store-buttons--cta { margin-top: 26px; }

/* ---------- About ---------- */
.about { padding: 56px 16px; max-width: 720px; margin: 0 auto; }
.about-inner h2 { text-align: center; margin-bottom: 18px; }
.about p { color: var(--ink-soft); margin: 0 0 14px; }
.about-contact a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 34px 16px 96px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--charcoal);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.footer-brand img { border-radius: 8px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 16px 0 12px;
}
.footer-links a { color: var(--ink-soft); font-size: 14px; }
.footer-links a:hover, .footer-links a:active { color: var(--acid); }
.footer-copy { margin: 0; color: var(--ink-soft); font-size: 13px; opacity: 0.8; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 16px;
  color: #05170a;
  font-family: var(--font-display);
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, var(--acid), var(--acid-deep));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 255, 46, 0.5);
  transform: translateY(140%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-cta.is-visible { transform: translateY(0); }

/* ---------- Motion: reveal + jelly jiggle ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes jelly-jiggle {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.08, 0.92); }
  55% { transform: scale(0.95, 1.05); }
  75% { transform: scale(1.03, 0.98); }
}
@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  94% { opacity: 0.55; }
  96% { opacity: 1; }
  97% { opacity: 0.7; }
}
.hero-icon:hover { animation: jelly-jiggle 0.6s ease; }
.hero-note { animation: neon-flicker 6s linear infinite; }

/* ---------- Responsive: tablet ---------- */
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  .site-nav { display: flex; }
  .nav-cta { margin-left: 0; padding: 0 16px; }
  .nav-cta-text { display: inline; }
  .nav-cta-icon { display: none; }

  .store-buttons { flex-direction: row; justify-content: center; max-width: none; }
  .store-btn { min-width: 210px; }

  .feature-grid { grid-template-columns: 1fr 1fr; gap: 18px; }

  .hero { padding: 72px 24px 64px; }
  .hero-banner { margin-top: 34px; }
}

/* ---------- Responsive: desktop ---------- */
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none; }
  .features { padding: 80px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sticky-cta { transition: none; }
}
