/* =========================================
   PRODUCTS — NAV DROPDOWN + DESKTOP/REMOTE PAGES
   Shares the global design tokens in styles.css.
   ========================================= */

/* -----------------------------------------
   NAV: PRODUCTS DROPDOWN
----------------------------------------- */
/* Keep every top-nav item (links + the Products button) on one baseline */
.nav-links {
  align-items: center;
}
.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  transition: var(--transition-fast);
}
.nav-dropdown-toggle:hover,
.nav-item-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: var(--text-primary);
}
.nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}
.nav-item-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 320px;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 200;
}
.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* small hover bridge so menu doesn't disappear */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dd-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  color: var(--text-primary);
  transition: var(--transition-fast);
}
.nav-dd-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.nav-dd-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}
.nav-dd-link:hover .nav-dd-icon {
  color: var(--accent-light);
  border-color: rgba(56, 189, 248, 0.3);
  background: var(--primary-glow);
}
.nav-dd-icon svg { width: 18px; height: 18px; }
.nav-dd-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.nav-dd-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* In the mobile drawer, show products as a labeled sub-group */
.mobile-nav .mobile-subgroup-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.75rem 0 0.25rem 0;
  font-weight: 700;
}

/* -----------------------------------------
   PRODUCT PAGE — HERO
----------------------------------------- */
.pp-hero {
  position: relative;
  padding: 5rem 0 4rem 0;
  overflow: hidden;
}
.pp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.pp-hero-bg::before,
.pp-hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.pp-hero-bg::before {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}
.pp-hero-bg::after {
  width: 420px;
  height: 420px;
  top: 40px;
  right: -120px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.pp-hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.pp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: var(--border-glow);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.pp-eyebrow svg { width: 15px; height: 15px; }

.pp-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-primary) 35%, var(--accent-light) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pp-hero p.pp-lede {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem auto;
  line-height: 1.65;
}
.pp-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.pp-hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Showcase: device sits in a framed stage below the hero copy */
.pp-stage {
  margin-top: 3.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1600px;
  max-width: 100%;
  overflow: hidden;
}
.pp-stage-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 200px;
  background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

/* Scale the big hf-desktop mockup responsively without breaking its internals */
.pp-desktop-frame {
  transform: scale(0.78);
  transform-origin: top center;
  margin-bottom: -110px; /* compensate for scale leaving whitespace */
  border-radius: 12px;
}

/* -----------------------------------------
   FEATURE ROWS (alternating media + copy)
----------------------------------------- */
.pp-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}
.pp-feature-row:last-child { margin-bottom: 0; }
.pp-feature-row.reverse .pp-feature-media { order: 2; }
.pp-feature-row.reverse .pp-feature-copy { order: 1; }

.pp-feature-copy .pp-kicker {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}
.pp-feature-copy h3 {
  font-size: 1.9rem;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.pp-feature-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.pp-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.pp-check-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-light);
  margin-top: 2px;
}
.pp-check-list strong { color: var(--text-primary); font-weight: 600; }

/* The media side: a glassy card holding a mockup snippet */
.pp-feature-media {
  position: relative;
}
.pp-media-card {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
}
.pp-media-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* -----------------------------------------
   SPEC / METRIC STRIP
----------------------------------------- */
.pp-spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: var(--card-shadow);
}
.pp-spec {
  text-align: center;
  border-right: var(--border);
}
.pp-spec:last-child { border-right: none; }
.pp-spec strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pp-spec span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* -----------------------------------------
   STEP CARDS (remote pairing how-it-works)
----------------------------------------- */
.pp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: ppstep;
}
.pp-step {
  position: relative;
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem 1.75rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
}
.pp-step:hover {
  transform: translateY(-5px);
  border: var(--border-glow);
  box-shadow: 0 12px 30px var(--primary-glow);
}
.pp-step::before {
  counter-increment: ppstep;
  content: counter(ppstep);
  position: absolute;
  top: -18px;
  left: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px var(--primary-glow);
}
.pp-step h4 {
  font-size: 1.15rem;
  margin: 0.75rem 0 0.5rem;
}
.pp-step p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* connector arrows between steps (desktop only) */
.pp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -0.95rem;
  width: 1.9rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* -----------------------------------------
   REMOTE: PAIRING DIAGRAM STAGE
