/* ==========================================================================
   WebGod — Main Stylesheet
   Dynamic theme system: three switchable color palettes (Aurora / Crimson /
   Gold), all dark-mode. Every component below consumes shared tokens
   (--accent, --accent-2, --gradient-main, --accent-soft, --shadow-glow) so
   switching [data-palette] on <html> instantly recolors the entire site —
   no component rule needs to duplicate colors.
   Display face: Space Grotesk · Body face: Inter
   ========================================================================== */

:root {
  /* Neutral surfaces (shared across all palettes — dark mode only) */
  --bg: #0A0E17;
  --bg-soft: #0E1322;
  --surface: #131A2C;
  --surface-2: #1A2238;
  --border: #232C45;
  --text: #EDEFF7;
  --text-muted: #8B93AE;
  --warn: #FFB454;
  --danger: #FF5C7A;
  --success: #29D69A;

  /* ---- Palette: AURORA (default) — Electric Violet + Soft Sky Blue ---- */
  --accent: #7C3AED;
  --accent-2: #38BDF8;
  --accent-soft: rgba(124, 58, 237, .16);
  --gradient-main: linear-gradient(135deg, #7C3AED 0%, #38BDF8 100%);
  --shadow-glow: 0 0 0 1px rgba(124,58,237,.28), 0 20px 60px -20px rgba(56,189,248,.4);
  --scrollbar-thumb: linear-gradient(180deg, #7C3AED, #38BDF8);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,.5);
  --header-h: 76px;
  --ease: cubic-bezier(.22,1,.36,1);
  --dur-theme: .5s;
}

/* ---- Palette: CRIMSON — Deep Burgundy + Rich Crimson (cinematic) ---- */
[data-palette="crimson"] {
  --accent: #E11D48;
  --accent-2: #7A0C24;
  --accent-soft: rgba(225, 29, 72, .16);
  --gradient-main: linear-gradient(135deg, #E11D48 0%, #7A0C24 100%);
  --shadow-glow: 0 0 0 1px rgba(225,29,72,.3), 0 20px 60px -20px rgba(122,12,36,.5);
  --scrollbar-thumb: linear-gradient(180deg, #E11D48, #7A0C24);
}

/* ---- Palette: GOLD — Champagne Gold + Dark Graphite (luxury) ---- */
[data-palette="gold"] {
  --accent: #D4AF6A;
  --accent-2: #8C8C94;
  --accent-soft: rgba(212, 175, 106, .16);
  --gradient-main: linear-gradient(135deg, #D4AF6A 0%, #8C8C94 100%);
  --shadow-glow: 0 0 0 1px rgba(212,175,106,.3), 0 20px 60px -20px rgba(140,140,148,.4);
  --scrollbar-thumb: linear-gradient(180deg, #D4AF6A, #8C8C94);
}

/* Palette-aware selection, scrollbar and page-level color transition */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }

body {
  transition: background-color var(--dur-theme) ease, color var(--dur-theme) ease;
}
/* Most interactive components (buttons, cards, header, modals, form fields)
   already transition background-color/border-color/box-shadow via their own
   rules further down this file, so palette swaps animate smoothly there too
   without any property being duplicated here. */

[data-theme="light"] {
  --bg: #F6F7FB;
  --bg-soft: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEF0F8;
  --border: #DFE3EF;
  --text: #131A2C;
  --text-muted: #5B637A;
  --accent-soft: rgba(124, 92, 255, .10);
  --shadow-soft: 0 10px 40px -12px rgba(20,25,50,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 110px 0; }
.section-tight { padding: 70px 0; }

.skip-link {
  position: absolute; top: -50px; left: 12px; background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 9999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gradient-main); border-radius: 2px; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-primary { background: var(--gradient-main); color: #fff; box-shadow: 0 8px 24px -8px rgba(124,92,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(124,92,255,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; background: var(--bg); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
#loader.loader-hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 56px; height: 56px; animation: loaderPulse 1.1s ease-in-out infinite; }
@keyframes loaderPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.85); opacity: .6; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.scroll-progress {
  position: absolute; top: 0; left: 0; height: 2.5px; width: 0%;
  background: var(--gradient-main); transition: width .12s linear;
}
.navbar { height: 100%; }
.navbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-name em { font-style: normal; background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--text-muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gradient-main); transition: width .25s var(--ease); border-radius: 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.navbar-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: 100px; font-size: .82rem; font-weight: 600;
  transition: border-color .2s;
}
.lang-current:hover { border-color: var(--accent); }
.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px; min-width: 130px; box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s var(--ease);
}
.lang-switch.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a { display: block; padding: 8px 10px; border-radius: 6px; font-size: .88rem; }
.lang-dropdown a:hover { background: var(--accent-soft); color: var(--accent-2); }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--text); transition: border-color .2s, transform .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.mobile-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mobile-toggle span { width: 18px; height: 2px; background: var(--text); transition: all .3s var(--ease); border-radius: 2px; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 90px; overflow: hidden; min-height: 92vh; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 70%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero-orb-1 { width: 420px; height: 420px; background: var(--accent); top: -120px; right: -80px; }
.hero-orb-2 { width: 360px; height: 360px; background: var(--accent-2); bottom: -140px; left: -100px; opacity: .35; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 5vw, 3.8rem); margin-bottom: .4em; }
.hero-title span { display: block; }
.hero-title .grad-text { background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 1.1rem; max-width: 520px; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.hero-stat-label { font-size: .82rem; color: var(--text-muted); }

.hero-visual { position: relative; }
.mockup {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow); overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(0); } 50% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(-14px); } }
.mockup-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-body { padding: 22px; font-family: 'SFMono-Regular', Consolas, monospace; font-size: .82rem; color: var(--text-muted); line-height: 1.9; }
.mockup-body .ln { color: var(--accent-2); margin-right: 10px; opacity: .5; }
.mockup-body .kw { color: var(--accent); }
.mockup-body .str { color: var(--success); }
.mockup-body .cursor-blink { display: inline-block; width: 7px; height: 1em; background: var(--accent-2); margin-left: 2px; animation: blink 1s steps(1) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }
.mockup-float-badge {
  position: absolute; bottom: -22px; left: -26px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 10px;
  animation: floatY 6s ease-in-out infinite reverse;
}
.mockup-float-badge strong { display: block; font-family: var(--font-display); }
.mockup-float-badge svg { color: var(--success); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .08s; }
.reveal-delay-2.in-view { transition-delay: .16s; }
.reveal-delay-3.in-view { transition-delay: .24s; }
.reveal-delay-4.in-view { transition-delay: .32s; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-soft); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; font-size: .88rem; margin-top: 12px; }
.card-link svg { transition: transform .2s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Featured product ---------- */
.product-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.product-media { position: relative; padding: 50px; background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%); }
.product-media img { border-radius: var(--radius-md); box-shadow: var(--shadow-soft); border: 1px solid var(--border); }
.product-content { padding: 56px; }
.product-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin: 18px 0; }
.product-features { margin: 24px 0; }
.product-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--text); }
.product-features svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Portfolio ---------- */
.portfolio-card { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,14,23,.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  opacity: 0; transition: opacity .35s var(--ease);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-tag { font-size: .75rem; color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.portfolio-overlay h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.portfolio-actions { display: flex; gap: 10px; }
.portfolio-actions a { font-size: .8rem; padding: 8px 14px; border-radius: 100px; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.portfolio-actions a:hover { background: var(--accent); }

/* ---------- Stats counters ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 24px; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: 6px; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: none; color: var(--text); padding: 22px 4px; text-align: left; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.faq-question .icon { flex-shrink: 0; transition: transform .3s var(--ease); color: var(--accent); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-answer-inner { padding: 0 4px 22px; color: var(--text-muted); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-photo { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 18px; background: var(--surface-2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent); position: relative; overflow: hidden; }
.team-card:hover .team-photo { border-color: var(--accent); }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-role { color: var(--accent-2); font-size: .85rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: flex-start; }
.contact-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-item svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-info-item strong { display: block; color: var(--text); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-check { display: flex; align-items: center; gap: 12px; }

.ios-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.ios-switch input { opacity: 0; width: 0; height: 0; }
.ios-switch .slider { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; transition: background .25s var(--ease); cursor: pointer; }
.ios-switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 50%; transition: transform .25s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ios-switch input:checked + .slider { background: var(--gradient-main); border-color: transparent; }
.ios-switch input:checked + .slider::before { transform: translateY(-50%) translateX(20px); }
.ios-switch.disabled { opacity: .6; }

.form-msg { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; display: none; }
.form-msg.success { display: block; background: rgba(41,214,154,.12); color: var(--success); border: 1px solid rgba(41,214,154,.3); }
.form-msg.error { display: block; background: rgba(255,92,122,.12); color: var(--danger); border: 1px solid rgba(255,92,122,.3); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bg-soft); border-top: 1px solid var(--border); padding: 80px 0 0; overflow: hidden; }
.footer-parallax { position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: var(--accent-soft); filter: blur(90px); z-index: 0; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer-col h3 { font-size: .95rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a:hover { color: var(--accent-2); }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease); }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input { flex: 1; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); min-width: 0; }
.newsletter-msg { font-size: .82rem; color: var(--success); margin-top: 10px; min-height: 1em; }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }
.footer-cookie-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 8px 16px; border-radius: 100px; font-size: .82rem; transition: all .2s; }
.footer-cookie-btn:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- Floating buttons ---------- */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(37,211,102,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,.55); z-index: 900;
  overflow: visible; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(37,211,102,.8), 0 0 24px rgba(37,211,102,.5);
  background: rgba(37,211,102,1);
}
.whatsapp-fab:active { transform: scale(.96); }

/* Soft continuous pulse ring — subtle, never aggressive */
.whatsapp-fab-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55);
  animation: waPulse 2.6s ease-out infinite;
  pointer-events: none; z-index: -1;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.whatsapp-fab:hover .whatsapp-fab-ring { animation-play-state: paused; opacity: 0; }

/* Click ripple — toggled by JS adding .is-rippling briefly */
.whatsapp-fab-ripple {
  position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.55); transform: translate(-50%,-50%) scale(0);
  opacity: 0; pointer-events: none;
}
.whatsapp-fab.is-rippling .whatsapp-fab-ripple {
  animation: waRipple .55s var(--ease) forwards;
}
@keyframes waRipple {
  0%   { transform: translate(-50%,-50%) scale(0);  opacity: .6; }
  100% { transform: translate(-50%,-50%) scale(9);   opacity: 0; }
}

