/* ---------- Theme tokens ---------- */
:root {
  --brand: #1d4ed8;
  --brand-2: #3b82f6;
  --grad: linear-gradient(135deg, #0a2a66 0%, #1d4ed8 100%);
  --grad-text: linear-gradient(135deg, #0a2a66 0%, #2563eb 100%);
  --accent: #1d4ed8;
  --accent-soft: rgba(29, 78, 216, .08);
  --accent-line: rgba(29, 78, 216, .35);
  --logo-ink: #1f487c;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f2f5fb;
  --ink: #0b1630;
  --muted: #55627d;
  --line: #e2e8f3;
  --nav-bg: rgba(255, 255, 255, .92);
  --input-bg: #f2f5fb;
  --hero-bg: #061230;
  --deep: #061230;
  --shadow: 0 10px 30px rgba(10, 31, 68, .08);
  --shadow-lg: 0 20px 50px rgba(10, 31, 68, .16);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grad: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    --grad-text: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, .12);
    --accent-line: rgba(96, 165, 250, .4);
    --logo-ink: #ffffff;
    --bg: #050b1a;
    --surface: #0c1630;
    --surface-soft: #081127;
    --ink: #e6ecfa;
    --muted: #9aa9c6;
    --line: rgba(148, 163, 184, .16);
    --nav-bg: rgba(5, 11, 26, .88);
    --input-bg: #081127;
    --hero-bg: #030817;
    --deep: #081127;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grad: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --grad-text: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, .12);
  --accent-line: rgba(96, 165, 250, .4);
  --logo-ink: #ffffff;
  --bg: #050b1a;
  --surface: #0c1630;
  --surface-soft: #081127;
  --ink: #e6ecfa;
  --muted: #9aa9c6;
  --line: rgba(148, 163, 184, .16);
  --nav-bg: rgba(5, 11, 26, .88);
  --input-bg: #081127;
  --hero-bg: #030817;
  --deep: #081127;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 100px 0; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .gradient-text {
  background: linear-gradient(135deg, #93c5fd, #38bdf8);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(29, 78, 216, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(29, 78, 216, .45); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-light { background: #fff; color: #0a2a66; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.btn-arrow {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.22); font-size: 13px; transition: transform .2s;
}
.btn-light .btn-arrow { background: rgba(10, 42, 102, .1); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--grad); color: #fff; font-size: 14px; }
.topbar-inner { display: flex; justify-content: center; text-align: center; padding: 9px 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100; background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: #1f487c; box-shadow: 0 6px 16px rgba(31, 72, 124, .35);
}
.logo-mark svg { width: 38px; height: auto; fill: #fff; }
.logo-text {
  font-family: "Michroma", "Copperplate", "Copperplate Gothic Bold", sans-serif; font-weight: 400;
  font-size: 19px; letter-spacing: .5px; line-height: 1; text-transform: uppercase; -webkit-text-stroke: .35px currentColor;
  display: flex; flex-direction: column; color: var(--logo-ink);
}
.logo-text small {
  font-family: inherit; font-size: 8.4px; letter-spacing: 5.4px; margin: 6px -5.4px 0 0; color: var(--muted); -webkit-text-stroke: 0;
}
.logo.light .logo-text { color: #fff; }
.logo.light .logo-text small { color: #94a3b8; }
.logo.light .logo-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); transition: width .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--accent-line); transform: rotate(-15deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; height: 2px; width: 26px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; margin-inline: auto; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); color: #fff; overflow: hidden; padding: 110px 0 120px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; background: #1d4ed8; top: -160px; right: -80px; animation: drift 12s ease-in-out infinite alternate; }
.glow-2 { width: 420px; height: 420px; background: #0e3a8a; bottom: -180px; left: -100px; animation: drift 14s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero-inner > *, .about-inner > *, .contact-inner > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.4); color: #bfdbfe;
}
.eyebrow svg { width: 15px; height: 15px; fill: #60a5fa; flex: none; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; margin: 22px 0; }
.hero-content > p { font-size: 18px; color: #b6c2dc; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 36px 0 44px; }
.hero-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 580px; }
.mini-card {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px);
}
.mini-card h4 { font-size: 15px; margin-bottom: 2px; }
.mini-card p { font-size: 13px; color: #9aa8c6; line-height: 1.5; }
.mini-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #1d4ed8, #3b82f6); display: grid; place-items: center; }
.mini-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { display: grid; place-items: center; }
.shield-wrap { position: relative; width: 420px; max-width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(59,130,246,.35); }
.ring-1 { inset: 12%; animation: pulse 4s ease-in-out infinite; }
.ring-2 { inset: 0; border-style: dashed; border-color: rgba(56,189,248,.35); animation: spin 40s linear infinite; }
.ring-3 { inset: 24%; background: radial-gradient(circle, rgba(29,78,216,.4), transparent 70%); border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.05); opacity: .6; } }
.shield { width: 44%; filter: drop-shadow(0 20px 40px rgba(29,78,216,.6)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.float-tag {
  position: absolute; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: 12px; background: rgba(8,18,45,.88); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); white-space: nowrap; animation: float 6s ease-in-out infinite;
}
.tag-1 { top: 10%; left: -4%; }
.tag-2 { top: 46%; right: -8%; animation-delay: 1s; }
.tag-3 { bottom: 8%; left: 6%; animation-delay: 2s; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.green { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.dot.blue { background: #3b82f6; box-shadow: 0 0 10px #3b82f6; }
.dot.cyan { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }

/* ---------- Tech strip ---------- */
.tech-strip { border-bottom: 1px solid var(--line); padding: 34px 0; text-align: center; }
.tech-strip p { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.tech-list span { font-size: 20px; font-weight: 800; color: var(--muted); opacity: .7; letter-spacing: -.3px; transition: color .2s, opacity .2s; }
.tech-list span:hover { color: var(--accent); opacity: 1; }

/* ---------- Section heads ---------- */
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  padding: 6px 14px; background: var(--accent-soft); border-radius: 999px; margin-bottom: 16px;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -1px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-visual { position: relative; }
.about-card.main { background: var(--grad); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); }
.code-window { background: #060f26; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.cw-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #0c1836; }
.cw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.cw-bar i:nth-child(2) { background: #f59e0b; }
.cw-bar i:nth-child(3) { background: #22c55e; }
.cw-bar span { margin-left: 10px; color: #8a9bc0; font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.code-window pre { padding: 22px; color: #cbd5e1; font: 14px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.code-window .c { color: #60a5fa; }
.code-window .ok { color: #22c55e; }
.blink { animation: blink 1s steps(1) infinite; color: #60a5fa; }
@keyframes blink { 50% { opacity: 0; } }
.exp-badge {
  position: absolute; right: -24px; bottom: -30px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; max-width: 270px;
}
.exp-badge strong { font-size: 44px; font-weight: 800; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.exp-badge span { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.about-content p { color: var(--muted); font-size: 17px; margin: 20px 0 24px; }
.about-content p strong { color: var(--ink); }
.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 600; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 12px; display: grid; place-items: center;
}

/* ---------- Services ---------- */
.services { background: var(--surface-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 30px;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--grad); transition: width .4s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-icon {
  flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center;
  margin-bottom: 24px; transition: background .3s;
}
.service-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.service-card:hover .service-icon { background: var(--grad); }
.service-card:hover .service-icon svg { stroke: #fff; }
.service-card h3 { font-size: 21px; line-height: 1.3; margin-bottom: 12px; letter-spacing: -.3px; }
.service-card p { color: var(--muted); font-size: 15px; flex: 1; }
.card-link { margin-top: 22px; font-weight: 700; color: var(--accent); font-size: 15px; transition: letter-spacing .2s; display: inline-block; }
.card-link:hover { letter-spacing: .4px; }
.service-card.featured { border-color: var(--accent-line); }
.service-card.wide { grid-column: span 2; flex-direction: row; gap: 26px; align-items: flex-start; }
.service-card.wide .service-icon { margin-bottom: 0; }
.cta-card { background: var(--grad); color: #fff; border: 0; justify-content: center; }
.cta-card::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); right: -90px; bottom: -90px;
}
.cta-card h3 { font-size: 24px; }
.cta-card p { color: rgba(255,255,255,.85); flex: 0; margin-bottom: 22px; }
.cta-card .btn { align-self: flex-start; position: relative; z-index: 1; }

/* ---------- Solutions tiles ---------- */
.solutions { padding-top: 90px; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-tile {
  display: grid; place-items: center; text-align: center; min-height: 100px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 19px; font-weight: 600; color: var(--ink);
  transition: transform .25s, box-shadow .25s, border-color .25s, color .25s;
}
.solution-tile:hover { transform: translateY(-4px); color: var(--accent); border-color: var(--accent-line); box-shadow: var(--shadow); }

/* ---------- Stats ---------- */
.stats {
  background: var(--deep);
  background-image: radial-gradient(circle at 20% 0%, rgba(29,78,216,.45), transparent 50%), radial-gradient(circle at 90% 100%, rgba(14,165,233,.25), transparent 50%);
  color: #fff; padding: 70px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat strong, .stat span { font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -1px; }
.stat span { color: #60a5fa; }
.stat p { color: #a9b6d3; font-weight: 600; margin-top: 4px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 32px 26px; border-radius: 20px; background: var(--surface-soft); border: 1px solid var(--line); transition: transform .3s, background .3s, color .3s; }
.step:hover { transform: translateY(-6px); background: var(--grad); color: #fff; }
.step:hover p { color: rgba(255,255,255,.85); }
.step:hover .step-num { color: rgba(255,255,255,.35); }
.step-num { font-size: 48px; font-weight: 800; line-height: 1; color: var(--accent); opacity: .25; display: block; margin-bottom: 14px; transition: color .3s; }
.step:hover .step-num { opacity: 1; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; transition: color .3s; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 0; margin: 100px 0; }
.cta-inner {
  background: var(--grad); color: #fff; border-radius: 28px; padding: 56px 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 30px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(26px, 3vw, 36px); }
.cta-inner p { color: rgba(255,255,255,.85); margin-top: 8px; font-size: 17px; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 17px; margin: 16px 0 32px; }
.info-item { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.info-item:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.info-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; }
.info-icon.wa { background: #25d366; }
.info-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-icon svg.fill { fill: #fff; stroke: none; width: 26px; height: 26px; }
.info-item small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.info-item span { font-weight: 700; font-size: 17px; word-break: break-word; }
.info-item:hover span { color: var(--accent); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 24px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-weight: 500; background: var(--input-bg); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand-2); background: var(--surface); box-shadow: 0 0 0 4px rgba(59,130,246,.18);
}
.contact-form .invalid { border-color: #ef4444; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form button:disabled { opacity: .7; cursor: wait; transform: none; }
.form-status { margin-top: 14px; font-weight: 600; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }
.form-status a { color: var(--accent); text-decoration: underline; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.form-note a { color: var(--accent); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #040a1a; color: #a9b6d3; padding-top: 44px; border-top: 1px solid rgba(148, 163, 184, .14); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.footer-links a { font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 26px; font-size: 14px; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- WhatsApp chat ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; align-items: flex-end; gap: 14px; }
.wa-btn {
  position: relative; flex: none; width: 62px; height: 62px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .2s;
}
.wa-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: wa-ping 2.4s ease-out infinite;
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-btn:hover { transform: scale(1.07); }
.wa-btn svg { width: 34px; height: 34px; fill: #fff; }
.wa-badge {
  position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: #ef4444; color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg);
}
.wa-badge[hidden] { display: none; }
.wa-bubble {
  position: relative; max-width: 270px; margin-bottom: 10px; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 15px; line-height: 1.5; opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.wa-bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble::after {
  content: ""; position: absolute; right: -7px; bottom: 18px; width: 14px; height: 14px; background: var(--surface);
  border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.wa-bubble strong { color: #16a34a; }
:root[data-theme="dark"] .wa-bubble strong { color: #4ade80; }
.wa-close {
  position: absolute; left: -12px; top: -12px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg);
  background: #64748b; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.wa-close:hover { background: #475569; }

/* ---------- Legal pages ---------- */
.page-hero { position: relative; background: var(--hero-bg); color: #fff; padding: 80px 0 70px; overflow: hidden; }
.page-hero .grid-overlay { mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -1px; line-height: 1.1; margin: 16px 0 10px; }
.page-hero p { color: #b6c2dc; }
.legal { padding: 70px 0 100px; }
.legal-inner { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }
.legal-toc { position: sticky; top: 110px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--surface-soft); }
.legal-toc h4 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { list-style: none; display: grid; gap: 6px; counter-reset: toc; }
.legal-toc a { font-size: 14px; font-weight: 600; color: var(--ink); opacity: .8; }
.legal-toc a:hover { color: var(--accent); opacity: 1; }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 24px; letter-spacing: -.3px; margin: 44px 0 14px; scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 16px; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 16px; display: grid; gap: 6px; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 30px; }
.legal-note p { margin: 0; color: var(--ink); font-size: 15px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .shield-wrap { width: 320px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.wide { grid-column: span 1; flex-direction: column; gap: 0; }
  .service-card.wide .service-icon { margin-bottom: 24px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg);
    padding: 10px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 14px; border-bottom: 0 !important; color: #fff !important; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  .exp-badge { right: 12px; }
  .about-card.main { padding: 20px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
  .legal-inner { grid-template-columns: 1fr; gap: 30px; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .topbar p { font-size: 12px; }
  .logo-text { font-size: 16px; }
  .logo-text small { font-size: 7.1px; letter-spacing: 4.5px; margin-right: -4.5px; }
  .logo-mark { width: 44px; height: 44px; }
  .logo-mark svg { width: 33px; }
  .hero { padding: 60px 0 80px; }
  .hero-mini, .services-grid, .process-grid, .form-row, .solutions-grid, .stats-grid { grid-template-columns: 1fr; }
  .shield-wrap { width: 280px; }
  .float-tag { font-size: 11px; padding: 8px 12px; }
  .tag-1 { left: 0; }
  .tag-2 { right: 0; }
  .contact-form { padding: 28px 22px; }
  .cta-banner { margin: 72px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-bubble { max-width: 220px; font-size: 14px; }
}
