/* ============================================
   WEB DOZER — Stylesheet
   Mobile-First · HTML5 · CSS3
   Breakpoints: 640 / 768 / 1024 / 1200
   ============================================ */

/* ===== TOKENS ===== */
:root {
  --accent:      #f5c518;
  --accent2:     #f7d056;
  --accent-dark: #c49200;
  --accent-glow: rgba(245,197,24,0.28);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.25s ease;
  --font-main:   'Inter', sans-serif;
  --font-head:   'Space Grotesk', sans-serif;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg:        #0a0a0f;
  --bg-alt:    #111118;
  --bg-card:   #1a1a24;
  --bg-input:  #22222f;
  --border:    rgba(255,255,255,0.08);
  --text:      #ffffff;
  --text-muted:#8888a0;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);
  --label-fg:  var(--accent);
  --label-bg:  rgba(245,197,24,0.12);
  --hero-glow1:rgba(245,197,24,0.12);
  --hero-glow2:rgba(245,197,24,0.06);
  --em-start:  #f5c518;
  --em-end:    #f7d056;
  color-scheme: dark;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg:        #f4f4f9;
  --bg-alt:    #ffffff;
  --bg-card:   #ebebf3;
  --bg-input:  #e0e0ec;
  --border:    rgba(0,0,0,0.09);
  --text:      #111118;
  --text-muted:#5c5c78;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.14);
  --label-fg:  #c49200;
  --label-bg:  rgba(196,146,0,0.1);
  --hero-glow1:rgba(245,197,24,0.08);
  --hero-glow2:rgba(245,197,24,0.04);
  --em-start:  #b8870a;
  --em-end:    #d4a200;
  color-scheme: light;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 4px 28px var(--accent-glow);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--label-bg);
}
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.w100 { width: 100%; }

/* ===== SECTION ===== */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 100px 0; } }

.section-header { text-align: center; margin-bottom: 48px; }
@media (min-width: 768px) { .section-header { margin-bottom: 64px; } }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--label-fg);
  background: var(--label-bg);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.section-header h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--em-start), var(--em-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 14px auto 0;
}

/* ===== LOGO (shared) ===== */
.logo-img { height: 32px; width: auto; display: none; }
[data-theme="dark"]  .logo-dark  { display: block; }
[data-theme="light"] .logo-light { display: block; }

