/* =========================================================
   GLOBAL THEME VARS
   ========================================================= */
:root {
  --bg-1: #000000;
  --text: #eaf6ff;
  --muted: #a4b3c7;

  /* Accents */
  --accent: #35BB9F;
  --accent-2: #35BB9F;
  --accent-warm: #F43E14;
  --btn-accent-rgb: 53, 187, 159;

  /* Glass look (kept strong for modal) */
  --glass-bg: linear-gradient(180deg, rgba(28, 22, 18, 0.55), rgba(18, 16, 14, 0.13));
  --glass-stroke: rgba(255, 255, 255, 0.10);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.233);
  --radius: 14px;

  /* Layout + type */
  --maxw: 1280px;
  --card-minh: 200px;
  --h1: clamp(2.2rem, 4.2vw, 3.2rem);
  --h2: clamp(1.4rem, 2.3vw, 1.8rem);
  --lead: clamp(1rem, 1.6vw, 1.15rem);
}

/* =========================================================
   GLOBAL STYLES & RESETS
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background-image: radial-gradient(#021027, #000000);
  overflow-x: hidden;
}

a, a:visited, a:hover, a:active { text-decoration: none; }

/* Utility */
.hidden { display: none !important; }

/* =========================================================
   PARTICLE BACKGROUND
   ========================================================= */
.particles {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.circle-container {
  position: absolute;
  top: 0; left: 0;
  width: var(--size, 8px); height: var(--size, 8px);
  animation: move var(--dur, 9000ms) linear var(--delay, 0ms) infinite;
  will-change: transform;
  transform: translate3d(var(--sx, 0vw), var(--sy, 110vh), 0);
}

.circle {
  width: 100%; height: 100%;
  border-radius: 50%;
  mix-blend-mode: screen;
  background-image: radial-gradient(hsl(180, 88%, 48%), hsl(180, 100%, 80%) 10%, hsla(180, 100%, 80%, 0) 56%);
  animation: fade-frames 200ms infinite, scale-frames 2s infinite;
  animation-delay: var(--circleDelay, 0ms);
  will-change: opacity, transform;
}

@keyframes fade-frames {
  0% { opacity: 1 } 50% { opacity: .7 } 100% { opacity: 1 }
}
@keyframes scale-frames {
  0% { transform: scale3d(.4, .4, 1) }
  50% { transform: scale3d(2.2, 2.2, 1) }
  100% { transform: scale3d(.4, .4, 1) }
}
@keyframes move {
  from { transform: translate3d(var(--sx, 0vw), var(--sy, 110vh), 0) }
  to   { transform: translate3d(var(--ex, 50vw), var(--ey, -140vh), 0) }
}

@media (prefers-reduced-motion: reduce) {
  .circle-container, .circle { animation: none !important }
}

/* =========================================================
   HEADER
   ========================================================= */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(8, 14, 24, .72), rgba(8, 14, 24, .38));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 10px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 0; }
.brand img { height: 32px; width: auto; display: block; }
.nav .right { display: flex; gap: 10px; align-items: center; }

/* =========================================================
   BUTTONS (global glow)
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 14px; color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, rgba(var(--btn-accent-rgb), .22), rgba(var(--btn-accent-rgb), .10));
  border: 1px solid rgba(var(--btn-accent-rgb), .45);
  box-shadow: 0 12px 30px rgba(var(--btn-accent-rgb), .28), 0 0 16px rgba(var(--btn-accent-rgb), .38);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(var(--btn-accent-rgb), .35), 0 0 22px rgba(var(--btn-accent-rgb), .55); }
.btn svg [fill]{ fill: currentColor } .btn svg [stroke]{ stroke: currentColor }
.btn-lg{ font-size: 1.2rem; padding: 14px 22px; line-height: 1.2; }
.btn-lg svg{ width: 1.1em; height: 1.1em; }
.btn svg { height: 18px; width: 18px; display: block; }
.nav .btn svg, .nav .btn img.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: 0 0 auto; object-fit: contain; }

@media (max-width:820px),(orientation:portrait){
  .nav { justify-content: center }
  .brand { flex: 1 1 100%; justify-content: center; margin-bottom: 8px }
  .nav .right { order: 2; flex: 1 1 100%; justify-content: center; flex-wrap: wrap }
}

/* =========================================================
   LAYOUT & CARDS  — force equal width + equal height
   ========================================================= */
main { padding: 20px 20px 90px; }
.container { max-width: var(--maxw); margin: 0 auto; }

