/* ===========================
   Potenza Fitness — Theme Overrides
   Fonts (from app_theme.md tri-font system):
     Display & Headlines  → Space Grotesk  ("Power" font)
     Titles & Body        → Inter           (already in main.css, no change)
     Labels & Data        → Lexend          ("Data" font — small sizes, wide apertures)
   Replaces Magic Tales colors with Potenza's "Kinetic Monolith" palette.

   Primary:          #9cff93  (electric green)
   Primary gradient: linear-gradient(135deg, #9cff93, #00fc40)
   Secondary:        #00e3fd  (cyan)
   Dark bg:          #0e0e0e  (obsidian)
   Surface:          #131313 / #1a1a1a
   On-primary (dark text on green): #0a2a00
========================== */

/* ---- Typography ---- */

/* Space Grotesk: all headings — the "Power" font */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
}

/* Lexend: labels, metadata, nav links, button text, pricing amounts, table items */
.navbar-nav .nav-item a,
.header .button .btn,
.button .btn,
.section-title h3,
.single-feature p,
.table-list li,
.price .amount,
.middle-title,
.copyright-text,
.footer .single-footer.f-link ul li a,
.footer .single-footer.f-about p,
.cta-content p,
.hero-area .hero-content p,
.info-text p {
  font-family: "Lexend", sans-serif;
}

/* ---- Scroll animations ---- */
/* animate.css defaults to 1s — cut to 0.4s for a snappier feel */
.animated {
  -webkit-animation-duration: 0.4s !important;
  animation-duration: 0.4s !important;
}
/* Halve the stagger delays used throughout the page */
[data-wow-delay=".2s"] { -webkit-animation-delay: .1s !important; animation-delay: .1s !important; }
[data-wow-delay=".4s"] { -webkit-animation-delay: .2s !important; animation-delay: .2s !important; }
[data-wow-delay=".6s"] { -webkit-animation-delay: .3s !important; animation-delay: .3s !important; }
[data-wow-delay=".8s"] { -webkit-animation-delay: .4s !important; animation-delay: .4s !important; }

/* ---- Preloader ---- */
.preloader-icon span {
  background: #9cff93;
}

/* ---- Language picker ---- */
.lang-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}

.lang-option {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Lexend", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.45);
  padding: 2px 4px;
  transition: color 0.15s ease;
  line-height: 1;
}

.lang-option:hover {
  color: #fff;
}

.lang-option.active {
  color: #9cff93;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 991px) {
  .lang-picker {
    margin-right: 8px;
  }
}

/* ---- Navbar / Header ---- */
.navbar-area.sticky {
  background-color: #0e0e0e;
  box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.5);
}

.sticky .navbar .navbar-nav .nav-item a.active,
.sticky .navbar .navbar-nav .nav-item a {
  color: #fff;
}

.sticky .navbar .navbar-nav .nav-item a:hover {
  color: #9cff93;
}

.sticky .navbar .mobile-menu-btn .toggler-icon {
  background-color: #fff;
}

.header.sticky .button .btn {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00;
  border-color: transparent;
  font-weight: 700;
}