.logo-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.logo-name strong { font-weight: 800; color: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: var(--bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  opacity: 0.96;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-links {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 150;
  overflow: hidden;
  padding-top: 70px;
}
.nav-links.open { transform: translateX(0); }

/* Home logo inside burger menu */
.nav-home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-home-link:hover { background: var(--bg-card); }
.nav-home-img { height: 36px; width: auto; display: none; }
[data-theme="dark"]  .nav-home-img.logo-dark  { display: block; }
[data-theme="light"] .nav-home-img.logo-light { display: block; }
.nav-home-link span {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
}
.nav-home-link span strong { font-weight: 800; color: var(--accent); }

.nav-links a:not(.nav-home-link):not(.btn) {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  width: 200px;
  text-align: center;
}
.nav-links a:not(.nav-home-link):not(.btn):hover {
  color: var(--text);
  background: var(--bg-card);
}
.nav-links .btn {
  margin-top: 12px;
  font-size: 1rem;
  padding: 12px 32px;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-links {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    transform: none;
    z-index: auto;
    overflow: visible;
    padding-top: 0;
    gap: 4px;
  }
  .nav-home-link { display: none; }
  .nav-links a:not(.nav-home-link):not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    width: auto;
    text-align: left;
  }
  .nav-links .btn { margin-top: 0; font-size: 0.875rem; padding: 9px 22px; }
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon { display: none; align-items: center; }
[data-theme="dark"]  .theme-icon.sun  { display: flex; }
[data-theme="light"] .theme-icon.moon { display: flex; }

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 200;
  position: relative;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .burger { display: none; } }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, var(--hero-glow1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, var(--hero-glow2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 48px 18px 80px;
  position: relative;
  z-index: 1;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 60px 24px 100px;
  }
}
.hero-content { display: flex; flex-direction: column; gap: 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--em-start), var(--em-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
@media (min-width: 640px) { .hero-content p { font-size: 1.1rem; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
@media (min-width: 640px) { .hero-stats { gap: 32px; } }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--text); }
.stat span { font-size: 0.78rem; color: var(--text-muted); }

/* Desktop mockup */
.hero-visual { display: none; position: relative; justify-content: center; align-items: center; }
@media (min-width: 768px) { .hero-visual { display: flex; } }

.desk-mockup { position: relative; width: 360px; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.mockup-screen {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px var(--accent-glow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28ca41; }
.browser-url {
  font-size: 0.75rem; color: var(--text-muted);
  background: var(--bg-card);
  padding: 3px 12px; border-radius: 6px; margin-left: 8px; flex: 1;
}
.browser-content { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mock-hero-block {
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: 6px; opacity: 0.8;
}
.mock-line { height: 10px; background: var(--bg-input); border-radius: 4px; }
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.mock-card { height: 50px; background: var(--bg-input); border-radius: 6px; border: 1px solid var(--border); }
.mockup-base { height: 14px; background: var(--bg-input); margin: 0 60px; border-radius: 0 0 4px 4px; border: 1px solid var(--border); border-top: none; }
.mockup-stand { height: 20px; background: var(--bg-input); width: 60px; margin: 0 auto; border-radius: 0 0 8px 8px; border: 1px solid var(--border); border-top: none; }

.floating-tag {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
  color: var(--text);
}
.tag1 { top: 10%; right: -10%; animation-delay: 0s; color: var(--accent); }
.tag2 { bottom: 25%; right: -8%; animation-delay: 1s; }
.tag3 { top: 40%; left: -12%; animation-delay: 2s; }

.scroll-down {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem; letter-spacing: 0.12em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ===== ABOUT ===== */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px)  { .about-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) { .about-card:last-child { grid-column: span 2; } }
@media (min-width: 1024px) { .about-card:last-child { grid-column: span 1; } }
.about-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--label-bg) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.about-card:hover { border-color: var(--accent-glow); transform: translateY(-3px); box-shadow: var(--shadow); }
.about-card:hover::before { opacity: 1; }
.about-card.featured { border-color: var(--accent); background: linear-gradient(135deg, var(--label-bg), var(--bg-card)); }
.card-icon { font-size: 2.2rem; }
.about-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--text); }
.about-card p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }
.card-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--accent-dark); background: var(--label-bg);
  padding: 4px 12px; border-radius: 100px; width: fit-content;
}

/* ===== SHOWCASE ===== */
.showcase { background: var(--bg); }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px)  { .showcase-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .showcase-grid { grid-template-columns: repeat(3, 1fr); } }

.showcase-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  height: 240px;
  transition: all var(--transition);
}
@media (min-width: 640px) { .showcase-card { height: 220px; } }
@media (min-width: 1024px) { .showcase-card { height: 260px; } }
.showcase-card:hover { transform: scale(1.02); border-color: var(--accent); box-shadow: 0 8px 32px var(--accent-glow); }
.showcase-card.video-card { cursor: default; }
.showcase-card.video-card:hover { transform: none; }

.card-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform var(--transition);
}
.showcase-card:hover .card-thumb-img { transform: scale(1.05); }

.card-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78%; height: 177.78%;
  transform: translate(-50%, -50%);
  border: none; pointer-events: none;
}

.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.card-info h4 { font-weight: 700; font-size: 0.95rem; color: #fff; }
.card-info span { font-size: 0.75rem; color: rgba(255,255,255,0.65); }

.card-hover {
  position: absolute; inset: 0;
  background: rgba(245,197,24,0.88);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  color: #111;
  opacity: 0; transition: opacity var(--transition);
}
.showcase-card:not(.video-card):hover .card-hover { opacity: 1; }

/* ===== PRICING ===== */
.pricing { background: var(--bg-alt); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 440px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: none; margin: 0; }
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 32px var(--accent-glow); }
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--label-bg) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #111;
  font-size: 0.72rem; font-weight: 800;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.pricing-tier { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.pricing-price { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--text); }
.pricing-features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; margin-top: 1px; }

/* ===== SERVICES ===== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }

.service-item {
  display: flex; gap: 20px; padding: 28px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
@media (min-width: 768px) {
  .service-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .service-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 767px) {
  .service-item:last-child { border-bottom: none; }
}
.service-item:hover { background: var(--bg-card); }
.service-num {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  color: var(--label-bg); flex-shrink: 0; line-height: 1; padding-top: 4px;
  transition: color var(--transition);
  /* Use color not bg for the number */
  color: rgba(245,197,24,0.2);
}
.service-item:hover .service-num { color: var(--accent); }
.service-content h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.service-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 60px; } }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--label-bg); color: var(--accent); flex-shrink: 0; }
.info-item strong { display: block; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.info-item span { color: var(--text); line-height: 1.8; font-size: 0.95rem; }
.info-item a { color: var(--text); transition: color var(--transition); }
.info-item a:hover { color: var(--accent); }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--text);
}
.social-btn:hover { border-color: var(--accent); background: var(--label-bg); color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 18px;
}
@media (min-width: 640px) { .contact-form { padding: 36px 32px; } }

