/* ═══════════════════════════════════════════════
   WELTTOS — DUAL THEME DESIGN SYSTEM
   Light = default · Tomato Red accent
═══════════════════════════════════════════════ */

/* ── LIGHT THEME (default) ── */
[data-theme="light"] {
  --bg:        #FFFCF7;  /* warm cream */
  --bg2:       #FFF5EE;  /* peachy alt sections */
  --bg3:       #FFFFFF;  /* card surfaces */
  --bg4:       #FFEDE3;  /* peach elevated */
  --card:      rgba(255,255,255,0.92);
  --card-h:    rgba(255,255,255,1);
  --primary:   #FF5C45;  /* TOMATO RED — primary accent */
  --primary2:  #E54635;  /* darker tomato (hover) */
  --primglow:  rgba(255,92,69,0.13);
  --violet:    #D946A8;  /* raspberry pink — secondary */
  --violet2:   rgba(217,70,168,0.12);
  --lime:      #14B8A6;  /* teal — accent / positive */
  --limeglow:  rgba(20,184,166,0.12);
  --amber:     #F59E0B;  /* amber — warnings / highlights */
  --amberglow: rgba(245,158,11,0.12);
  --text:      #1F1414;  /* dark warm brown */
  --text2:     #4D3D38;  /* warm gray body text */
  --muted:     #8A766F;  /* warm muted */
  --border:    rgba(255,92,69,0.10);
  --borderc:   rgba(255,92,69,0.30);
  --shadow:    0 4px 24px rgba(255,92,69,0.08);
  --shadow-c:  0 8px 40px rgba(255,92,69,0.18);
  --sec-alt:   #FFF5EE;  /* peachy alt-bg sections */
  --input-bg:  rgba(255,255,255,0.95);
  --input-bor: rgba(255,92,69,0.20);
  --cs-overlay: rgba(255,245,235,0.88);
  --cs-badge-bg: rgba(245,158,11,0.12);
  --cs-badge-bor: rgba(245,158,11,0.40);
  --cs-badge-text: #B45309;
  --cs-dot:     #F59E0B;
  --cs-h:       #92400E;
}

/* ── DARK THEME (optional toggle) ── */
[data-theme="dark"] {
  --bg:        #1A0F0D;  /* very dark warm brown */
  --bg2:       #241715;  /* slightly lighter */
  --bg3:       #2E1D1A;  /* card surfaces */
  --bg4:       #38231F;  /* peach elevated */
  --card:      rgba(255,255,255,0.04);
  --card-h:    rgba(255,122,101,0.07);
  --primary:   #FF7A65;  /* lighter tomato (more visible on dark) */
  --primary2:  #FF5C45;  /* main tomato as hover */
  --primglow:  rgba(255,122,101,0.20);
  --violet:    #FF80C0;  /* light pink */
  --violet2:   rgba(255,128,192,0.16);
  --lime:      #5EEAD4;  /* light teal */
  --limeglow:  rgba(94,234,212,0.13);
  --amber:     #FBBF24;
  --amberglow: rgba(251,191,36,0.15);
  --text:      #FFF5F0;  /* warm white */
  --text2:     #D6C0B8;  /* warm light gray */
  --muted:     #8C766C;
  --border:    rgba(255,255,255,0.07);
  --borderc:   rgba(255,122,101,0.25);
  --shadow:    0 8px 40px rgba(0,0,0,0.5);
  --shadow-c:  0 8px 40px rgba(255,122,101,0.15);
  --sec-alt:   #241715;
  --input-bg:  rgba(255,255,255,0.04);
  --input-bor: rgba(255,255,255,0.10);
  --cs-overlay: rgba(26,15,13,0.82);
  --cs-badge-bg: rgba(251,191,36,0.15);
  --cs-badge-bor: rgba(251,191,36,0.40);
  --cs-badge-text: #FBBF24;
  --cs-dot:     #FBBF24;
  --cs-h:       #FCD34D;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  transition: background .35s, color .35s;
  animation: pageFadeIn .4s ease both;
  min-height: 100vh;
}
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 1;
}
main, nav, footer { position: relative; z-index: 1; }

