/* ============================================================
   Secutor Technologies — style.css
   Warm editorial look, light + dark themes.
   ============================================================ */
:root {
  --bg: #faf9f5;
  --bg-soft: #f0eee6;
  --bg-card: #ffffff;
  --bg-input: #faf9f5;
  --border: #e4e1d6;
  --border-strong: #cbc7b9;
  --text: #141413;
  --text-dim: #63615a;
  --accent: #d97757;
  --accent-strong: #b85c3e;
  --accent-soft: rgba(217, 119, 87, 0.10);
  --btn-bg: #141413;
  --btn-fg: #faf9f5;
  --invert-bg: #141413;
  --invert-fg: #f0eee6;
  --invert-dim: #a8a599;
  --ok: #5f8d4e;
  --err: #c04b3c;
  --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.05);
  --shadow-md: 0 2px 6px rgba(20, 20, 19, 0.05), 0 12px 32px rgba(20, 20, 19, 0.07);
  --particle-dot: 217, 119, 87;
  --particle-line: 20, 20, 19;
  --radius: 18px;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-logo: "Space Grotesk", var(--font-body);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* the secutor-helmet mark, masked rather than <img> so it takes the colour of
     whatever it sits on (nav chip, preloader, chatbot avatar) in both themes.
     build.ps1 inlines this one url() as a data URI for the standalone files. */
  --logo-mask: url(../logo.svg) center / contain no-repeat;
}

[data-theme="dark"] {
  --bg: #191817;
  --bg-soft: #201f1d;
  --bg-card: #232220;
  --bg-input: #191817;
  --border: #37352f;
  --border-strong: #4d4a41;
  --text: #f0eee6;
  --text-dim: #a8a599;
  --accent: #d97757;
  --accent-strong: #e08b6d;
  --accent-soft: rgba(217, 119, 87, 0.14);
  --btn-bg: #f0eee6;
  --btn-fg: #141413;
  --invert-bg: #f0eee6;
  --invert-fg: #141413;
  --invert-dim: #63615a;
  --ok: #7fb36a;
  --err: #e0705e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.35);
  --particle-dot: 217, 119, 87;
  --particle-line: 240, 238, 230;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

::selection { background: rgba(217, 119, 87, 0.28); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 550; line-height: 1.12; letter-spacing: -0.01em; }

img, svg, canvas { max-width: 100%; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); }

.grad-text { color: var(--accent); font-style: italic; }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark {
  width: 84px; height: 84px; background: var(--accent);
  -webkit-mask: var(--logo-mask); mask: var(--logo-mask);
  animation: mark-pulse 1.1s ease-in-out infinite;
}
@keyframes mark-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 150;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: padding 0.4s;
}
/* blur lives on a pseudo-element: backdrop-filter on .nav itself would
   turn it into the containing block for the fixed mobile menu overlay */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  opacity: 0; transition: opacity 0.4s;
}
.nav.scrolled { padding: 11px 0; }
.nav.scrolled::before { opacity: 1; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.logo-mark {
  flex-shrink: 0;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-fg); border-radius: 12px;
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s;
}
.logo-mark::before {
  content: ""; width: 86%; height: 86%;
  background: currentColor;
  -webkit-mask: var(--logo-mask); mask: var(--logo-mask);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); background: var(--accent); color: #fff; }
.logo-text {
  font-family: var(--font-logo); font-size: 1.15rem; font-weight: 400;
  letter-spacing: 0.01em; white-space: nowrap; overflow: hidden;
  /* --logo-w is set to the measured text width by JS, so the collapse
     starts moving immediately instead of eating through slack space */
  max-width: var(--logo-w, 220px); opacity: 1;
  transition: max-width 0.7s var(--ease), opacity 0.45s ease 0.05s,
              transform 0.7s var(--ease), margin 0.7s var(--ease);
}
.logo-text b { font-weight: 700; }
/* business name tucks into the mark on scroll */
.nav.scrolled .logo-text { max-width: 0; opacity: 0; margin-left: -10px; transform: translateX(-8px); }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 8px 11px; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--accent-soft); }

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

