﻿:root {
  --blue: #1a73e8;
  --blue-light: #e8f1fd;
  --blue-dark: #1557b0;
  --gray-50: #f8f9fb;
  --gray-100: #eef1f5;
  --gray-200: #dde2ea;
  --gray-400: #8b95a5;
  --gray-600: #4a5568;
  --gray-800: #1e2530;
  --white: #ffffff;
  --promo-red: #ff3b30;
  --promo-orange: #ff9500;
  --promo-green: #34c759;
  --promo-purple: #af52de;
  --shadow: 0 4px 24px rgba(26, 115, 232, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 115, 232, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "DM Sans", "Inter", sans-serif;

  --bg: var(--white);
  --bg-soft: var(--gray-50);
  --bg-card: var(--white);
  --text: var(--gray-800);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --primary: var(--blue);
  --primary-soft: var(--blue-light);
}

[data-theme="dark"] {
  --bg: #0f1419;
  --bg-soft: #161c24;
  --bg-card: #1c2430;
  --text: #e8ecf1;
  --text-muted: #9aa5b4;
  --border: #2a3444;
  --primary: #4d9aff;
  --primary-soft: #1a2a40;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.02em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm); cursor: pointer;
  border: none; transition: all .2s ease; white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(26,115,232,.3); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}

/* ---- Promo strip ---- */
.promo-strip {
  background: linear-gradient(90deg, var(--promo-red), var(--promo-orange));
  color: #fff; padding: 10px 0; margin-top: 64px;
  font-weight: 600; font-size: 14px;
}
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.promo-badge {
  background: rgba(255,255,255,.25); padding: 3px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 12px 0; transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.brand-name span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--bg-card);
  cursor: pointer; font-size: 18px; display: grid; place-items: center;
  transition: all .2s;
}
.theme-toggle:hover { border-color: var(--primary); }

/* ---- Language switcher (fixed prominent) ---- */
.lang-switcher { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--primary); background: var(--primary-soft);
  color: var(--primary); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .2s; min-width: 100px;
}
.lang-trigger:hover { background: var(--primary); color: #fff; }
.lang-flag { font-size: 18px; line-height: 1; }
.lang-label { letter-spacing: .06em; }
.lang-chevron { font-size: 12px; margin-left: 2px; transition: transform .2s; }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: var(--bg-card);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .2s ease; z-index: 300; overflow: hidden;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: none; }
.lang-dropdown li {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 15px;
  color: var(--text); transition: background .15s;
  border-bottom: 1px solid var(--border);
}
.lang-dropdown li:last-child { border-bottom: none; }
.lang-dropdown li:hover { background: var(--primary-soft); color: var(--primary); }
.lang-dropdown li.active { background: var(--primary-soft); color: var(--primary); }
.lang-dropdown li small { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 700; letter-spacing: .06em; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---- Hero ---- */
.hero { padding: 48px 0 80px; background: var(--bg-soft); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 18px; color: var(--text); }
.lead { font-size: 18px; color: var(--text-muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
}
.hero-cards { display: flex; flex-direction: column; gap: 16px; }
.promo-card, .stat-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.promo-hot {
  background: linear-gradient(135deg, var(--promo-red), var(--promo-orange));
  color: #fff; border: none; position: relative; overflow: hidden;
}
.promo-hot strong { font-size: 42px; display: block; font-weight: 800; }
.promo-hot span:last-child { font-size: 15px; opacity: .9; }
.promo-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.25); padding: 4px 10px;
  border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em;
}
.stat-card strong { font-size: 32px; display: block; color: var(--primary); font-weight: 800; }
.stat-card span { font-size: 14px; color: var(--text-muted); }
.stat-card.accent { border-left: 4px solid var(--promo-green); }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ---- Product cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: all .25s ease; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-card.featured { border: 2px solid var(--primary); }
.product-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #fff;
}
.product-badge.promo { background: var(--promo-red); }
.product-badge.hot { background: var(--promo-orange); }
.product-badge.new { background: var(--promo-green); }
.product-icon { font-size: 36px; margin-bottom: 16px; }
.product-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.product-price { font-weight: 700; color: var(--primary); font-size: 15px; }

/* ---- Split / info panel ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-copy h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.split-copy > p { color: var(--text-muted); margin-bottom: 20px; }
.check-list { list-style: none; margin-bottom: 24px; }
.check-list li {
  padding-left: 28px; position: relative; margin-bottom: 10px;
  color: var(--text); font-size: 15px;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0;
  width: 20px; height: 20px; background: var(--primary-soft); color: var(--primary);
  border-radius: 6px; font-size: 12px; display: grid; place-items: center; font-weight: 700;
}
.info-panel {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
}
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-muted); font-size: 14px; }
.info-row strong { font-size: 20px; font-weight: 800; color: var(--primary); }

/* ---- Stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card-lg {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 28px; text-align: center; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-card-lg strong { font-size: 40px; font-weight: 800; color: var(--primary); display: block; }
.stat-card-lg span { font-size: 13px; color: var(--text-muted); margin-top: 6px; display: block; }

/* ---- Quote ---- */
.quote { max-width: 720px; margin: 0 auto; text-align: center; }
.quote p { font-size: clamp(20px, 3vw, 26px); font-weight: 600; margin-bottom: 24px; color: var(--text); }
.quote footer { display: flex; align-items: center; justify-content: center; gap: 12px; }
.q-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.q-name { text-align: left; font-weight: 700; }
.q-name small { display: block; color: var(--text-muted); font-weight: 400; }

/* ---- Offer cards ---- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column;
}
.offer-card.featured { border: 2px solid var(--primary); }
.offer-promo {
  position: absolute; top: -12px; left: 24px;
  background: var(--promo-red); color: #fff;
  padding: 5px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
}
.offer-promo.hot { background: var(--promo-orange); }
.offer-card h3 { font-size: 20px; margin-bottom: 8px; margin-top: 8px; }
.offer-price { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.offer-card .check-list { flex: 1; }

/* ---- CTA / Form ---- */
.cta { background: var(--bg-soft); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cta-copy h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.cta-copy > p { color: var(--text-muted); margin-bottom: 24px; }
.cta-meta { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-muted); }
.cta-meta a { color: var(--primary); font-weight: 600; }
.cta-form {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input {
  width: 100%; padding: 13px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  background: var(--bg); color: var(--text); transition: border .15s;
}
.field input:focus { outline: none; border-color: var(--primary); }
.form-note { margin-top: 14px; text-align: center; color: var(--promo-green); font-weight: 600; }

/* ---- Footer ---- */
.footer { background: var(--gray-800); color: #b0b8c4; padding: 56px 0 24px; }
[data-theme="dark"] .footer { background: #0a0e14; }
.footer .brand-name { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 700; }
.footer-cols a { display: block; color: #b0b8c4; font-size: 14px; margin-bottom: 8px; transition: color .15s; }
.footer-cols a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 60px; left: 16px; right: 16px; background: var(--bg-card);
    padding: 20px; border-radius: var(--radius); gap: 14px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
  .hero-inner, .split, .cta-inner { grid-template-columns: 1fr; }
  .product-grid, .offer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .product-grid, .offer-grid, .stat-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-primary { display: none; }
  .section { padding: 56px 0; }
}