/* Exactly 50/50 columns + a shared explicit height */
.container.hero{
  --hero-h: clamp(560px, 72vh, 840px);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; /* override older 1fr 1.45fr */
  grid-template-rows: auto auto !important;                        /* banner + cards row sized by tallest content */
  column-gap: 28px;
  row-gap: 18px;
  align-items: stretch;
  min-height: 0;
}

/* Banner spans both columns */
.container.hero .hero-banner{
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  place-items: center;
  padding: 4px 0 2px;
}
.hero-logo{ display:block; width:clamp(120px,34vw,240px); height:auto; filter:drop-shadow(0 12px 30px rgba(0,0,0,.45)); }

/* Place left/right cards in row 2, one per column */
.container.hero .hero-left{  grid-column:1; grid-row:2; }
.container.hero .hero-right{ grid-column:2; grid-row:2; }

/* Prevent overflow from breaking the 50/50 split */
.container.hero > .hero-left,
.container.hero > .hero-right{ min-width:0; min-height:0; display:flex; }

/* Cards fill their cells and own the padding so widths read identical */
.container.hero .glass-card{
  min-height: var(--hero-h);                 /* baseline height; grows with content */
  display: flex; flex-direction: column;
  padding: 28px;                             /* same inner padding both sides */
  box-sizing: border-box;
}

/* Text styles in the left card */
.kicker { color: var(--accent-2); font-weight:700; letter-spacing:.2em; font-size:.9rem; }
h1 { font-size: var(--h1); text-shadow: 0 6px 20px rgba(0,0,0,.45); }
h2 { font-size: var(--h2); }
.lead { color: var(--muted); font-size: var(--lead); line-height:1.6; margin-bottom:12px; }
.cta { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:8px; }
.hero-left ul { display:inline-block; text-align:left; margin:12px auto 2px; padding-left:1.1rem; color:var(--muted); line-height:1.55; }

/* HERO RIGHT / CAROUSEL fills its card completely */
#screenshots{ flex:1 1 auto; min-height:0; height:100%; display:flex; }
.carousel{
  position:relative; overflow:hidden; border-radius:var(--radius); border:0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  display:grid; width:100%; height:100%; min-height:0;
}
.slides{ display:flex; width:100%; height:100%; transition:transform .6s cubic-bezier(.2,.7,.2,1); min-height:0; }
.slide{ min-width:100%; height:100%; display:grid; place-items:center; overflow:hidden; position:relative; background:#0d1522; }
.slide img, .slide video{ width:100%; height:100%; object-fit:cover; object-position:center; }

/* Carousel controls */
.carousel .nav-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,.22); background:rgba(6,10,18,.45);
  display:grid; place-items:center; color:#fff; cursor:pointer;
  backdrop-filter:blur(6px); z-index:3; pointer-events:auto;
}
.carousel .prev{ left:12px; } .carousel .next{ right:12px; }
.dots{ position:absolute; bottom:12px; left:0; right:0; display:flex; justify-content:center; gap:8px; z-index:2; }
.dot{ width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.35); cursor:pointer; }
.dot.active{ background:#fff; }

/* Portrait / narrow: stack naturally */
@media (max-width:980px), (orientation:portrait){
  .container.hero{ display:flex; flex-direction:column; align-items:stretch; }
  .container.hero .glass-card{ height:auto !important; padding:20px; }
  #screenshots{ height:clamp(360px, 70dvh, 880px); align-items:stretch !important; }
  #screenshots .carousel, #screenshots .slides, #screenshots .slide{ height:100% !important; min-height:0 !important; }
}
@supports not (height:1dvh){
  @media (max-width:980px), (orientation:portrait){
    #screenshots{ height:clamp(360px, 70svh, 880px); }
  }
}

@media (max-height: 900px) and (min-width: 981px){
  /* make the left card the scroll container to avoid overflow */
  .container.hero .hero-left{
    overflow: auto;                      /* internal scroll */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .container.hero .hero-left .glass-card{ scrollbar-gutter: stable both-edges; }

  /* tiny spacing trims */
  #hero-title{ margin-bottom: 6px; }
  .lead{ margin-bottom: 8px; }
}

/* =========================================================
   HERO RIGHT / CAROUSEL fills its card
   ========================================================= */
#screenshots{
  display: flex;                  /* let carousel grow */
  flex: 1 1 auto;
  min-height: 0;                  /* critical for equal height behavior */
}
.carousel{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  display: grid;
  width: 100%;
  height: 100%;                   /* fill the card’s inner box */
  min-height: 0;
}
.slides{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  min-height: 0;
}
.slide{
  min-width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: #0d1522;
}
.slide img, .slide video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel .nav-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(6,10,18,.45);
  display: grid; place-items: center; color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); z-index: 3; pointer-events: auto;
}
.carousel .prev{ left: 12px; }
.carousel .next{ right: 12px; }
.dots{
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.dot{ width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.dot.active{ background: #fff; }

/* =========================================================
   PORTRAIT / NARROW
   ========================================================= */
@media (max-width: 980px), (orientation: portrait){
  .hero{
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero .glass-card{
    height: auto;                 /* let them grow naturally when stacked */
    padding: 20px;
  }
  #screenshots{
    height: clamp(360px, 70dvh, 880px);
    align-items: stretch !important;
  }
  #screenshots .carousel, #screenshots .slides, #screenshots .slide{
    height: 100% !important; min-height: 0 !important;
  }
}
@supports not (height: 1dvh){
  @media (max-width: 980px), (orientation: portrait){
    #screenshots{ height: clamp(360px, 70svh, 880px); }
  }
}

/* >>> GLASS CARDS: frosted glass effect (unchanged) */
.glass-card{
  position: relative;
  background: transparent;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}
.glass-card::before{
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,14,24,.46), rgba(8,14,24,.18));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  z-index: 0;
}
.glass-card > *{ position: relative; z-index: 1; }

