/* ==========================================================================
   Royals Electric — Corporate Website
   Design system & global styles
   ========================================================================== */

:root {
  --ink: #0c1424;
  --ink-2: #14203a;
  --ink-3: #1d2c4d;
  --paper: #f6f8fb;
  --card: #ffffff;
  --line: #e3e9f2;
  --muted: #5a6b85;
  --muted-2: #8494ad;
  --accent: #2f6fed;
  --accent-2: #1e56c8;
  --amber: #f5a623;
  --amber-soft: #fff4e0;
  --green: #1e9e6a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 6px 24px rgba(12, 20, 36, .07);
  --shadow-2: 0 18px 48px rgba(12, 20, 36, .13);
  --font-display: "Manrope", "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --maxw: 1180px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Hide the Netlify "Powered by" badge/toolbar iframes injected on public sites */
#nl-badge-frame, #nl-hud-frame { display: none !important; }

/* Self-hosted variable fonts (no third-party CDN dependency) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(9, 15, 28, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .25);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { flex: 0 0 auto; }
.brand-logo { display: block; height: 46px; width: auto; }
.footer-brand .brand-logo { height: 40px; }
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .02em;
  color: #fff;
}
.brand-tag {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  font-weight: 600;
}

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.main-nav a.active { color: #fff; background: rgba(47, 111, 237, .28); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle.open span { transform: rotate(45deg); }
.nav-toggle.open span::before { transform: rotate(-90deg) translateX(-6px); }
.nav-toggle.open span::after { opacity: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Hero slideshow (industry applications) */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: none;
  transition: opacity 1.5s ease;
}
.hero-slide.is-active { opacity: 1; animation: heroZoom 9s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active { animation: none; }
}

.hero-cap {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  transition: opacity .35s ease, transform .35s ease;
}
.hero-cap::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
}
.hero-cap.fade { opacity: 0; transform: translateY(6px); }
@media (max-width: 720px) { .hero-cap { display: none; } }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 25, .18) 0%, rgba(8, 13, 25, .04) 45%, rgba(8, 13, 25, .72) 100%),
    linear-gradient(90deg, rgba(8, 13, 25, .52) 0%, rgba(8, 13, 25, .22) 32%, rgba(8, 13, 25, 0) 58%),
    radial-gradient(60% 55% at 14% 84%, rgba(6, 10, 20, .45), transparent 64%);
}

.hero-inner {
  width: 100%;
  /* keep horizontal padding — 0 here would override .container's 0 24px
     and push hero text/stats flush against the screen edge */
  padding: 140px 24px 84px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.015em;
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero h1 .accent { color: var(--amber); }

.hero-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255, 255, 255, .82);
  max-width: 60ch;
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(47, 111, 237, .4); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .8); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 30px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1;
}
.hero-stat .num small { font-size: .55em; font-weight: 700; color: var(--amber); margin-left: 3px; }
.hero-stat .lbl { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .68); font-weight: 600; }

/* --------------------------------------------------------------------------
   Sections — shared
   -------------------------------------------------------------------------- */

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(47, 111, 237, .09);
  color: var(--accent-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); border-radius: 2px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 16.5px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }

.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10.5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }

.card-chip {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(9, 15, 28, .72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.card-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.card-body { padding: 26px 26px 28px; }
.card-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 10px;
}
.card-body p { color: var(--muted); font-size: 14.8px; margin-bottom: 18px; }

.spec-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-list li span:first-child { color: var(--ink-3); font-weight: 600; }
.mw-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--accent-2);
  background: rgba(47, 111, 237, .1);
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  margin-top: 18px;
}
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Feature list (checkmark style) */

.check-list li {
  display: flex;
  gap: 13px;
  padding: 9px 0;
  font-size: 15.5px;
  color: var(--ink-3);
}
.check-list li svg { flex: 0 0 auto; margin-top: 3px; }
.check-list b { color: var(--ink); }

/* Split layout */

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-media .float-tag {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-tag .big { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--accent-2); line-height: 1; }
.float-tag .small { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }

/* Stat band (dark) */

.band {
  background:
    radial-gradient(120% 140% at 85% 0%, #22345c 0%, transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 44px 44px;
  mask-image: radial-gradient(80% 90% at 50% 30%, #000 20%, transparent 100%);
}
.band .section-head h2 { color: #fff; }
.band .section-head p { color: rgba(255, 255, 255, .72); }
.band .section-head.center .eyebrow { background: rgba(255, 255, 255, .1); color: var(--amber); }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-tile {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.stat-tile .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
}
.stat-tile .num small { font-size: .5em; font-weight: 700; margin-left: 3px; }
.stat-tile .lbl { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }

/* Steps / timeline */

.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 23px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(47, 111, 237, .15) 100%);
}
.timeline-item { position: relative; padding: 0 0 34px 72px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px; top: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(47, 111, 237, .14);
}
.timeline-item .year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--accent-2);
  letter-spacing: .04em;
}
.timeline-item h4 { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.timeline-item p { color: var(--muted); font-size: 14.8px; max-width: 58ch; }

/* Values */

.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-1);
  transition: transform .25s, box-shadow .25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.value-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(47, 111, 237, .14), rgba(47, 111, 237, .05));
  color: var(--accent-2);
  margin-bottom: 20px;
}
.value-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 14.8px; }

