/* ==========================================================================
   Babulia Engineering – Main Stylesheet
   Shared across all pages (index, about, solutions, products,
   new-business, contact).
   ========================================================================== */

:root {
  --navy-950: #040f2e;
  --navy-900: #071a4a;
  --navy-800: #0b2566;
  --blue-700: #12399e;
  --blue-600: #1a4fd6;
  --blue-400: #5b8cff;
  --blue-50:  #eef3ff;
  --red-700:  #a8101c;
  --red-600:  #d21f2e;
  --red-500:  #ec3446;
  --red-50:   #fff0f1;
  --ink:      #0e1a33;
  --muted:    #5a6680;
  --line:     #e3e8f3;
  --bg:       #f6f8fd;
  --white:    #ffffff;
  --radius:   16px;
  --shadow:   0 10px 30px rgba(7, 26, 74, .10);
  --shadow-lg:0 24px 60px rgba(7, 26, 74, .18);
  --grad-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--navy-800) 55%, var(--red-600) 130%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; color: var(--navy-900); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
section { padding: 96px 0; }

/* ---------- Shared ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .8rem 'Poppins', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--red-600); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.tight { margin-bottom: 22px; }
.text-red { color: var(--red-600); }
.text-blue { color: var(--blue-600); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem 'Poppins', sans-serif; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--red-600); color: #fff; box-shadow: 0 10px 24px rgba(210, 31, 46, .35); }
.btn-red:hover { background: var(--red-700); transform: translateY(-2px); }
.btn-blue { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(26, 79, 214, .3); }
.btn-blue:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #b9c6e6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar-items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--red-500); }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
header.scrolled { box-shadow: 0 6px 24px rgba(7,26,74,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { font-family: 'Poppins', sans-serif; line-height: 1.05; }
.brand-text strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--navy-800); letter-spacing: .02em; }
.brand-text span { font-size: .78rem; font-weight: 700; color: var(--red-600); letter-spacing: .28em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 10px 14px; border-radius: 10px;
  font: 500 .93rem 'Poppins', sans-serif; color: var(--navy-900);
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red-600); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-600); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; padding: 11px 20px !important; background: var(--red-600); color: #fff !important; border-radius: 999px !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--red-700); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy-900); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(210,31,46,.35), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(26,79,214,.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  padding: 110px 0 140px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  font-size: .87rem; color: #dbe4ff; margin-bottom: 26px;
}
.hero-badge b { white-space: nowrap; background: var(--red-600); color: #fff; padding: 3px 10px; border-radius: 999px; font: 600 .75rem 'Poppins', sans-serif; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 22px; }
.hero h1 .hl {
  background: linear-gradient(90deg, #ff6b78, var(--red-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.12rem; color: #c3cfee; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; color: #c3cfee; font-size: .92rem; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--red-500); }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px; padding: 28px; backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero-card-head h4 { color: #fff; font-size: 1rem; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #ffb3ba; font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(236,52,70,.7)} 70%{box-shadow:0 0 0 10px rgba(236,52,70,0)} 100%{box-shadow:0 0 0 0 rgba(236,52,70,0)} }
.cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cam {
  aspect-ratio: 16/10; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #102a6b, #0a1c4c);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
}
.cam svg { width: 42%; opacity: .55; color: #8fb0ff; }
.cam::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(transparent, rgba(91,140,255,.18), transparent);
  animation: scan 3.5s linear infinite;
}
.cam:nth-child(2)::after { animation-delay: -1s; }
.cam:nth-child(3)::after { animation-delay: -2s; }
.cam:nth-child(4)::after { animation-delay: -2.7s; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.cam-label { position: absolute; left: 10px; bottom: 8px; font-size: .7rem; color: #c3cfee; letter-spacing: .05em; }
.cam-rec { position: absolute; right: 10px; top: 8px; font-size: .65rem; font-weight: 700; color: #fff; background: var(--red-600); padding: 1px 7px; border-radius: 4px; }
.float-chip {
  position: absolute; background: #fff; color: var(--navy-900); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  font: 600 .85rem 'Poppins', sans-serif; animation: float 5s ease-in-out infinite;
}
.float-chip small { display: block; font: 500 .74rem 'Inter', sans-serif; color: var(--muted); }
.float-chip .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.float-chip .ic svg { width: 20px; height: 20px; }
.chip-1 { left: -36px; bottom: -28px; }
.chip-1 .ic { background: var(--red-600); }
.chip-2 { right: -24px; top: -26px; animation-delay: -2.5s; }
.chip-2 .ic { background: var(--blue-600); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats-wrap { margin-top: -70px; position: relative; z-index: 5; padding: 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 32px 28px; text-align: center; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 4px; border-radius: 0 0 4px 4px; background: var(--blue-600); }
.stat:nth-child(even)::before { background: var(--red-600); }
.stat .num { font: 800 2.5rem 'Poppins', sans-serif; color: var(--navy-800); }
.stat .num em { font-style: normal; color: var(--red-600); }
.stat p { color: var(--muted); font-size: .93rem; font-weight: 500; }

/* ---------- About ---------- */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-visual { position: relative; }
.about-panel {
  border-radius: 24px; padding: 40px; color: #fff; position: relative; overflow: hidden;
  background: var(--grad-brand); box-shadow: var(--shadow-lg);
}
.about-panel::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 50px solid rgba(255,255,255,.06); right: -120px; bottom: -140px;
}
.about-panel .logo-tile { width: 86px; height: 86px; background: #fff; border-radius: 20px; padding: 8px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.about-panel h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.about-panel p { color: #dbe4ff; margin-bottom: 26px; }
.verticals { display: grid; gap: 12px; position: relative; z-index: 1; }
.vertical {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 14px;
}
.vertical .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--red-600); }
.vertical:nth-child(2) .ic { color: var(--blue-600); }
.vertical .ic svg { width: 22px; height: 22px; }
.vertical strong { font-family: 'Poppins', sans-serif; font-size: .98rem; display: block; }
.vertical small { color: #c3cfee; font-size: .82rem; }
.est-badge {
  position: absolute; right: -22px; top: -22px; z-index: 2;
  width: 116px; height: 116px; border-radius: 50%; background: var(--red-600); color: #fff;
  display: grid; place-items: center; text-align: center; box-shadow: 0 16px 36px rgba(210,31,46,.4);
  border: 6px solid #fff; font-family: 'Poppins', sans-serif;
}
.est-badge small { font-size: .7rem; letter-spacing: .15em; display: block; opacity: .85; }
.est-badge b { font-size: 1.6rem; line-height: 1; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text p strong { color: var(--navy-800); }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 32px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red-600); margin-top: 2px; }

