/* ============================================================
   bardar, landing page
   Light theme: clean white surfaces, green radar identity
   ============================================================ */

:root {
  --bg:        #FFFFFF;
  --bg-2:      #F2FBF5;
  --surface:   #F7FBF8;
  --surface-2: #EDF7F1;
  --border:    rgba(11, 107, 49, 0.12);
  --border-2:  rgba(31, 202, 82, 0.45);

  --text:      #0B2417;
  --muted:     #51695B;
  --faint:     #84988C;

  --green-1:   #0B6B31;
  --green-2:   #1FCA52;
  --green-3:   #6CEB88;
  --green-ink: #0E7A38;   /* green text legible on white */
  --glow:      rgba(31, 202, 82, 0.40);

  --hot:   #16A34A;
  --warm:  #D69A0C;
  --cool:  #2563EB;

  --radius:    20px;
  --radius-lg: 28px;
  --maxw:      1160px;

  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }

a { color: inherit; text-decoration: none; }

/* visible keyboard focus for accessibility */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--green-2);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---- ambient backdrop ---- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 85% 6%, rgba(31, 202, 82, 0.12), transparent 70%),
    radial-gradient(50% 42% at 4% 96%, rgba(108, 235, 136, 0.10), transparent 70%),
    var(--bg);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 107, 49, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  opacity: 0.6;
}

/* ---- shared layout ---- */
section { padding-inline: clamp(20px, 5vw, 48px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(31, 202, 82, 0.08);
}

.grad-text {
  background: linear-gradient(105deg, var(--green-1), var(--green-2) 70%, #16A34A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,202,82,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(31,202,82,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,202,82,0); }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
}
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--primary {
  color: #04230F;
  background: linear-gradient(180deg, var(--green-3), var(--green-2));
  border-color: var(--green-2);
  box-shadow: 0 10px 28px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px var(--glow); }
.btn--ghost {
  color: var(--text);
  border-color: var(--border);
  background: #FFFFFF;
}
.btn--ghost:hover { border-color: var(--border-2); background: var(--surface-2); }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { border-radius: 9px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--green-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav__links a:hover { color: var(--green-ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* hide hero copy until the entrance animation runs (auto-revealed if it doesn't) */
.anim-pending .hero__copy > * { opacity: 0; }

/* ---- hero ---- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding-top: clamp(64px, 11vw, 150px);
  padding-bottom: clamp(56px, 9vw, 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  margin: 22px 0 18px;
}
.hero__static { display: block; }

/* rotating word (animated-hero style) */
.rotator {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 1.2;
  padding-block: 0.06em;
}
/* invisible spacer reserves the line height; words overlay it absolutely */
.rotator__sizer { visibility: hidden; }
.rotator__word {
  position: absolute;
  left: 0; right: 0;
  text-align: center;
  white-space: nowrap;
  transform: translateY(115%);          /* default: waiting below */
  opacity: 0;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .55s ease;
}
.rotator__word.is-active { transform: translateY(0); opacity: 1; }
.rotator__word.is-up     { transform: translateY(-115%); opacity: 0; }
.rotator__word.no-transition { transition: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; justify-content: center; }

/* launch note */
.hero__proof { margin-bottom: 40px; font-size: 0.95rem; color: var(--muted); }
.hero__proof strong { color: var(--green-ink); font-weight: 700; }

.hero__stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
}
.hero__stats span { font-size: 0.85rem; color: var(--faint); }

/* ---- full-bleed WebGL shader behind the whole hero ---- */
.hero-wrap {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(580px, 82vh, 860px);
}
.hero__shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__shader canvas { width: 100%; height: 100%; display: block; }
/* CSS fallback when WebGL2 is unavailable */
.hero__shader.no-webgl {
  background: radial-gradient(70% 90% at 50% 45%,
    rgba(31,202,82,0.22),
    rgba(108,235,136,0.08) 45%,
    transparent 75%);
}

/* ---- trust strip ---- */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  padding-block: clamp(28px, 4vw, 44px);
}
.strip p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--muted);
  max-width: 24ch;
  margin: 0 auto;
}
.strip strong { color: var(--text); }

/* ---- generic section ---- */
.section { max-width: var(--maxw); margin: 0 auto; padding-block: clamp(56px, 8vw, 110px); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 16px; }
.section__lede { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---- steps ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-2), transparent);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(31,202,82,0.7);
}
.step h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---- feature cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px -24px rgba(11, 56, 30, 0.5);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 20px 40px -26px rgba(11, 56, 30, 0.55); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--green-ink);
  border-radius: 14px;
  background: rgba(31,202,82,0.10);
  border: 1px solid var(--border-2);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---- live now ---- */
.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.live-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.live-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.live-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.live-card__badge {
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 9px; border-radius: 99px;
  white-space: nowrap;
}
.live-card__meter { height: 7px; border-radius: 99px; background: rgba(11,107,49,0.10); overflow: hidden; margin-bottom: 14px; }
.live-card__meter span { display: block; height: 100%; border-radius: 99px; width: var(--lvl); }
.live-card footer { display: flex; flex-direction: column; gap: 3px; font-size: 0.82rem; color: var(--faint); }
.live-card footer span:first-child { color: var(--text); font-weight: 600; }
.live-card--hot  .live-card__meter span { background: var(--hot); }
.live-card--hot  .live-card__badge { background: rgba(22,163,74,0.14); color: var(--hot); }
.live-card--warm .live-card__meter span { background: var(--warm); }
.live-card--warm .live-card__badge { background: rgba(214,154,12,0.16); color: var(--warm); }
.live-card--cool .live-card__meter span { background: var(--cool); }
.live-card--cool .live-card__badge { background: rgba(37,99,235,0.14); color: var(--cool); }

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.faq__item[open] { border-color: var(--border-2); background: #FFFFFF; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-ink);
  transition: transform .25s ease;
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); max-width: 64ch; }

/* ---- CTA ---- */
.cta { padding-block: clamp(56px, 9vw, 120px); }
.cta__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(31,202,82,0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 70px -44px var(--glow);
}
.cta__mark { border-radius: 18px; margin-bottom: 22px; box-shadow: 0 12px 40px -12px var(--glow); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta p { color: var(--muted); margin: 14px 0 30px; font-size: 1.1rem; }
/* email notify form */
.cta__notify {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 18px;
  font: inherit;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cta__input::placeholder { color: var(--faint); }
.cta__input:focus { outline: none; border-color: var(--border-2); box-shadow: 0 0 0 4px rgba(31,202,82,0.14); }
.cta__notify .btn { flex: 0 0 auto; }
.cta__notice {
  margin: 0 auto 26px;
  max-width: 460px;
  font-weight: 600;
  color: var(--green-ink);
}
.cta__notice[hidden] { display: none; }

.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge--soon { opacity: 0.55; filter: grayscale(0.2); cursor: default; }
.badge--soon:hover { transform: none; box-shadow: none; }
.cta__soon { margin-top: 14px; font-size: 0.82rem; color: var(--faint); }
.badge {
  display: inline-flex;
  border-radius: 11px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.badge img { display: block; height: 48px; width: auto; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0,0,0,0.55); }

/* ---- footer ---- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 48px) 60px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 16px;
  text-align: center;
  justify-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.footer__tag { color: var(--muted); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--muted); font-size: 0.92rem; transition: color .2s; }
.footer__links a:hover { color: var(--green-ink); }
.footer__copy { color: var(--faint); font-size: 0.82rem; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .steps, .cards, .live-grid { grid-template-columns: 1fr; }
}
@media (min-width: 881px) and (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}