.header.sticky .button .btn:hover {
  background: linear-gradient(135deg, #00fc40, #9cff93);
  color: #0a2a00;
  box-shadow: 0px 4px 20px rgba(156, 255, 147, 0.35);
}

/* ---- Header button (non-sticky) ---- */
/* main.css sets color:#fff + background-color:transparent at 0,3,0 specificity.
   The global .button .btn below sets background shorthand (incl. background-image)
   at 0,2,0 — the gradient bleeds through under white text.
   Fix: explicitly declare the full background + dark text here at 0,3,0. */
.header .button .btn {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00;
  border-color: transparent;
  font-weight: 700;
}

.header .button .btn:hover {
  background: linear-gradient(135deg, #00fc40, #9cff93);
  color: #0a2a00;
  box-shadow: 0px 4px 20px rgba(156, 255, 147, 0.35);
}

/* ---- Buttons (global) ---- */
.button .btn {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00;
  font-weight: 700;
}

.button .btn:hover {
  background: linear-gradient(135deg, #00fc40, #9cff93);
  color: #0a2a00;
  box-shadow: 0px 4px 20px rgba(156, 255, 147, 0.35);
}

.button .btn-alt:hover {
  background-color: #fff !important;
  color: #0e0e0e !important;
}

/* ---- Section labels (small uppercase text above section headings) ---- */
/* Uses AppColors.onPrimary (#006413) — the dark green token for light surfaces */
.section-title h3,
.section-title .section-label {
  color: #006413;
}

.section-title.align-right h2::after,
.section-title.align-left h2::before {
  background: #9cff93;
}

/* ---- Hero phones — two staggered screenshots replacing the single SVG ---- */
.hero-phones {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  /* Bottom padding absorbs the left image's top offset so nothing clips */
  padding-bottom: 60px;
}

.hero-phones__img {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  /* Subtle drop shadow to lift images off the bg */
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-phones__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Left image shifted down — replicates the "padding at top" from the SVG */
.hero-phones__img--left {
  margin-top: 60px;
}

/* ---- Hero background video ---- */
.hero-area {
  position: relative;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Dark overlay so text and images remain readable */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(14, 14, 14, 0.92) 0%,
    rgba(14, 14, 14, 0.75) 50%,
    rgba(14, 14, 14, 0.45) 100%
  );
}

/* All hero content must sit above the video and overlay */
.hero-area .container {
  position: relative;
  z-index: 2;
}

/* ---- Hero ---- */
.hero-logo {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-area {
  background: #0e0e0e;
}

.hero-area .hero-content .button .btn {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00;
  font-weight: 700;
}

.hero-area .hero-content .button .btn:hover {
  background: linear-gradient(135deg, #00fc40, #9cff93);
  color: #0a2a00;
  box-shadow: 0px 4px 20px rgba(156, 255, 147, 0.35);
}

.hero-area .hero-content .button .btn.btn-alt {
  background: transparent !important;
  border: 2px solid #9cff93;
  color: #9cff93;
}

.hero-area .hero-content .button .btn.btn-alt:hover {
  background: #9cff93 !important;
  color: #0a2a00;
}

/* ---- Features icons ---- */
.features .single-feature i {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00;
}

/* ---- App Info section ---- */
.app-info .info-text .main-icon i {
  color: #9cff93;
}

/* Constrain video size on desktop — col-lg-6 is too wide for phone mockup videos */
@media (min-width: 992px) {
  /* Center the text+video pair horizontally inside the container */
  .app-info .info-one .row {
    justify-content: center;
  }

  /* Tighten columns so the pair sits in the middle rather than edge-to-edge */
  .app-info .info-one .col-lg-6 {
    flex: 0 0 auto;
    width: 40%;
  }

  .app-info .info-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .app-info .info-image video {
    width: 55% !important;
    max-width: 300px !important;
    height: auto !important;
  }
}

/* ---- Our Achievement ---- */
.our-achievement {
  background-color: #0e0e0e;
}

/* ---- Pricing section ---- */
.pricing-table {
  background-color: #0e0e0e;
}

.pricing-table .section-title h2 {
  color: #fff;
}

.pricing-table .section-title p {
  color: #adaaaa;
}

/* Equal-height card columns */
.pricing-table .row {
  align-items: stretch;
}

.pricing-table .col-lg-5,
.pricing-table .col-md-6,
.pricing-table .col-12 {
  display: flex;
  flex-direction: column;
}

/* ---- FREE card — dark twin of the PRO card with neutral accents ---- */
.free-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 36px 32px 28px;
  margin-top: 30px;
  flex: 1;
}

/* Ambient glow — neutral white top-left only */
.free-card__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  width: 300px;
  height: 300px;
  top: -80px;
  left: -80px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

/* All inner content above glow */
.free-card__badge-row,
.free-card__headline,
.free-card__subheadline,
.free-card__features,
.free-card__price,
.free-card__cta,
.free-card__footnote {
  position: relative;
  z-index: 1;
}

/* Badge row */
.free-card__badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.free-card__badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-family: "Lexend", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  line-height: 1;
}

.free-card__badge-sub {
  font-family: "Lexend", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #666;
  text-transform: uppercase;
}

/* Headline */
.free-card__headline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 12px;
}

/* Subheadline */
.free-card__subheadline {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #adaaaa;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Feature rows */
.free-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.free-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: #131313;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.free-card__feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #adaaaa;
  font-size: 18px;
}

.free-card__feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.free-card__feature-title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.free-card__feature-subtitle {
  font-family: "Lexend", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #adaaaa;
  line-height: 1.5;
}

/* Price display */
.free-card__price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

/* CTA — ghost style, no gradient (differentiates from PRO) */
.free-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  font-family: "Lexend", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  margin-bottom: 14px;
}

.free-card__cta:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
}

