/* ==========================================================================
   EwebVision — main stylesheet
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --ink: #0b1020;
  --ink-2: #273047;
  --muted: #5b6478;
  --line: #e6e8f0;
  --brand: #5b4cf5;
  --brand-dark: #4636e0;
  --brand-2: #00b8c8;
  --accent-soft: #eeecff;
  --dark: #0a0d1f;
  --dark-2: #121633;
  --dark-line: rgba(255, 255, 255, 0.1);
  --whatsapp: #25d366;
  --gradient: linear-gradient(135deg, #5b4cf5 0%, #7b5cff 45%, #00b8c8 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(16, 24, 64, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 64, 0.28);
  --container: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #c9cde0; }
.section-dark h2, .section-dark h3 { color: #fff; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; color: #fff; }

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

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-dark .eyebrow { background: rgba(123, 92, 255, 0.18); color: #b9b0ff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-dark .section-head p { color: #a3a8c3; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 12px 28px -10px rgba(91, 76, 245, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px -10px rgba(91, 76, 245, .85); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { color: #fff; background: #1ebe5a; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled,
.site-header.is-solid,
.site-header.nav-open {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-color: var(--line);
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: -0.02em; }
.logo:hover { color: #fff; }
.logo-mark { width: 36px; height: 36px; }
.logo span b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.is-scrolled .logo, .is-solid .logo, .nav-open .logo { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a:not(.btn) { color: rgba(255,255,255,.85); font-weight: 600; font-size: 0.95rem; position: relative; padding: 6px 0; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gradient); }
.is-scrolled .main-nav a:not(.btn), .is-solid .main-nav a:not(.btn) { color: var(--ink-2); }
.is-scrolled .main-nav a:not(.btn):hover, .is-solid .main-nav a:not(.btn):hover,
.is-scrolled .main-nav a[aria-current="page"], .is-solid .main-nav a[aria-current="page"] { color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 10px; }
.is-scrolled .nav-toggle, .is-solid .nav-toggle, .nav-open .nav-toggle { color: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark);
  color: #c9cde0;
  padding: calc(var(--header-h) + 80px) 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(91, 76, 245, .45), transparent 60%),
    radial-gradient(500px 380px at 85% 30%, rgba(0, 184, 200, .30), transparent 60%),
    radial-gradient(700px 400px at 60% 110%, rgba(123, 92, 255, .30), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.15rem; color: #b4b9d3; max-width: 560px; margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  font-size: 0.88rem; font-weight: 600; color: #dfe2f2; margin-bottom: 24px;
}
.hero-badge strong { white-space: nowrap; background: var(--gradient); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: 0.92rem; color: #a3a8c3; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--brand-2); width: 18px; height: 18px; }

/* Hero visual (pure HTML/CSS mockups) */
.hero-visual { position: relative; min-height: 440px; }
.mock-card {
  position: absolute; background: rgba(18, 22, 51, 0.82); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 20px; color: #dfe2f2;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.mock-main { inset: 10px 30px auto 0; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 0.85rem; font-weight: 700; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mock-dots i:first-child { background: #ff6b81; } .mock-dots i:nth-child(2) { background: #ffc857; } .mock-dots i:nth-child(3) { background: #3ddc97; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); margin-bottom: 10px; font-size: 0.85rem; }
.mock-row .icon { width: 20px; height: 20px; color: var(--brand-2); }
.mock-row span { flex: 1; }
.pill { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill-green { background: rgba(61,220,151,.15); color: #3ddc97; }
.pill-amber { background: rgba(255,200,87,.15); color: #ffc857; }
.pill-violet { background: rgba(123,92,255,.2); color: #b9b0ff; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 12px 4px 0; }
.mock-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--gradient); opacity: .85; }
.mock-score { inset: auto 0 20px auto; width: 240px; }
.score-ring {
  width: 86px; height: 86px; border-radius: 50%; margin: 6px auto 12px;
  background: conic-gradient(var(--brand-2) 0 88%, rgba(255,255,255,.1) 88% 100%);
  display: grid; place-items: center;
}
.score-ring b { width: 68px; height: 68px; border-radius: 50%; background: var(--dark-2); display: grid; place-items: center; color: #fff; font-size: 1.3rem; }
.mock-score p { text-align: center; font-size: 0.82rem; margin: 0; color: #a3a8c3; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 0.82rem;
  padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip .icon { width: 18px; height: 18px; color: var(--brand); }
.chip-1 { top: -14px; right: 0; }
.chip-2 { bottom: 70px; left: -10px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--dark); color: #b4b9d3; padding: calc(var(--header-h) + 64px) 0 72px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(91,76,245,.45), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(0,184,200,.25), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { max-width: 680px; font-size: 1.08rem; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.88rem; margin-bottom: 18px; color: #8d93b3; }
.breadcrumb a { color: #c9cde0; }
.breadcrumb a:hover { color: #fff; }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump-links a { font-size: 0.85rem; font-weight: 600; color: #dfe2f2; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); transition: background .2s, border-color .2s; }
.jump-links a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }

/* ---------- Trust strip ---------- */
.trust { padding: 0; margin-top: -48px; position: relative; z-index: 2; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.trust-item { padding: 26px 24px; display: flex; gap: 14px; align-items: center; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .icon-wrap { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); flex-shrink: 0; }
.trust-item strong { display: block; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.trust-item span { font-size: 0.85rem; color: var(--muted); }

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

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--brand); margin-bottom: 20px;
  transition: background .25s ease, color .25s ease;
}
.card:hover .card-icon { background: var(--gradient); color: #fff; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .icon { transform: translateX(4px); }
.card-featured { border: 0; background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; border: 2px solid transparent; }
.tag { position: absolute; top: 18px; right: 18px; font-size: 0.7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--gradient); padding: 4px 10px; border-radius: 999px; }

/* ---------- Spotlight (survey & inspection) ---------- */
.spotlight .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 32px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.feature-list .icon { color: var(--brand-2); margin-top: 2px; }
.feature-list strong { color: #fff; display: block; font-size: 0.98rem; }
.industries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.industries span { font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); color: #dfe2f2; }

.phone {
  width: 290px; margin: 0 auto; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #2a2f5a, #12152e); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 8px rgba(255,255,255,.03);
  position: relative;
}
.phone-screen { background: #f6f7fb; border-radius: 30px; padding: 26px 16px 18px; color: var(--ink-2); min-height: 520px; }
.phone-notch { width: 90px; height: 22px; border-radius: 0 0 14px 14px; background: #12152e; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); }
.phone-title { font-weight: 800; color: var(--ink); font-size: 1rem; margin: 8px 0 4px; }
.phone-sub { font-size: 0.75rem; color: var(--muted); margin-bottom: 14px; }
.phone-progress { height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 16px; overflow: hidden; }
.phone-progress i { display: block; height: 100%; width: 68%; background: var(--gradient); border-radius: 6px; }
.phone-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; font-size: 0.8rem; display: flex; align-items: center; gap: 10px; }
.phone-item .icon { width: 18px; height: 18px; color: var(--brand); }
.phone-item span { flex: 1; color: var(--ink-2); font-weight: 600; }
.check { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #3ddc97; color: #fff; }
.check .icon { width: 13px; height: 13px; color: #fff; stroke-width: 3; }
.check.empty { background: transparent; border: 2px solid var(--line); }
.phone-photo { height: 90px; border-radius: 12px; margin-bottom: 10px; background: linear-gradient(135deg, rgba(91,76,245,.2), rgba(0,184,200,.25)); display: grid; place-items: center; color: var(--brand); }
.phone-btn { margin-top: 14px; text-align: center; background: var(--gradient); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 12px; border-radius: 12px; }

/* ---------- Products ---------- */
.product-hero-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: var(--dark); border-radius: 24px; padding: 48px; color: #b4b9d3; position: relative; overflow: hidden; margin-bottom: 28px;
}
.product-hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(0,184,200,.3), transparent 60%), radial-gradient(400px 300px at 0% 100%, rgba(91,76,245,.4), transparent 60%); }
.product-hero-card > * { position: relative; }
.product-hero-card h3 { color: #fff; font-size: 1.7rem; }
.product-hero-card ul { display: grid; gap: 10px; margin: 18px 0 26px; }
.product-hero-card li { display: flex; gap: 10px; align-items: flex-start; }
.product-hero-card li .icon { color: var(--brand-2); width: 20px; height: 20px; margin-top: 3px; }
.ticker { background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 20px; }
.ticker-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--dark-line); font-size: 0.88rem; color: #dfe2f2; }
.ticker-row:last-child { border-bottom: 0; }
.ticker-row b { font-weight: 700; }
.up { color: #3ddc97; } .down { color: #ff6b81; }
.disclaimer { font-size: 0.8rem; color: #8d93b3; margin: 0; }

.product-label { font-size: 0.78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.section-dark .product-label, .product-hero-card .product-label { color: var(--brand-2); }

/* ---------- Why / process ---------- */
.why-item { display: flex; gap: 18px; }
.why-item .card-icon { margin: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); flex-shrink: 0; }
.why-item h3 { margin-bottom: 6px; font-size: 1.08rem; }
.why-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.process { counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); transition: border-color .2s, box-shadow .2s, transform .2s; }
a.contact-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink-2); }
.contact-card .icon-wrap { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); flex-shrink: 0; }
.contact-card .icon-wrap.wa { background: rgba(37, 211, 102, .12); color: #128c4a; }
.contact-card small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-card strong { color: var(--ink); font-size: 1.02rem; word-break: break-word; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink); width: 100%;
  padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(91, 76, 245, .12); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-actions .btn { flex: 1; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; }
.form-error { color: #d93654; font-size: 0.85rem; margin: 10px 0 0; display: none; }
.form-error.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; background: var(--gradient); color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.1); top: -200px; right: -100px; }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -160px; left: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { color: var(--brand-dark); box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }

/* ---------- Service detail (services page) ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail.reverse .service-media { order: -1; }
.service-detail h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.service-detail > div > p { color: var(--muted); font-size: 1.02rem; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 20px 0 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.check-list .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 2px; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech span { font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.service-media {
  position: relative; border-radius: 24px; min-height: 320px; overflow: hidden;
  background: var(--dark); display: grid; place-items: center;
}
.service-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 240px at 20% 20%, rgba(91,76,245,.55), transparent 65%), radial-gradient(300px 240px at 80% 90%, rgba(0,184,200,.4), transparent 65%); }
.service-media::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.service-media .big-icon { position: relative; z-index: 1; width: 120px; height: 120px; border-radius: 32px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.service-media .big-icon .icon { width: 56px; height: 56px; stroke-width: 1.6; }
.service-media .media-chip { position: absolute; z-index: 1; background: #fff; color: var(--ink); font-size: 0.8rem; font-weight: 700; padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.media-chip.c1 { top: 28px; left: 28px; } .media-chip.c2 { bottom: 28px; right: 28px; }
.badge-special { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--gradient); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal .updated { display: inline-block; font-size: 0.88rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 8px; }
.legal .note-box { background: var(--accent-soft); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
.legal .note-box p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a3a8c3; padding: 72px 0 0; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #a3a8c3; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin: 16px 0 0; max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--brand-2); margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--dark-line); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .65);
  transition: transform .2s ease;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); z-index: -1; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .section { padding: 76px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 100px; }
  .hero .container, .spotlight .container, .contact-wrap, .service-detail, .product-hero-card { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .service-detail { gap: 32px; padding: 48px 0; }
  .service-detail.reverse .service-media { order: 0; }
  .service-media { min-height: 240px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product-hero-card { padding: 36px; }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: #fff; padding: 24px 20px 32px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a:not(.btn) { color: var(--ink-2) !important; display: block; padding: 12px 4px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"] { color: var(--brand) !important; }
  .main-nav a[aria-current="page"]::after { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .feature-list, .check-list, .form-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 380px; }
  .mock-main { inset: 10px 0 auto 0; }
  .mock-score { width: 200px; bottom: 0; }
  .chip-2 { display: none; }
  .phone { width: 260px; }
  .form-card { padding: 24px; }
  .cta-band { padding: 48px 22px; border-radius: 22px; }
  .product-hero-card { padding: 28px 22px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