.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 15px;
  color: var(--text); font-size: 16px;
  transition: all var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: var(--bg-input); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-feedback { padding: 11px 15px; border-radius: var(--radius); font-size: 0.88rem; font-weight: 500; }
.form-feedback.success { background: rgba(40,202,65,0.1); border: 1px solid rgba(40,202,65,0.3); color: #28ca41; }
.form-feedback.error   { background: rgba(255,95,87,0.1);  border: 1px solid rgba(255,95,87,0.3);  color: #ff5f57; }

/* ===== AI CHAT WIDGET ===== */
.ai-chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 200; }
@media (min-width: 640px) { .ai-chat-widget { bottom: 28px; right: 28px; } }

.ai-toggle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: #111;
  box-shadow: 0 4px 20px var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); position: relative;
}
.ai-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px var(--accent-glow); }
.ai-badge {
  position: absolute; top: -4px; right: -4px;
  background: #111; color: var(--accent);
  font-size: 0.52rem; font-weight: 800;
  padding: 2px 5px; border-radius: 6px; letter-spacing: 0.05em;
}
.ai-panel {
  position: absolute; bottom: 66px; right: 0;
  width: calc(100vw - 40px); max-width: 350px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 500px;
}
.ai-panel.open { opacity: 1; pointer-events: all; transform: none; }
.ai-header {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg-input);
}
.ai-title { display: flex; align-items: center; gap: 7px; flex: 1; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #28ca41; box-shadow: 0 0 6px rgba(40,202,65,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.ai-title strong { font-size: 0.88rem; color: var(--text); }
.ai-powered { font-size: 0.68rem; color: var(--text-muted); }
.ai-close { color: var(--text-muted); font-size: 0.95rem; padding: 4px 7px; border-radius: 6px; transition: all var(--transition); }
.ai-close:hover { background: var(--bg-card); color: var(--text); }
.ai-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; max-height: 260px; }
.ai-msg.bot { justify-content: flex-start; display: flex; }
.ai-msg.user { justify-content: flex-end; display: flex; }
.msg-bubble { max-width: 85%; padding: 9px 13px; border-radius: 13px; font-size: 0.85rem; line-height: 1.5; }
.ai-msg.bot  .msg-bubble { background: var(--bg-input); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.ai-msg.user .msg-bubble { background: var(--accent); color: #111; border-bottom-right-radius: 4px; }
.msg-bubble.typing { color: var(--text-muted); font-style: italic; }
.ai-model-select { display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); }
.ai-model-select select { flex: 1; background: var(--bg-input); border: 1px solid var(--border); color: var(--text); font-size: 0.75rem; padding: 4px 8px; border-radius: 6px; outline: none; }
.model-status { font-size: 0.68rem; }
.model-status.online { color: #28ca41; }
.model-status.offline { color: #ff5f57; }
.ai-input-row { display: flex; gap: 8px; padding: 11px 13px; border-top: 1px solid var(--border); }
.ai-input-row input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: 100px; padding: 8px 15px; color: var(--text); font-size: 0.85rem; outline: none; transition: border-color var(--transition); }
.ai-input-row input:focus { border-color: var(--accent); }
.ai-input-row input::placeholder { color: var(--text-muted); }
.ai-send-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #111; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.ai-send-btn:hover { transform: scale(1.1); background: var(--accent2); }
.ai-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 18px;
}
@media (min-width: 640px) { .footer-inner { padding: 56px 24px; } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 1.2fr 1fr; gap: 60px; padding: 64px 32px; } }

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo-wrap {
  display: flex; align-items: center; gap: 12px;
  width: fit-content;
  transition: opacity var(--transition);
}
.footer-logo-wrap:hover { opacity: 0.8; }
.footer-logo { height: auto; width: 44px; object-fit: contain; flex-shrink: 0; display: none; }
[data-theme="dark"]  .footer-logo.logo-dark  { display: block; }
[data-theme="light"] .footer-logo.logo-light { display: block; }
.footer-logo-name {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 500; color: var(--text);
  white-space: nowrap;
}
.footer-logo-name strong { font-weight: 800; color: var(--accent); }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; }

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (min-width: 640px) { .footer-links { grid-template-columns: repeat(3, 1fr); } }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { color: var(--text); font-size: 0.88rem; opacity: 0.7; transition: all var(--transition); }
.footer-col a:hover { opacity: 1; color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--border); padding: 18px; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
@media (min-width: 640px) { .footer-bottom .container { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--accent); }

