:root {
  --bg: #020e26;
  --bg-2: #061733;
  --surface: rgba(16, 36, 63, 0.55);
  --surface-solid: #0c1f3b;
  --border: rgba(120, 200, 230, 0.14);
  --text: #eaf3fb;
  --muted: #9fb2c8;
  --green: #7ce35a;
  --teal: #19d3c5;
  --blue: #1e7fe0;
  --grad: linear-gradient(100deg, var(--green) 0%, var(--teal) 50%, var(--blue) 100%);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--grad); color: #03142b;
  box-shadow: 0 10px 30px -10px rgba(25, 211, 197, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(25, 211, 197, 0.8); }
.btn-ghost { border-color: var(--border); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--teal); background: rgba(25,211,197,0.08); }
.btn-light { background: #fff; color: #03142b; }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(2, 14, 38, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 38px; width: auto; filter: drop-shadow(0 0 10px rgba(25,211,197,.45)); }
.brand-text { font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1; display: flex; flex-wrap: wrap; width: 92px; }
.brand-liv { color: #fff; }
.brand-tech { color: var(--teal); }
.brand-text small { width: 100%; font-size: 11.5px; font-weight: 400; letter-spacing: .32em; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 960px); display: flex; align-items: center;
  padding: 120px 0 90px; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 70% 40%, #10243f 0%, var(--bg) 70%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-glow {
  position: absolute; width: 640px; height: 640px; right: -120px; top: 10%;
  background: radial-gradient(circle, rgba(25,211,197,.22), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: rgba(124,227,90,.08); border: 1px solid rgba(124,227,90,.3); color: #c8f5b6;
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(124,227,90,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(124,227,90,0); } 100% { box-shadow: 0 0 0 0 rgba(124,227,90,0); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 600; margin-bottom: 22px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.promises { display: flex; flex-wrap: wrap; gap: 14px 38px; }
.promises li { display: flex; flex-direction: column; }
.promises strong { font-family: var(--font-head); font-size: 26px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promises span { font-size: 13.5px; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; margin-left: auto; width: 100%; display: grid; place-items: center; }
.hero-mark { width: 62%; position: relative; z-index: 2; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(25,211,197,.45)); }
@keyframes float { 50% { transform: translateY(-16px); } }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(25,211,197,.22); animation: spin linear infinite; }
.orbit span { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.orbit-1 { inset: 4%; animation-duration: 28s; }
.orbit-2 { inset: 16%; animation-duration: 20s; animation-direction: reverse; border-color: rgba(124,227,90,.2); }
.orbit-2 span { background: var(--green); box-shadow: 0 0 14px var(--green); }
.orbit-3 { inset: -6%; animation-duration: 40s; border-style: solid; border-color: rgba(30,127,224,.12); }
.orbit-3 span { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(12, 31, 59, .75); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); animation: float 7s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 500; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(25,211,197,.12); font-size: 16px; }
.fc-1 { top: 10%; left: -4%; animation-delay: -1s; }
.fc-2 { bottom: 14%; left: 0; animation-delay: -3s; }
.fc-3 { top: 46%; right: -6%; animation-delay: -5s; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.25); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Stack marquee ---------- */
.stack { padding: 34px 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.stack-label { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 20px; font-weight: 500; color: #8aa3bf; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.eyebrow { font-family: var(--font-head); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; margin-bottom: 18px; }
.sub { color: var(--muted); font-size: 17px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 32px 28px; position: relative; overflow: hidden; transition: transform .35s, border-color .35s; }
.service::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.service:hover { transform: translateY(-6px); }
.service:hover::before { opacity: 1; }
.icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(124,227,90,.16), rgba(30,127,224,.16)); border: 1px solid var(--border); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: #b9cadb; }

/* Why */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.why-text .sub { margin-bottom: 30px; }
.why-list { display: grid; gap: 16px; }
.why-item { display: flex; gap: 22px; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .3s; }
.why-item:hover { border-color: rgba(25,211,197,.45); transform: translateX(6px); }
.num { font-family: var(--font-head); font-size: 28px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.why-item h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 15px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: s; }
.process::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: var(--grad); opacity: .35; }
.process li { position: relative; text-align: center; padding: 0 8px; }
.step {
  width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-head); font-weight: 600; font-size: 20px; color: #03142b;
  background: var(--grad); box-shadow: 0 0 0 8px var(--bg), 0 0 30px rgba(25,211,197,.5); position: relative;
}
.process h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.process p { color: var(--muted); font-size: 15px; }

/* Solutions mockups */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.solution { padding: 18px 18px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .35s, border-color .35s; }
.solution:hover { transform: translateY(-6px); border-color: rgba(25,211,197,.4); }
.solution h3 { font-size: 18px; font-weight: 500; margin: 20px 4px 6px; }
.solution p { color: var(--muted); font-size: 14.5px; margin: 0 4px; }
.mock { height: 170px; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #0f2a4d, #081a35); border: 1px solid var(--border); }
.mock-bar { display: flex; gap: 5px; padding: 9px 10px; background: rgba(255,255,255,.04); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mock-bar i:first-child { background: #ff6b6b; } .mock-bar i:nth-child(2) { background: #ffd166; } .mock-bar i:nth-child(3) { background: var(--green); }
.mock-body { padding: 12px; display: grid; gap: 10px; }
.m-hero { height: 66px; border-radius: 8px; background: var(--grad); opacity: .85; }
.m-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.m-row span { height: 44px; border-radius: 6px; background: rgba(255,255,255,.08); }
.shop { grid-template-columns: repeat(3,1fr); }
.shop span { height: 52px; border-radius: 6px; background: rgba(255,255,255,.08); position: relative; }
.shop span::after { content: ""; position: absolute; left: 6px; right: 40%; bottom: 6px; height: 5px; border-radius: 3px; background: var(--teal); opacity: .7; }
.dash { grid-template-columns: 1.6fr 1fr; align-items: end; height: calc(100% - 26px); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; }
.bars span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--grad); background-size: 100% 300%; opacity: .85; }
.donut { width: 72px; height: 72px; border-radius: 50%; margin: auto; background: conic-gradient(var(--green) 0 35%, var(--teal) 0 70%, var(--blue) 0); -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); mask: radial-gradient(circle, transparent 52%, #000 53%); }
.mock-phone { display: grid; place-items: center; }
.phone { width: 84px; height: 150px; border-radius: 16px; border: 3px solid rgba(255,255,255,.2); background: #0a1d3a; padding: 10px 8px; display: grid; gap: 7px; align-content: start; }
.p-top { height: 6px; width: 30px; margin: 0 auto 2px; border-radius: 3px; background: rgba(255,255,255,.2); }
.p-card { height: 46px; border-radius: 8px; background: var(--grad); }
.p-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); }
.p-line.short { width: 60%; }
.p-btn { height: 16px; border-radius: 8px; background: var(--teal); margin-top: 8px; }

/* Offer */
.offer {
  position: relative; overflow: hidden; border-radius: 28px; padding: 60px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 60px; align-items: center;
  background: linear-gradient(120deg, #0e3b4a 0%, #0b2c5c 60%, #0a1f45 100%);
  border: 1px solid rgba(25,211,197,.35);
}
.offer-glow { position: absolute; width: 480px; height: 480px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(124,227,90,.3), transparent 65%); pointer-events: none; }
.offer-text, .offer-list, .offer .btn { position: relative; }
.offer h2 { font-size: clamp(26px, 3.2vw, 38px); }
.offer-text p:last-child { color: #c7d7e8; }
.offer-list { display: grid; gap: 14px; }
.offer-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.offer-list li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--grad); color: #03142b; font-size: 13px; font-weight: 700; }
.offer .btn { grid-column: 1 / -1; justify-self: start; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 14px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); padding: 0 24px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(25,211,197,.4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-head); font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 24px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-list { margin-top: 32px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a:hover { color: var(--teal); }
.ci { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(25,211,197,.1); border: 1px solid var(--border); color: var(--teal); }
.form { padding: 34px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: #c9d7e6; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); width: 100%;
  padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(2,14,38,.6); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form select option { background: var(--surface-solid); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(25,211,197,.15); }
/* Custom select */
.field { display: grid; gap: 8px; }
.field-label { font-size: 14px; font-weight: 500; color: #c9d7e6; }
.field-error { font-size: 13px; color: #ff8a8a; min-height: 0; }
.field-error:empty { display: none; }
.select { position: relative; }
.select-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(2,14,38,.6); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.select-trigger:hover { border-color: rgba(25,211,197,.4); }
.select-trigger:focus-visible, .select.open .select-trigger { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(25,211,197,.15); }
.select.invalid .select-trigger { border-color: #ff8a8a; box-shadow: 0 0 0 4px rgba(255,138,138,.12); }
.select-value { display: flex; align-items: center; gap: 10px; min-width: 0; }
.select-value.is-placeholder { color: #7d8fa5; }
.select-value .opt-icon { width: 26px; height: 26px; border-radius: 8px; }
.select-value .opt-icon svg { width: 14px; height: 14px; }
.chevron { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.select.open .chevron { transform: rotate(180deg); }
.select-menu {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0;
  max-height: min(400px, 60vh); overflow-y: auto; padding: 6px;
  background: rgba(10, 27, 52, .96); border: 1px solid rgba(25,211,197,.3); border-radius: 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top; pointer-events: none;
  transition: opacity .18s, transform .18s;
  scrollbar-width: thin; scrollbar-color: rgba(25,211,197,.35) transparent;
}
.select.open .select-menu { opacity: 1; transform: none; pointer-events: auto; }
.select-menu:focus { outline: none; }
.select-menu li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  cursor: pointer; position: relative; transition: background .15s;
}
.select-menu li.active { background: rgba(25,211,197,.1); }
.select-menu li[aria-selected="true"] { background: linear-gradient(90deg, rgba(124,227,90,.14), rgba(30,127,224,.12)); }
.select-menu li[aria-selected="true"]::after {
  content: "✓"; margin-left: auto; width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: #03142b; font-size: 12px; font-weight: 700;
}
.opt-icon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,227,90,.16), rgba(30,127,224,.16)); border: 1px solid var(--border);
}
.opt-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opt-text { display: grid; line-height: 1.3; }
.opt-text b { font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: var(--text); }
.opt-text small { font-size: 12.5px; color: var(--muted); }

.wa-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.form-hint { margin-top: -8px; font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn.loading { opacity: .75; cursor: progress; }
.form-note.error { color: #ffb86b; }
.form-note { min-height: 1.4em; font-size: 14px; color: var(--green); text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: #010a1c; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-logo { width: 210px; margin-bottom: 14px; }
.footer h4 { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.footer-grid > div:not(:first-child) { display: grid; gap: 10px; align-content: start; }
.footer-grid a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-grid a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: center; text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* Back to top button */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(12, 31, 59, .85); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6), 0 0 24px -6px rgba(25,211,197,.45);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s, transform .3s, visibility .3s, box-shadow .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(0,0,0,.6), 0 0 30px -4px rgba(25,211,197,.7); }
.to-top:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 3; }
.ring-progress { fill: none; stroke: url(#ringGrad); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top-arrow { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.to-top:hover .to-top-arrow { transform: translateY(-2px); }
@media (max-width: 600px) {
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

/* Grid/flex children may shrink below their content width (prevents sideways scroll) */
.hero-grid > *, .why-grid > *, .contact-grid > *, .footer-grid > *, .offer > *,
.services-grid > *, .solutions-grid > *, .form-row > * { min-width: 0; }
.contact-list a, .contact-list span:last-child { overflow-wrap: anywhere; }
img, svg, canvas { max-width: 100%; }

/* Hero height respects mobile browser toolbars */
@supports (height: 100svh) {
  .hero { min-height: min(100svh, 960px); }
}

/* Large tablets / small laptops */
@media (max-width: 1200px) {
  .fc-3 { right: 0; }
  .fc-1 { left: 0; }
}
@media (max-width: 1024px) {
  .section { padding: 96px 0; }
  .nav-links { gap: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process::before { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-text { text-align: center; max-width: 680px; margin-inline: auto; }
  .offer { padding: 48px 40px; }
  .contact-grid { gap: 40px; }
}

/* Tablets (portrait) and phones: mobile menu, stacked layouts */
@media (max-width: 860px) {
  .nav { height: 68px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px; background: var(--bg); border-top: 1px solid var(--border);
    height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow-y: auto; justify-content: flex-start;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s;
  }
  .nav-links a:not(.btn) { padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 14px; padding: 14px 20px; font-size: 16px; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .header:has(.nav-links.open) { background: rgba(2,14,38,.98); }
  body.menu-open { overflow: hidden; }
  html { scroll-padding-top: 70px; }

  .hero { padding: 110px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .promises { justify-content: center; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .hero-glow { width: 420px; height: 420px; right: -100px; top: auto; bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-text { text-align: center; }
  .contact-list { justify-items: center; }
  .offer { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .offer-list { justify-items: center; }
  .offer .btn { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section-head { margin-bottom: 44px; }
}

/* Phones */
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  h2 { font-size: clamp(26px, 7.4vw, 34px); }
  .sub, .lead { font-size: 16px; }
  .services-grid, .solutions-grid, .process { grid-template-columns: 1fr; }
  .service { padding: 26px 22px; }
  .why-item { padding: 20px; gap: 16px; }
  .why-item:hover { transform: none; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .hero-cta { flex-direction: column; align-items: stretch; margin-bottom: 36px; }
  .promises { gap: 14px 26px; }
  .promises strong { font-size: 22px; }
  .hero-visual { max-width: 330px; }
  .float-card { padding: 8px 11px; gap: 9px; border-radius: 12px; }
  .float-card b { font-size: 13px; }
  .float-card small { font-size: 11px; }
  .fc-icon { width: 28px; height: 28px; font-size: 14px; }
  .orbit-3 { inset: 0; }
  .scroll-hint { display: none; }
  .stack { padding: 26px 0; }
  .marquee-track { gap: 40px; }
  .marquee-track span { font-size: 17px; }
  .offer { padding: 34px 22px; border-radius: 22px; }
  .offer-list { justify-items: start; text-align: left; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 16px; padding: 18px 0; }
  .footer { padding-top: 52px; }
}

/* Small phones (iPhone SE, older Androids) */
@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .hero h1 { font-size: 34px; }
  .brand-mark { height: 32px; }
  .brand-text { font-size: 20px; }
  .float-card small { display: none; }
  .promises { gap: 12px 20px; }
  .form { padding: 18px; }
}

/* Phones in landscape: don't force a full-height hero */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-visual { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