.free-card__cta:active {
  transform: scale(0.97);
}

.free-card__cta i {
  font-size: 16px;
}

/* Footnote */
.free-card__footnote {
  font-family: "Lexend", sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: #555;
  text-align: center;
  margin: 0;
}

/* Make PRO card also fill column height */
.pro-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pro-card__features {
  flex: 1;
}

/* ---- Call to Action ---- */
.call-action {
  background-color: #0e0e0e;
}

.call-action .cta-content .button .btn {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00;
  font-weight: 700;
}

.call-action .cta-content .button .btn:hover {
  background: linear-gradient(135deg, #00fc40, #9cff93);
  color: #0a2a00;
  box-shadow: 0px 4px 20px rgba(156, 255, 147, 0.35);
}

/* ---- Footer ---- */
.footer {
  background-color: #0e0e0e;
}

.footer .footer-newsletter {
  background-color: #131313;
}

.footer .footer-newsletter .form .btn {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00;
  font-weight: 700;
}

.footer .footer-newsletter .form .btn:hover {
  background: linear-gradient(135deg, #00fc40, #9cff93);
  box-shadow: 0px 4px 20px rgba(156, 255, 147, 0.25);
}

/* ---- PRO card (mirrors ProComingSoonScreen from Flutter) ---- */

.pro-card {
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
  border: 1px solid rgba(156, 255, 147, 0.12);
  border-radius: 12px;
  padding: 36px 32px 28px;
  margin-top: 30px;
}

/* Ambient glow layers — green top-left, cyan bottom-right */
.pro-card__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.pro-card__glow--primary {
  width: 340px;
  height: 340px;
  top: -80px;
  left: -80px;
  background: radial-gradient(
    circle,
    rgba(156, 255, 147, 0.12) 0%,
    rgba(156, 255, 147, 0) 70%
  );
  animation: pro-glow-breathe 3s ease-in-out infinite alternate;
}

.pro-card__glow--secondary {
  width: 280px;
  height: 280px;
  bottom: -60px;
  right: -60px;
  background: radial-gradient(
    circle,
    rgba(0, 227, 253, 0.08) 0%,
    rgba(0, 227, 253, 0) 70%
  );
  animation: pro-glow-breathe 3s ease-in-out infinite alternate-reverse;
}

@keyframes pro-glow-breathe {
  from { opacity: 0.8; }
  to   { opacity: 1;   }
}

/* All inner content sits above the glows */
.pro-card__badge-row,
.pro-card__headline,
.pro-card__subheadline,
.pro-card__features,
.pro-card__cta,
.pro-card__footnote {
  position: relative;
  z-index: 1;
}

/* PRO badge — green→cyan gradient pill */
.pro-card__badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pro-card__badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(90deg, #9cff93, #00e3fd);
  border-radius: 6px;
  font-family: "Lexend", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #000;
  line-height: 1;
}

.pro-card__coming-soon {
  font-family: "Lexend", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #666;
  text-transform: uppercase;
}

/* Headline */
.pro-card__headline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 12px;
}

/* Subheadline */
.pro-card__subheadline {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #adaaaa;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Feature rows */
.pro-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pro-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: #131313;
  border: 1px solid rgba(156, 255, 147, 0.08);
  border-radius: 10px;
  padding: 14px;
}

.pro-card__feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(156, 255, 147, 0.12);
  border-radius: 8px;
  color: #9cff93;
  font-size: 18px;
}

.pro-card__feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pro-card__feature-title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.pro-card__feature-subtitle {
  font-family: "Lexend", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #adaaaa;
  line-height: 1.5;
}

/* CTA button — full-width green→cyan gradient */
.pro-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(90deg, #9cff93, #00e3fd);
  box-shadow: 0px 6px 20px rgba(156, 255, 147, 0.3);
  font-family: "Lexend", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #000;
  transition: opacity 0.15s ease, transform 0.1s ease;
  margin-bottom: 14px;
}

.pro-card__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0px 8px 28px rgba(156, 255, 147, 0.4);
}

.pro-card__cta:active {
  transform: scale(0.97);
}

.pro-card__cta i {
  font-size: 16px;
}

/* Footnote */
.pro-card__footnote {
  font-family: "Lexend", sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: #555;
  text-align: center;
  margin: 0;
}

/* ======================================================
   DOWNLOAD POPUP
   ====================================================== */

.dl-popup-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.dl-popup-backdrop--visible {
  opacity: 1;
  pointer-events: all;
}

