/* ===================================================================
   FuelScout UK — Stylesheet
   Redesigned based on sApp Template structure and effects
   Deep Green / Emerald Palette · Modern Glassmorphism
   =================================================================== */

/* --- Google Font: Manrope & Material Symbols -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* --- Design Tokens ------------------------------------------------ */
:root {
  /* Brand colors */
  --green-950: #051408;
  --green-900: #0f3d18;
  --green-800: #1a5c27;
  --green-700: #1B5E20;
  --green-600: #2E7D32;
  --green-500: #2ea34b;
  --green-400: #4CAF50;
  --green-100: #e8f5e9;
  --green-50:  #f1f8e9;
  --gold-500:  #ffb300;

  /* Neutrals */
  --white:     #ffffff;
  --gray-50:   #fafafa;
  --gray-100:  #f5f5f5;
  --gray-200:  #eeeeee;
  --gray-300:  #e0e0e0;
  --gray-400:  #bdbdbd;
  --gray-500:  #9e9e9e;
  --gray-600:  #757575;
  --gray-700:  #616161;
  --gray-800:  #424242;
  --gray-900:  #212121;
  --slate-900: #0b150e;

  /* Semantic */
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:     var(--gray-500);
  --surface:        var(--white);
  --surface-alt:    var(--gray-50);
  --border:         var(--gray-200);
  --accent:         var(--green-500);
  --accent-dark:    var(--green-800);
  --accent-light:   var(--green-100);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 40%, var(--green-800) 100%);
  --gradient-accent: linear-gradient(135deg, var(--green-600) 0%, var(--green-500) 50%, var(--green-400) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(5, 20, 8, 0.95) 0%, rgba(15, 61, 24, 0.9) 100%);
  --gradient-light: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);

  /* Typography */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-md:   1.125rem;
  --font-size-lg:   1.25rem;
  --font-size-xl:   1.5rem;
  --font-size-2xl:  2rem;
  --font-size-3xl:  2.5rem;
  --font-size-4xl:  3.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders & Shadows */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg:  0 16px 36px rgba(0,0,0,0.08);
  --shadow-xl:  0 24px 48px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Layout */
  --container-max: 1140px;
  --header-height: 80px;
}

/* --- Reset & Base ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--accent);
}

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Container ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* --- Section Base ------------------------------------------------- */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section--alt {
  background-color: var(--surface-alt);
}

.section--primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  background: var(--green-50);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
}

.section--primary .section__label {
  background: rgba(255, 255, 255, 0.1);
  color: var(--green-100);
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}

.section--primary .section__title {
  color: var(--white);
}

.section__subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.7;
}

.section--primary .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__header .section__subtitle {
  margin: 0 auto;
}

/* --- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--font-size-sm);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-8);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(46, 163, 75, 0.35);
}

.btn--primary:hover {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(46, 163, 75, 0.45);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
  background-color: var(--white);
  color: var(--green-900);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-10);
}

.btn--google-play {
  background-color: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-5);
  box-shadow: var(--shadow-md);
}

.btn--google-play:hover {
  background-color: var(--slate-900);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--google-play svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* --- Preloader ---------------------------------------------------- */
.preloader-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader-wapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader {
  position: relative;
  z-index: 10001;
  width: 150px;
  height: 150px;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.dot {
  transform-origin: center;
  animation: gooPulse 2s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: -1s;
}

@keyframes gooPulse {
  0%, 100% {
    transform: scale(0.6) translate(-30px, 0);
  }
  50% {
    transform: scale(1.1) translate(30px, 0);
  }
}

.loader-section {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--green-950);
  z-index: 10000;
  transition: transform var(--duration-slow) cubic-bezier(0.77, 0, 0.175, 1);
}

.section-left {
  left: 0;
}

.section-right {
  right: 0;
}

.preloader-main.loaded .loader-section.section-left {
  transform: translateX(-100%);
}

.preloader-main.loaded .loader-section.section-right {
  transform: translateX(100%);
}

.preloader-main.loaded .preloader {
  opacity: 0;
}

.preloader-main.loaded {
  display: none;
}

