/* 1. VARIABLES & THEMES */
:root {
  --bg: #f7f8fb;
  --card: rgba(255, 255, 255, .72);
  --text: #0f172a;
  --muted: #526074;
  --line: rgba(15, 23, 42, .10);
  --shadow: 0 22px 60px rgba(2, 6, 23, .10);
  --accent: #0ea5e9;
  --accent2: #22c55e;
  --radius: 20px;
  --hero-filter: none;
}

html[data-theme="dark"] {
  --bg: #070a12;
  --card: rgba(17, 24, 39, .58);
  --text: #e5e7eb;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 28px 90px rgba(0, 0, 0, .50);
  --hero-filter: brightness(0.65) contrast(1.1) saturate(0.9);
}

/* 2. BASE RESET & GLOBAL ANIMATION */
* {
  box-sizing: border-box;
  /* Smooth transitions for every state change */
  transition: 
    background-color 0.3s ease, 
    border-color 0.3s ease, 
    color 0.3s ease, 
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
    box-shadow 0.3s ease,
    filter 0.4s ease;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: 
    radial-gradient(900px 600px at 15% 10%, rgba(14, 165, 233, .12), transparent 60%), 
    radial-gradient(900px 600px at 80% 20%, rgba(34, 197, 94, .10), transparent 60%), 
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Better tap targets for mobile */
button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: rgba(14, 165, 233, 0.2);
}

/* Prevent text size adjustment on mobile */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Better focus for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Better text selection */
::selection {
  background: rgba(14, 165, 233, 0.3);
  color: var(--text);
}

::-moz-selection {
  background: rgba(14, 165, 233, 0.3);
  color: var(--text);
}

/* 3. GLASS COMPONENTS */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

/* Subtle lift for cards and panels */
.card.glass:hover, .panel.glass:hover, .aside__box:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px -12px rgba(2, 6, 23, 0.15);
}

/* 4. TOPBAR & NAVIGATION */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .55);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
html[data-theme="dark"] .topbar { background: rgba(2, 6, 23, .85); }

.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .14em; }
.brand__logo { height: 55px; width: auto; border-radius: 10px; }

.nav { display: flex; gap: 22px; align-items: center; }
.nav a { white-space: nowrap; color: var(--muted); font-weight: 400; font-size: .8rem; }
.nav a:hover { color: var(--text); transform: translateY(-1px); }

.controls { display: flex; align-items: center; gap: 12px; }

/* 5. BUTTONS & CONTROLS */
.seg {
  display: flex; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
  background: rgba(15, 23, 42, 0.03);
}
.seg__btn {
  border: 0; background: transparent; padding: 10px 14px;
  font-weight: 800; color: var(--muted); cursor: pointer;
  font-size: 0.85rem;
}
.seg__btn.is-active { background: rgba(14, 165, 233, .14); color: var(--text); }
.seg__btn:hover:not(.is-active) { color: var(--text); background: rgba(14, 165, 233, 0.05); }

.iconbtn {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.iconbtn:hover { border-color: var(--accent); transform: scale(1.05); }
.iconbtn:active { transform: scale(0.95); }
.iconbtn__dot {
  width: 14px; height: 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(34, 197, 94, .14));
  font-weight: 900; color: var(--muted);
  cursor: pointer;
}
.btn:hover, .btn.is-active {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 5px 10px -10px var(--accent);
}
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; }
.btn--small { padding: 10px 16px; font-size: .92rem; }

/* 6. HERO SECTION */
.heroBanner {
  width: 100%; margin: 0; padding: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #000; /* Backdrop for dark mode image dimming */
  position: relative;
}
.heroBanner__img {
  width: 100%; height: clamp(240px, 42vw, 520px);
  object-fit: cover; display: block;
  filter: var(--hero-filter);
  will-change: transform;
}

.hero { padding: 80px 0 60px; position: relative; }
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { max-width: 980px; display: grid; gap: 20px; position: relative; z-index: 1; }
.kicker { color: var(--muted); font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

h1 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; }

