/* ============================================================
   Panda AI — Landing page  ("Bamboo")
   Light frosted glass floating over a soft-blurred forest backdrop.
   Depends on tokens.css (import first).
   ============================================================ */

/* ============================================================
   ATMOSPHERE — real misty bamboo painting, fixed behind everything
   ============================================================ */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* the wallpaper, dimmed right down so it reads as dark matte texture */
.scene__img {
  position: absolute; inset: 0;
  background: url("../assets/bamboo-bg.jpg") right center / cover no-repeat;
  filter: grayscale(0.4) brightness(0.32) contrast(1.05);
  opacity: 0.5;
}

/* dark matte veil + green aurora glows in the corners */
.scene__wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 18% 12%, rgba(47,190,106,0.14), transparent 60%),
    radial-gradient(55% 45% at 88% 80%, rgba(47,190,106,0.10), transparent 62%),
    radial-gradient(50% 40% at 75% 8%, rgba(47,208,192,0.07), transparent 60%),
    linear-gradient(180deg, rgba(6,8,9,0.72) 0%, rgba(6,8,9,0.82) 45%, var(--void) 100%);
}


main, header, footer { position: relative; z-index: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 50; padding-top: 0.7rem; transition: padding 0.4s var(--ease-out); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; padding-inline: 0.5rem 0.5rem;
  border-radius: var(--r-pill);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border: 1px solid transparent;
}
.nav.is-stuck .nav__inner {
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-frost);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: var(--step-1); letter-spacing: -0.02em; padding-left: 0.4rem; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;   /* logo is a circle (transparent corners) */
  background: rgba(255,255,255,0.06);               /* faint disc lifts the black mark off the dark bg */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 0 20px -4px rgba(47,190,106,0.40);
}
.brand__name b { font-weight: 800; color: var(--forest-deep); }
.brand__name span { color: var(--leaf); }

.nav__links { display: flex; align-items: center; gap: clamp(0.4rem, 2vw, 1.6rem); }
.nav__link { color: var(--text-sec); font-weight: 500; font-size: var(--step-0); transition: color 0.2s; }
.nav__link:hover { color: var(--forest); }
.nav__link--menu { display: none; }
@media (min-width: 760px) { .nav__link--menu { display: inline-flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero .container { position: relative; }

/* mascot: big rocking panda with a speech bubble, bottom of the right column */
.hero__mascot {
  position: relative;
  margin-top: clamp(1rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.speech {
  position: relative;
  z-index: 2;
  max-width: 340px;
  padding: 0.85rem 1.2rem 0.95rem;
  border-radius: 18px;
  text-align: center;
}
.speech::after {                      /* little tail pointing down to the panda */
  content: "";
  position: absolute;
  left: 50%; bottom: -7px;
  width: 15px; height: 15px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--glass);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.speech__name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: 0.4rem;
}
.speech__quote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.32rem); line-height: 1.25; color: var(--forest-deep);
}
.hero__panda {
  width: clamp(210px, 24vw, 304px);
  height: auto;
  margin-top: 0.35rem;
  transform-origin: 50% 96%;          /* pivot at the rockers */
  animation: rock 5.2s ease-in-out infinite;
  filter: drop-shadow(0 22px 24px rgba(14, 42, 26, 0.30));
}
@keyframes rock {
  0%, 100% { transform: rotate(-3.4deg); }
  50%      { transform: rotate(3.4deg); }
}

/* main content sits in a large frosted-glass sheet over the bamboo */
.hero__panel {
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  backdrop-filter: blur(30px) saturate(130%);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 90px -34px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero__copy { max-width: 38ch; }

.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-5); }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf-bright); box-shadow: 0 0 10px var(--leaf-bright); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500;
  font-size: var(--step-5); line-height: 0.98; letter-spacing: -0.02em; color: var(--forest-deep);
}
.hero__title .num { font-style: italic; color: var(--leaf); text-shadow: 0 6px 30px var(--signal-glow); }
.hero__sub { margin-top: var(--space-5); font-size: var(--step-1); line-height: 1.55; color: var(--text-sec); font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

/* category icon chips (reference's little round category buttons) */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-6); }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.55rem; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-frost);
  font-size: 0.82rem; font-weight: 500; color: var(--text-sec);
  transition: transform 0.25s var(--ease-spring), background 0.25s;
}
.chip:hover { transform: translateY(-2px); background: var(--glass-strong); }
.chip i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.chip i svg { width: 15px; height: 15px; }

/* ---------- Signature: the live ranked feed ---------- */
.ranker { position: relative; }
.ranker__label {
  position: absolute; top: -2rem; right: 0.3rem;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-ter); display: flex; align-items: center; gap: 0.5rem;
}
.ranker__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-bright); box-shadow: 0 0 8px var(--leaf-bright); animation: blink 2s ease-in-out infinite; }