/* ════════════════════════════════════════════════
   NAVIGATION + MOBILE SIDEBAR
═════════════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 70px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: height .3s, background .3s, box-shadow .3s;
}
nav.compact { height: 56px; box-shadow: var(--shadow); }

.logo {
  display: flex; align-items: center; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 800;
  color: var(--text); letter-spacing: -.02em; text-decoration: none;
  z-index: 250;
}
.logo em { color: var(--primary); font-style: normal; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  margin-right: 10px; display: flex; align-items: center; justify-content: center;
  overflow: visible; flex-shrink: 0;
}
.logo-mark img {
  width: 100%; height: 100%; display: block;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-mark img { transform: rotate(12deg) scale(1.1); }
.logo-mark-sm { width: 32px; height: 32px; border-radius: 8px; margin-right: 8px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 15px; border-radius: 8px;
  color: var(--muted); font-size: .88rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--primglow); }
.nav-links a.active { color: var(--primary); }
.nav-cta {
  padding: 9px 20px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: opacity .2s, transform .2s !important;
}
[data-theme="dark"] .nav-cta { color: var(--bg) !important; }
.nav-cta:hover { opacity: .88 !important; transform: translateY(-1px) !important; }

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--bg4); border: 1px solid var(--borderc);
  cursor: pointer; position: relative;
  transition: background .3s, border-color .3s;
  flex-shrink: 0; margin-left: 8px;
  display: flex; align-items: center; padding: 2px;
}
.theme-toggle-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
[data-theme="light"] .theme-toggle-thumb { transform: translateX(20px); }

/* ── HAMBURGER BUTTON (mobile only) ── */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  padding: 0;
  z-index: 260;
  transition: border-color .25s, background .25s;
}
.nav-hamburger:hover { border-color: var(--borderc); background: var(--primglow); }
.nav-hamburger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              opacity .25s,
              top .35s cubic-bezier(.22,1,.36,1),
              background .25s;
}
.nav-hamburger span:nth-child(1) { top: 14px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 28px; }
.nav-hamburger.open span { background: var(--primary); }
.nav-hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ── SIDEBAR BACKDROP ── */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
[data-theme="light"] .nav-backdrop { background: rgba(30,27,75,0.45); }

/* ════════════════════════════════════════════════
   HERO
═════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
  padding: 80px 5vw;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 600px; background: var(--primglow); top: -180px; right: -100px; animation: gd1 14s ease-in-out infinite; }
.hero-glow-2 { width: 450px; height: 450px; background: var(--violet2); bottom: -80px; left: 8%; animation: gd2 18s ease-in-out infinite; }
.hero-glow-3 { width: 280px; height: 280px; background: var(--limeglow); top: 35%; left: 38%; animation: gd3 20s ease-in-out infinite; }
@keyframes gd1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-35px,22px); } }
@keyframes gd2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(22px,-30px); } }
@keyframes gd3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px,18px); } }

.hero-content { position: relative; max-width: 680px; z-index: 2; width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px;
  background: var(--primglow);
  border: 1px solid var(--borderc);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem; color: var(--primary);
  margin-bottom: 28px;
  max-width: 100%;
}
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: blink 2s infinite; flex-shrink: 0; }
@keyframes blink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -.03em; color: var(--text);
  margin-bottom: 22px;
}
h1 .grad {
  background: linear-gradient(115deg, #FF5C45 0%, #FF8A65 35%, #F59E0B 70%, #D946A8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% 200%; animation: gradShift 5s ease-in-out infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-sub { font-size: 1.05rem; color: var(--text2); max-width: 520px; margin-bottom: 36px; line-height: 1.8; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none; border: none;
  position: relative; overflow: hidden;
  transition: transform .25s, opacity .25s, box-shadow .25s;
}
.btn-fill { background: var(--primary); color: #fff; }
[data-theme="dark"] .btn-fill { color: var(--bg); }
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--primglow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primglow); }
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.25);
  transform: scale(0); opacity: 1;
  animation: rpl .55s linear; pointer-events: none;
}
@keyframes rpl { to { transform: scale(4); opacity: 0; } }

/* ════════════════════════════════════════════════
   SECTIONS
═════════════════════════════════════════════════ */
section { padding: 96px 5vw; position: relative; }
.sec-tag {
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  color: var(--primary); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 12px; display: inline-block;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  color: var(--text); margin-bottom: 16px;
}
h2 .hl, h1 .hl { color: var(--primary); }
h2 .hlv, h1 .hlv { color: var(--violet); }
.sec-sub { font-size: 1rem; color: var(--text2); max-width: 540px; line-height: 1.75; }
.sec-hd { margin-bottom: 60px; }
.sec-hd.center { text-align: center; }
.sec-hd.center .sec-sub { margin: 0 auto; }

