:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --text: #ffffff;
  --muted: #b8c4d9;
  --line: rgba(148, 163, 184, 0.24);
  --primary: #2563eb;
  --accent: #06b6d4;
  --success: #22c55e;
  --dark: #0f172a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f8fbff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #08111f;
  --muted: #4b5870;
  --line: rgba(15, 23, 42, 0.14);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.26), transparent 28rem),
    radial-gradient(circle at 84% 10%, rgba(6, 182, 212, 0.18), transparent 26rem),
    linear-gradient(135deg, var(--bg), #07111f 48%, var(--bg));
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(6, 182, 212, 0.75); outline-offset: 3px; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 92px 0; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.55rem, 6vw, 5.75rem); max-width: 900px; }
h2 { font-size: clamp(2rem, 4vw, 4rem); max-width: 820px; }
h3 { font-size: 1.35rem; }
p { margin: 0; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 760px; }
.gradient-text {
  background: linear-gradient(90deg, #ffffff, #80e7ff 35%, #5f8fff 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .gradient-text { background: linear-gradient(90deg, #0f172a, #2563eb 50%, #06b6d4); -webkit-background-clip: text; background-clip: text; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(2, 6, 23, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .site-header.scrolled { background: rgba(248, 251, 255, 0.82); }
.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; }
.brand span { display: grid; line-height: 1.1; }
.brand small { color: var(--accent); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .mega-trigger {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 750;
  min-height: 44px;
}
.nav-links > a:hover, .mega-trigger:hover, .nav-links > a.active {
  color: var(--text);
  background: rgba(37, 99, 235, 0.16);
}
.mega { position: relative; }
.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: min(720px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
  backdrop-filter: blur(22px);
}
.mega:hover .mega-panel, .mega:focus-within .mega-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-panel a { padding: 14px; border-radius: var(--radius); border: 1px solid transparent; }
.mega-panel a:hover { border-color: var(--line); background: rgba(37, 99, 235, 0.12); }
.mega-panel strong { display: block; }
.mega-panel span { color: var(--muted); font-size: 0.9rem; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-toggle {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}
.menu-toggle { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 13px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
  box-shadow: none;
}
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
}
.btn.success { border-color: transparent; background: linear-gradient(135deg, #16a34a, var(--success)); }
.btn:hover { transform: translateY(-1px); }

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 122px 0 70px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-ctas, .button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-card {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(37, 99, 235, 0.16));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/banner-aw.png") center / cover no-repeat;
  opacity: 0.5;
}
.dashboard-preview {
  position: absolute;
  inset: 46px;
  display: grid;
  align-content: end;
  gap: 18px;
  z-index: 1;
}
.browser-bar {
  position: absolute;
  inset: 32px 32px auto;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(255,255,255,0.16);
}
.browser-bar::before { content: ""; position: absolute; left: 16px; top: 14px; width: 12px; height: 12px; border-radius: 99px; background: #ef4444; box-shadow: 20px 0 #f59e0b, 40px 0 #22c55e; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { padding: 18px; border-radius: var(--radius); background: rgba(2, 6, 23, 0.72); border: 1px solid rgba(255,255,255,0.13); backdrop-filter: blur(12px); }
.metric b { display: block; font-size: 1.65rem; }
.metric span { color: #c7d2fe; font-size: 0.88rem; }
.floating-note {
  position: absolute;
  z-index: 2;
  right: 28px;
  top: 96px;
  max-width: 240px;
  padding: 18px;
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.18);
}
.floating-note strong { display: block; font-size: 1.1rem; }
.particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1.5px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.2;
  animation: drift 18s linear infinite;
  pointer-events: none;
}

.logo-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}
.logo-track {
  display: flex;
  gap: 46px;
  padding: 20px 0;
  min-width: max-content;
  animation: marquee 24s linear infinite;
}
.logo-track span {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-head { display: grid; gap: 16px; margin-bottom: 36px; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}
.card:hover { border-color: rgba(6, 182, 212, 0.5); transform: translateY(-2px); }
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 950;
  margin-bottom: 18px;
}
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: var(--muted); }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 99px; background: var(--success); flex: 0 0 auto; }
.stat-card { text-align: center; }
.stat-card b { display: block; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-btn {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}
.filter-btn.active { color: #fff; background: var(--primary); border-color: transparent; }
.portfolio-card img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 16px; }
.process { counter-reset: step; }
.process .card { position: relative; }
.process .card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(6, 182, 212, 0.58);
  font-weight: 950;
}
.testimonial-window { overflow: hidden; }
.testimonial-track { display: flex; transition: transform 450ms ease; }
.testimonial { flex: 0 0 100%; }
.rating { color: #facc15; font-weight: 900; margin: 12px 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  text-align: left;
  font-weight: 850;
}
.faq-a { display: none; padding: 0 0 20px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.newsletter-form, .contact-form { display: grid; gap: 12px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 12px 14px;
}
textarea { min-height: 136px; resize: vertical; }
[data-theme="light"] .input, [data-theme="light"] textarea, [data-theme="light"] select { background: rgba(255,255,255,0.78); }
.form-status { min-height: 22px; color: var(--success); font-weight: 800; }

.page-hero { padding: 150px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero .container { display: grid; gap: 20px; }
.breadcrumbs { color: var(--muted); font-size: 0.92rem; }
.pricing-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; background: var(--panel); }
.pricing-toggle button { border: 0; border-radius: 6px; min-height: 40px; padding: 8px 16px; color: var(--muted); background: transparent; font-weight: 850; }
.pricing-toggle button.active { color: #fff; background: var(--primary); }
.price { font-size: 2.8rem; color: var(--text); font-weight: 950; }
.comparison { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); }
.comparison th, .comparison td { border: 1px solid var(--line); padding: 14px; text-align: left; color: var(--muted); }
.comparison th { color: var(--text); background: rgba(37, 99, 235, 0.16); }
.blog-meta { display: flex; gap: 10px; color: var(--muted); font-size: 0.92rem; flex-wrap: wrap; }
.map-frame { min-height: 320px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(6,182,212,0.15)); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.74);
  padding: 60px 0 28px;
}
[data-theme="light"] .site-footer { background: rgba(255, 255, 255, 0.62); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.footer-grid h3 { font-size: 1rem; margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); padding: 5px 0; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }

.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: grid; gap: 10px; }
.float-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.24);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 32px rgba(37,99,235,0.35);
  font-weight: 950;
}
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 44;
}
.cookie, .lead-popup {
  position: fixed;
  z-index: 60;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.cookie { left: 18px; bottom: 18px; width: min(420px, calc(100% - 36px)); padding: 18px; display: none; }
.cookie.show { display: grid; gap: 12px; }
.lead-popup { inset: auto 18px 18px auto; width: min(420px, calc(100% - 36px)); padding: 20px; display: none; }
.lead-popup.show { display: grid; gap: 14px; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 250ms ease, visibility 250ms ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.loader {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: var(--accent);
  animation: spin 850ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate3d(-46px, -46px, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(22px); transition: 520ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
