/* ==========================================================
   79mplus — PREMIUM PAGE LAYER
   Loaded by every page EXCEPT index.html (which uses home.css).
   Purely visual: it upgrades the shared page furniture — page
   headers, section heads, cards, stats, CTA bands — to match
   the homepage design language.

   1. display type + page header   5. cards + mockups
   2. section heads                6. CTA band
   3. eyebrows                     7. motion hooks + stagger
   4. pills, chips, misc           8. responsive + motion safety
   ========================================================== */

:root {
  --h-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --h-line: rgba(var(--brand-rgb), .16);
}

.page-header h1,
.section-title,
.cta-band h2,
.about-visual .big,
.est-price,
.impact .v,
.stats-card .num {
  font-family: var(--h-display);
  letter-spacing: -0.03em;
}

section[id], header[id] { scroll-margin-top: 92px; }

/* ------------------------------------------------------------
   1. PAGE HEADER — deeper space, aurora wash, display type
   ------------------------------------------------------------ */
.page-header {
  padding: 10.5rem 0 5.5rem;
  background:
    radial-gradient(52rem 30rem at 88% -14%, rgba(var(--brand-rgb), .40), transparent 62%),
    radial-gradient(42rem 26rem at -10% 120%, rgba(34, 168, 78, .28), transparent 60%),
    radial-gradient(26rem 20rem at 60% 122%, rgba(252, 196, 25, .13), transparent 64%),
    linear-gradient(160deg, var(--dark-1) 0%, #06341d 55%, var(--dark-2) 100%);
  box-shadow: inset 0 -90px 140px -110px rgba(2, 8, 5, .9);
}
.page-header h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.page-header p {
  font-size: 1.07rem;
  max-width: 44rem;
}
.page-header .btn-lg { padding: .85rem 1.7rem; }

/* ------------------------------------------------------------
   2. SECTION HEADS
   ------------------------------------------------------------ */
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.section-sub { font-size: 1.04rem; }

/* ------------------------------------------------------------
   3. EYEBROWS — mono chips with a status dot
   ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--fx-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  padding: .42rem .9rem;
  border: 1px solid rgba(var(--brand-rgb), .24);
  box-shadow: 0 8px 18px -14px rgba(var(--brand-rgb), .55);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: .42rem; height: .42rem;
  border-radius: 50%;
  background: currentColor;
  margin-right: .5rem;
  vertical-align: .08em;
  opacity: .85;
}
html[data-theme="dark"] .eyebrow { border-color: rgba(47, 190, 95, .28); }

/* inside the dark page header the eyebrow goes glass */
.page-header .eyebrow {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #d7f5e3;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

/* ------------------------------------------------------------
   4. PILLS + CHIPS + TICKER MICRO-POLISH
   ------------------------------------------------------------ */
.chip {
  transition: transform .25s var(--fx-ease), box-shadow .25s ease;
}
.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -10px rgba(var(--brand-rgb), .55);
}
.tech-ticker { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.mono-label { letter-spacing: .14em; }

/* ------------------------------------------------------------
   5. CARDS + APP MOCKUPS
   ------------------------------------------------------------ */
.icon-badge {
  background: linear-gradient(145deg, rgba(var(--brand-rgb), .16), rgba(var(--brand-rgb), .045));
  border: 1px solid rgba(var(--brand-rgb), .22);
  color: var(--brand-dark);
  box-shadow: 0 10px 22px -12px rgba(var(--brand-rgb), .45);
  transition: transform .35s var(--fx-ease), box-shadow .35s ease, border-color .35s ease;
}
html[data-theme="dark"] .icon-badge { color: var(--brand-2); border-color: rgba(47, 190, 95, .3); }
.feature-card:hover .icon-badge,
.reco-card:hover .icon-badge,
.work-card:hover .bi-brush,
.work-card:hover .bi-bicycle,
.work-card:hover .bi-geo-alt,
.work-card:hover .bi-person-workspace,
.work-card:hover .bi-gem,
.work-card:hover .bi-house,
.work-card:hover .bi-facebook,
.work-card:hover .bi-tree {
  transform: translateY(-3px) scale(1.06) rotate(-4deg);
}

.feature-card,
.product-card,
.post-card,
.reco-card,
.work-card,
.process-step,
.team-card {
  border-radius: 18px;
}
.feature-card:hover,
.product-card:hover,
.post-card:hover,
.work-card:hover,
.reco-card:hover {
  border-color: rgba(var(--brand-rgb), .32);
  box-shadow: 0 26px 52px -26px rgba(var(--brand-rgb), .38);
}
html[data-theme="dark"] .feature-card:hover,
html[data-theme="dark"] .product-card:hover,
html[data-theme="dark"] .post-card:hover,
html[data-theme="dark"] .work-card:hover,
html[data-theme="dark"] .reco-card:hover {
  box-shadow: 0 26px 52px -26px rgba(0, 0, 0, .85), 0 0 40px rgba(47, 190, 95, .10);
}
.reco-card { transition: transform .3s var(--fx-ease), box-shadow .3s ease, border-color .3s ease; }
.post-card h5 a { transition: color .25s ease; }

.stats-card { position: relative; overflow: hidden; }
.stats-card::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), var(--brand), transparent);
  opacity: .75;
}
.stats-card .num { text-shadow: 0 6px 24px rgba(var(--brand-rgb), .25); }
html[data-theme="dark"] .stats-card { box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .85); }