/* FADE-UP */
.fu { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.fu.vis { opacity: 1; transform: none; }

/* ── PRODUCT CARDS ── */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  cursor: pointer;
  transition: border-color .3s, transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
  position: relative;
}
.prod-card:hover { border-color: var(--borderc); transform: translateY(-6px); box-shadow: var(--shadow-c); }
.prod-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .5s; filter: saturate(.9) brightness(.85); }
[data-theme="light"] .prod-img { filter: saturate(1) brightness(.95); }
.prod-card:hover .prod-img { transform: scale(1.04); filter: saturate(1) brightness(.95); }
.prod-body { padding: 24px; }
.prod-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
  background: var(--primglow); border: 1px solid var(--borderc);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.prod-card:hover .prod-icon { transform: scale(1.1) rotate(-5deg); }
.prod-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.prod-card p { font-size: .85rem; color: var(--text2); line-height: 1.65; }
.prod-tag {
  display: inline-block; margin-top: 14px;
  padding: 3px 12px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .06em;
  background: var(--primglow); color: var(--primary);
  border: 1px solid var(--borderc);
}
.prod-tag-v { background: var(--violet2); color: var(--violet); border-color: rgba(139,111,255,0.3); }
.prod-tag-a { background: var(--amberglow); color: var(--amber); border-color: rgba(255,184,48,0.3); }

/* ── COMING SOON OVERLAY ── */
.cs-wrap { position: relative; overflow: hidden; border-radius: 20px; }
.cs-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: var(--cs-overlay);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; border-radius: 20px;
}
.cs-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 18px;
  background: var(--cs-badge-bg);
  border: 1px solid var(--cs-badge-bor);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; font-weight: 500;
  color: var(--cs-badge-text);
  letter-spacing: .06em;
}
.cs-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cs-dot); animation: csPulse 1.8s ease-in-out infinite; }
@keyframes csPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.65); } }
.cs-sub { font-size: .8rem; color: var(--cs-badge-text); opacity: .75; text-align: center; max-width: 220px; padding: 0 16px; }

/* ── FEATURE CARDS ── */
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.f-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; position: relative; overflow: hidden;
  transition: border-color .3s, background .3s, transform .4s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.f-card:hover { border-color: var(--borderc); background: var(--card-h); transform: translateY(-4px); box-shadow: var(--shadow-c); }
.f-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--primglow); border: 1px solid var(--borderc);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.f-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.f-card p { font-size: .85rem; color: var(--text2); line-height: 1.65; }

/* ── PRICING ── */
.price-group-hd { text-align: center; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; position: relative;
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .4s;
}
.pc:hover { transform: translateY(-6px); box-shadow: var(--shadow-c); }
.pc.feat {
  border-color: var(--primary); background: var(--primglow);
  transform: scale(1.03);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-c);
}
.pc.feat:hover { transform: scale(1.03) translateY(-6px); }
.pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; background: var(--primary); color: #fff;
  border-radius: 100px; font-size: .7rem; font-weight: 700;
  font-family: 'Space Grotesk', sans-serif; letter-spacing: .05em; white-space: nowrap;
}
[data-theme="dark"] .pop { color: var(--bg); }
.plan-name { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.plan-sub { font-size: .78rem; color: var(--muted); margin-bottom: 20px; }
.plan-quote { font-family: 'Space Grotesk', sans-serif; font-size: 1.85rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; margin-bottom: 4px; }
.plan-quote-sub { font-size: .78rem; color: var(--muted); margin-bottom: 24px; }
.plan-f { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 11px; }
.plan-f li { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; color: var(--text2); }
.plan-f li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── TESTIMONIALS ── */
.test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.test-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px;
  transition: border-color .3s, transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.test-card:hover { transform: translateY(-5px); border-color: var(--borderc); box-shadow: var(--shadow-c); }
.stars { color: var(--amber); margin-bottom: 12px; letter-spacing: 2px; }
.test-q { font-size: .87rem; color: var(--text2); line-height: 1.72; margin-bottom: 18px; font-style: italic; }
.test-auth { display: flex; align-items: center; gap: 10px; }
.t-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.t-name { font-weight: 600; font-size: .84rem; color: var(--text); }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before {
  content: ''; position: absolute; top: -12px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--violet), transparent);
  opacity: .3;
}
.step { padding: 26px; text-align: center; }
.step-n {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--borderc);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--primary);
  margin: 0 auto 16px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.step:hover .step-n { transform: scale(1.12); box-shadow: 0 0 24px var(--primglow); }