.feed { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.1rem; }
.card {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding: 0.95rem 1.05rem; border-radius: var(--r-md);
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px -10px rgba(14,42,26,0.25);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.card:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-soft); }
.card--hero { background: linear-gradient(135deg, rgba(47,190,106,0.16), rgba(255,255,255,0.04)); border-color: rgba(47,190,106,0.40); box-shadow: 0 10px 30px -14px var(--signal-glow); }

.card__cat { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-ter); margin-bottom: 0.3rem; }
.card__title { font-size: var(--step-0); font-weight: 600; line-height: 1.3; color: var(--text); }
.card--hero .card__title { font-size: var(--step-1); }
.card__meta { margin-top: 0.5rem; font-size: 0.76rem; color: var(--text-ter); display: flex; align-items: center; gap: 0.45rem; }
.card__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

/* circular score gauge */
.gauge { position: relative; width: 64px; height: 64px; }
.gauge svg { transform: rotate(-90deg); }
.gauge__track { stroke: rgba(20,80,47,0.14); }
.gauge__fill  { stroke: var(--signal); stroke-linecap: round; filter: drop-shadow(0 0 5px var(--signal-glow)); transition: stroke-dashoffset 1.4s var(--ease-out); }
.gauge__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; color: var(--signal); }
.gauge__num b { font-size: 1.4rem; line-height: 1; }
.gauge__num i { font-size: 0.5rem; font-style: normal; color: var(--text-ter); line-height: 1; margin-top: 2px; letter-spacing: 0.02em; }

/* score badge (price-pill vibe from the reference) */
.badge { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 13px; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; align-self: center; }
.badge[data-tier="high"] { color: #fff; background: linear-gradient(135deg, var(--leaf-bright), var(--leaf)); box-shadow: 0 6px 16px -6px var(--signal-glow); }
.badge[data-tier="mid"]  { color: var(--amber); background: rgba(224,134,11,0.14); box-shadow: inset 0 0 0 1px rgba(224,134,11,0.32); }
.badge[data-tier="low"]  { color: var(--red);   background: rgba(209,73,60,0.14); box-shadow: inset 0 0 0 1px rgba(209,73,60,0.32); }

.feed__filtered { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.1rem; padding: 0.55rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--text-ter); border-top: 1px dashed var(--glass-hair); }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section__head { max-width: 54ch; margin-bottom: var(--space-7); }
.section__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.02em; margin-top: var(--space-3); color: var(--forest-deep); }
.section__lead { margin-top: var(--space-4); color: var(--text-sec); font-size: var(--step-1); font-weight: 300; }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.pillar { padding: clamp(1.4rem, 3vw, 2rem); }
.pillar__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(31,138,76,0.12); border: 1px solid var(--glass-border); margin-bottom: var(--space-5); }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar__title { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; color: var(--forest-deep); }
.pillar__body { margin-top: var(--space-3); color: var(--text-sec); font-size: var(--step-0); }

.dots { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-4); }
.dots i { width: 9px; height: 9px; border-radius: 3px; background: rgba(20,80,47,0.14); }
.dots i.on { background: var(--leaf); box-shadow: 0 0 7px var(--signal-glow); }
.dots b { font-family: var(--font-mono); font-weight: 700; color: var(--leaf); margin-left: 8px; font-size: 0.9rem; }

.w5h1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: var(--space-4); }
.w5h1 span { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-ter); text-align: center; padding: 0.5rem 0.2rem; border-radius: 8px; background: var(--glass-low); border: 1px solid var(--glass-border); }

.sources { display: flex; align-items: center; margin-top: var(--space-4); }
.sources i { width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; border: 2px solid #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; color: #fff; box-shadow: 0 2px 6px rgba(14,42,26,0.2); }
.sources i:first-child { margin-left: 0; }
.sources b { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-sec); margin-left: 0.7rem; }

/* ============================================================
   APP AVAILABLE  (phone mockup, reference-style)
   ============================================================ */
.app { }
.app__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }

.phone { justify-self: center; width: 270px; max-width: 78vw; }
.phone__frame {
  position: relative; aspect-ratio: 9 / 19.2; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(215,226,207,0.7));
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 70px -28px rgba(14,42,26,0.45), inset 0 1px 0 rgba(255,255,255,0.7);
}
.phone__screen { height: 100%; border-radius: 32px; background: linear-gradient(180deg, var(--bg-haze), var(--bg)); overflow: hidden; padding: 1rem 0.85rem; box-shadow: inset 0 0 0 1px rgba(20,80,47,0.06); }
.phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 999px; background: var(--forest-deep); z-index: 2; }
.phone__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; padding-top: 0.7rem; }
.phone__top h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--forest-deep); font-weight: 600; }
.phone__top span { font-family: var(--font-mono); font-size: 0.6rem; color: var(--leaf); border: 1px solid rgba(31,138,76,0.3); border-radius: 999px; padding: 2px 8px; }
.mini { display: flex; gap: 0.55rem; align-items: center; padding: 0.6rem; border-radius: 13px; background: var(--glass-strong); border: 1px solid var(--glass-border); margin-bottom: 0.5rem; box-shadow: 0 3px 10px -7px rgba(14,42,26,0.3); }
.mini--top { background: linear-gradient(135deg, rgba(47,190,106,0.2), rgba(255,255,255,0.8)); border-color: rgba(31,138,76,0.3); }
.mini__s { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.mini__s.h { color:#fff; background: linear-gradient(135deg, var(--leaf-bright), var(--leaf)); }
.mini__s.m { color: var(--amber); background: rgba(224,134,11,0.15); }
.mini__t { font-size: 0.66rem; line-height: 1.25; color: var(--text); font-weight: 500; }
.mini__c { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-ter); }

.store { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: var(--space-6); }
.store a { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.2rem; border-radius: var(--r-md); background: var(--forest-deep); color: #fff; font-weight: 500; box-shadow: var(--shadow-soft); transition: transform 0.25s var(--ease-spring); }
.store a:hover { transform: translateY(-2px); }
.store small { display: block; font-size: 0.62rem; opacity: 0.7; font-weight: 400; }
.store b { font-size: 0.95rem; font-weight: 600; }

/* ============================================================
   PIPELINE
   ============================================================ */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: step; }
.pipe__step { position: relative; padding: var(--space-5) var(--space-4); }
.pipe__step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--leaf); letter-spacing: 0.05em; }
.pipe__step h3 { font-size: var(--step-1); font-weight: 600; margin-top: var(--space-3); letter-spacing: -0.01em; color: var(--forest-deep); }
.pipe__step p  { font-size: var(--step--1); color: var(--text-sec); margin-top: var(--space-2); }
.pipe__step:not(:last-child)::after { content: ""; position: absolute; top: var(--space-6); right: calc(var(--space-4) * -0.62); width: var(--space-5); height: 1px; background: linear-gradient(90deg, var(--leaf), transparent); }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); padding: clamp(1.8rem, 4vw, 2.6rem); text-align: center; }
.stat__num { font-family: var(--font-mono); font-weight: 700; font-size: var(--step-3); color: var(--forest-deep); letter-spacing: -0.02em; line-height: 1; }
.stat__num span { color: var(--leaf); }
.stat__label { margin-top: var(--space-3); font-size: var(--step--1); color: var(--text-ter); letter-spacing: 0.04em; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { text-align: center; }
.cta-final__card { padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3rem); background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(47,190,106,0.22), transparent 70%), var(--glass); position: relative; overflow: hidden; }
.cta-final__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; max-width: 18ch; margin-inline: auto; color: var(--forest-deep); }
.cta-final__title em { font-style: italic; color: var(--leaf); text-shadow: 0 6px 30px var(--signal-glow); }
.cta-final__sub { margin-top: var(--space-5); color: var(--text-sec); font-size: var(--step-1); font-weight: 300; }
.cta-final .btn { margin-top: var(--space-6); }

/* ============================================================
   FOOTER (columned, reference-style)
   ============================================================ */
.footer { margin-top: var(--space-7); padding-block: var(--space-7) var(--space-6); background: linear-gradient(180deg, transparent, var(--bg-deep)); border-top: 1px solid var(--glass-hair); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.footer__links { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem); }
.footer__links a { color: var(--text-sec); font-size: var(--step-0); transition: color 0.2s; }
.footer__links a:hover { color: var(--forest); }
.footer__copy { color: var(--text-ter); font-size: var(--step--1); }

/* ============================================================
   MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.load { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease-out) forwards; }
.load.d1 { animation-delay: 0.05s; } .load.d2 { animation-delay: 0.18s; }
.load.d3 { animation-delay: 0.31s; } .load.d4 { animation-delay: 0.44s; }
.load.d5 { animation-delay: 0.60s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero__copy { max-width: 100%; }
  .ranker { max-width: 460px; }
  .ranker__label { position: static; margin-bottom: 0.8rem; justify-content: flex-end; }
  .pillars { grid-template-columns: 1fr; }
  .app__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .pipe { grid-template-columns: 1fr 1fr; }
  .pipe__step:not(:last-child)::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

@media (max-width: 560px) {
  .nav__inner { height: 58px; }
  .hero { padding-top: var(--space-5); }
  .hero__panda { width: clamp(200px, 56vw, 260px); }
  .speech { max-width: 90%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .pipe { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
}