/* Gentle bounce the first time the page loads — toggled by JS adding .wa-bounce-in once */
.whatsapp-fab.wa-bounce-in { animation: waBounceIn .9s var(--ease) .6s both; }
@keyframes waBounceIn {
  0%   { transform: scale(0) translateY(30px); opacity: 0; }
  55%  { transform: scale(1.12) translateY(-6px); opacity: 1; }
  75%  { transform: scale(.95) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

.back-to-top {
  position: fixed; bottom: 28px; right: 96px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center;
  z-index: 900; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- Floating color theme switcher (Aurora / Crimson / Gold) ---------- */
.theme-switcher {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  z-index: 950;
  display: flex; align-items: center;
}
.theme-switcher-fab {
  display: none; /* desktop: hidden, options shown directly. mobile: shown as FAB */
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(19,26,44,.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  align-items: center; justify-content: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.theme-switcher-fab:hover { transform: scale(1.08); }
.theme-swatch-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 0 10px var(--accent-soft);
}

.theme-switcher-options {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 16px 10px;
  background: rgba(19,26,44,.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
}

.theme-swatch {
  position: relative;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: transform .3s var(--ease-spring, var(--ease)), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.theme-swatch[data-palette="aurora"] { background: linear-gradient(135deg, #7C3AED, #38BDF8); }
.theme-swatch[data-palette="crimson"] { background: linear-gradient(135deg, #E11D48, #7A0C24); }
.theme-swatch[data-palette="gold"] { background: linear-gradient(135deg, #D4AF6A, #8C8C94); }

.theme-swatch:hover { transform: scale(1.25); border-color: rgba(255,255,255,.7); }
.theme-swatch[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 0 16px currentColor;
}

.theme-tooltip {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(-6px);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .76rem; font-weight: 600; white-space: nowrap;
  padding: 6px 11px; border-radius: 6px; box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.theme-swatch:hover .theme-tooltip,
.theme-swatch:focus-visible .theme-tooltip {
  opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0);
}


/* ---------- Modal (cookie settings) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,8,14,.65); backdrop-filter: blur(4px); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; max-width: 520px; width: 100%; position: relative; transform: scale(.94) translateY(10px); transition: transform .3s var(--ease); max-height: 86vh; overflow-y: auto; }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: none; color: var(--text); font-size: 1.3rem; line-height: 1; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.cookie-option p { font-size: .82rem; margin: 4px 0 0; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; }

/* ---------- WhatsApp modal ---------- */
.whatsapp-modal { max-width: 420px; }
.whatsapp-modal-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.whatsapp-modal-icon { width: 44px; height: 44px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.whatsapp-modal-header h3 { margin-bottom: 2px; font-size: 1.1rem; }
.whatsapp-modal-sub { font-size: .82rem; margin: 0; color: var(--text-muted); }
.whatsapp-quick-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.whatsapp-quick-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--text); transition: all .2s var(--ease);
}
.whatsapp-quick-btn:hover { border-color: #25D366; background: rgba(37,211,102,.08); transform: translateX(2px); }
.whatsapp-quick-btn svg { flex-shrink: 0; color: #25D366; }
.whatsapp-custom { border-top: 1px solid var(--border); padding-top: 18px; }
.whatsapp-custom label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.whatsapp-custom textarea {
  width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); resize: vertical; margin-bottom: 12px; font-family: inherit;
}
.whatsapp-custom textarea:focus { border-color: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.15); outline: none; }
#whatsappCustomSend { background: #25D366; box-shadow: 0 8px 24px -8px rgba(37,211,102,.5); }
#whatsappCustomSend:hover { background: #20BD5A; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: calc(var(--header-h) + 64px) 0 60px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .85rem; color: var(--text-muted); margin-top: 14px; }
.breadcrumb a:hover { color: var(--accent-2); }

/* ---------- 404 ---------- */
.error-page { min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--header-h) + 40px) 24px 60px; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Cursor (subtle custom cursor, desktop only) ---------- */
.custom-cursor { position: fixed; width: 22px; height: 22px; border: 1.5px solid var(--accent-2); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: width .2s, height .2s, opacity .2s, border-color .2s; opacity: 0; }
.custom-cursor.active { opacity: .8; }
.custom-cursor.hover-target { width: 38px; height: 38px; border-color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { padding: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; justify-content: flex-start; padding: 36px 24px; gap: 8px; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 4px; font-size: 1.1rem; }
  .mobile-toggle { display: flex; }
  .nav-cta { display: none; }
  .custom-cursor { display: none; }
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 32px 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .back-to-top { right: 22px; bottom: 96px; }
  .whatsapp-fab { right: 22px; bottom: 22px; }
  .product-content { padding: 32px 24px; }

  /* Theme switcher collapses into a small floating FAB on mobile */
  .theme-switcher { left: 16px; top: auto; bottom: 22px; transform: none; }
  .theme-switcher-fab { display: flex; }
  .theme-switcher-options {
    position: absolute; left: 0; bottom: calc(100% + 12px);
    flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(.92);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    transform-origin: bottom left;
  }
  .theme-switcher.open .theme-switcher-options {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  }
  .theme-tooltip { left: calc(100% + 10px); }
}