.step-t { font-family: 'Space Grotesk', sans-serif; font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.step-d { font-size: .82rem; color: var(--text2); line-height: 1.6; }

/* ── FAQ ── */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-i { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .25s; }
.faq-i.open { border-color: var(--borderc); }
.faq-q {
  width: 100%; padding: 18px 22px; background: none; border: none;
  color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: .92rem; font-weight: 500;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-arr { font-size: 1.1rem; color: var(--primary); transition: transform .3s cubic-bezier(.34,1.56,.64,1); flex-shrink: 0; }
.faq-i.open .faq-arr { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.22,1,.36,1); padding: 0 22px; }
.faq-i.open .faq-a { max-height: 300px; }
.faq-a p { padding-bottom: 18px; font-size: .86rem; color: var(--text2); line-height: 1.72; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 100px 5vw; text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text2); font-size: 1rem; max-width: 500px; margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { padding: 64px 5vw 32px; border-top: 1px solid var(--border); background: var(--bg); }
.fg { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.fb p { font-size: .84rem; color: var(--muted); margin-top: 12px; max-width: 260px; line-height: 1.65; }
.fc h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text); margin-bottom: 16px; font-size: .9rem; }
.fc ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fc a { font-size: .84rem; color: var(--muted); cursor: pointer; text-decoration: none; transition: color .2s; }
.fc a:hover { color: var(--primary); }

/* ── PRODUCTS PAGE ── */
.pds { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 50px 5vw; }
.pbadge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 14px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .08em;
  margin-bottom: 14px;
}
.pb-c { background: var(--primglow); color: var(--primary); border: 1px solid var(--borderc); }
.pb-c::before { content: '●'; font-size: .5rem; animation: blink 2s infinite; }
.pb-v { background: var(--violet2); color: var(--violet); border: 1px solid rgba(139,111,255,.3); }
.pb-v::before { content: '●'; font-size: .5rem; animation: blink 2s infinite; }
.pb-a { background: var(--amberglow); color: var(--amber); border: 1px solid rgba(255,184,48,.3); }
.pb-a::before { content: '●'; font-size: .5rem; animation: blink 2s infinite; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tm { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; transition: border-color .3s, transform .4s cubic-bezier(.22,1,.36,1); }
.tm:hover { border-color: var(--borderc); transform: translateY(-4px); }
.tm-av { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 auto 14px; }
.tm-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text); margin-bottom: 4px; }

/* ── CONTACT ── */
.ctc-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.ctc-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.ctc-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.ctc-lbl { font-size: .78rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.ctc-val { font-size: .9rem; color: var(--text); font-weight: 500; word-break: break-word; }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
input, select, textarea {
  width: 100%; padding: 11px 14px; margin-bottom: 16px;
  background: var(--input-bg); border: 1px solid var(--input-bor);
  border-radius: 9px; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 16px;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primglow); }
textarea { min-height: 120px; resize: vertical; }
select option { background: var(--bg3); }

/* ── PD HERO ── */
.pd-hero { padding: 100px 5vw 60px; text-align: center; position: relative; overflow: hidden; }
.sec-alt-bg { background: var(--sec-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-hero { padding: 100px 5vw 60px; text-align: center; position: relative; overflow: hidden; }

/* ── USE CASE BOX ── */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px; background: var(--bg2); border-radius: 16px; border: 1px solid var(--border); }
.uc-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.uc-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: var(--primglow); border: 1px solid var(--borderc); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.uc-t { font-weight: 600; font-size: .84rem; color: var(--text); margin-bottom: 3px; }
.uc-d { font-size: .76rem; color: var(--text2); line-height: 1.55; }

/* ── 4-COL FEATURES ── */
.f4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── WHY WELTTOS ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .875rem; font-weight: 500; color: var(--text2);
  transition: border-color .2s, background .2s, color .2s;
}
.why-item:hover { border-color: var(--borderc); background: var(--card-h); color: var(--text); }
.why-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.why-col { display: flex; flex-direction: column; gap: 10px; }
.learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--primary);
  cursor: pointer; text-decoration: none; transition: opacity .2s;
}
.learn-more:hover { opacity: .75; }

