/* ════════════════════════════════════════════════════════
   Components — Shared UI
   ════════════════════════════════════════════════════════ */

/* ── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.btn--primary {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}
.btn--primary:hover {
  background: #1a1a1a;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
}

.btn--amber {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
  font-weight: 700;
}
.btn--amber:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  box-shadow: 0 8px 40px rgba(245, 158, 11, .3);
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, .2);
}
.btn--white svg {
  width: 16px;
  height: 16px;
  transition: transform .3s;
}
.btn--white:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}


/* ── Navigation ─────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav__glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 250, 248, .7);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: all .4s ease;
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--px);
}

.nav__brand {
  font-family: 'Unbounded', cursive;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .4s ease;
}

.nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, .4);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  transition: color .4s ease;
}
.nav__link:hover {
  color: var(--text);
}
.nav__link--active {
  color: var(--text);
  font-weight: 600;
}

.nav__cta-wrap {
  margin-left: 8px;
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  transition: color .4s ease;
}
.nav__burger svg {
  width: 24px;
  height: 24px;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 248, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 32px;
  gap: 8px;
  z-index: 99;
}
.nav__mobile.open {
  display: flex;
}
.nav__mobile a {
  font-family: 'Unbounded', cursive;
  font-size: 22px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
}
.nav__mobile a:hover {
  color: var(--text);
}


/* Nav: transparent variant for dark hero pages */

.nav--dark .nav__glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: all .4s ease;
}
.nav--dark .nav__brand { color: #fff }
.nav--dark .nav__link { color: rgba(255, 255, 255, .45) }
.nav--dark .nav__link:hover { color: rgba(255, 255, 255, .85) }
.nav--dark .nav__link--active { color: #fff }
.nav--dark .nav__burger { color: #fff }

.nav--dark.nav--solid .nav__glass {
  background: rgba(250, 250, 248, .92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}
.nav--dark.nav--solid .nav__brand { color: var(--text) }
.nav--dark.nav--solid .nav__link { color: var(--text-3) }
.nav--dark.nav--solid .nav__link:hover { color: var(--text) }
.nav--dark.nav--solid .nav__link--active { color: var(--text) }
.nav--dark.nav--solid .nav__burger { color: var(--text) }


/* ── Footer ─────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  font-family: 'Unbounded', cursive;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color .2s;
}
.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-3);
}


/* ── Section Utilities ──────────────────────────────── */

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(48px, 8vw, 88px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.kicker::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--amber);
  border-radius: 1px;
}

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -.04em;
}
.section-head p {
  color: var(--text-2);
  font-size: clamp(15px, 1.15vw, 18px);
}


/* ── Page Hero (light background) ───────────────────── */

.page-hero {
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -.045em;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.page-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ── CTA Block ──────────────────────────────────────── */

.cta-section {
  padding: 80px 0;
  background: var(--bg-card);
}
@media (min-width: 768px) {
  .cta-section { padding: 120px 0 }
}

.cta-block {
  position: relative;
  padding: clamp(56px, 8vw, 100px);
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  background: var(--grad-dark);
  color: #fff;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(245, 158, 11, .08), transparent),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(245, 158, 11, .06), transparent);
  pointer-events: none;
}
.cta-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-block > * {
  position: relative;
  z-index: 1;
}
.cta-block h2 {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -.04em;
}
.cta-block p {
  color: rgba(255, 255, 255, .45);
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
}

.cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ── Scroll Reveal ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.vis {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: .08s }
.d2 { transition-delay: .16s }
.d3 { transition-delay: .24s }
.d4 { transition-delay: .32s }


/* ── Responsive — Shared ────────────────────────────── */

@media (max-width: 768px) {
  .nav__links, .nav__cta-wrap { display: none }
  .nav__burger { display: block }
}

@media (max-width: 480px) {
  .page-hero__actions,
  .cta__btns {
    flex-direction: column;
    align-items: stretch;
  }
  .page-hero__actions .btn,
  .cta__btns .btn {
    justify-content: center;
  }
}


/* ════════════════════════════════════════════════════════
   Product Tabs / Cards (shared)
   ════════════════════════════════════════════════════════ */

.products__tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 40px;
}

.ptab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Onest', sans-serif;
}
.ptab:hover {
  border-color: var(--text-3);
  color: var(--text);
}
.ptab.active {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .products__grid { grid-template-columns: 1fr 1fr }
}
@media (min-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr) }
}


/* ── Product Cards ───────────────────────────────────── */

.pcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all .35s var(--ease);
  position: relative;
}
.pcard:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .06);
}

/* Accent bar */
.pcard__bar { height: 3px; width: 100% }
.pcard--bot .pcard__bar { background: linear-gradient(90deg, var(--amber), var(--amber-deep)) }
.pcard--ch .pcard__bar { background: linear-gradient(90deg, #6366f1, #818cf8, #6366f1) }

/* ── Bot cards — subtle warm tint ─────────────────────── */
.pcard--bot {
  border-color: rgba(245, 158, 11, .15);
}
.pcard--bot:hover {
  border-color: rgba(245, 158, 11, .18);
  box-shadow: 0 20px 48px rgba(245, 158, 11, .06);
}
.pcard--bot .pcard__role { color: var(--amber-deep) }

/* ── Channel cards — subtle cool tint ─────────────────── */
.pcard--ch {
  border-color: rgba(99, 102, 241, .15);
}
.pcard--ch:hover {
  border-color: rgba(99, 102, 241, .18);
  box-shadow: 0 20px 48px rgba(99, 102, 241, .06);
}
.pcard--ch .pcard__role { color: #6366f1 }
.pcard--ch .pcard__metrics { border-top-color: rgba(99, 102, 241, .15) }
.pcard--ch .pcard__metric { border-right-color: rgba(99, 102, 241, .15) }

.pcard__body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.pcard__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pcard__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Unbounded', cursive;
  font-weight: 800;
  font-size: 12px;
}
.pcard__icon svg { width: 20px; height: 20px }
.pcard__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.pcard__icon--bot { background: var(--amber-glow); color: var(--amber-deep) }
.pcard__icon--ch { background: var(--bg-dark); color: #fff }

.pcard__title {
  font-family: 'Unbounded', cursive;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}
a.pcard__title {
  display: inline;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color .25s, color .25s;
}
a.pcard__title:hover {
  border-color: var(--text-2);
}
.pcard__role {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 500;
}

.pcard__desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  flex-grow: 1;
}

.pcard__metrics {
  display: flex;
  gap: 0;
  margin: 0 -24px;
  padding: 0 24px;
  border-top: 1px solid var(--border);
}
.pcard__metric {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.pcard__metric:last-child {
  border-right: none;
  flex: 0 0 auto;
  padding: 14px 16px;
}

.pcard__metric-val {
  font-family: 'Unbounded', cursive;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.pcard__metric-lbl {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}

.pcard__go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  transition: color .2s;
}
.pcard__go:hover { color: var(--text) }
.pcard__go svg { width: 14px; height: 14px }