/* ===== LEGAL / COOKIES PAGES ===== */
.page-wrap {
  min-height: 100vh;
  padding-top: 80px;
  background: var(--bg);
}
.page-hero {
  background: var(--bg-alt);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 24px;
  transition: all var(--transition);
}
.page-back:hover { color: var(--accent); border-color: var(--accent); background: var(--label-bg); }
.page-back svg { flex-shrink: 0; transition: transform var(--transition); }
.page-back:hover svg { transform: translateX(-3px); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; color: var(--text); margin-bottom: 10px; }
.page-hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--em-start), var(--em-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

.page-content { padding: 48px 0 80px; }
.legal-sections { display: flex; flex-direction: column; gap: 40px; max-width: 800px; }
.legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
@media (min-width: 640px) { .legal-section { padding: 32px 36px; } }
.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.legal-section p { color: var(--text-muted); line-height: 1.8; font-size: 0.93rem; margin-bottom: 10px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.legal-section ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }
.legal-section ul li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.legal-section a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-glow); }
.legal-section a:hover { color: var(--accent2); }
.legal-section table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.88rem; }
.legal-section th { background: var(--bg-input); color: var(--text); font-weight: 600; padding: 10px 14px; text-align: left; border: 1px solid var(--border); }
.legal-section td { padding: 9px 14px; border: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }

/* ===== BURGER MENU INNER ===== */
.nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 24px 16px;
  width: 100%;
  overflow-y: auto;
}
.nav-items a:not(.btn) {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 13px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  width: 100%;
  max-width: 280px;
  text-align: center;
  display: block;
}
.nav-items a:not(.btn):hover { color: var(--text); background: var(--bg-card); }
.nav-items .btn {
  margin-top: 8px;
  font-size: 1rem;
  padding: 13px 36px;
  width: 100%;
  max-width: 280px;
}
.nav-call {
  width: 100%;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
}
.nav-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 16px 24px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.nav-call-btn:hover { background: var(--accent2); transform: translateY(-2px); }
.nav-call-num { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.05em; }
@media (min-width: 1024px) {
  .nav-links { justify-content: flex-end !important; padding-top: 0; }
  .nav-items {
    flex-direction: row;
    flex: none;
    padding: 0;
    gap: 4px;
    justify-content: flex-end;
    overflow: visible;
    width: auto;
  }
  .nav-items a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    width: auto;
    max-width: none;
    text-align: left;
  }
  .nav-items .btn {
    margin-top: 0;
    font-size: 0.875rem;
    padding: 9px 22px;
    width: auto;
    max-width: none;
  }
  .nav-call { display: none; }
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  animation: none;
}
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 28px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.12); }
}
.whatsapp-tooltip {
  position: absolute;
  right: 64px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s ease;
  pointer-events: none;
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; transform: none; }
@media (min-width: 640px) { .whatsapp-btn { bottom: 28px; right: 28px; } }

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.cookie-banner.hiding {
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideUp   { from { transform: translateY(100%); } to { transform: none; } }
@keyframes slideDown { from { transform: none; } to { transform: translateY(110%); } }
.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}
.cookie-text svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.cookie-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero entrance animations */
.hero-content .badge      { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-content h1          { animation: fadeInUp 0.6s ease 0.2s both; }
.hero-content p           { animation: fadeInUp 0.6s ease 0.32s both; }
.hero-content .hero-cta   { animation: fadeInUp 0.6s ease 0.44s both; }
.hero-content .hero-stats { animation: fadeInUp 0.6s ease 0.56s both; }
.hero-visual              { animation: slideInRight 0.8s ease 0.3s both; }

/* Reveal: scroll-triggered */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* Section label pop */
.section-label { animation: none; }
.reveal.visible .section-label { animation: scaleIn 0.4s ease; }

/* Stat counter */
.stat strong { display: inline-block; }

/* Loading bar */
#load-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 9999;
  transition: width 0.3s ease, opacity 0.4s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}
#load-bar.done { width: 100%; opacity: 0; }