/* ════════════════════════════════════════════════
   SUCCESS MODAL
═════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
[data-theme="light"] .modal-overlay { background: rgba(30, 27, 75, 0.6); }
.modal-overlay.open { display: flex; animation: modalFadeIn .25s ease; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--bg3);
  border: 1px solid var(--borderc);
  border-radius: 20px;
  padding: 44px 36px 36px;
  max-width: 440px; width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-c), 0 0 0 1px var(--borderc);
  animation: modalCardIn .45s cubic-bezier(.22,1,.36,1);
}
@keyframes modalCardIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s, transform .2s;
  padding: 0; line-height: 1;
}
.modal-close:hover { color: var(--primary); border-color: var(--borderc); transform: rotate(90deg); }
.modal-icon-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; position: relative;
  animation: iconPop .6s cubic-bezier(.34,1.56,.64,1) .15s both;
}
@keyframes iconPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.modal-icon-wrap::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--primary);
  opacity: .3; animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: .3; }
  50%     { transform: scale(1.12); opacity: 0; }
}
.modal-icon-wrap svg { width: 40px; height: 40px; color: #fff; }
.modal-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--text); margin-bottom: 10px;
  letter-spacing: -.02em;
}
.modal-card p { font-size: .92rem; color: var(--text2); line-height: 1.65; margin-bottom: 26px; }
.modal-card .btn { width: 100%; justify-content: center; }

/* ════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═════════════════════════════════════════════════ */

/* ── TABLET (≤ 1100px) ── */
@media (max-width: 1100px) {
  .f4-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TABLET / MEDIUM (≤ 1000px) ── */
@media (max-width: 1000px) {
  .prod-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════
   ★ MOBILE BREAKPOINT (≤ 860px) — Hamburger sidebar
═════════════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Show hamburger, restructure nav-links as sidebar */
  .nav-hamburger { display: block; }

  nav { padding: 0 4vw; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 320px);
    height: 100vh; height: 100dvh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 90px 20px 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    z-index: 245;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
    text-align: left;
    width: 100%;
  }
  .nav-links a.nav-cta {
    margin-top: 16px;
    padding: 14px 18px !important;
    justify-content: center;
    text-align: center;
    width: 100%;
    display: flex;
  }
  .theme-toggle {
    margin: 18px 0 0 0;
    align-self: flex-start;
  }

  /* Stack 2-col layouts */
  .pds { grid-template-columns: 1fr; gap: 36px; padding: 40px 5vw; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .price-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pc.feat { transform: none; }
  .pc.feat:hover { transform: translateY(-6px); }
}

/* ── SMALLER MOBILE (≤ 760px) ── */
@media (max-width: 760px) {
  section { padding: 64px 5vw; }
  .hero { padding: 48px 5vw; min-height: auto; }
  .cta-band { padding: 64px 5vw; }
  .pd-hero, .pricing-hero { padding: 56px 5vw 40px; }
  .sec-hd { margin-bottom: 40px; }

  .logo { font-size: 1.25rem; }
  .logo-mark { width: 38px; height: 38px; margin-right: 8px; }

  .team-grid { grid-template-columns: 1fr 1fr; }
  .fg { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ctc-grid { grid-template-columns: 1fr; gap: 28px; }
  .uc-grid { grid-template-columns: 1fr; padding: 18px; }

  .hero-sub { font-size: 1rem; }
  .btn { padding: 12px 22px; font-size: .9rem; }
}

/* ── SMALL MOBILE (≤ 640px) ── */
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: 1fr; }
  .f4-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
}