/* --- Header & Navbar ---------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: var(--font-size-lg);
  transition: color var(--duration-fast) var(--ease-out);
}

.header.scrolled .header__brand {
  color: var(--text-primary);
}

.header__brand img {
  width: 40px;
  height: 40px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.header__nav-links a {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
}

.header.scrolled .header__nav-links a {
  color: var(--text-secondary);
}

.header__nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

.header__nav-links a:hover,
.header__nav-links a.active {
  color: var(--white);
}

.header.scrolled .header__nav-links a:hover,
.header.scrolled .header__nav-links a.active {
  color: var(--text-primary);
}

.header__nav-links a:hover::after,
.header__nav-links a.active::after {
  width: 100%;
}

.header.scrolled .btn--secondary {
  color: var(--green-900);
  border-color: var(--green-800);
}

.header.scrolled .btn--secondary:hover {
  background-color: var(--green-900);
  color: var(--white);
  border-color: var(--green-900);
}

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--white);
}

.header.scrolled .header__menu-btn {
  color: var(--text-primary);
}

.header__menu-btn svg {
  width: 28px;
  height: 28px;
}

/* --- Mobile Menu Overlay ------------------------------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--slate-900);
  z-index: 999;
  padding: calc(var(--header-height) + var(--space-8)) var(--space-8) var(--space-8);
  flex-direction: column;
  gap: var(--space-8);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}

.mobile-menu__links a {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--white);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__links a:hover {
  color: var(--accent);
}

/* --- Hero Section ------------------------------------------------- */
.hero-section {
  position: relative;
  background: var(--gradient-primary);
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-24);
  overflow: hidden;
  color: var(--white);
}

.hero-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-content h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: var(--font-size-md);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: var(--space-10);
}

.button-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.android-frame {
  position: relative;
  width: 290px;
  aspect-ratio: 9 / 19.5;
  background-color: #0c180e;
  border: 11px solid #000000; /* Black phone bezel */
  border-radius: 38px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 1;
}

/* Punch-hole camera (Android style) */
.android-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: 10;
}

/* Speaker receiver grill */
.android-frame::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background-color: #111e14;
  border-radius: 3px;
  z-index: 10;
}

.android-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px; /* Slightly smaller to fit bezel curve */
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero-thumb .android-frame {
  transform: rotate(-3deg);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5), 
    0 0 40px rgba(46, 163, 75, 0.45), 
    0 0 80px rgba(46, 163, 75, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  transition: all var(--duration-slow) var(--ease-out);
}

.hero-thumb:hover .android-frame {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6), 
    0 0 50px rgba(46, 163, 75, 0.55), 
    0 0 100px rgba(46, 163, 75, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.shape-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.shape-bottom svg {
  width: 100%;
  height: 90px;
  fill: var(--white);
}

/* --- Counter Area ------------------------------------------------- */
.counter-area {
  position: relative;
  z-index: 4;
  margin-top: -60px;
  padding-bottom: var(--space-16);
}

.counter-grid {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-10) var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  border: 1px solid var(--border);
  text-align: center;
}

.counter-item {
  position: relative;
}

.counter-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.counter-number {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.1;
  display: block;
}

.counter-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

/* --- Features Section (Image Box) --------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.image-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.image-box:hover {
  transform: translateY(-8px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-lg);
}

.image-box__icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--green-800);
  transition: all var(--duration-normal) var(--ease-out);
}

.image-box:hover .image-box__icon-wrapper {
  background: var(--gradient-accent);
  color: var(--white);
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 8px 16px rgba(46, 163, 75, 0.25);
}

.image-box__icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.image-box h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.image-box p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Content / Showcase Sections --------------------------------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.showcase-row--reverse {
  direction: rtl;
}

.showcase-row--reverse > * {
  direction: ltr;
}

.showcase-content h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  line-height: 1.25;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.showcase-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.showcase-list-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-list-item__icon svg {
  width: 20px;
  height: 20px;
}

.showcase-list-item__text h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.showcase-list-item__text p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-visual .android-frame {
  width: 270px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4), 
    0 0 35px rgba(46, 163, 75, 0.35), 
    0 0 70px rgba(46, 163, 75, 0.2);
}

/* Staggered double visual on EV section */
.ev-visual-stack {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
}

