/* ============================================================
   Floradex — marketing site styles (shared by index + privacy)
   Vibrant + glassmorphic botanical aesthetic.
   Anchored to the app palette, dialed up with gradients,
   frosted glass, and a Pokémon-style collectible feel.
   ============================================================ */

:root {
  /* App palette (DesignTokens.swift) */
  --forest:      #2D6E3D;
  --forest-deep: #1F4F2A;
  --leaf-light:  #4FB477;
  --terracotta:  #B55539;
  --amber:       #D99A29;
  --amber-deep:  #C2861C;
  --parchment:   #F8F3E6;
  --ink:         #2A2722;
  --ink-soft:    #5d564c;
  --pencil:      #9D9586;
  --card-stroke: #E5DCC4;

  /* Vibrant accents for gradients / rarity */
  --teal:   #2E9E86;
  --teal-l: #6FE0C8;
  --sky:    #3D8BFF;
  --grape:  #7B4BD0;
  --blossom:#FF7EA8;
  --sun:    #FFC23D;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --card-corner: 20px;
  --button-corner: 14px;
  --maxw: 1140px;

  /* Glass tokens */
  --glass-bg: rgba(255, 253, 247, 0.55);
  --glass-bd: rgba(255, 255, 255, 0.6);
  --glass-sh: 0 18px 50px rgba(31, 50, 35, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #F3EFE2;
  position: relative;
  overflow-x: hidden;
}
/* Vibrant fixed gradient blobs that the frosted glass refracts over. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46vw 46vw at 8% -4%,  rgba(79,180,119,0.55), transparent 60%),
    radial-gradient(40vw 40vw at 98% 6%,  rgba(46,158,134,0.45), transparent 60%),
    radial-gradient(48vw 48vw at 92% 64%, rgba(217,154,41,0.40), transparent 62%),
    radial-gradient(44vw 44vw at 0% 78%,  rgba(181,85,57,0.34), transparent 62%),
    radial-gradient(38vw 38vw at 50% 110%, rgba(123,75,208,0.26), transparent 60%);
  background-color: #F4F0E3;
}

img, svg { max-width: 100%; }
a { color: var(--forest); }
a:hover { color: var(--forest-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 0.4em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
section { padding-block: clamp(56px, 8vw, 104px); position: relative; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--terracotta);
  margin: 0 0 0.7em;
}
.section-head { max-width: 40ch; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; }

/* gradient text accent */
.grad {
  background: linear-gradient(100deg, var(--forest) 0%, var(--teal) 45%, var(--amber-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Glass surface ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid var(--glass-bd);
  border-radius: var(--card-corner);
  box-shadow: var(--glass-sh), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ---------- Buttons (glass) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: 14px 26px; border-radius: var(--button-corner);
  border: 1px solid transparent; cursor: pointer;
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, #3a8a4f, #1F4F2A);
  color: #fff; border-color: rgba(255,255,255,0.35);
  box-shadow: 0 10px 28px rgba(31,79,42,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 36px rgba(31,79,42,0.45), inset 0 1px 0 rgba(255,255,255,0.5); color: #fff; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,253,247,0.5); color: var(--forest-deep);
  border-color: rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,253,247,0.75); }
.btn-ghost:active { transform: translateY(0); }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244,240,227,0.6);
  -webkit-backdrop-filter: saturate(165%) blur(16px);
  backdrop-filter: saturate(165%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 11px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 40px; height: 40px; flex: none; border-radius: 10px; box-shadow: 0 4px 12px rgba(42,39,34,0.2); }
.brand .wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.brand .company { font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(60px, 9vw, 120px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 5vw, 56px); align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,253,247,0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 0.82rem; font-weight: 700; color: var(--forest-deep);
  margin-bottom: 22px;
}
.hero-badge img { width: 26px; height: 26px; border-radius: 7px; }
.hero h1 { margin-bottom: 0.22em; }
.hero-pitch { font-size: clamp(1.14rem, 2vw, 1.42rem); color: var(--ink); max-width: 30ch; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }
.hero-note { margin-top: 1.1em; font-size: 0.9rem; color: var(--ink-soft); }

/* fanned collectible cards in hero */
.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.card-fan { position: relative; width: min(340px, 86vw); height: 430px; }
.card-fan .plant-card { position: absolute; width: 240px; }
.card-fan .c1 { transform: rotate(-13deg) translate(-78px, 28px) scale(0.9); z-index: 1; }
.card-fan .c2 { transform: rotate(0deg)   translate(0, -6px); z-index: 3; }
.card-fan .c3 { transform: rotate(13deg)  translate(78px, 28px) scale(0.9); z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .card-fan .plant-card { transition: transform 0.4s cubic-bezier(.2,.7,.3,1); }
  .card-fan:hover .c1 { transform: rotate(-16deg) translate(-104px, 18px) scale(0.92); }
  .card-fan:hover .c2 { transform: rotate(0deg) translate(0, -22px) scale(1.04); }
  .card-fan:hover .c3 { transform: rotate(16deg) translate(104px, 18px) scale(0.92); }
}

/* ============================================================
   COLLECTIBLE PLANT CARD (Pokémon-style)
   ============================================================ */
.plant-card {
  position: relative;
  border-radius: 22px;
  padding: 12px 12px 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(255,250,240,0.6));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: 0 16px 44px rgba(31,50,35,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
  isolation: isolate;
}
/* rarity ring/border */
.plant-card.common    { box-shadow: 0 12px 36px rgba(45,110,61,0.22), inset 0 0 0 2px rgba(79,180,119,0.5); }
.plant-card.rare      { box-shadow: 0 16px 44px rgba(61,139,255,0.3), inset 0 0 0 2px rgba(61,139,255,0.55); }
.plant-card.legendary { box-shadow: 0 20px 54px rgba(123,75,208,0.34), inset 0 0 0 2px rgba(217,154,41,0.6); }

/* holographic sheen for rare+ */
.plant-card.rare::before, .plant-card.legendary::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 47%, rgba(170,225,255,0.35) 52%, transparent 70%);
  mix-blend-mode: screen; opacity: 0.7;
  transform: translateX(-30%);
}
.plant-card.legendary::before {
  background: linear-gradient(115deg, transparent 28%, rgba(255,210,140,0.6) 45%, rgba(255,160,210,0.5) 52%, rgba(150,210,255,0.5) 60%, transparent 74%);
}
@media (prefers-reduced-motion: no-preference) {
  .plant-card.rare::before, .plant-card.legendary::before { animation: holo 5.5s ease-in-out infinite; }
  @keyframes holo { 0%,100% { transform: translateX(-35%);} 50% { transform: translateX(35%);} }
}