.device-frame { transition: border-color .35s ease, box-shadow .45s ease; }
.device-frame:hover {
  border-color: rgba(var(--brand-rgb), .45);
  box-shadow: 0 46px 100px -30px rgba(var(--brand-rgb), .38);
}
html[data-theme="dark"] .device-frame:hover {
  box-shadow: 0 46px 100px -34px rgba(0, 0, 0, .9), 0 0 60px rgba(47, 190, 95, .14);
}

/* process numbers glow like the homepage track */
.process-step .step-num,
.hprocess .step-num {
  box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .10), 0 8px 20px rgba(var(--brand-rgb), .35);
}

/* product thumbs: light sweep + dot texture (same language as home) */
.product-thumb { position: relative; overflow: hidden; }
.product-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .26), transparent 55%);
}
.product-thumb::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .20) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(90% 90% at 80% 100%, #000 20%, transparent 70%);
  mask-image: radial-gradient(90% 90% at 80% 100%, #000 20%, transparent 70%);
}
.product-thumb > i { position: relative; z-index: 1; }
.thumb-4 { background: linear-gradient(135deg, #0f6e63, var(--brand-2)); }
.thumb-5 { background: linear-gradient(135deg, #123f24, var(--brand-dark)); }

.pt-app {
  position: relative; z-index: 1;
  width: min(78%, 235px);
  display: flex; flex-direction: column; gap: .5rem;
  padding: .85rem .9rem 1rem;
  border-radius: 14px;
  background: rgba(3, 18, 11, .40); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .30);
  transition: transform .4s var(--fx-ease);
}
.product-card:hover .pt-app { transform: translateY(-6px) rotate(-.7deg); }
.pt-bar { display: flex; gap: .3rem; margin-bottom: .1rem; }
.pt-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.pt-row {
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .48), rgba(255, 255, 255, .18));
  background-size: 220% 100%; background-position: 0 0;
}
.product-card:hover .pt-row { animation: p-scan 1.3s var(--fx-ease) both; animation-delay: .08s; }
@keyframes p-scan { from { background-position: 120% 0; } to { background-position: 0 0; } }
.pt-row.w-40 { width: 40%; } .pt-row.w-45 { width: 45%; } .pt-row.w-55 { width: 55%; }
.pt-row.w-65 { width: 65%; } .pt-row.w-70 { width: 70%; } .pt-row.w-80 { width: 80%; }
.pt-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .42rem;
  margin-top: .3rem; padding: .42rem .68rem; border-radius: 999px;
  background: #fff; color: #0b3d21;
  font-size: .72rem; font-weight: 700; line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}
.pt-pill i { font-size: .82rem; color: var(--brand); }

/* ------------------------------------------------------------
   6. CTA BAND — aurora + grid, matching .cta-home
   ------------------------------------------------------------ */
.cta-band {
  background:
    radial-gradient(42% 65% at 12% 8%, rgba(69, 217, 124, .22), transparent 60%),
    radial-gradient(40% 58% at 88% 92%, rgba(252, 196, 25, .16), transparent 60%),
    linear-gradient(150deg, #04140c, #0b3d21 55%, #0a5a2a);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 40px 90px -40px rgba(4, 20, 12, .70);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(72% 85% at 50% 42%, #000 30%, transparent 78%);
  mask-image: radial-gradient(72% 85% at 50% 42%, #000 30%, transparent 78%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.cta-band p { color: rgba(232, 255, 241, .85); }

/* ------------------------------------------------------------
   7. MOTION HOOKS + REVEAL STAGGER
   ------------------------------------------------------------ */
/* motion.js takes over tilt from main.js via the __gsapSite flag;
   these cards get .h-tilt instead of .tilt-3d so GSAP owns the transform. */
.h-tilt { transform-style: preserve-3d; will-change: transform; }
.h-tilt:hover .tilt-glare { opacity: .5; }

.row > .reveal:nth-child(2) { transition-delay: .08s; }
.row > .reveal:nth-child(3) { transition-delay: .16s; }
.row > .reveal:nth-child(4) { transition-delay: .24s; }
.row > .reveal:nth-child(5) { transition-delay: .32s; }
.row > .reveal:nth-child(6) { transition-delay: .4s; }

/* ------------------------------------------------------------
   8. RESPONSIVE + MOTION SAFETY
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .page-header { padding: 8.75rem 0 4.5rem; }
}
@media (max-width: 767.98px) {
  .page-header { padding: 8rem 0 4rem; }
  .cta-band { padding: 2.75rem 1.5rem; }
}
@media (max-width: 575.98px) {
  .page-header { padding: 7.5rem 0 3.75rem; }
  .pt-app { width: min(86%, 235px); }
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover .pt-row { animation: none; }
  .eyebrow::before { opacity: 1; }
}