/* language switch */
.lang-switch {
  position: relative; display: flex;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px;
}
.lang-btn {
  position: relative; z-index: 1;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  transition: color 0.3s;
}
.lang-btn.active { color: var(--btn-fg); }
.lang-pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: var(--btn-bg); border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.4s;
}
.lang-switch[data-active="en"] .lang-pill { transform: translateX(100%); }

/* theme toggle */
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-dim); cursor: pointer;
  transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.burger span {
  display: block; width: 22px; height: 2px; margin: 5px 0;
  background: var(--text); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none;
  animation: glow-float 14s ease-in-out infinite alternate;
}
.hero-glow-1 { width: 560px; height: 560px; top: -160px; right: -120px; background: rgba(217, 119, 87, 0.13); }
.hero-glow-2 { width: 480px; height: 480px; bottom: -180px; left: -140px; background: rgba(184, 92, 62, 0.09); animation-delay: -7s; }
@keyframes glow-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 40px) scale(1.1); }
}

.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 18px;
  font-size: 0.85rem; color: var(--text-dim); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(95, 141, 78, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 141, 78, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(95, 141, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 141, 78, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  font-weight: 550; letter-spacing: -0.02em;
  margin: 30px auto 24px; max-width: 920px;
}
.typewriter { position: relative; white-space: nowrap; }
.typewriter::after {
  content: ""; display: inline-block;
  width: 3px; height: 0.8em; margin-left: 5px;
  background: var(--accent); vertical-align: -0.05em;
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-sub {
  max-width: 620px; margin: 0 auto;
  color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.16rem);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

.hero-stats {
  display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 52px);
  margin-top: 68px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600;
  color: var(--accent);
}
.stat-label { font-size: 0.85rem; color: var(--text-dim); }
.stat-sep { width: 1px; height: 44px; background: var(--border-strong); }

.hero-scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid var(--border-strong); border-radius: 14px;
}
.hero-scroll-hint span {
  position: absolute; top: 7px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 4px; background: var(--accent);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ ABOUT PAGE ============ */
.about-hero { padding: 190px 0 30px; text-align: center; }
.about-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 26px 0 22px; letter-spacing: -0.02em; }
.about-lead { color: var(--text-dim); font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 640px; margin: 0 auto; }
.about-story p { color: var(--text-dim); font-size: 1.05rem; margin-top: 18px; }
.about-story .est-label { margin-bottom: 4px; }
.about-statement {
  margin: 44px 0 0; padding: 8px 0 8px 28px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; color: var(--text);
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 16px 0; overflow: hidden;
  background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 38px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
.marquee-track i { font-style: italic; font-family: var(--font-display); color: var(--accent); opacity: 0.75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: clamp(84px, 10vw, 136px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(46px, 6vw, 72px); }
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid transparent;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section-sub { color: var(--text-dim); font-size: 1.06rem; margin-top: 16px; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 55%);
  transition: opacity 0.4s; pointer-events: none;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; color: var(--accent);
  background: var(--accent-soft);
  transition: transform 0.4s var(--ease);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-card h3 { font-size: 1.22rem; }
.service-card p { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.service-price {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 0.95rem;
  color: var(--accent);
}
.service-card-cta { background: var(--bg-soft); border-color: var(--border-strong); }
.service-card-cta .btn { align-self: flex-start; }

/* ============ FEATURE ============ */
.feature { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.feature-text .section-title, .coverage-text .section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.feature-list { list-style: none; margin: 30px 0; display: flex; flex-direction: column; gap: 15px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-dim); }
.check {
  flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 50%;
}

/* browser mockup */
.browser-mock {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser-bar i:nth-child(1) { background: #e0705e; }
.browser-bar i:nth-child(2) { background: #e5b567; }
.browser-bar i:nth-child(3) { background: #7fb36a; }
.browser-url {
  margin-left: 12px; font-size: 0.75rem; color: var(--text-dim);
  background: var(--bg-input); border: 1px solid var(--border);
  padding: 4px 14px; border-radius: 8px; flex: 1; text-align: center;
}
.browser-body { padding: 26px; position: relative; min-height: 320px; }
.mock-line { height: 14px; border-radius: 7px; background: var(--bg-soft); margin-bottom: 12px; }
.mock-line.w60 { width: 60%; }
.mock-line.w40 { width: 40%; }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  animation: shimmer 2.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.mock-btn { width: 110px; height: 34px; border-radius: 999px; background: var(--btn-bg); margin-top: 6px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.mock-card { height: 72px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.mock-chat {
  position: absolute; right: 18px; bottom: 18px; width: 205px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 13px;
  box-shadow: var(--shadow-md);
  animation: chat-float 4s ease-in-out infinite;
}
@keyframes chat-float { 50% { transform: translateY(-8px); } }
.mock-chat-head { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; color: var(--accent); margin-bottom: 9px; }
.mock-chat-msg { font-size: 0.72rem; padding: 7px 10px; border-radius: 10px; margin-bottom: 7px; max-width: 90%; line-height: 1.45; }
.mock-chat-bot { background: var(--bg-soft); color: var(--text-dim); border-bottom-left-radius: 3px; }
.mock-chat-user { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.mock-chat-typing { display: flex; gap: 4px; padding: 4px 2px 0; }
.mock-chat-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim);
  animation: typing 1.2s infinite;
}
.mock-chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.mock-chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 60% { opacity: 0.4; } }

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.price-card h3 { font-size: 1.28rem; }
.price-card ul { list-style: none; display: flex; flex-direction: column; flex: 1; }
.price-card li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--border);
  font-size: 0.92rem; color: var(--text-dim);
}
.price-card li:last-child { border-bottom: none; }
.price-card li b { font-family: var(--font-display); font-size: 1.02rem; color: var(--text); white-space: nowrap; }
.price-card li i { font-style: normal; font-weight: 400; font-size: 0.78rem; color: var(--text-dim); }
.price-card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.price-badge {
  position: absolute; top: -12px; right: 22px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.pricing-note {
  text-align: center; color: var(--text-dim); font-size: 0.92rem;
  max-width: 680px; margin: 40px auto 0;
  padding: 16px 24px; border: 1px dashed var(--border-strong); border-radius: 14px;
}

/* ============ ESTIMATOR ============ */
.estimator {
  margin-top: clamp(50px, 7vw, 80px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md);
}
.estimator-head {
  padding: clamp(28px, 4vw, 40px) clamp(26px, 4vw, 44px) 0;
  text-align: center;
}
.estimator-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.estimator-head p { color: var(--text-dim); margin-top: 8px; font-size: 0.95rem; }
.estimator-body {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(26px, 4vw, 40px) clamp(26px, 4vw, 44px);
}
.est-label {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim); margin: 0 0 12px;
}
.est-services { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.est-chip {
  background: var(--bg-input); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.est-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.est-chip.active { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.est-addons { display: flex; flex-direction: column; gap: 10px; }
.est-addons .checkbox { padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.25s, background 0.25s; }
.est-addons .checkbox:hover { border-color: var(--border-strong); }
.est-addons .checkbox:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.est-addons .checkbox-text { font-size: 0.88rem; color: var(--text); }
.est-addons .checkbox-text i { font-style: normal; color: var(--text-dim); font-size: 0.8rem; display: block; }
.est-empty { color: var(--text-dim); font-size: 0.88rem; font-style: italic; }
.est-result {
  background: var(--invert-bg); color: var(--invert-fg);
  border-radius: 18px; padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  align-self: start; position: sticky; top: 90px;
}
.est-result-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--invert-dim); }
.est-range {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600;
  color: var(--accent); line-height: 1.1;
}
.est-monthly { font-size: 0.95rem; color: var(--invert-dim); min-height: 1.5em; }
.est-note { font-size: 0.78rem; color: var(--invert-dim); margin: 10px 0 16px; }
.est-result .btn { background: var(--accent); color: #fff; }
.est-result .btn:hover { background: var(--accent-strong); }
@keyframes pop-num { from { transform: scale(0.94); opacity: 0.4; } }

/* ============ PROCESS ============ */
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
.process-step {
  position: relative; padding: 30px 26px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.process-step:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.process-num {
  font-family: var(--font-display); font-style: italic; font-size: 2.4rem; font-weight: 500;
  color: var(--accent); opacity: 0.85;
  display: block; margin-bottom: 12px;
}
.process-step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.process-step p { color: var(--text-dim); font-size: 0.9rem; }

/* ============ DEMO SHOWCASE ============ */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.demo-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.demo-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
/* stylized mini-preview of the Lustra demo (deliberately light in both themes) */
.demo-thumb {
  position: relative; aspect-ratio: 16 / 7.5;
  background: #fafaf7; border-bottom: 1px solid var(--border);
  display: grid; place-content: center; text-align: center; gap: 4px;
}
.demo-thumb > b {
  font-family: var(--font-logo); font-weight: 700; font-size: 1.9rem;
  letter-spacing: -0.03em; color: #101312;
}
.demo-thumb > b i { font-style: normal; color: #0f766e; }
.demo-thumb-line { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: #6e736f; }
.demo-thumb-split {
  position: absolute; left: 22px; right: 22px; bottom: 18px; height: 10px;
  border-radius: 999px; overflow: visible;
  background: linear-gradient(90deg, #b98d5f 0 50%, #8fe3c8 50% 100%);
}
.demo-thumb-split i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1px solid #d8d8d0; box-shadow: 0 2px 8px rgba(16, 19, 18, 0.2);
  transition: left 0.6s var(--ease);
}
.demo-card:hover .demo-thumb-split i { left: 72%; }

/* stylized mini-preview of the Velara demo (deliberately dark in both themes) */
.demo-thumb.thumb-velara { background: #0c0c0b; }
.demo-thumb.thumb-velara > b { color: #f2ede3; }
.demo-thumb.thumb-velara > b i { color: #d8b784; }
.demo-thumb.thumb-velara .demo-thumb-line { color: #9a9c92; }
.demo-thumb-radar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 34px; height: 34px;
}
.demo-thumb-radar svg { width: 100%; height: 100%; }
.demo-thumb-radar circle { fill: none; stroke: rgba(242,237,227,0.35); stroke-width: 1; }
.demo-thumb-radar .hub { fill: none; stroke: #d8b784; stroke-width: 1.4; }
.demo-thumb-radar .spin { transform-origin: 17px 17px; animation: demo-radar-spin 6s linear infinite; }
.demo-card:hover .demo-thumb-radar .spin { animation-duration: 1.6s; }
@keyframes demo-radar-spin { to { transform: rotate(360deg); } }

/* stylized mini-preview of the Cascada demo (deep water-navy in both themes) */
.demo-thumb.thumb-cascada { background: #0b1d24; }
.demo-thumb.thumb-cascada > b { color: #f5f1e6; }
.demo-thumb.thumb-cascada > b i { color: #7dd8ea; }
.demo-thumb.thumb-cascada .demo-thumb-line { color: #9fb0b2; }
.demo-thumb-wave { position: absolute; left: 22px; right: 22px; bottom: 16px; height: 20px; }
.demo-thumb-wave svg { width: 100%; height: 100%; overflow: visible; }
.demo-thumb-wave .w1, .demo-thumb-wave .w2 { animation: demo-wave-drift 3.2s ease-in-out infinite; }
.demo-thumb-wave .w2 { animation-duration: 4s; animation-direction: reverse; }
.demo-card:hover .demo-thumb-wave .w1, .demo-card:hover .demo-thumb-wave .w2 { animation-duration: 1.1s; }
@keyframes demo-wave-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }

.demo-info { padding: 22px 24px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.demo-info > b { font-family: var(--font-display); font-size: 1.15rem; }
.demo-info > span { color: var(--text-dim); font-size: 0.9rem; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.demo-tags span {
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px;
}
.demo-open { padding: 16px 24px 22px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.demo-card:hover .demo-open { text-decoration: underline; text-underline-offset: 3px; }
.demo-card-soon { border-style: dashed; padding-bottom: 24px; }
.demo-card-soon .demo-info { padding-top: 26px; }
.demo-card-soon .btn { align-self: flex-start; margin: 16px 24px 0; }

/* ============ COVERAGE ============ */
.coverage { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.coverage-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.ro-map { width: min(560px, 100%); margin: 0 auto; display: block; overflow: visible; }
.map-outline {
  stroke: var(--accent); stroke-width: 2; stroke-linejoin: round;
  fill: var(--accent-soft);
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.coverage-visual.visible .map-outline { animation: map-draw 2.2s var(--ease) forwards; }
@keyframes map-draw { to { stroke-dashoffset: 0; } }

.map-links line {
  stroke: var(--accent); stroke-width: 1; opacity: 0;
  stroke-dasharray: 5 7;
  animation: link-march 1.2s linear infinite;
}
.coverage-visual.visible .map-links line { opacity: 0.4; transition: opacity 0.8s 1.6s; }
@keyframes link-march { to { stroke-dashoffset: -12; } }

.map-city .dot { fill: var(--accent-strong); }
.map-city .ring {
  fill: none; stroke: var(--accent-strong); stroke-width: 2;
  opacity: 0; transform-origin: center; transform-box: fill-box;
  animation: city-ping 3s ease-out infinite;
}
.map-city:nth-child(odd) .ring { animation-delay: 1.5s; }
@keyframes city-ping {
  0% { opacity: 0.6; transform: scale(1); }
  70% { opacity: 0; transform: scale(3.2); }
  100% { opacity: 0; transform: scale(3.2); }
}
.map-city text {
  fill: var(--text-dim); font-family: var(--font-body); font-size: 14px; font-weight: 500;
  paint-order: stroke; stroke: var(--bg-soft); stroke-width: 4px; stroke-linejoin: round;
}
.map-hq .hq-dot { fill: var(--accent); }
.map-hq .hq-glow {
  fill: var(--accent); opacity: 0.22;
  transform-origin: center; transform-box: fill-box;
  animation: hq-breathe 2.4s ease-in-out infinite;
}
@keyframes hq-breathe { 50% { transform: scale(1.5); opacity: 0.4; } }
.map-hq .hq-label rect { fill: var(--bg-card); stroke: var(--border-strong); }
.map-hq .hq-label text {
  fill: var(--text); font-family: var(--font-display); font-size: 15px; font-weight: 600;
}

.coverage-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.coverage-tags span {
  font-size: 0.84rem; color: var(--text-dim);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.coverage-tags span:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.coverage-tags .tag-more { border-style: dashed; color: var(--accent); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 15px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 550; font-size: 1.08rem;
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--accent); border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item p { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.94rem; }

/* ============ CTA BANNER ============ */
.cta-banner {
  padding: clamp(76px, 9vw, 116px) 0; text-align: center;
  background: var(--invert-bg); color: var(--invert-fg);
}
.cta-banner h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 36px; }
.cta-banner .grad-text { color: var(--accent); }
.cta-banner .btn-primary { background: var(--accent); color: #fff; }
.cta-banner .btn-primary:hover { background: var(--accent-strong); }

/* ============ CONTACT ============ */
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-details { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 20px; }
.contact-details li { display: flex; gap: 15px; align-items: flex-start; }
.contact-ico {
  flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px; color: var(--accent);
  background: var(--accent-soft);
}
.contact-ico svg { width: 21px; height: 21px; }
.contact-details b { display: block; font-family: var(--font-display); font-size: 1rem; }
.contact-details div span { color: var(--text-dim); font-size: 0.9rem; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 22px; padding: clamp(26px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
/* Honeypot: moved off-screen rather than display:none, which some bots skip.
   The form is a flex column, so it must also not eat a gap slot. */
.hp-field {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.86rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-input); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 13px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 0.94rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%; resize: vertical;
}
.form-field select { cursor: pointer; }
.form-field select option { background: var(--bg-card); color: var(--text); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); opacity: 0.7; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--err); }
.form-error { display: none; font-size: 0.78rem; color: var(--err); }
.form-error-global { text-align: center; font-size: 0.86rem; }
.form-field.invalid .form-error { display: block; animation: shake 0.4s; }
@keyframes shake {
  25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); }
}
.btn-loader {
  display: none; width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
[data-theme="dark"] .btn-loader { border-color: rgba(20, 20, 19, 0.35); border-top-color: #141413; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-form.sending .btn-loader { display: inline-block; }
.contact-form.sending .btn-label { opacity: 0.7; }

.form-success {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-card); border-radius: 22px;
  opacity: 0; visibility: hidden; transform: scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  text-align: center; padding: 30px;
}
.contact-form.sent .form-success { opacity: 1; visibility: visible; transform: scale(1); }
.success-check {
  width: 68px; height: 68px; display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 700; color: #fff;
  background: var(--ok); border-radius: 50%;
  animation: pop 0.55s var(--ease);
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.form-success b { font-family: var(--font-display); font-size: 1.4rem; margin-top: 8px; }
.form-success span:last-child { color: var(--text-dim); font-size: 0.92rem; }

/* ============ CONSENT CHECKBOXES ============ */
.form-consent { gap: 6px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-box {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; color: transparent;
  background: var(--bg-input); border: 1px solid var(--border-strong); border-radius: 7px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s var(--ease);
}
.checkbox:hover .checkbox-box { border-color: var(--accent); }
.checkbox input:checked + .checkbox-box {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: scale(1.05);
}
.checkbox input:focus-visible + .checkbox-box { box-shadow: 0 0 0 4px var(--accent-soft); }
.checkbox-text { font-size: 0.84rem; color: var(--text-dim); line-height: 1.5; }
.form-field.invalid .checkbox-box { border-color: var(--err); }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent); font: inherit; text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent-strong); }
.form-gdpr-note { font-size: 0.78rem; color: var(--text-dim); text-align: center; opacity: 0.85; }

/* ============ PRIVACY MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 20, 19, 0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.3s;
}
@keyframes fade-in { from { opacity: 0; } }
.modal-dialog {
  position: relative; width: min(680px, 100%); max-height: min(84vh, 780px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 22px;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-md);
  animation: modal-in 0.4s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(0.98); } }
.modal-dialog h2 { font-size: 1.7rem; margin-bottom: 6px; padding-right: 40px; }
.modal-updated { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 22px; }
.modal-dialog h3 { font-size: 1.08rem; margin: 22px 0 8px; color: var(--accent); }
.modal-dialog p { color: var(--text-dim); font-size: 0.92rem; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-size: 0.95rem; cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease), color 0.25s;
}
.modal-close:hover { color: var(--accent); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* ============ CHATBOT WIDGET ============ */
.chatbot { position: fixed; right: 22px; bottom: 22px; z-index: 140; }
.chatbot-fab {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-fg);
  border: none; border-radius: 50%; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.3s, transform 0.3s var(--ease);
  position: relative;
}
.chatbot-fab:hover { background: var(--accent); color: #fff; transform: scale(1.07); }
.chatbot-fab svg { width: 25px; height: 25px; }
.chatbot-fab .ico-close { display: none; }
.chatbot.open .chatbot-fab .ico-close { display: block; }
.chatbot.open .chatbot-fab .ico-chat { display: none; }
.chatbot-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 7px; border-radius: 999px;
  animation: pulse 2.4s infinite;
}
.chatbot.open .chatbot-badge { display: none; }
.chatbot-panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(370px, calc(100vw - 44px));
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.chatbot.open .chatbot-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chatbot-head {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.chatbot-avatar {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border-radius: 50%;
}
.chatbot-avatar::before {
  content: ""; width: 66%; height: 66%;
  background: currentColor;
  -webkit-mask: var(--logo-mask); mask: var(--logo-mask);
}
.chatbot-head b { font-family: var(--font-display); font-size: 1rem; display: block; line-height: 1.2; }
.chatbot-status { font-size: 0.72rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.chatbot-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chatbot-msgs {
  height: 300px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 9px;
  overscroll-behavior: contain; scroll-behavior: smooth;
}
.bot-msg {
  max-width: 85%; padding: 9px 13px; border-radius: 14px;
  font-size: 0.86rem; line-height: 1.5;
  animation: msg-in 0.35s var(--ease);
}
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.bot-msg.from-bot { background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.bot-msg.from-user { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bot-typing { display: flex; gap: 4px; padding: 12px 14px; background: var(--bg-soft); border-radius: 14px; border-bottom-left-radius: 4px; align-self: flex-start; }
.bot-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: typing 1.2s infinite; }
.bot-typing i:nth-child(2) { animation-delay: 0.15s; }
.bot-typing i:nth-child(3) { animation-delay: 0.3s; }
.chatbot-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.chatbot-quick button {
  background: var(--accent-soft); border: 1px solid transparent;
  color: var(--accent); font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.chatbot-quick button:hover { background: var(--accent); color: #fff; }
.chatbot-input {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.chatbot-input input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 10px 16px;
  color: var(--text); font-family: var(--font-body); font-size: 0.88rem;
}
.chatbot-input input:focus { outline: none; border-color: var(--accent); }
.chatbot-input button {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; border: none; border-radius: 50%; cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.chatbot-input button:hover { background: var(--accent-strong); transform: scale(1.06); }
.chatbot-input button svg { width: 17px; height: 17px; }
.chatbot-note {
  font-size: 0.68rem; color: var(--text-dim); text-align: center;
  padding: 0 14px 11px; opacity: 0.8;
}

/* ============ CONSENT BANNER ============ */
.consent-banner {
  position: fixed; left: 22px; bottom: 22px; z-index: 145;
  width: min(420px, calc(100vw - 44px));
}
.consent-banner[hidden] { display: none; }
.consent-card {
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 22px 24px;
  box-shadow: var(--shadow-md);
  animation: consent-in 0.5s var(--ease);
}
@keyframes consent-in { from { opacity: 0; transform: translateY(18px); } }
.consent-card b { font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: 7px; }
.consent-card p { color: var(--text-dim); font-size: 0.84rem; line-height: 1.55; margin-bottom: 15px; }
.consent-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.consent-actions .link-btn { font-size: 0.82rem; margin-left: auto; }

/* ============ WHATSAPP BUTTON ============ */
.wa-fab {
  position: fixed; right: 22px; bottom: 92px; z-index: 130;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: #25d366; color: #fff; border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.wa-fab[hidden] { display: none; }
.wa-fab:hover { background: #1eb457; transform: scale(1.07); }
.wa-fab svg { width: 27px; height: 27px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-top: 64px; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 18px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col b { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 6px; }
.footer-col a, .footer-col span { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.84rem;
}

/* ============ BACK TO TOP ============ */
.back-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s, color 0.3s, border-color 0.3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: var(--accent); border-color: var(--accent); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* language fade transition */
[data-i18n], [data-i18n-placeholder] { transition: opacity 0.25s; }
body.lang-switching [data-i18n] { opacity: 0; }

/* ============ RESPONSIVE ============ */
/* Between the burger breakpoint and ~1255px the inline nav links leave no room
   for the wordmark, and flex would silently squeeze/clip it. Collapse it into
   the mark instead — the same state the nav uses once scrolled. Threshold is
   measured, not guessed: nav needs ~1154px of container, and .container is
   min(1160px, 92%), so the wordmark only fits from ~1255px of viewport up. */
@media (min-width: 821px) and (max-width: 1254px) {
  .logo-text { max-width: 0; opacity: 0; margin-left: -10px; }
}
@media (max-width: 980px) {
  .feature-inner, .coverage-inner, .contact-inner, .estimator-body { grid-template-columns: 1fr; }
  .coverage-visual { order: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .est-result { position: static; width: 100%; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; align-items: center; gap: 10px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1.3rem; padding: 12px 24px; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stat-sep { display: none; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 600px) {
  /* compact nav so the full logo text fits next to the controls on phones */
  .logo { gap: 8px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-text { font-size: 1rem; }
  .nav-actions { gap: 7px; }
  .theme-toggle { width: 34px; height: 34px; }
  .theme-toggle svg { width: 15px; height: 15px; }
  .lang-btn { padding: 4px 9px; font-size: 0.72rem; }
}
/* very narrow phones: language switch moves into the burger menu */
.lang-inline { display: none; gap: 10px; margin-top: 20px; }
.lang-inline .lang-btn {
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 9px 22px; font-size: 0.9rem;
}
.lang-inline .lang-btn.active { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
@media (max-width: 380px) {
  .nav-actions > .lang-switch { display: none; }
  .nav-links.open .lang-inline { display: flex; }
}
@media (max-width: 560px) {
  .footer-inner { 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; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