.gradient-text {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lead { margin: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.7; max-width: 60ch; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* 7. TRUST BAR */
.trustBar {
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    max-width: 1120px;
    margin: 0 auto;
}
.trustBar__inner {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px; align-items: start;
}
.trustItem__t { font-weight: 900; font-size: 1.1rem; line-height: 1.2; margin-bottom: 8px; }
.trustItem__d { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* 7.5 BRANDS SECTION */
.brands {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
html[data-theme="dark"] .brands {
  background: rgba(0, 0, 0, 0.2);
}
.brands__label {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}
.brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.brands__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.brands__item:hover {
  transform: translateY(-5px) scale(1.05);
}
.brands__logo {
  max-width: 140px;
  max-height: 60px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}
html[data-theme="dark"] .brands__logo {
      filter: invert(1) contrast(0.9) grayscale(1);
    opacity: 0.8;
}
.brands__item:hover .brands__logo {
}
html[data-theme="dark"] .brands__item:hover .brands__logo {
  filter: contrast(0.5);
}

/* 8. SECTION STRUCTURE */
.section { padding: 40px 0; }
.section--alt { background: rgba(14, 165, 233, 0.02); }
.section__head { margin-bottom: 50px; }
.section__head h2 { font-size: 2.2rem; letter-spacing: -.02em; margin: 0 0 12px; }
.section__head p { color: var(--muted); font-size: 1.1rem; max-width: 65ch; }
.section__head--wide p { max-width: 100%; }

/* 9. CARDS & GRIDS */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.card { padding: 32px; display: flex; flex-direction: column; }
.card__icon { 
  font-size: 2.8rem; 
  margin-bottom: 16px;
  display: inline-block;
}
.animate-bounce-hover {
}
.card:hover .animate-bounce-hover {
}
@keyframes bounce {
  0%, 100% { transform: scale(1.2) translateY(-5px); }
  50% { transform: scale(1.3) translateY(-10px); }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll[data-animation="slide-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll[data-animation="fade-in"] {
  transform: translateY(0);
}
.animate-on-scroll[data-animation="fade-in"].is-visible {
  opacity: 1;
}

.card h3 { font-size: 1.4rem; margin: 0 0 15px; }
.card p { color: var(--muted); margin-bottom: 20px; flex-grow: 1; }
.list { margin: 0; padding-left: 20px; color: var(--muted); list-style-type: '→ '; }
.list li { padding-left: 8px; margin-bottom: 8px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.panel { padding: 40px; }

/* 10. STATS BAR */
.statsBar {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(34, 197, 94, .06));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.statsBar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.statItem__n {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}
.statItem__l {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* 11. TIMELINE/PROCESS */
.timeline {
    display: grid;
    gap: 24px;
}
.timelineItem {
    padding: 32px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 28px;
    align-items: start;
}
.timelineItem:hover {
    transform: translateX(4px);
}
.timelineItem__num {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(14, 165, 233, .2), rgba(34, 197, 94, .15));
    border: 2px solid var(--line);
    color: var(--accent);
}
.timelineItem__content h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}
.timelineItem__content p {
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

/* 12. TESTIMONIALS */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.testimonial {
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.testimonial__stars {
    color: #fbbf24;
    font-size: 1.3rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.testimonial__text {
    color: var(--muted);
    font-style: italic;
    line-height: 1.7;
    flex-grow: 1;
    margin: 0 0 20px;
}
.testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.testimonial__author strong {
    color: var(--text);
    font-weight: 700;
}
.testimonial__author span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* 13. FAQ ACCORDION */
.faq {
    display: grid;
    gap: 16px;
}
.faqItem {
    padding: 0;
    overflow: hidden;
}
.faqItem summary {
    padding: 24px 28px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.faqItem summary::-webkit-details-marker {
    display: none;
}
.faqItem summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.3s ease;
}
.faqItem[open] summary::after {
    transform: rotate(45deg);
}
.faqItem summary:hover {
    color: var(--accent);
}
.faqItem p {
    padding: 0 28px 28px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 14. FORM & CONTACT */
.contact {
    padding: 30px;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 50px;
}
.form { display: grid; gap: 20px; position: relative; }
.form__foot { position: relative; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
select::picker {padding-right: 10px; }
option {padding-right: 5px;}
label span { display: block; font-weight: 800; margin-bottom: 8px; font-size: 0.9rem; }
input, select, textarea {
  width: 100%; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .50);
  color: var(--text); outline: none; font-size: 1rem;
}
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
  background: rgba(2, 6, 23, .40);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

.aside__box { 
    padding: 26px; border-radius: 18px; border: 1px solid var(--line); 
    background: rgba(255, 255, 255, .40); margin-bottom: 20px;
}
html[data-theme="dark"] .aside__box { background: rgba(2, 6, 23, .30); }
.aside__box--accent {
    background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(34, 197, 94, .08));
    border-color: var(--accent);
}
.aside__t { font-weight: 900; font-size: 1.1rem; margin-bottom: 15px; display: block; }

/* 15. FOOTER & TOAST */
.footer { 
  margin-top: 60px; padding: 40px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}

.burger{
    display:none; 
    width:48px; 
    height:42px; 
    border:1px solid var(--line); 
    border-radius:14px; 
    background:transparent; 
    cursor:pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.toast {
    position: absolute;
    bottom: 13px;
    right: 30px;
    z-index: 100;
    display: none;
    padding: 16px 24px;
    border-radius: 16px;
    color: var(--accent);
}
.toast.is-show { 
    display: flex; 
    animation: toastIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards; 
    color: var(--accent2);
}

@keyframes toastIn {
  from { transform: translateY(20px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 16. MOBILE MENU */
.mobile {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.mobile__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
}
.mobile a {
    padding: 12px 16px;
    border-radius: 12px;
}

/* 17. RESPONSIVE */
@media (max-width: 980px) {
  /* Navigation */
  .nav { display: none; }
  .burger { display: flex; }
  
  /* Topbar adjustments */
  .topbar__inner { height: 64px; padding: 0 16px; gap: 10px; }
  .brand__logo { height: 45px; }
  .controls { gap: 8px; }
  .seg__btn { padding: 8px 12px; font-size: 0.8rem; }
  .iconbtn { width: 38px; height: 38px; }
  
  /* Hero section */
  .hero { padding: 40px 0 40px; }
  .hero__inner { gap: 16px; }
  .kicker { font-size: 0.8rem; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.1; }
  .lead { font-size: 1rem; line-height: 1.6; }
  .hero__cta { gap: 12px; margin-top: 12px; }
  .hero::before { display: none; } /* Remove background pattern on mobile */
  
  /* Trust bar */
  .trustBar { padding: 24px 20px; margin: 0 16px; }
  .trustBar__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .trustItem__t { font-size: 1rem; }
  .trustItem__d { font-size: 0.9rem; }
  
  /* Brands section */
  .brands { padding: 40px 0; }
  .brands__label { font-size: 0.85rem; margin-bottom: 30px; }
  .brands__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 0 16px; }
  .brands__item { padding: 16px; }
  .brands__logo { max-width: 120px; max-height: 50px; }
  
  /* Sections */
  .section { padding: 40px 0; }
  .section__head { margin-bottom: 32px; }
  .section__head h2 { font-size: 1.8rem; }
  .section__head p { font-size: 1rem; }
  
  /* Cards */
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 24px; }
  .card__icon { font-size: 2.4rem; margin-bottom: 12px; }
  .card h3 { font-size: 1.2rem; margin-bottom: 12px; }
  .card p { font-size: 0.95rem; margin-bottom: 16px; }
  .list { font-size: 0.9rem; padding-left: 18px; }
  .list li { margin-bottom: 6px; }
  
  /* Stats bar */
  .statsBar { padding: 36px 16px; }
  .statsBar__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .statItem__n { font-size: 2.2rem; }
  .statItem__l { font-size: 0.85rem; }
  
  /* Timeline/Process */
  .timeline { gap: 16px; }
  .timelineItem {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 24px 20px;
  }
  .timelineItem__num {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  .timelineItem__content h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .timelineItem__content p { font-size: 0.9rem; line-height: 1.6; }
  .timelineItem:hover { transform: translateX(2px); }
  
  /* Grid layouts */
  .grid2 { grid-template-columns: 1fr; gap: 20px; }
  .panel { padding: 24px; }
  .panel h3 { font-size: 1.2rem; margin-bottom: 10px; }
  .panel p { font-size: 0.95rem; }
  
  /* Testimonials */
  .testimonials { grid-template-columns: 1fr; gap: 20px; }
  .testimonial { padding: 24px; }
  .testimonial__stars { font-size: 1.1rem; margin-bottom: 12px; }
  .testimonial__text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
  .testimonial__author { padding-top: 12px; }
  
  /* FAQ */
  .faqItem summary { 
    padding: 20px 20px; 
    font-size: 1rem; 
    gap: 12px;
  }
  .faqItem summary::after { font-size: 1.6rem; }
  .faqItem p { 
    padding: 0 20px 20px; 
    font-size: 0.9rem; 
    line-height: 1.6; 
  }
  
  /* Contact form */
  .contact { grid-template-columns: 1fr; gap: 32px; padding: 24px 20px; }
  .form { gap: 16px; }
  .row { grid-template-columns: 1fr; gap: 16px; }
  label span { font-size: 0.85rem; margin-bottom: 6px; }
  input, select, textarea { 
    padding: 12px 16px; 
    font-size: 0.95rem;
    border-radius: 12px;
  }
  textarea { font-size: 0.95rem !important; }
  .aside__box { padding: 20px; margin-bottom: 16px; }
  .aside__t { font-size: 1rem; margin-bottom: 12px; }
  .aside__box .small { font-size: 0.9rem; }
  .aside__box .list { font-size: 0.85rem; }
  
  /* Form button */
  .form__foot { margin-top: 8px; }
  .form__foot .btn { 
    width: 100%; 
    padding: 16px 24px; 
    font-size: 1rem;
    justify-content: center;
  }
  .form__foot .small { font-size: 0.85rem; line-height: 1.5; }
  
  /* Footer */
  .footer { 
    flex-direction: column; 
    gap: 12px; 
    text-align: center; 
    margin-top: 40px;
    padding: 32px 0; 
  }
  .footer .small { font-size: 0.85rem; }
  
  /* Toast positioning */
  .toast { 
    bottom: 20px; 
    right: 16px; 
    left: 16px; 
    padding: 14px 18px;
    font-size: 0.9rem;
  }
  
  /* Disable hover effects on touch devices */
  .card.glass:hover, 
  .panel.glass:hover, 
  .aside__box:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
  
  .brands__item:hover {
    transform: none;
  }
  
  .brands__item:hover .brands__logo {
    filter: grayscale(100%) brightness(0) opacity(0.4);
  }
  
  html[data-theme="dark"] .brands__item:hover .brands__logo {
    filter: grayscale(100%) brightness(10) opacity(0.6);
  }
  
  /* Make brand logos always visible on mobile */
  .brands__logo {
    filter: contrast(0.5);
  }
  
  html[data-theme="dark"] .brands__logo {
        filter: invert(1) contrast(0.9) grayscale(1);
    opacity: 0.8;
  }
}

@media (max-width: 640px) {
  /* Further mobile refinements */
  .wrap { padding: 0 16px; }
  
  /* Hero */
  .heroBanner__img { 
    height: clamp(200px, 50vw, 300px); 
    object-position: center;
  }
  .hero { padding: 32px 0; }
  h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .lead { font-size: 0.95rem; max-width: 100%; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; padding: 14px 20px; }
  
  /* Trust bar - full width on small mobile */
  .trustBar { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
  
  /* Stats - single column */
  .statsBar { padding: 32px 16px; }
  .statsBar__inner { grid-template-columns: 1fr; gap: 24px; }
  .statItem__n { font-size: 2.6rem; }
  .statItem__l { font-size: 0.9rem; }
  
  /* Brands - single column */
  .brands { padding: 32px 0; }
  .brands__grid { grid-template-columns: 1fr; gap: 20px; max-width: 240px; }
  .brands__logo { max-width: 160px; max-height: 55px; }
  
  /* Sections */
  .section { padding: 32px 0; }
  .section__head h2 { font-size: 1.6rem; }
  .section__head p { font-size: 0.95rem; }
  
  /* Cards */
  .card { padding: 20px; }
  .card__icon { font-size: 2.2rem; }
  .card h3 { font-size: 1.1rem; }
  
  /* Timeline - more compact */
  .timelineItem {
    grid-template-columns: 50px 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
  .timelineItem__num {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .timelineItem__content h3 { font-size: 1rem; }
  .timelineItem__content p { font-size: 0.85rem; }
  
  /* Grid panels */
  .panel { padding: 20px; }
  .panel h3 { font-size: 1.1rem; }
  .panel p { font-size: 0.9rem; }
  
  /* Testimonials */
  .testimonial { padding: 20px; }
  .testimonial__text { font-size: 0.9rem; }
  
  /* FAQ */
  .faqItem summary { padding: 18px 16px; font-size: 0.95rem; }
  .faqItem summary::after { font-size: 1.5rem; }
  .faqItem p { padding: 0 16px 18px; font-size: 0.85rem; }
  
  /* Contact form */
  .contact { padding: 20px 16px; }
  input, select, textarea { font-size: 16px; } /* Prevent iOS zoom */
  textarea { min-height: 140px; }
  
  /* Footer */
  .footer { padding: 24px 0; margin-top: 32px; }
  
  /* Controls - stack on very small screens */
  .controls { flex-wrap: wrap; }
  .seg { order: 3; width: 100%; margin-top: 8px; }
  
  /* Topbar - more compact */
  .topbar__inner { height: 60px; }
  .brand__logo { height: 40px; }
  .brand__name { display: none; }
  
  /* Disable parallax on mobile for performance */
  .heroBanner__img { 
    will-change: auto !important; 
    transform: none !important;
  }
  
  /* Optimize animations for mobile */
  .animate-on-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .card:hover .animate-bounce-hover {
    animation: none;
    transform: scale(1);
  }
}

/* Extra small screens - ensure readability */
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .topbar__inner { padding: 0 12px; gap: 6px; }
  .brand__logo { height: 36px; }
  .seg__btn { padding: 7px 10px; font-size: 0.75rem; }
  .iconbtn { width: 36px; height: 36px; }
  
  h1 { font-size: 1.4rem; }
  .lead { font-size: 0.9rem; }
  
  .card, .panel, .testimonial { padding: 16px; }
  .timelineItem { padding: 16px 12px; }
  
  .trustBar { padding: 20px 16px; }
  .trustItem__t { font-size: 0.95rem; }
  .trustItem__d { font-size: 0.85rem; }
  
  .section__head h2 { font-size: 1.4rem; }
  
  .statItem__n { font-size: 2.2rem; }
  .statItem__l { font-size: 0.8rem; }
  
  .faqItem summary { padding: 16px 14px; font-size: 0.9rem; }
  .faqItem p { padding: 0 14px 16px; font-size: 0.8rem; }
  
  .contact { padding: 16px 12px; }
  input, select, textarea { padding: 11px 14px; }
  
  .brands__grid { gap: 16px; }
  .brands__logo { max-width: 140px; }
}

/* Landscape orientation fixes */
@media (max-width: 980px) and (orientation: landscape) {
  .heroBanner__img { height: 40vh; max-height: 350px; }
  .hero { padding: 32px 0; }
  .statsBar { padding: 32px 16px; }
  .section { padding: 36px 0; }
}

/* High DPI screens - sharper images */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brands__logo, .brand__logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-progress {
    transition: none;
  }
  
  .heroBanner__img {
    transform: none !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Dark mode specific mobile adjustments */
@media (max-width: 640px) {
  html[data-theme="dark"] .trustBar {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }
  
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .panel,
  html[data-theme="dark"] .testimonial,
  html[data-theme="dark"] .faqItem {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

/* Print styles */
@media print {
  .scroll-progress,
  .topbar,
  .burger,
  .controls,
  .hero__cta,
  .form,
  .toast,
  .mobile {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}