.glass-card h1, .glass-card h2, .glass-card h3{
  margin: 10px 0 6px; line-height: 1.1; position: relative; padding-bottom: 4px;
}
.glass-card h1::after, .glass-card h2::after, .glass-card h3::after{ display: none; }
.title-divider{ height: 3px; background: var(--accent-warm); border-radius: 999px; margin: 0 5px 12px; }

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: start;
}
@media (max-width:980px){ .features { grid-template-columns: 1fr; } }

.feature {
  padding: 22px; position: relative; overflow: hidden;
  min-height: var(--card-minh);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
}
.feature .icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature .title-divider { align-self: stretch; width: calc(100% - 10px); }
.feature > :not(.title-divider) { max-width: 64ch; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { margin-top: 64px; text-align: center; color: var(--muted); font-size: .9rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent-2); }

/* =========================================================
   Parallax Hover (buttons & cards)
   ========================================================= */
.parallax-wrap { perspective: 900px; }
.parallax-tilt {
  --tilt-rotate-x: 0deg; --tilt-rotate-y: 0deg;
  --tilt-translate-x: 0px; --tilt-translate-y: 0px;
  --shine-x: 50%; --shine-y: 50%;
  position: relative; transform-style: preserve-3d;
  will-change: transform, box-shadow, background-position;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  backface-visibility: hidden;
}
.parallax-tilt:hover { transform: translate3d(0, -3px, 0) rotateX(6deg) rotateY(-6deg); box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.parallax-tilt[data-live="1"] {
  transform: translate3d(var(--tilt-translate-x), var(--tilt-translate-y), 0) rotateX(var(--tilt-rotate-x)) rotateY(var(--tilt-rotate-y));
}
.btn.parallax-tilt:hover, .btn.parallax-tilt[data-live="1"] {
  transform: translate3d(var(--tilt-translate-x, 0), var(--tilt-translate-y, -3px), 0) rotateX(var(--tilt-rotate-x, 6deg)) rotateY(var(--tilt-rotate-y, -6deg));
}
.parallax-tilt::after{
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(800px 800px at var(--shine-x) var(--shine-y), rgba(255,255,255,.22), rgba(255,255,255,0) 45%);
  opacity: 0; transition: opacity .2s ease;
}
.parallax-tilt:hover::after { opacity: .55; }
.parallax-tilt > * { transform: translateZ(20px); }
.btn.parallax-tilt { box-shadow: 0 12px 28px rgba(var(--btn-accent-rgb), .24), 0 0 16px rgba(var(--btn-accent-rgb), .30); }
.btn.parallax-tilt:hover { box-shadow: 0 18px 44px rgba(var(--btn-accent-rgb), .32), 0 0 22px rgba(var(--btn-accent-rgb), .48); }

@media (prefers-reduced-motion: reduce){
  .parallax-tilt, .parallax-tilt::after { transition: none !important; }
  .parallax-tilt, .parallax-tilt:hover { transform: none !important; box-shadow: inherit !important; }
  .parallax-tilt::after { display: none !important; }
}

/* =========================================================
   MODAL (backdrop + dialog)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);              /* start transparent */
  z-index: 9999;
  transition: background 0.3s ease;       /* animate backdrop fade */
}
.modal-backdrop.open {
  display: flex;
  background: rgba(0,0,0,0.6);            /* fade to dark */
}