/* ── EXTRA SMALL (≤ 540px) ── */
@media (max-width: 540px) {
  nav { padding: 0 16px; }
  section { padding: 56px 16px; }
  .hero { padding: 40px 16px; }
  .cta-band { padding: 56px 16px; }
  .pd-hero, .pricing-hero { padding: 48px 16px 36px; }
  .pds { padding: 32px 16px; }
  footer { padding: 48px 16px 24px; }

  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 18px; }
  .hero-sub { margin-bottom: 28px; }

  .pc { padding: 26px 22px; }
  .modal-card { padding: 36px 24px 28px; }
  .modal-icon-wrap { width: 64px; height: 64px; margin-bottom: 18px; }
  .modal-icon-wrap svg { width: 32px; height: 32px; }
  .modal-card h3 { font-size: 1.25rem; }
  .ctc-item { padding: 14px 0; }
  .btns { width: 100%; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── TINY (≤ 460px) ── */
@media (max-width: 460px) {
  .fg { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .fr { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── LOCK BODY WHEN SIDEBAR OPEN ── */
body.nav-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════════
   MOBILE SIDEBAR NAV + HAMBURGER + RESPONSIVE OVERRIDES
═══════════════════════════════════════════════════════════ */

/* ─── HAMBURGER BUTTON ─── */
.hamburger {
  display: none; /* hidden on desktop */
  width: 40px;
  height: 40px;
  border: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 250; /* above sidebar so it stays clickable */
  transition: background .2s, border-color .2s;
}
.hamburger:hover { background: var(--primglow); border-color: var(--borderc); }
.hamburger-bars {
  position: relative;
  width: 20px;
  height: 14px;
  margin: 0 auto;
}
.hamburger-bars::before,
.hamburger-bars::after,
.hamburger-bars span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s, top .35s, background .2s;
}
.hamburger-bars::before { top: 0; }
.hamburger-bars span { top: 6px; }
.hamburger-bars::after { top: 12px; }

/* Open state — morph to X */
.hamburger.open .hamburger-bars::before { top: 6px; transform: rotate(45deg); }
.hamburger.open .hamburger-bars span { opacity: 0; }
.hamburger.open .hamburger-bars::after { top: 6px; transform: rotate(-45deg); }

/* ─── SIDEBAR BACKDROP ─── */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
[data-theme="light"] .sidebar-backdrop { background: rgba(30, 27, 75, 0.45); }
.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ════════════════════════════════════════════════════════════
   MOBILE BREAKPOINT — sidebar takes over below 900px
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Show hamburger, hide desktop nav links */
  .hamburger { display: flex; align-items: center; justify-content: center; }

  /* Compact nav — DO NOT shrink on scroll on mobile (keeps sidebar offset consistent) */
  nav, nav.compact { padding: 0 5vw; height: 64px; }
  .logo { font-size: 1.25rem; }
  .logo-mark { width: 38px; height: 38px; margin-right: 8px; }

  /* Convert .nav-links into a slide-in sidebar.
     Starts BELOW the nav so the nav (with hamburger/X button) stays visible. */
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    width: min(320px, 85vw);
    height: calc(100vh - 64px);
    background: var(--bg2);
    border-left: 1px solid var(--borderc);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 56px 24px 32px;
    z-index: 230;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
    overflow-y: auto;
  }
  [data-theme="light"] .nav-links {
    box-shadow: -20px 0 60px rgba(67, 56, 202, 0.15);
  }
  .nav-links.open { transform: translateX(0); }

  /* Sidebar links — bigger, more tappable */
  .nav-links a:not(.nav-cta) {
    padding: 16px 18px;
    font-size: 1rem;
    border-radius: 10px;
    width: 100%;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text);
    transition: color .2s, background .2s, padding-left .25s;
  }
  .nav-links a:not(.nav-cta):hover {
    background: var(--primglow);
    padding-left: 24px;
    border-radius: 10px;
    border-bottom-color: transparent;
  }
  .nav-links a.active {
    color: var(--primary);
    background: var(--primglow);
    border-radius: 10px;
    border-bottom-color: transparent;
  }

  /* CTA button — full-width inside sidebar */
  .nav-links .nav-cta {
    width: 100% !important;
    justify-content: center;
    margin-top: 20px !important;
    padding: 14px 20px !important;
    font-size: .95rem !important;
    text-align: center;
  }

  /* Theme toggle inside sidebar */
  .theme-toggle {
    margin: 24px auto 0;
    align-self: center;
  }

  /* Sidebar header (visible only on mobile) */
  .sidebar-header {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 0 0 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    position: absolute;
    top: 22px;
    left: 24px;
    right: 24px;
  }
  .sidebar-header::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: blink 2s infinite;
  }

  /* Lock body scroll when sidebar is open */
  body.sidebar-open { overflow: hidden; }

  /* ─── HERO + SECTIONS MOBILE TIGHTENING ─── */
  .hero {
    min-height: auto;
    padding: 60px 5vw 70px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub { font-size: 1rem; margin-bottom: 28px; }
  .btns .btn { flex: 1; min-width: 0; justify-content: center; }

  section { padding: 64px 5vw; }
  .sec-hd { margin-bottom: 40px; }
  h2 { margin-bottom: 12px; }
  .sec-sub { font-size: .92rem; }

  /* CTA band */
  .cta-band { padding: 70px 5vw; }
  .cta-btns .btn { flex: 1; min-width: 0; justify-content: center; }

  /* Pricing card focal scale removed on mobile (cramped otherwise) */
  .pc.feat { transform: none; }
  .pc.feat:hover { transform: translateY(-6px); }

  /* Footer tighter */
  footer { padding: 48px 5vw 28px; }
  .fg { gap: 32px; margin-bottom: 32px; }

  /* Contact form layout — single column */
  .ctc-grid { gap: 28px; }
  .fr { grid-template-columns: 1fr; gap: 0; }

  /* Steps stack neatly */
  .steps { gap: 16px; }
  .steps::before { display: none; } /* horizontal line doesn't make sense vertically */

  /* Product cards */
  .prod-card { border-radius: 16px; }
  .prod-img { height: 180px; }
  .prod-body { padding: 20px; }

  /* Why-grid stacks */
  .why-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Feature grids stack */
  .f4-grid { gap: 12px; }
  .f-card { padding: 22px; }

  /* Modal slightly smaller padding */
  .modal-card { padding: 36px 24px 28px; }
  .modal-card h3 { font-size: 1.3rem; }
  .modal-card p { font-size: .88rem; }
  .modal-icon-wrap { width: 70px; height: 70px; }
  .modal-icon-wrap svg { width: 34px; height: 34px; }
}