.ev-visual-stack .android-frame {
  width: 230px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4), 
    0 0 30px rgba(46, 163, 75, 0.35), 
    0 0 60px rgba(46, 163, 75, 0.2);
}

.ev-visual-stack .android-frame:nth-child(2) {
  margin-top: var(--space-16);
}

/* --- How It Works Section (Work Area) ----------------------------- */
.work-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.work-section .shape-top {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}

.work-section .shape-top svg {
  width: 100%;
  height: 70px;
  fill: var(--white);
}

.work-section .intro h2 {
  color: var(--white);
}

.work-section .intro p {
  color: rgba(255, 255, 255, 0.8);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  position: relative;
  margin-top: var(--space-8);
}

.work-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.work-step__icon-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.work-step:hover .work-step__icon-box {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.work-step__icon-box svg {
  width: 40px;
  height: 40px;
  color: var(--white);
  transition: color var(--duration-normal) var(--ease-out);
}

.work-step:hover .work-step__icon-box svg {
  color: var(--green-900);
}

.work-step__number {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  font-size: var(--font-size-xs);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.work-step h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.work-step p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 290px;
  margin: 0 auto;
}

/* Connectors */
.steps-grid::after {
  content: '';
  position: absolute;
  top: 45px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.05));
  z-index: 1;
}

/* --- Screenshots Section ----------------------------------------- */
.screenshots-area {
  padding: var(--space-20) 0;
  overflow: hidden;
}

.app-screenshots-slides {
  margin-top: var(--space-10);
  position: relative;
  width: 100%;
}

.slider-mid {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: var(--space-8) 0;
  -webkit-overflow-scrolling: touch;
}

.slider-mid::-webkit-scrollbar {
  display: none;
}

.slider-mid__track {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  padding: 0 var(--space-6);
}

.slider-slide {
  flex-shrink: 0;
  width: 250px;
  scroll-snap-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: zoom-in;
  opacity: 0.55;
  transform: scale(0.9);
}

.slider-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.slider-slide .android-frame {
  width: 100%;
}

.slider-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-nav {
  position: static;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 10;
}

#slider-prev {
  left: -28px;
}

#slider-next {
  right: -28px;
}

.slider-btn:hover {
  background: var(--gradient-accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1200px) {
  #slider-prev {
    left: 0;
  }
  #slider-next {
    right: 0;
  }
}

@media (max-width: 768px) {
  .slider-btn {
    display: none; /* Hide on mobile and rely on touch swipe */
  }
}

/* --- Review Section ----------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
}

.review-card__body {
  padding: var(--space-8) var(--space-6);
  flex-grow: 1;
}

.review-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-4);
  color: var(--gold-500);
}

.review-card__stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-card__title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.review-card__text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.review-card__meta {
  background: var(--green-950);
  color: var(--white);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.review-card__reviewer h5 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: 2px;
}

.review-card__reviewer span {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  display: block;
}

.review-card__quote-icon {
  position: absolute;
  bottom: 60px;
  right: var(--space-6);
  width: 40px;
  height: auto;
  opacity: 0.15;
}

/* --- Price Plan Area ---------------------------------------------- */
.price-plan-section {
  background: var(--gradient-primary);
  color: var(--white);
}

.price-plan-section .intro h2 {
  color: var(--white);
}

.price-plan-section .intro p {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 760px;
  margin: 0 auto;
}

.pricing-table {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: var(--text-primary);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.pricing-table--featured {
  border: 2px solid var(--accent);
  transform: scale(1.03);
}

.pricing-table--featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.1em;
}

.pricing-table__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
}

.pricing-table__type {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
}

.pricing-table__price {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--green-900);
  margin: var(--space-2) 0 var(--space-6);
  line-height: 1;
}