/* Dialog (animated entrance) */
.modal {
  width: min(980px, 92vw);
  max-height: 95vh;
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;

  /* hidden state */
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.35s ease;
}
.modal-backdrop.open .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Header */
.modal header {
  background: linear-gradient(180deg, rgba(8,14,24,.72), rgba(8,14,24,.38));
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.modal .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

/* Body: text | screenshot */
.modal .modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 0;
}
.modal .info {
  padding: 18px;
  text-align: left;
  color: var(--muted);
  overflow: auto;
}
.modal .info p { margin: 0 0 14px; line-height: 1.6; }
.modal .info ul { margin: 10px 0 0 18px; padding: 0; }
.modal .info li { line-height: 1.55; margin: 4px 0; }
#featureExtra .cta { margin-top: 12px; justify-content: flex-start; }

.modal .shot { background: #0d1522; display: grid; place-items: center; }
.modal .shot img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.modal footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.modal .close-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}
.modal .close-btn:hover { background: rgba(255,255,255,.08); }

/* Accessibility & pointer targets */
.feature { cursor: pointer; }
.feature:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* Mobile adjustments */
@media (max-width: 900px) {
  .modal-backdrop.open { align-items: stretch; }
  .modal { width: 100vw; max-height: 100dvh; border-radius: 0; }
  @supports not (height: 1dvh) { .modal { max-height: 100svh; } }
  .modal .modal-body { grid-template-columns: 1fr; }
  .modal .shot { min-height: 42dvh; }
  @supports not (height: 1dvh) { .modal .shot { min-height: 42svh; } }
}

#hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}

/* === Tablet landscape fix: equal heights + carousel fills height === */
@media (min-width: 768px) and (max-width: 1180px) and (orientation: landscape){
  .container.hero{
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;   /* banner + cards row (auto height) */
    align-items: stretch !important;
  }

  /* Let both cards size naturally; use flex so internals can stretch */
  .container.hero .glass-card{
    height: auto !important;
    display: flex;
    flex-direction: column;
  }
  .hero-left .cta{ margin-top: auto; }          /* pin CTA to bottom of left card */

  /* === Right side: make carousel fill full card height === */
  .hero-right{ display: flex; }
  .hero-right .glass-card{ display: flex; }

  #screenshots{
    flex: 1 1 auto;
    min-height: 0;
    height: 100% !important;                    /* fill the card’s height */
    display: flex;
  }
  #screenshots .carousel{
    width: 100%;
    height: 100% !important;
    min-height: 0;
    display: grid;
  }
  #screenshots .slides{
    height: 100% !important;
    min-height: 0;
    display: flex;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
  }
  #screenshots .slide{
    min-width: 100%;
    height: 100% !important;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #0d1522;
  }
  #screenshots .slide img{
    width: 100%;
    height: 100% !important;                    /* ← key change: fill height */
    object-fit: cover;
    object-position: center;
    display: block;
  }
}
/* --- CTA buttons: uniform size, centered content, soft glow --- */
.cta-row .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  height: 64px;
  padding: 0 22px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