.dl-popup {
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(156, 255, 147, 0.15);
  border-radius: 20px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 420px;
  margin: 16px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(156, 255, 147, 0.08);
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.dl-popup-backdrop--visible .dl-popup {
  transform: translateY(0);
}

/* Close button */
.dl-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 50%;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dl-popup__close:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

/* Icon */
.dl-popup__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 20px;
}

.dl-popup__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coming soon android icon */
.dl-popup__coming-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  margin: 0 auto 20px;
  font-size: 30px;
  color: #adaaaa;
}

/* Text */
.dl-popup__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.dl-popup__sub {
  font-family: "Lexend", sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #888;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Platform buttons */
.dl-popup__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dl-btn i {
  font-size: 26px;
  flex-shrink: 0;
}

.dl-btn__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.dl-btn__label {
  font-family: "Lexend", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1;
}

.dl-btn__store {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

/* iOS — green gradient */
.dl-btn--ios {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00;
}

.dl-btn--ios:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(156, 255, 147, 0.35);
  color: #0a2a00;
}

/* Android — dark surface */
.dl-btn--android {
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dl-btn--android:hover {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Back button */
.dl-btn--back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #adaaaa;
  font-family: "Lexend", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  width: auto;
}

.dl-btn--back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* View toggling */
.dl-view {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dl-view--hidden {
  display: none;
}

/* ---- Scroll-top button ---- */
.scroll-top {
  background: linear-gradient(135deg, #9cff93, #00fc40);
  color: #0a2a00 !important;
}

.scroll-top:hover {
  background: linear-gradient(135deg, #00fc40, #9cff93);
  box-shadow: 0px 4px 16px rgba(156, 255, 147, 0.4);
}

/* ======================================================
   FEATURES — image-card grid
   8 screenshot cards, Kinetic Monolith dark theme
   ====================================================== */

/* Section background — pull to obsidian */
section#features.features {
  background-color: #0e0e0e;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Override the section label color for the dark background */
section#features .section-title h3,
section#features .section-title .section-label {
  color: #9cff93;
}

section#features .section-title h2 {
  color: #fff;
}

section#features .section-title p {
  color: #adaaaa;
}

/* ---- Grid layout ---- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* ---- Card shell ---- */
.feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border: 1px solid rgba(156, 255, 147, 0.10);
  border-radius: 14px;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.feat-card:hover {
  transform: translateY(-7px);
  border-color: rgba(156, 255, 147, 0.38);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(156, 255, 147, 0.15),
    0 0 28px rgba(156, 255, 147, 0.10);
}

/* ---- Image wrapper — enforces uniform aspect ratio ---- */
.feat-card__img-wrap {
  position: relative;
  width: 100%;
  /* 16:10 — tall enough for portrait screenshots, not too tall for landscape */
  padding-top: 62%;
  overflow: hidden;
  flex-shrink: 0;
}

.feat-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.feat-card:hover .feat-card__img-wrap img {
  transform: scale(1.06);
}

/* ---- Gradient overlay — image bleeds into card body ---- */
.feat-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0) 0%,
    rgba(26, 26, 26, 0.85) 65%,
    #1a1a1a 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ---- Card body ---- */
.feat-card__body {
  position: relative;
  z-index: 2;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Slight negative margin pulls body up, overlapping the overlay */
  margin-top: -20px;
}

/* ---- Tag pill ---- */
.feat-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  background: rgba(156, 255, 147, 0.12);
  border: 1px solid rgba(156, 255, 147, 0.25);
  border-radius: 20px;
  font-family: "Lexend", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #9cff93;
  line-height: 1.6;
  margin-bottom: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feat-card:hover .feat-card__tag {
  background: rgba(156, 255, 147, 0.20);
  border-color: rgba(156, 255, 147, 0.45);
}

/* ---- Title ---- */
.feat-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: #fff;
  margin: 0;
}

/* ---- Description ---- */
.feat-card__desc {
  font-family: "Lexend", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.65;
  color: #888;
  margin: 0;
  transition: color 0.2s ease;
}

.feat-card:hover .feat-card__desc {
  color: #adaaaa;
}

/* ---- Reveal line — thin green bar that slides in on hover ---- */
.feat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #9cff93, #00e3fd);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.feat-card:hover::after {
  transform: scaleX(1);
}

/* ---- Responsive breakpoints ---- */

/* Tablet: 2 columns */
@media (max-width: 991px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

/* Mobile: single column */
@media (max-width: 575px) {
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  section#features.features {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}
