:root {
  --accent: #4baad3;
  --accent-strong: #2089ba;
  --bg: #f7fbfd;
  --surface: #ffffff;
  --surface-soft: #edf6fa;
  --text: #111827;
  --muted: #5b6f7a;
  --line: #dbe8ee;
  --shadow: 0 24px 70px rgba(23, 62, 79, .13);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--surface-soft);
  --bs-border-color: var(--line);
  --bs-link-color: var(--accent-strong);
  --bs-link-hover-color: var(--accent);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #081116;
  --surface: #101c23;
  --surface-soft: #142733;
  --text: #f3f8fb;
  --muted: #b8cad2;
  --line: #25414d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: #0c1a21;
  --bs-border-color: var(--line);
  --bs-link-color: #7cc9ea;
  --bs-link-hover-color: #a9def3;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081116;
    --surface: #101c23;
    --surface-soft: #142733;
    --text: #f3f8fb;
    --muted: #b8cad2;
    --line: #25414d;
    --shadow: 0 24px 70px rgba(0, 0, 0, .38);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: #0c1a21;
    --bs-border-color: var(--line);
    --bs-link-color: #7cc9ea;
    --bs-link-hover-color: #a9def3;
    color-scheme: dark;
  }
}

* { letter-spacing: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(75, 170, 211, .18), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--surface-soft));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--bs-link-color); text-decoration: none; }
a:hover { color: var(--bs-link-hover-color); }
.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 9999; }
.skip-link:focus { left: 1rem; background: var(--surface); padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 8px; }
.site-header { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(18px); background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 1px solid var(--line); }
.navbar-brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--text); }
.brand-mark { background: #101820; border-radius: 8px; padding: .45rem .65rem; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.brand-mark img { height: 26px; width: auto; display: block; }
.nav-link { color: var(--muted) !important; font-weight: 650; }
.nav-link:hover, .nav-link.active { color: var(--text) !important; }
.btn-accent { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-strong); --bs-btn-hover-border-color: var(--accent-strong); color: #061117; font-weight: 800; }
.btn-outline-nivei { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-outline-nivei:hover { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.theme-toggle { min-width: 42px; aspect-ratio: 1; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.page-hero { padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(1.8rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.3vw, 5rem); line-height: 1; max-width: 1080px; }
.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: clamp(4rem, 7vw, 7rem) 0 3rem; overflow: hidden; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 6.8rem); line-height: .95; font-weight: 850; max-width: 980px; }
.lead-xl { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.45rem); max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent-strong); font-weight: 800; text-transform: uppercase; font-size: .78rem; }
.glass-panel, .clean-card { background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.clean-card { padding: 1.5rem; box-shadow: none; }
.mockup { position: relative; min-height: 410px; border-radius: 18px; background: linear-gradient(145deg, var(--surface), var(--surface-soft)); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.mockup::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(75,170,211,.35), transparent 18rem); }
.mockup > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mockup::after, .case-mock::after, .blog-image::after, .service-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,17,22,.08), rgba(8,17,22,.28)); pointer-events: none; }
.mock-window { position: absolute; inset: 12% 8%; border-radius: 14px; background: color-mix(in srgb, var(--surface) 84%, transparent); border: 1px solid var(--line); padding: 1rem; }
.mock-line { height: 10px; border-radius: 99px; background: var(--line); margin: .8rem 0; }
.mock-line.short { width: 48%; background: var(--accent); }
.metric { border-top: 1px solid var(--line); padding-top: 1rem; }
.metric strong { font-size: 2rem; color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); font-weight: 700; }
.service-block { scroll-margin-top: 110px; border-left: 3px solid var(--accent); }
.anchor-nav { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow: auto; }
.anchor-pills { display: flex; flex-wrap: wrap; gap: .65rem; }
.anchor-pills a { color: var(--text); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .6rem .85rem; font-weight: 700; }
.anchor-pills a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.case-mock { position: relative; aspect-ratio: 16/10; display: grid; place-items: end start; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface-soft)); border-bottom: 1px solid var(--line); overflow: hidden; }
.case-mock img, .blog-image img, .service-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-mock span { position: relative; z-index: 1; margin: 1rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(8,17,22,.72); color: #fff; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 850; }
.blog-image { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(75,170,211,.25), rgba(17,24,39,.08)); display: grid; place-items: center; color: var(--accent-strong); font-size: 2rem; overflow: hidden; border-radius: 8px; }
.service-visual { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-soft); box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.visual-card h3 { margin-top: 1rem; }
.form-control, .form-select { background: var(--surface); color: var(--text); border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(75,170,211,.2); }
.footer { background: #071015; color: #d9e8ee; }
.footer a { color: #d9e8ee; }
.cookie-panel { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 2000; max-width: 560px; margin: 0; display: none; }
.cookie-panel.show { display: block; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.legal-box { border: 1px dashed var(--line); background: var(--surface); border-radius: 8px; padding: 1.25rem; }

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

@media (max-width: 991px) {
  .hero { min-height: auto; }
  .anchor-nav { position: static; max-height: none; }
  .cookie-panel { left: 1rem; right: 1rem; max-width: none; }
}