/* Hide sidebar header on desktop */
.sidebar-header { display: none; }

/* ─── SMALL PHONES (≤480px) — extra tightening ─── */
@media (max-width: 480px) {
  nav { padding: 0 4vw; }
  .logo { font-size: 1.15rem; }
  .logo-mark { width: 34px; height: 34px; }
  .hamburger { width: 38px; height: 38px; }

  .hero { padding: 40px 4vw 56px; }
  h1 { margin-bottom: 16px; }
  .chip { margin-bottom: 20px; font-size: .68rem; padding: 4px 12px; }

  section { padding: 48px 4vw; }
  .cta-band { padding: 56px 4vw; }

  /* Stack hero buttons vertically on tiny screens */
  .btns { flex-direction: column; width: 100%; }
  .btns .btn { width: 100%; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn { width: 100%; }

  .nav-links {
    width: 92vw;
    padding: 52px 18px 24px;
  }
  .sidebar-header { left: 18px; right: 18px; top: 20px; }

  .ctc-item { gap: 10px; }
  .ctc-val { font-size: .85rem; }

  .pds { padding: 30px 4vw; gap: 24px; }

  /* Footer single column already handled at 460px */
  footer { padding: 40px 4vw 24px; }
}

/* ─── LANDSCAPE PHONES (short-height) ─── */
@media (max-height: 500px) and (max-width: 900px) {
  .nav-links { padding-top: 50px; }
  .hero { min-height: auto; padding: 40px 5vw; }
}

/* Disable canvas on very low-end mobile if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #bg-canvas { opacity: 0.3; }
}

/* ════════════════════════════════════════════════════════════
   WHATSAPP FLOATING CHAT BUTTON
═══════════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;  /* official WhatsApp green */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.40);
  z-index: 150;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .3s,
              opacity .3s;
  animation: waPulse 2.4s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
  animation: none;
  background: #1FB755;  /* slightly darker on hover */
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* Pulsing halo to grab attention */
@keyframes waPulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.40),
                0 0 0 0 rgba(37, 211, 102, 0.50);
  }
  50% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.40),
                0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* Tooltip on hover — desktop only */
.whatsapp-fab::before {
  content: 'Chat on WhatsApp';
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg3);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--borderc);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow);
}

.whatsapp-fab:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* Hide when sidebar is open (mobile) so they don't overlap */
body.sidebar-open .whatsapp-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* Mobile sizing */
@media (max-width: 700px) {
  .whatsapp-fab {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-fab svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-fab::before {
    display: none;  /* hide tooltip on touch devices */
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { animation: none; }
}