/* Icon sizing fix */
.cta-row .btn .icon{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

/* Soft accent glow for BOTH CTAs (uses your theme vars) */
.cta-row .btn{
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
.cta-row .btn:hover,
.cta-row .btn:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 0 26px 6px rgba(var(--btn-accent-rgb, 52, 211, 153), .22);
  outline: none;
}

/* Outline variant keeps theme look */
.btn.secondary{
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
}
.btn.secondary:hover{
  background: rgba(255,255,255,.06);
}

/* Mobile: stack full width */
@media (max-width: 640px){
  .cta-row .btn{
    width: 100%;
    min-width: 0;
  }
}

/* Optional: tighten spacing on the status chip + headline */
.status-chip{ margin-top: 8px; }

:root{
  --select-bg: var(--accent-warm); /* #F43E14 */
  --select-text: #0b0f14;          /* dark text on orange for contrast */
}

/* Cross-browser selection */
::selection{ background: var(--select-bg); color: var(--select-text); text-shadow: none; }
::-moz-selection{ background: var(--select-bg); color: var(--select-text); text-shadow: none; }

/* Inputs/textarea (Safari needs explicit) */
input::selection,
textarea::selection{ background: var(--select-bg); color: var(--select-text); }

/* Match the caret to the accent for a cleaner feel */
input, textarea, ::file-selector-button{ caret-color: var(--accent-warm); }

/* Respect Windows High Contrast / forced colors */
@media (forced-colors: active){
  ::selection,
  input::selection,
  textarea::selection{
    background: Highlight;
    color: HighlightText;
  }
}

/* Subtle pulse for primary CTA */
.btn.pulse{
  position: relative;
  will-change: transform;
  animation: btn-pulse-pop 2.8s ease-in-out infinite;
}

/* Ease off on hover/focus so it doesn't feel jittery */
.btn.pulse:hover,
.btn.pulse:focus-visible{
  animation: none;
}
.btn.pulse:hover::after,
.btn.pulse:focus-visible::after{
  animation: none;
  opacity: .65;
  transform: scale(1.02);
}

/* Keyframes */
@keyframes btn-pulse-pop{
  0%, 70%, 100% { transform: translateY(0) scale(1); }
  35%           { transform: translateY(-1px) scale(1.03); }
}
@keyframes btn-pulse-ring{
  0%   { opacity: 0;   transform: scale(0.85); }
  25%  { opacity: .45; transform: scale(1.00); }
  70%  { opacity: 0;   transform: scale(1.18); }
  100% { opacity: 0;   transform: scale(1.18); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn.pulse, .btn.pulse::after{ animation: none !important; }
}

/* === Global scrollbars (brand green thumb, dark glass track) === */
:root{
  --scrollbar-thumb: var(--accent, #35BB9F);
  /* fallback first, then modern override */
  --scrollbar-thumb-hover: #49c7ab;
  --scrollbar-track: rgba(255,255,255,.08);   /* darker so it never looks white */
}

/* If color-mix is supported, sweeten the hover a touch */
@supports (color-mix(in srgb, white 10%, black)){
  :root{
    --scrollbar-thumb-hover: color-mix(in srgb, var(--accent) 88%, white 12%);
  }
}

/* Firefox */
*{
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

/* Chrome/Edge/Safari (WebKit) */
*::-webkit-scrollbar{
  width: 12px;              /* vertical */
  height: 12px;             /* horizontal */
}
*::-webkit-scrollbar-track{
  background: var(--scrollbar-track);
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb{
  background-color: var(--scrollbar-thumb);
  border-radius: 8px;
  border: 3px solid transparent;   /* padded thumb */
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover{
  background-color: var(--scrollbar-thumb-hover);
}
*::-webkit-scrollbar-thumb:active{
  /* press state slightly darker */
  background-color: rgba(0,0,0,.18);
  background-image: linear-gradient(0deg, transparent, transparent);
}
*::-webkit-scrollbar-corner{
  background: var(--scrollbar-track);
}

/* Common scroll areas: keep it consistent */
textarea, select, .modal .content{ scrollbar-width: thin; }

/* Optional: slightly stronger track in modals */
.modal .content{
  --scrollbar-track: rgba(255,255,255,.12);
}

/* Accessibility: don’t fight High Contrast */
@media (forced-colors: active){
  *{ scrollbar-color: auto; }
}

/* Feature card icon/media sizing (targets GIFs; optional class works too) */
.features .feature img[src$=".gif"],
.features .feature img.feat-icon{
  width: clamp(60px, 9vw, 80px);
  height: clamp(60px, 9vw, 80px);
  aspect-ratio: 1 / 1;        /* keep them square even if the GIF isn't */
  display: block;
  margin: 12px auto 0;         /* center under the text */
  object-fit: contain;         /* no cropping */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (max-width: 640px){
  .features .feature img[src$=".gif"],
  .features .feature img.feat-icon{
    width: 60px; height: 96px; /* a touch bigger on small screens */
  }
}
#splash .splash-inner::after{
  content:""; position:absolute; width:40vmin; height:40vmin; border-radius:50%;
  background: radial-gradient(closest-side, rgba(var(--btn-accent-rgb,53,187,159),.18), transparent 70%);
  filter: blur(24px); pointer-events:none;
}

.post-features-cta .cta-block{
  padding: 28px;
  text-align: center;
}
.post-features-cta .cta-title{
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--text);
}
.post-features-cta .cta-sub{
  margin: 0 0 18px;
  color: var(--muted);
}
.post-features-cta .btn{
  font-size: 1.05rem;
  padding: 14px 20px;
}

/* Space above the post-features CTA (separates it from the cards) */
#features + .post-features-cta{
  margin-top: clamp(15px, 2vw, 50px);   /* responsive gap above */
}

/* Optional: tighten inside padding a touch (keep if you like) */
.post-features-cta .cta-block{
  padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2.4vw, 28px);
}

/* Space above the post-features CTA, even if other elements sit between */
#features ~ .post-features-cta{
  margin-top: clamp(28px, 5vw, 72px);
}

/* Keep the inner padding tidy */
.post-features-cta .cta-block{
  padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2.4vw, 28px);
}


