/* =========================================================
   Megahost LLC — stylesheet
   ========================================================= */

:root {
  --navy-950: #070e22;
  --navy-900: #0b1530;
  --navy-800: #13213f;
  --navy-700: #1e2f55;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --cyan-400: #22d3ee;
  --green-400: #4ade80;

  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f6f8fc;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(7, 14, 34, .45);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip-link { position: absolute; left: 16px; top: -48px; background: var(--blue-600); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 12px 26px -10px rgba(37, 99, 235, .8); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-white { background: #fff; color: var(--navy-900); }
.btn-white:hover { background: #eef4ff; }

/* ---------- Eyebrows / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow-light { color: var(--blue-400); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }

.section { padding: 104px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head-left { text-align: left; margin-left: 0; }
.section-head h2, .why-copy h2, .contact-info h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-sub { margin-top: 16px; font-size: 18px; color: var(--ink-3); }

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

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600) 60%, #1e40af);
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .8);
}
.brand-mark svg { width: 24px; height: 24px; fill: #fff; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: 6px; transition: color .3s; }
.brand-llc { font-size: 11px; font-weight: 600; letter-spacing: .12em; opacity: .6; }
.site-header.is-scrolled .brand { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 28px; }
.nav ul a { color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; transition: color .2s; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav ul a:hover, .nav ul a.is-active { color: #fff; text-decoration: none; }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .nav ul a { color: var(--ink-2); }
.site-header.is-scrolled .nav ul a:hover, .site-header.is-scrolled .nav ul a.is-active { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, background .3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.site-header.is-scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 88px) 0 112px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(59, 130, 246, .35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(34, 211, 238, .16), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; letter-spacing: -.035em; }
.hero .lead { margin-top: 22px; font-size: 19px; color: rgba(226, 232, 240, .82); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: 14px; color: rgba(226, 232, 240, .78); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 16px; height: 16px; color: var(--green-400); stroke-width: 2.4; }

.hero-visual { position: relative; }
.window {
  background: rgba(11, 21, 48, .82); border: 1px solid rgba(148, 163, 184, .18); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden;
  backdrop-filter: blur(8px);
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(148, 163, 184, .14); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.window-bar span:nth-child(1) { background: #f87171; }
.window-bar span:nth-child(2) { background: #fbbf24; }
.window-bar span:nth-child(3) { background: #4ade80; }
.window-bar p { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #64748b; }
.window-body { margin: 0; padding: 26px 24px 30px; font-family: var(--mono); font-size: 14px; line-height: 2; color: #cbd5e1; overflow-x: auto; }
.window-body code { font-family: inherit; }
.c-mute { color: #64748b; } .c-blue { color: var(--blue-400); } .c-green { color: var(--green-400); } .c-accent { color: var(--cyan-400); }
.typing-dots::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #eff6ff; color: var(--blue-600); }
.float-card strong { display: block; font-size: 14px; }
.float-card span { display: block; font-size: 12px; color: var(--ink-3); }
.fc-1 { left: -36px; bottom: -26px; }
.fc-2 { right: -22px; top: -30px; animation-delay: -3s; }
.fc-2 .icon { background: #ecfdf5; color: #16a34a; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Strip ---------- */
.strip { background: var(--navy-900); border-top: 1px solid rgba(148, 163, 184, .1); }
.strip-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 26px; padding: 22px 24px; }
.strip span { color: rgba(226, 232, 240, .62); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500); opacity: .7; }

/* ---------- Services ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 44px; }
.filter { border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: all .2s; }
.filter:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.service:hover::before { transform: scaleX(1); }
.service.is-hidden { display: none; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #e0f2fe); color: var(--blue-600); margin-bottom: 22px; transition: background .3s, color .3s; }
.service-icon .icon { width: 26px; height: 26px; }
.service:hover .service-icon { background: var(--blue-600); color: #fff; }
.service h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service p { color: var(--ink-3); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.why-copy .btn { margin-top: 32px; }
.why-list { display: grid; gap: 16px; }
.why-item { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.why-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--blue-400); flex-shrink: 0; }
.why-icon .icon { width: 22px; height: 22px; }
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { color: var(--ink-3); font-size: 15px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 12px); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num {
  position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue-600); color: var(--blue-600); font-weight: 800; font-size: 16px; margin-bottom: 20px;
  box-shadow: 0 0 0 8px #fff; transition: background .3s, color .3s;
}
.step:hover .step-num { background: var(--blue-600); color: #fff; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-3); }

/* ---------- Tech ---------- */
.section-dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; }
.section-head-light h2 { color: #fff; }
.section-head-light .section-sub { color: rgba(203, 213, 225, .75); }
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tech-col { background: rgba(255, 255, 255, .03); border: 1px solid rgba(148, 163, 184, .14); border-radius: var(--radius); padding: 24px 20px; transition: border-color .3s, background .3s; }
.tech-col:hover { border-color: rgba(96, 165, 250, .5); background: rgba(59, 130, 246, .06); }
.tech-col h3 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 16px; }
.tech-col li { font-size: 14.5px; color: #cbd5e1; padding: 7px 0; border-top: 1px solid rgba(148, 163, 184, .1); }
.tech-col li:first-child { border-top: 0; }

/* ---------- Industries ---------- */
#industries { padding-bottom: 88px; }
#industries .section-head { margin-bottom: 36px; }
.industries { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 920px; margin: 0 auto; }
.industries span { padding: 12px 20px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; color: var(--ink-2); background: #fff; transition: all .2s; }
.industries span:hover { border-color: var(--blue-500); color: var(--blue-600); box-shadow: var(--shadow-sm); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 22px; }
.plan-desc { margin-top: 8px; color: var(--ink-3); font-size: 15px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan ul { display: grid; gap: 12px; margin: 24px 0 32px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-600); stroke-width: 2.4; }
.plan-featured { background: var(--navy-900); border-color: var(--navy-900); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan-featured h3 { color: #fff; }
.plan-featured .plan-desc { color: rgba(203, 213, 225, .75); border-color: rgba(148, 163, 184, .2); }
.plan-featured li { color: #e2e8f0; }
.plan-featured li .icon { color: var(--green-400); }
.plan-badge { position: absolute; top: -13px; left: 32px; background: linear-gradient(90deg, var(--blue-600), var(--cyan-400)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #bfdbfe; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--ink-3); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 104px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px 60px; border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(34, 211, 238, .35), transparent 60%), linear-gradient(135deg, var(--blue-600), #1e3a8a);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: 17px; max-width: 560px; }

/* ---------- Contact ---------- */
#contact { background: var(--surface-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 36px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--blue-600); }
.contact-list small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.contact-list a, .contact-list span, .contact-list address { font-weight: 600; color: var(--ink); font-style: normal; }
.footer-address { margin-top: 16px; font-style: normal; font-size: 14px; line-height: 1.7; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; }
.error { font-size: 13px; color: #dc2626; min-height: 0; }
.error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 999px; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip span:hover { border-color: var(--blue-500); }
.chip input:checked + span { background: #eff6ff; border-color: var(--blue-600); color: var(--blue-600); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue-600); flex-shrink: 0; }
.consent-error { margin-top: -12px; }
.form-status { text-align: center; font-size: 14.5px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 12px; border-radius: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { margin-top: 18px; max-width: 340px; font-size: 15px; }
.brand-light { color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-links a { color: #94a3b8; font-size: 15px; transition: color .2s; }
.footer-col a:hover, .footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(148, 163, 184, .14); font-size: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 12px; border: 0;
  background: var(--navy-900); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-600); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process::before { display: none; }
}

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 96px; }
  .hero-inner, .why-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .fc-1 { left: -8px; } .fc-2 { right: -8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .faq-wrap .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 32px;
    background: #fff; transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; color: var(--ink) !important; font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav-cta { margin-top: 24px; padding: 14px; font-size: 16px; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open .site-header { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .nav-open .brand { color: var(--ink); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-sub { font-size: 16.5px; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .window-body { font-size: 12px; padding: 20px 18px; }
  .float-card { display: none; }
  .services-grid, .form-row { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; row-gap: 28px; }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step-num { grid-row: span 2; margin: 0; }
  .cta { padding-bottom: 64px; }
  .cta-inner { padding: 40px 28px; }
  .cta-inner .btn { width: 100%; }
  .contact-form { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