----------------------------------------- */
.pp-pairing-stage {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.pp-pairing-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--primary-glow) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.pp-pairing-scaler {
  transform: scale(0.62);
  transform-origin: center center;
  margin: -130px 0;
  display: flex;
  justify-content: center;
}

/* -----------------------------------------
   BIG CTA BANNER
----------------------------------------- */
.pp-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
  border: var(--border-glow);
  border-radius: 24px;
  padding: 4rem 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.pp-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.pp-cta > * { position: relative; z-index: 1; }
.pp-cta h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.pp-cta p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem auto;
}
.pp-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -----------------------------------------
   FEATURE DEMO MOCKUPS (animated)
----------------------------------------- */
/* generic dark demo surface used inside .pp-media-card */
.fx-demo {
  background: #0c0f16;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 1.1rem;
  min-height: 230px;
}
.fx-demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fx-live-dot {
  color: #10b981;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.fx-live-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: fxPulse 1.4s infinite;
}
@keyframes fxPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* rows for a small live list demo */
.fx-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: fxRowIn 0.45s ease;
}
/* local fade-in so it works even without mockups.css loaded */
@keyframes fxRowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fx-row .m { color: var(--text-primary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-row .s-ok  { color: #10b981; font-weight: 600; }
.fx-row .s-err { color: #ef4444; font-weight: 600; }
.fx-row .s-warn{ color: #60a5fa; font-weight: 600; }
.fx-row .t { color: var(--text-muted); flex-shrink: 0; }

/* tabbed inspector demo */
.fx-tabs { display: flex; gap: 1rem; margin-bottom: 0.9rem; }
.fx-tab {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  cursor: default;
}
.fx-tab.active { color: var(--text-primary); border-bottom-color: var(--primary); }

/* JSON syntax colors for demo */
.fx-k { color: #f59e0b; }
.fx-str { color: #10b981; }
.fx-num { color: #60a5fa; }
.fx-bool { color: #c084fc; }

/* typing code demo — line reveal */
.fx-code .ln {
  opacity: 0;
  animation: fxType 0.5s steps(1) forwards;
  white-space: pre;
  line-height: 1.7;
}
.fx-code .ln:nth-child(1) { animation-delay: 0.2s; }
.fx-code .ln:nth-child(2) { animation-delay: 0.7s; }
.fx-code .ln:nth-child(3) { animation-delay: 1.2s; }
.fx-code .ln:nth-child(4) { animation-delay: 1.7s; }
.fx-code .ln:nth-child(5) { animation-delay: 2.2s; }
.fx-code .ln:nth-child(6) { animation-delay: 2.7s; }
@keyframes fxType { to { opacity: 1; } }
.fx-cur {
  display: inline-block;
  width: 7px;
  background: var(--accent-light);
  animation: fxBlink 1s steps(1) infinite;
  margin-left: 1px;
}
@keyframes fxBlink { 50% { opacity: 0; } }
.fx-kw { color: #f43f5e; }
.fx-fn { color: #38bdf8; }
.fx-com { color: var(--text-muted); }

/* codegen language pills + swap */
.fx-langs { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.fx-lang {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}
.fx-lang.active { background: var(--primary); color: #fff; border-color: transparent; }

/* toolbox grid demo */
.fx-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.fx-tool {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  text-align: center;
  background: rgba(255,255,255,0.02);
  transition: var(--transition-fast);
  animation: fxPop 0.4s ease both;
}
.fx-tool:nth-child(1){animation-delay:.05s}.fx-tool:nth-child(2){animation-delay:.1s}
.fx-tool:nth-child(3){animation-delay:.15s}.fx-tool:nth-child(4){animation-delay:.2s}
.fx-tool:nth-child(5){animation-delay:.25s}.fx-tool:nth-child(6){animation-delay:.3s}
.fx-tool:nth-child(7){animation-delay:.35s}.fx-tool:nth-child(8){animation-delay:.4s}
.fx-tool:nth-child(9){animation-delay:.45s}
.fx-tool:hover { border-color: var(--accent-light); background: var(--primary-glow); transform: translateY(-3px); }
.fx-tool svg { width: 20px; height: 20px; color: var(--accent-light); margin-bottom: 0.35rem; }
.fx-tool span { display: block; font-size: 0.68rem; color: var(--text-secondary); }
@keyframes fxPop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* rule toggle rows with animated switch */
.fx-rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}
.fx-switch {
  width: 34px; height: 18px;
  border-radius: 9px;
  background: #10b981;
  position: relative;
  flex-shrink: 0;
}
.fx-switch::after {
  content: '';
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  animation: fxToggle 3s ease-in-out infinite;
}
.fx-switch.off { background: #3a3a3c; }
.fx-switch.off::after { right: auto; left: 2px; animation: none; }
@keyframes fxToggle { 0%,100% { right: 2px; } 50% { right: 18px; } }
.fx-tag { font-weight: 700; flex-shrink: 0; }

/* breakpoint pause demo */
.fx-bp {
  text-align: center;
  padding: 1rem 0;
}
.fx-bp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.85rem;
  animation: fxPulseAmber 1.6s ease-in-out infinite;
}
@keyframes fxPulseAmber { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.fx-bp-actions { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.fx-bp-btn {
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
}
.fx-bp-btn.go { background: var(--primary); color: #fff; border-color: transparent; }

/* -----------------------------------------
   RESPONSIVE
----------------------------------------- */
@media (max-width: 1024px) {
  .pp-feature-row { gap: 2.5rem; }
  .pp-spec-strip { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .pp-spec:nth-child(2) { border-right: none; }
  .pp-desktop-frame { transform: scale(0.62); margin-bottom: -190px; }
  .pp-pairing-scaler { transform: scale(0.48); margin: -180px 0; }
}

@media (max-width: 768px) {
  .pp-hero { padding: 3.5rem 0 2.5rem; }
  .pp-hero h1 { font-size: 2.4rem; }
  .pp-hero p.pp-lede { font-size: 1.05rem; }

  .pp-feature-row { grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 4rem; }
  .pp-feature-row.reverse .pp-feature-media { order: 1; }
  .pp-feature-row.reverse .pp-feature-copy { order: 2; }
  .pp-feature-copy h3 { font-size: 1.5rem; }

  .pp-steps { grid-template-columns: 1fr; gap: 2rem; }
  .pp-step:not(:last-child)::after { display: none; }

  .pp-spec-strip { grid-template-columns: 1fr 1fr; }

  .pp-desktop-frame { transform: scale(0.4); margin-bottom: -290px; transform-origin: top center; }
  .pp-stage { overflow-x: hidden; }
  .pp-pairing-scaler { transform: scale(0.34); margin: -210px 0; }

  .pp-cta h2 { font-size: 1.8rem; }
}

@media (max-width: 420px) {
  .pp-desktop-frame { transform: scale(0.3); margin-bottom: -340px; }
}

/* =========================================
   LIGHT THEME FIXES (footer was hardcoded dark)
   ========================================= */
[data-theme="light"] footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
/* the dark gradient fade-in overlay (second footer rule) — neutralize in light */
[data-theme="light"] footer {
  background-image: none;
}
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-col ul a {
  color: var(--text-secondary);
}
[data-theme="light"] .footer-col h5 { color: var(--text-muted); }
[data-theme="light"] .footer-col ul a:hover,
[data-theme="light"] .footer-brand .logo span { color: var(--text-primary); }
[data-theme="light"] .footer-bottom {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
[data-theme="light"] .footer-bottom span { color: var(--text-muted); }

/* =========================================
   HOME — HERO ENHANCEMENTS
   ========================================= */
/* Centered hero (title only, full-width) */
.hero-centered {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  text-align: center;
}
.hero-centered-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-centered-bg::before,
.hero-centered-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-centered-bg::before {
  width: 520px; height: 520px;
  top: -160px; left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}
.hero-centered-bg::after {
  width: 460px; height: 460px;
  top: -100px; left: 50%;
  transform: translateX(0%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}
.hero-centered-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-centered-inner h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-primary) 35%, var(--accent-light) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-centered-inner h1 .hero-grad { -webkit-text-fill-color: transparent; }
.hero-centered-inner p {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.hero-centered-inner .hero-actions { justify-content: center; margin-bottom: 0; }
.hero-centered-inner .hero-trust { justify-content: center; }

/* Showcase: phone centered, features both sides */
.showcase-section { padding-top: 4rem; }
.showcase-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}
.showcase-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.showcase-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
/* right column: icon on the right, text right-aligned for symmetry */
.showcase-col.right .showcase-feature { flex-direction: row-reverse; text-align: right; }
.showcase-feat-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
}
.showcase-feat-icon svg { width: 22px; height: 22px; }
.showcase-feature h4 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.showcase-feature p { font-size: 0.9rem; line-height: 1.5; margin: 0; }

.showcase-phone {
  position: relative;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* stat band under the stage */
.showcase-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 3.5rem auto 0;
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}
.showcase-stats > div { text-align: center; border-right: var(--border); }
.showcase-stats > div:last-child { border-right: none; }
.showcase-stats strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.showcase-stats span { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.3rem; }

@media (max-width: 1024px) {
  .showcase-stage { grid-template-columns: 1fr; gap: 2.5rem; justify-items: center; }
  .showcase-col { width: 100%; max-width: 420px; }
  .showcase-col.right .showcase-feature { flex-direction: row; text-align: left; }
  .showcase-phone { order: -1; }
}
@media (max-width: 768px) {
  .hero-centered { padding: 3.5rem 0 2.5rem; }
  .hero-centered-inner h1 { font-size: 2.4rem; }
  .hero-centered-inner p { font-size: 1.05rem; }
  .showcase-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .showcase-stats > div:nth-child(2) { border-right: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: var(--border-glow);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.hero-badge svg { width: 15px; height: 15px; }

.hero-grad {
  background: linear-gradient(120deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* keep the gradient working alongside the existing h1 gradient */
.hero-content h1 .hero-grad { -webkit-text-fill-color: transparent; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.hero-trust svg { width: 16px; height: 16px; color: #10b981; }

/* extra proof column spacing already styled in styles.css; just ensure 4 fit */
.hero-proof-row { flex-wrap: wrap; }

/* =========================================
   HOME — USE CASES (who it's for)
   ========================================= */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.usecase-card {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.usecase-card:hover {
  transform: translateY(-5px);
  border: var(--border-glow);
  box-shadow: 0 12px 30px var(--primary-glow);
}
.usecase-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
  margin-bottom: 1rem;
}
.usecase-icon svg { width: 22px; height: 22px; }
.usecase-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.usecase-card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.usecase-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.usecase-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.usecase-card li svg { width: 16px; height: 16px; color: var(--accent-light); flex-shrink: 0; margin-top: 3px; }

@media (max-width: 900px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

/* =========================================
   PRICING — DESKTOP LICENSE (2 plans)
   ========================================= */
.pricing-grid.pricing-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  align-items: start;
}
/* left-align the checklist body like the reference layout */
.pricing-grid-2 .pricing-features-list { text-align: left; }
.pricing-grid-2 .pricing-features-list li {
  align-items: flex-start;
  line-height: 1.45;
}
.pricing-grid-2 .pricing-features-list li svg { margin-top: 2px; flex-shrink: 0; }
.pricing-grid-2 .pricing-features-list li.excluded { color: var(--text-muted); }
.pricing-grid-2 .pricing-features-list li.excluded svg.cross { color: var(--text-muted); }

/* "Mobile App" divider inside a plan card */
.pricing-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.pricing-divider::before,
.pricing-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* tagline + mode pill in plan header */
.plan-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0.35rem 0 0.75rem;
}
.plan-tagline strong { color: var(--text-primary); }
.plan-mode-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-light);
  background: var(--bg-elevated);
  border: var(--border-glow);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1rem;
}

/* Upcoming / Coming-soon team cards */
.pricing-card.pricing-upcoming { opacity: 0.85; }
.pricing-card.pricing-upcoming:hover { transform: none; border: var(--border); }
.upcoming-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: var(--border-glow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}
.pricing-card .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

@media (max-width: 700px) {
  .pricing-grid.pricing-grid-2 { grid-template-columns: 1fr; }
  .pricing-grid-2 .pricing-card.popular { transform: none; }
}

/* =========================================
   GUIDE PAGE
   ========================================= */
/* Quick-start chips under the hero */
.gd-quickstart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 880px;
  margin: 2.5rem auto 0;
}
.gd-qs {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: left;
  position: relative;
  box-shadow: var(--card-shadow);
}
.gd-qs .gd-qs-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 0.08em;
}
.gd-qs h4 { font-size: 1rem; margin: 0.4rem 0 0.3rem; }
.gd-qs p { font-size: 0.85rem; line-height: 1.5; }

/* Two-column layout: sticky TOC + content */
.gd-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.gd-toc {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.gd-toc-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 0.85rem 0.5rem;
}
.gd-toc a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: var(--transition-fast);
}
.gd-toc a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.gd-toc a.active {
  background: var(--primary-glow);
  color: var(--text-primary);
  border-left-color: var(--primary);
}
.gd-toc a .gd-toc-n {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.gd-toc a.active .gd-toc-n { background: var(--primary); color: #fff; border-color: transparent; }

/* Section blocks */
.gd-section { scroll-margin-top: 92px; margin-bottom: 5rem; }
.gd-section:last-child { margin-bottom: 0; }
.gd-section-head { margin-bottom: 1.75rem; }
.gd-section-head .gd-eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--accent-light); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem;
}
.gd-section-head .gd-eyebrow svg { width: 15px; height: 15px; }
.gd-section-head h2 { font-size: 1.85rem; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.gd-section-head p { font-size: 1.02rem; line-height: 1.6; max-width: 640px; }

/* Platform switch pills (CA section) */
.gd-platforms {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 12px;
  margin-bottom: 1.75rem;
}
.gd-platforms .guide-tab-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
}
.gd-platforms .guide-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* Timeline steps */
.gd-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.gd-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.1rem;
  padding-bottom: 1.75rem;
  position: relative;
}
.gd-step:last-child { padding-bottom: 0; }
/* connecting line */
.gd-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}
.gd-step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px var(--primary-glow);
  z-index: 1;
}
.gd-step-body {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.35rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
}
.gd-step-body:hover { border: var(--border-glow); }
.gd-step-body h4 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.gd-step-body p { font-size: 0.94rem; line-height: 1.6; }
.gd-step-body code, .gd-callout code, .gd-numbered code {
  background: var(--bg-elevated);
  border: var(--border);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-light);
}
.gd-kbd {
  display: inline-block;
  background: var(--bg-elevated);
  border: var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05rem 0.45rem;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--text-primary);
}

/* Numbered procedure list (mock / pairing) */
.gd-numbered {
  list-style: none;
  counter-reset: gdn;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gd-numbered li {
  counter-increment: gdn;
  position: relative;
  padding-left: 42px;
  min-height: 26px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}
.gd-numbered li::before {
  content: counter(gdn);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: var(--border-glow);
  color: var(--accent-light);
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* Callout / tip box */
.gd-callout {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-elevated);
  border: var(--border-glow);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.gd-callout svg { width: 20px; height: 20px; color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.gd-callout strong { color: var(--text-primary); }

/* Demo media inside guide sections */
.gd-demo {
  margin-top: 1.5rem;
  background: #0c0f16;
  border: var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative;
}
.gd-demo::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.gd-demo-inner { padding: 1.25rem; font-family: var(--font-mono); font-size: 0.85rem; }

/* iOS trust-toggle demo */
.gd-trust-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #1c1c1e; border-radius: 10px;
  padding: 0.85rem 1rem; color: #fff; font-size: 0.9rem;
  font-family: var(--font-sans);
}
.gd-trust-label { display: flex; align-items: center; gap: 0.6rem; }
.gd-trust-label .gd-mini-ca {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}
.gd-trust-label .gd-mini-ca svg { width: 15px; height: 15px; color: #fff; }

/* QR pairing demo */
.gd-pair {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 1.5rem; background: #0c0f16;
}
.gd-pair-qr {
  width: 110px; height: 110px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Guide CTA */
.gd-cta {
  margin-top: 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
  border: var(--border-glow);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.gd-cta::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  filter: blur(40px); z-index: 0;
}
.gd-cta > * { position: relative; z-index: 1; }
.gd-cta h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.gd-cta p { font-size: 1.05rem; max-width: 520px; margin: 0 auto 1.75rem; }
.gd-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .gd-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .gd-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
    margin-bottom: 1rem;
  }
  .gd-toc-title { width: 100%; padding-left: 0; }
  .gd-toc a { border-left: none; border: var(--border); }
  .gd-quickstart { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gd-platforms { display: flex; flex-direction: column; width: 100%; }
  .gd-step { grid-template-columns: 32px 1fr; gap: 0.8rem; }
  .gd-step-num { width: 32px; height: 32px; font-size: 0.9rem; }
  .gd-step:not(:last-child)::before { left: 15px; top: 32px; }
  .gd-pair { flex-direction: column; }
}