/* CTA section */

.cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 15, 28, .93) 20%, rgba(12, 25, 52, .62) 100%);
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 12px;
}
.cta p { color: rgba(255, 255, 255, .8); max-width: 52ch; }

/* Page hero (subpages) */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 76px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 25, .78), rgba(8, 13, 25, .62));
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-bottom: 18px;
}
.page-hero p { color: rgba(255, 255, 255, .82); font-size: 17px; max-width: 66ch; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* Product detail rows */

.product-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.product-row:first-of-type { border-top: 1px solid var(--line); }
.product-row.flip { grid-template-columns: 1.1fr 0.9fr; }
.product-row.flip .product-media { order: 2; }
.product-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  position: relative;
}
.product-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.product-info .eyebrow { margin-bottom: 10px; }
.product-info h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
}
.product-info > p { color: var(--muted); font-size: 15.8px; margin-bottom: 24px; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.spec-table th, .spec-table td { padding: 13px 18px; font-size: 14.5px; text-align: left; }
.spec-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.spec-table tbody tr { border-bottom: 1px solid var(--line); }
.spec-table tbody tr:last-child { border-bottom: 0; }
.spec-table tbody tr:nth-child(even) { background: #fafcfe; }
.spec-table td:first-child { font-weight: 600; color: var(--ink-3); }
.spec-table td:last-child { font-family: var(--font-display); font-weight: 800; color: var(--accent-2); white-space: nowrap; }

/* Contact page */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 15px; }
.contact-card a { display: block; padding: 4px 0; font-weight: 600; color: var(--ink-3); }
.contact-card a:hover { color: var(--accent-2); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-1);
}
.contact-form h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.contact-form > p { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, .12);
}
.form-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted-2); }
.contact-form .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* Industries */

.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-3);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.industry-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: rgba(47, 111, 237, .4); }
.industry-item .ic {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(47, 111, 237, .09);
  color: var(--accent-2);
}

/* Footer */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 72px 0 56px;
}
.footer-brand p { font-size: 14.5px; margin: 18px 0 22px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; font-size: 14.5px; margin-bottom: 13px; }
.footer-contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* --------------------------------------------------------------------------
   Products mega dropdown (3 levels)
   -------------------------------------------------------------------------- */

.has-dropdown { position: relative; }

.main-nav a .caret {
  display: inline-block;
  margin-left: 6px;
  transition: transform .2s;
  vertical-align: -1px;
}
.has-dropdown:hover > a .caret,
.has-dropdown.open > a .caret { transform: rotate(180deg); }

.dd-toggle {
  display: none;
  width: 30px; height: 30px;
  margin-left: 4px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 12px);
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(12, 20, 36, .22);
  padding: 26px 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, 216px);
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 120;
}
.mega::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0; right: 0;
  height: 22px;
}
.has-dropdown:hover > .mega,
.has-dropdown:focus-within > .mega,
.has-dropdown.open > .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 6px);
}

.mega-col { display: flex; flex-direction: column; }
.mega-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink);
}
.mega-head span { font-size: 12px; font-weight: 700; color: var(--accent-2); letter-spacing: .04em; }
.mega-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  transition: background .18s;
}
.mega-link:hover { background: rgba(47, 111, 237, .08); }
.mega-link b { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.mega-link em { font-style: normal; font-size: 12.5px; color: var(--muted-2); font-weight: 600; }
.mega-note {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-2);
}

/* Reveal animation */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 1020px) {
  .grid-4, .stat-tiles, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid, .product-row, .product-row.flip { grid-template-columns: 1fr; gap: 36px; }
  .product-row.flip .product-media { order: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    overflow-x: hidden; /* overflow-y:auto would force overflow-x to auto on iOS and allow sideways panning */
    -webkit-overflow-scrolling: touch;
    background: rgba(9, 15, 28, .98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 18px 24px 30px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { color: #fff; padding: 13px 14px; border-radius: 10px; }
  .header-cta { display: none; }

  /* mobile: mega menu becomes an accordion */
  .main-nav li.has-dropdown { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav li.has-dropdown > a { flex: 1; }
  .dd-toggle { display: inline-flex; }
  .mega {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 8px 10px 14px;
    background: transparent;
    box-shadow: none;
    flex-basis: 100%;
  }
  .mega::before { display: none; }
  /* the desktop open-state rule (.has-dropdown.open > .mega) has higher
     specificity and would re-apply translate(-50%, …), shoving the whole
     accordion half a width off-screen — neutralize it here */
  .has-dropdown.open > .mega { display: grid; transform: none; }
  .mega-head { color: #fff; border-bottom-color: rgba(255, 255, 255, .14); }
  .mega-head span { color: var(--amber); }
  .mega-link b { color: rgba(255, 255, 255, .92); }
  .mega-link em { color: rgba(255, 255, 255, .55); }
  .mega-link:hover { background: rgba(255, 255, 255, .08); }
  .mega-note { color: rgba(255, 255, 255, .5); }
  .section { padding: 72px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4, .stat-tiles, .industry-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 120px 24px 64px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 28px 22px; }
}