/* ---------- Solutions ---------- */
.solutions { background: var(--bg); }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sol-card {
  background: #fff; border-radius: 22px; padding: 34px 30px; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.sol-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--blue-600), var(--red-600));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.sol-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.sol-card:hover::before { transform: scaleX(1); }
.sol-num { position: absolute; right: 24px; top: 18px; font: 800 3.2rem 'Poppins', sans-serif; color: var(--blue-50); }
.sol-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; position: relative; }
.sol-icon svg { width: 32px; height: 32px; }
.sol-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.sol-icon.red { background: var(--red-50); color: var(--red-600); }
.sol-card h3 { font-size: 1.25rem; margin-bottom: 12px; position: relative; }
.sol-card > p { color: var(--muted); font-size: .96rem; margin-bottom: 20px; }
.sol-meta { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: .88rem; }
.sol-meta div { display: flex; gap: 8px; }
.sol-meta b { color: var(--navy-800); font-weight: 600; min-width: 82px; }
.sol-meta span { color: var(--muted); }

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod {
  border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.prod:hover { border-color: var(--blue-400); transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-img {
  aspect-ratio: 4 / 3; padding: 14px 18px 4px;
  background: linear-gradient(160deg, var(--blue-50), #fff 55%, var(--red-50));
  border-bottom: 3px solid var(--blue-600);
}
.prod:nth-child(even) .prod-img { border-bottom-color: var(--red-600); }
.prod-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.prod:hover .prod-img img { transform: scale(1.06); }
.prod-body { padding: 18px 20px 22px; }
.prod h4 { font-size: 1.02rem; margin-bottom: 6px; }
.prod p { color: var(--muted); font-size: .88rem; line-height: 1.55; }

.more-link { margin-top: 44px; text-align: center; }
.apps { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.apps-label { font: 600 .9rem 'Poppins', sans-serif; color: var(--navy-800); margin-right: 6px; }
.tag { padding: 8px 16px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: .86rem; font-weight: 600; }
.tag.r { background: var(--red-50); color: var(--red-700); }

/* ---------- Brands ---------- */
.brands { background: var(--navy-900); padding: 70px 0; overflow: hidden; }
.brands .section-head h2 { color: #fff; }
.brands .section-head p { color: #b9c6e6; }
.brands .section-head { margin-bottom: 36px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; padding-right: 18px; flex-shrink: 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-card {
  flex-shrink: 0; width: 200px; height: 96px; padding: 20px 26px; border-radius: 16px;
  background: #fff; display: grid; place-items: center;
  border: 2px solid transparent; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.logo-card img { width: 100%; height: 52px; object-fit: contain; }
.logo-card.dark { background: var(--navy-800); border-color: rgba(255,255,255,.15); }
.logo-card.text { font: 800 1.9rem 'Poppins', sans-serif; color: var(--navy-800); letter-spacing: .04em; }
.logo-card:hover { transform: translateY(-4px); border-color: var(--red-600); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.marquee { padding: 8px 0; }

/* ---------- Why us / Services ---------- */
.why .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why .section-head { margin-bottom: 26px; }
.why-left p { color: var(--muted); margin-bottom: 18px; }
.award {
  margin-top: 28px; display: flex; gap: 18px; align-items: center; padding: 22px;
  border-radius: 18px; background: linear-gradient(135deg, var(--red-50), var(--blue-50));
  border: 1px solid var(--line);
}
.award .ic { width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; background: var(--red-600); color: #fff; display: grid; place-items: center; }
.award .ic svg { width: 28px; height: 28px; }
.award strong { font-family: 'Poppins', sans-serif; color: var(--navy-900); display: block; }
.award span { color: var(--muted); font-size: .9rem; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc { display: flex; gap: 16px; padding: 22px; border-radius: 16px; background: var(--bg); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.svc:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.svc .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--blue-600); box-shadow: 0 4px 12px rgba(7,26,74,.08); }
.svc:nth-child(odd) .ic { color: var(--red-600); }
.svc .ic svg { width: 22px; height: 22px; }
.svc h4 { font-size: 1rem; margin-bottom: 4px; }
.svc p { font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* ---------- New Business ---------- */
.newbiz { background: var(--bg); position: relative; overflow: hidden; }
.nb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nb-card {
  border-radius: 22px; padding: 34px 30px; color: #fff; position: relative; overflow: hidden; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s;
}
.nb-card:hover { transform: translateY(-6px); }
.nb-card:nth-child(1) { background: linear-gradient(150deg, var(--blue-600), var(--navy-900)); }
.nb-card:nth-child(2) { background: linear-gradient(150deg, var(--red-500), var(--red-700)); }
.nb-card:nth-child(3) { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.nb-card .big-ic { position: absolute; right: -10px; top: -10px; width: 150px; height: 150px; opacity: .14; }
.nb-card .ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: auto; }
.nb-card .ic svg { width: 28px; height: 28px; }
.nb-card h3 { color: #fff; font-size: 1.35rem; margin: 30px 0 8px; }
.nb-card p { color: rgba(255,255,255,.82); font-size: .94rem; }

.expansion {
  margin-top: 34px; border-radius: 22px; padding: 34px 40px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.expansion-left { display: flex; gap: 20px; align-items: center; }
.expansion .ic { width: 64px; height: 64px; flex-shrink: 0; border-radius: 18px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; }
.expansion .ic svg { width: 32px; height: 32px; }
.expansion h3 { font-size: 1.3rem; margin-bottom: 4px; }
.expansion p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding: 96px 0; }
.cta-inner {
  border-radius: 28px; padding: 56px 60px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(236,52,70,.55), transparent 70%),
    linear-gradient(120deg, var(--navy-900), var(--blue-700));
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 620px; }
.cta-inner p { color: #c3cfee; margin-top: 10px; max-width: 560px; }

/* ---------- Footer ---------- */
footer { background: var(--navy-950); color: #9fb0d6; padding: 70px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.foot-brand .logo-tile { width: 64px; height: 64px; background: #fff; border-radius: 16px; padding: 6px; margin-bottom: 18px; }
.foot-brand p { font-size: .92rem; margin-bottom: 20px; }
footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--red-600); border-radius: 3px; }
footer ul { list-style: none; display: grid; gap: 10px; font-size: .92rem; }
footer ul a:hover { color: #fff; padding-left: 4px; }
footer ul a { transition: padding .2s, color .2s; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s; }
.social a:hover { background: var(--red-600); }
.social svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red-600); color: #fff; display: grid; place-items: center; z-index: 40;
  box-shadow: 0 10px 24px rgba(210,31,46,.4); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  section { padding: 76px 0; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0 !important; }
  .hero .container, .about .container, .why .container { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 130px; }
  .hero-visual { max-width: 520px; margin: 20px auto 0; width: 100%; }
  .chip-1 { left: -6px; } .chip-2 { right: -6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sol-grid, .nb-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .est-badge { right: 10px; }
}
@media (max-width: 640px) {
  .topbar-items .hide-sm { display: none; }
  .sol-grid, .nb-grid, .svc-grid, .check-list { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prod-body { padding: 14px 14px 16px; }
  .stat { padding: 24px 12px; }
  .stat .num { font-size: 1.9rem; }
  .about-panel { padding: 28px 22px; }
  .cta-inner { padding: 40px 26px; }
  .expansion { padding: 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .brand-text strong { font-size: 1rem; }
  .logo-card { width: 160px; height: 80px; padding: 16px 20px; }
  .logo-card img { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