.pc-art {
  position: relative; border-radius: 14px; aspect-ratio: 1 / 1;
  display: grid; place-items: center; overflow: hidden;
}
.pc-art.bg-green  { background: radial-gradient(circle at 50% 38%, #aef0c4, #4FB477 70%, #2D6E3D); }
.pc-art.bg-blossom{ background: radial-gradient(circle at 50% 36%, #ffe3ee, #FF9DBE 65%, #d65f8c); }
.pc-art.bg-amber  { background: radial-gradient(circle at 50% 36%, #fff0c2, #FFC23D 62%, #e08a1f); }
.pc-art.bg-teal   { background: radial-gradient(circle at 50% 38%, #c8fff0, #6FE0C8 60%, #2E9E86); }
.pc-art.bg-grape  { background: radial-gradient(circle at 50% 36%, #ead9ff, #b18cff 60%, #7B4BD0); }
.pc-art svg.illo { width: 78%; height: 78%; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18)); }
.pc-dex {
  position: absolute; top: 8px; left: 10px; z-index: 3;
  font-family: var(--serif); font-weight: 700; font-size: 0.8rem;
  color: rgba(255,255,255,0.95); text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pc-meta { padding: 12px 4px 0; }
.pc-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; margin: 0; line-height: 1.1; }
.pc-sci  { font-style: italic; color: var(--ink-soft); font-size: 0.82rem; margin: 1px 0 0; }
.pc-row  { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.pc-type {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: #fff;
}
.type-tropical  { background: linear-gradient(135deg, #4FB477, #2E9E86); }
.type-flowering { background: linear-gradient(135deg, #FF9DBE, #d65f8c); }
.type-radiant   { background: linear-gradient(135deg, #FFC23D, #e08a1f); }
.type-succulent { background: linear-gradient(135deg, #6FE0C8, #2E9E86); }
.type-aromatic  { background: linear-gradient(135deg, #b18cff, #7B4BD0); }
.pc-stars { letter-spacing: 1px; font-size: 0.9rem; }
.pc-stars .s-on  { color: var(--amber); }
.pc-stars .s-off { color: rgba(157,149,134,0.45); }
.rarity-tag {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 8px; color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rarity-tag.common    { background: rgba(45,110,61,0.85); }
.rarity-tag.rare      { background: rgba(61,139,255,0.9); }
.rarity-tag.legendary { background: linear-gradient(135deg, #7B4BD0, #D99A29); }

/* ============================================================
   GAMIFIED VALUE PROP  (Snap. Catch. Collect.)
   ============================================================ */
.play {
  color: #EAF5EC;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(79,180,119,0.55), transparent 60%),
    radial-gradient(50vw 50vw at 100% 110%, rgba(217,154,41,0.4), transparent 60%),
    linear-gradient(160deg, #205233, #163b25 70%);
  overflow: hidden;
}
.play .eyebrow { color: var(--amber); }
.play h2 { color: #fff; }
.play .section-head p { color: rgba(234,245,236,0.85); }
.play-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.play-tile {
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--card-corner);
  padding: 26px 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.play-tile .bubble {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.9rem; margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.play-tile h3 { color: #fff; font-size: 1.35rem; margin-bottom: 0.3em; }
.play-tile p { color: rgba(234,245,236,0.82); margin: 0; }
.b-snap   { background: linear-gradient(135deg, #4FB477, #2E9E86); }
.b-catch  { background: linear-gradient(135deg, #FFC23D, #e08a1f); }
.b-collect{ background: linear-gradient(135deg, #FF9DBE, #7B4BD0); }
.play-tagline {
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem); color: #fff; margin-top: 40px;
}
.play-tagline .grad {
  background: linear-gradient(100deg, #6FE0C8, #FFC23D);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ============================================================
   COLLECTION GALLERY
   ============================================================ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.gallery-grid .plant-card { width: 100%; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { counter-increment: step; padding: 28px; }
.step .num {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px;
  background: linear-gradient(135deg, var(--leaf-light), var(--forest));
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(45,110,61,0.3);
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 0.3em; }
.step p { color: var(--ink-soft); margin: 0; }

/* ============================================================
   HOTSPOTS / CITIES
   ============================================================ */
.cities { color: #EAF5EC; background: linear-gradient(160deg, #1f5234, #14361f); overflow: hidden; }
.cities::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40vw 40vw at 90% 10%, rgba(217,154,41,0.3), transparent 60%);
}
.cities .wrap { position: relative; z-index: 1; }
.cities h2 { color: #fff; }
.cities .eyebrow { color: var(--amber); }
.cities .lead { max-width: 52ch; color: rgba(234,245,236,0.9); font-size: 1.1rem; }
.cities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.city-card {
  background: rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--card-corner); padding: 24px 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.city-card .region { color: var(--amber); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.city-card h3 { color: #fff; margin: 4px 0 0; }
.city-card .spots { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.city-card .spots li {
  font-size: 0.86rem; background: rgba(217,154,41,0.18);
  border: 1px solid rgba(217,154,41,0.5); color: #fdf6e6;
  padding: 6px 13px; border-radius: 999px;
}
.cities-more { margin-top: 28px; color: rgba(234,245,236,0.85); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }

/* ============================================================
   BETA CTA
   ============================================================ */
.cta-strip { text-align: center; }
.cta-strip .glass { max-width: 680px; margin-inline: auto; padding: 48px 32px; }
.cta-strip h2 { margin-bottom: 0.3em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.5);
  background: rgba(244,240,227,0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-block: 38px; font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { color: var(--ink-soft); }

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal { max-width: 760px; }
.legal-sheet { padding: clamp(28px, 5vw, 56px); margin-block: 40px; }
.legal h1 { margin-bottom: 0.2em; }
.legal .updated { color: var(--ink-soft); margin-bottom: 2em; }
.legal h2 { margin-top: 1.8em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.todo {
  display: inline-block; background-color: rgba(217,154,41,0.18);
  border: 1px dashed var(--amber); border-radius: 6px; padding: 1px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; color: #8a5d12;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 400px; }
  .play-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOTION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .float { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