.pricing-table__price small {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-list li {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: var(--space-2);
}

.pricing-list li:last-child {
  border: none;
}

.pricing-table .btn {
  width: 100%;
  font-size: var(--font-size-sm);
}

.pricing-notice {
  text-align: center;
  margin-top: var(--space-10);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.pricing-notice a {
  color: var(--white);
  text-decoration: underline;
}

/* --- FAQ Section (Accordion) -------------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-out);
}

.faq-card.active {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
}

.faq-card__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.4;
}

.faq-card__question:hover {
  color: var(--accent-dark);
}

.faq-card__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--text-muted);
}

.faq-card.active .faq-card__icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-card__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-card__answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-card__answer-inner a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* --- Final CTA / Download Area ------------------------------------ */
.download-section {
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.download-section .container {
  position: relative;
  z-index: 2;
}

.download-content {
  max-width: 780px;
  margin: 0 auto;
}

.download-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.download-content p {
  font-size: var(--font-size-md);
  opacity: 0.85;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.download-content .button-group {
  justify-content: center;
}

/* --- Footer ------------------------------------------------------- */
.footer-area {
  background: var(--slate-900);
  color: var(--gray-400);
  padding: var(--space-16) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  padding-bottom: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: var(--space-8);
}

.footer-items h4 {
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-items__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  font-weight: 800;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

.footer-items__logo img {
  width: 32px;
  height: 32px;
}

.footer-items p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}

.footer-nav a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.social-icon:hover {
  background: var(--gradient-accent);
  color: var(--white);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-6) 0;
  font-size: var(--font-size-xs);
  color: var(--gray-600);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --- Scroll To Top ------------------------------------------------ */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Lightbox ---------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  pointer-events: auto;
}

.lightbox__image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.lightbox__image.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.lightbox__caption-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 320px;
  color: var(--white);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  padding: 0 var(--space-2);
}

.lightbox__caption {
  font-weight: 500;
  opacity: 0.95;
  margin-right: var(--space-4);
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox__counter {
  font-weight: 600;
  color: var(--green-400);
  background: rgba(76, 175, 80, 0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  flex-shrink: 0;
  border: 1px solid rgba(76, 175, 80, 0.3);
  letter-spacing: 0.05em;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2010;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--green-400);
  transform: scale(1.05);
  border-color: var(--green-400);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 24px;
  height: 24px;
}

.lightbox__close {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
}

.lightbox__prev {
  position: absolute;
  left: var(--space-12);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  position: absolute;
  right: var(--space-12);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox__next:hover {
  transform: translateY(-50%) scale(1.05);
}

/* --- Media Queries ------------------------------------------------ */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }
  .counter-grid {
    padding: var(--space-8) var(--space-4);
  }
  .lightbox__prev {
    left: var(--space-4);
  }
  .lightbox__next {
    right: var(--space-4);
  }
}

@media (max-width: 992px) {
  .hero-section__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }
  .hero-content {
    margin: 0 auto;
  }
  .button-group {
    justify-content: center;
  }
  .hero-thumb {
    order: -1;
  }
  .hero-thumb img {
    width: 250px;
    transform: rotate(0);
  }
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-4);
  }
  .counter-item:nth-child(2)::after {
    display: none;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }
  .showcase-visual {
    order: -1;
  }
  .showcase-list-item {
    text-align: left;
  }
  .ev-visual-stack .phone-mock:nth-child(2) {
    margin-top: 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .steps-grid::after {
    display: none;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .pricing-table--featured {
    transform: scale(1);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-20: 3.5rem;
    --space-16: 2.5rem;
  }
  .header__nav-links,
  .header__nav .btn {
    display: none;
  }
  .header__menu-btn {
    display: block;
  }
  .preloader {
    width: 100px;
    height: 100px;
  }
  .counter-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .counter-item:not(:last-child)::after {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .ev-visual-stack {
    flex-direction: column;
  }
  .lightbox__prev,
  .lightbox__next {
    display: none; /* Swipe only on mobile */
  }
  .lightbox__close {
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
  }
  .lightbox__content {
    max-width: 95vw;
    gap: var(--space-4);
  }
  .lightbox__image {
    max-height: 75vh;
  }
  .lightbox__caption-wrapper {
    max-width: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Utility / Animations ----------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
