/* ============================================================
  VORTRIX — Transformer website styles
   Theme: light electrical palette with electric amber + cyan accents
   ============================================================ */

:root {
  --bg: #f3f7fc;
  --bg-alt: #e9f0f9;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --border: rgba(20, 45, 95, 0.12);
  --border-strong: rgba(20, 45, 95, 0.24);

  --text: #10203a;
  --text-muted: #4a5a76;
  --text-dim: #7887a4;

  --amber: #FFBE00;
  --amber-soft: #805F00;
  --cyan: #004CB4;
  --cyan-soft: #004CB4;
  --gradient: linear-gradient(120deg, var(--cyan) 0%, #1764C2 48%, var(--amber) 100%);

  --header-bg: rgba(243, 247, 252, 0.85);
  --nav-bg: rgba(243, 247, 252, 0.97);
  --tint-cyan: rgba(0, 76, 180, 0.09);
  --tint-amber: rgba(255, 190, 0, 0.16);
  --img-frame: rgba(20, 45, 95, 0.14);
  --badge-border: #004CB494;
  --scheme: light;

  --veil: rgba(243, 247, 252, 0.2);
  --veil-alt: rgba(233, 240, 249, 0.36);
  --veil-header: rgba(243, 247, 252, 0.1);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow: 0 24px 50px -24px rgba(20, 45, 95, 0.35);
  --shadow-glow: 0 0 36px -10px rgba(0, 76, 180, 0.25);

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

:root { color-scheme: light; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: transparent; /* html carries the base color; the 3D layer sits behind content */
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; background: var(--veil); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.section--alt { background: var(--veil-alt); }

.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section__title--center { text-align: center; margin-inline: auto; }
.section__sub { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.12rem); margin-top: 14px; }
.section__lead { color: var(--text-muted); font-size: 1.15rem; margin: 18px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--amber); color: #10203a; box-shadow: 0 10px 30px -10px rgba(255, 190, 0, 0.38); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(0, 76, 180, 0.48); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-soft); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cyan-soft); background: var(--tint-cyan);
  border: 1px solid var(--badge-border); padding: 7px 16px; border-radius: 999px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--gradient); z-index: 200; transition: width 0.1s linear; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  background: var(--veil-header); backdrop-filter: blur(8px);
}
.header.is-scrolled {
  background: var(--header-bg); backdrop-filter: blur(14px);
  border-bottom-color: var(--border); box-shadow: 0 8px 30px -18px rgba(0,0,0,0.35);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo__image { display: none; width: 128px; height: 69px; object-fit: contain; border-radius: 3px; }
.logo__image--light { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.logo__mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--gradient); color: #071018; box-shadow: var(--shadow-glow); }
.logo__mark svg { width: 20px; height: 20px; }
.logo__text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav__list { display: flex; gap: 4px; }
.nav__list a { display: inline-block; padding: 8px 14px; border-radius: 8px; font-size: 0.92rem; color: var(--text-muted); font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav__list a:hover, .nav__list a.is-active { color: var(--text); background: rgba(120,150,220,0.08); }

.nav__item--dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-muted);
  font: 500 0.92rem var(--font-body); line-height: 1.65; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav__dropdown-toggle:hover,
.nav__dropdown-toggle[aria-expanded="true"] { color: var(--text); background: var(--tint-cyan); }
.nav__dropdown-chevron {
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.2s;
}
.nav__dropdown-toggle[aria-expanded="true"] .nav__dropdown-chevron { transform: translateY(2px) rotate(225deg); }
.nav__submenu {
  position: absolute; top: 100%; left: 0; z-index: 110; min-width: 270px;
  padding: 8px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__item--dropdown:hover .nav__submenu,
.nav__item--dropdown:focus-within .nav__submenu,
.nav__item--dropdown.is-open .nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.nav__submenu a {
  display: block; padding: 10px 12px !important; border-radius: 8px;
  color: var(--text-muted) !important; font-size: 0.9rem !important;
  white-space: nowrap;
}
.nav__submenu a:hover,
.nav__submenu a:focus-visible { color: var(--text) !important; background: var(--tint-cyan); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 42px; height: 42px; flex: none; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 clamp(60px, 10vw, 120px); overflow: hidden; background: var(--veil); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); aspect-ratio: 5 / 4; margin: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero__media:hover img { transform: scale(1.05); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 40%, rgba(255,190,0,0.14), rgba(0,76,180,0.2)); pointer-events: none; }
.hero__media figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: 0.8rem; color: #fff; background: rgba(0,0,0,0.45); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 20%, transparent 75%);
  animation: gridFloat 20s linear infinite;
}
@keyframes gridFloat { from { background-position: 0 0; } to { background-position: 54px 54px; } }
.hero__glow { position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; z-index: 0;
  background: radial-gradient(circle, rgba(0,76,180,0.24), transparent 60%), radial-gradient(circle at 70% 70%, rgba(255,190,0,0.14), transparent 60%);
  filter: blur(20px); animation: glowShift 12s ease-in-out infinite alternate; }
@keyframes glowShift { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 30px) scale(1.1); } }

.hero__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.3rem, 6.5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; margin: 22px 0 20px; }
.hero__title .grad { background: var(--amber); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__subtitle { color: var(--text-muted); font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 640px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- About ---------- */
.about__layout { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.about__paras p { color: var(--text-muted); margin-bottom: 16px; }
.about__highlights { display: grid; gap: 16px; }
.highlight { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform 0.3s, border-color 0.3s; }
.highlight:hover { transform: translateX(6px); border-color: var(--border-strong); }
.highlight__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-cyan); color: var(--cyan-soft); }
.highlight__icon svg { width: 24px; height: 24px; }
.highlight h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.highlight p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Cards grid (products) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface), var(--bg-alt));
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.card:hover, .card:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::after, .card:focus-visible::after { opacity: 1; }
.card--link { color: inherit; cursor: pointer; }
.card--link:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.card--link:hover .card__media img, .card--link:focus-visible .card__media img { filter: saturate(1.15) brightness(1.06); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-cyan); color: var(--cyan-soft); margin-bottom: 20px; }
.card__icon svg { width: 30px; height: 30px; }
.card__name { min-height: 1.3em; font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.card__range { min-height: 2.8em; color: var(--cyan-soft); font-size: 0.86rem; font-weight: 600; margin: 6px 0 14px; }
.card__desc { min-height: 5em; color: var(--text-muted); font-size: 0.95rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.card__tags span { font-size: 0.75rem; color: var(--text-muted); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.card__action { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--cyan-soft); font-size: 0.86rem; font-weight: 600; }
.card__arrow { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease; }
.card--link:hover .card__arrow, .card--link:focus-visible .card__arrow { transform: translateX(4px); background: var(--tint-cyan); color: var(--amber); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: transform 0.3s, background 0.3s; }
.feature:hover { transform: translateY(-5px); background: var(--surface-2); }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan); color: #fff; margin-bottom: 16px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Specs table ---------- */
.specs-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.specs-row { display: grid; grid-template-columns: 1fr 1.5fr; border-bottom: 1px solid var(--border); transition: background 0.25s; }
.specs-row:last-child { border-bottom: none; }
.specs-row:hover { background: var(--surface-2); }
.specs-row .k { padding: 18px 24px; font-family: var(--font-head); font-weight: 600; color: var(--text); border-right: 1px solid var(--border); }
.specs-row .v { padding: 18px 24px; color: var(--cyan-soft); }

/* ---------- Industries ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.industry { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-alt); transition: border-color 0.3s, transform 0.3s; }
.industry:hover { border-color: var(--cyan-soft); transform: translateY(-4px); }
.industry__icon { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--tint-cyan); color: var(--cyan-soft); }
.industry__icon svg { width: 24px; height: 24px; }
.industry h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.industry p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: transform 0.3s; }
.step:hover { transform: translateY(-5px); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.55; }
.step h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 12px 0 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(160deg, var(--bg-alt), var(--bg)); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-item .lbl { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; }
.testimonial { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: transform 0.3s, border-color 0.3s; }
.testimonial:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.testimonial__quote { color: var(--text); font-size: 1rem; position: relative; padding-top: 28px; }
.testimonial__quote::before { content: "\201C"; position: absolute; top: -10px; left: -4px; font-family: Georgia, serif; font-size: 4rem; color: var(--amber); opacity: 0.4; line-height: 1; }
.testimonial__author { margin-top: 20px; }
.testimonial__author .name { font-family: var(--font-head); font-weight: 600; }
.testimonial__author .role { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.faq-item.is-open { border-color: var(--border-strong); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.faq-q .icon { flex: none; width: 24px; height: 24px; position: relative; transition: transform 0.3s; }
.faq-q .icon::before, .faq-q .icon::after { content: ""; position: absolute; background: var(--amber); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .icon::before { width: 14px; height: 2px; }
.faq-q .icon::after { width: 2px; height: 14px; transition: transform 0.3s; }
.faq-item.is-open .faq-q .icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: clamp(50px, 8vw, 90px) 0; }
.cta-banner__inner { text-align: center; padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px); border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,76,180,0.18), rgba(255,190,0,0.12)); border: 1px solid var(--border-strong); }
.cta-banner__inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,190,0,0.16), transparent 50%); }
.cta-banner__inner > * { position: relative; }
.cta-banner__inner h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
.cta-banner__inner p { color: var(--text-muted); max-width: 560px; margin: 14px auto 28px; }

/* ---------- Contact ---------- */
.contact__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 64px); }
.contact__info { margin-top: 32px; display: grid; gap: 18px; }
.contact__info li { display: flex; gap: 14px; align-items: center; }
.contact__info .ci-icon { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--tint-amber); color: var(--amber); }
.contact__info .ci-icon svg { width: 22px; height: 22px; }
.contact__info .ci-label { color: var(--text-dim); font-size: 0.8rem; }
.contact__info .ci-value { font-weight: 500; }

.contact__form { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-muted); }
.field label .req { color: var(--amber); }
.field input, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.25s, box-shadow 0.25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,76,180,0.16); }
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error textarea { border-color: #ff6b6b; }
.field__error { color: #ff8f8f; font-size: 0.8rem; margin-top: 5px; display: none; }
.field.has-error .field__error { display: block; }
.form__note { margin-top: 14px; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form__note.is-success { color: var(--cyan-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: clamp(48px, 7vw, 72px); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(32px, 6vw, 64px); padding-bottom: 48px; }
.logo--footer { font-size: 1.15rem; }
.footer__about { color: var(--text-muted); font-size: 0.93rem; margin-top: 16px; max-width: 340px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 5px 0; transition: color 0.2s, padding-left 0.2s; }
.footer__col a:hover { color: var(--cyan-soft); padding-left: 5px; }
.footer__bottom { border-top: 1px solid var(--border); padding-block: 24px; text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; transition: opacity 0.5s, visibility 0.5s; }
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__spark { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--amber); border-right-color: var(--cyan); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Language switcher ---------- */
.gtranslate_wrapper { display: flex; align-items: center; flex: none; line-height: 1; }
#gt_float_wrapper {
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  z-index: 101 !important;
}
#gt_float_wrapper .gt_float_switcher {
  width: auto !important;
  min-width: 68px !important;
  height: 42px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
#gt_float_wrapper .gt_float_switcher:hover { border-color: var(--cyan) !important; color: var(--cyan) !important; }
#gt_float_wrapper .gt_float_switcher:hover .gt-current-lang { color: var(--cyan) !important; }
#gt_float_wrapper .gt_float_switcher:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
#gt_float_wrapper .gt-current-lang {
  display: flex !important;
  width: 100%;
  height: 40px;
  padding: 0 8px !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text) !important;
  cursor: pointer;
}
#gt_float_wrapper .gt-current-lang > img {
  display: block !important;
  width: 20px !important;
  height: auto !important;
  margin: 0 !important;
}
#gt_float_wrapper .gt-lang-code {
  display: inline !important;
  position: static !important;
  color: var(--text) !important;
  font-size: 0.75rem;
  line-height: 1;
}
#gt_float_wrapper .gt_float_switcher-arrow { display: none !important; }
#gt_float_wrapper .gt_options {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  z-index: 102 !important;
  min-width: 190px !important;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  border: 1px solid var(--border-strong) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow) !important;
  transform: none !important;
  transition: opacity 0.15s ease !important;
}
#gt_float_wrapper .gt_options a {
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 8px 12px !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--font-body) !important;
  transition: none !important;
}
#gt_float_wrapper .gt_options a.gt-current { display: none !important; }
#gt_float_wrapper .gt_options a:hover,
#gt_float_wrapper .gt_options a.gt-current {
  color: var(--text) !important;
  background: var(--tint-cyan) !important;
}
#gt_float_wrapper .gt_options a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
#gt_float_wrapper .gt_options a:last-child { border-bottom: 0 !important; }

/* ---------- About media ---------- */
.about__media { margin: clamp(28px, 5vw, 44px) 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); aspect-ratio: 16 / 6; }
.about__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.about__media:hover img { transform: scale(1.04); }

/* ---------- Product card image ---------- */
.card__media { position: relative; margin: -30px -30px 22px; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--surface)); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: saturate(0.95); }
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.1); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 55%, rgba(0,76,180,0.3), rgba(255,190,0,0.12)); opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

/* ---------- Image loading state ---------- */
.img-load { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.img-load.is-loaded { animation: none; background: none; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
img.fade-img { opacity: 0; transition: opacity 0.5s ease; }
img.fade-img.is-loaded { opacity: 1; }

/* ---------- 3D transformer background layer (right side) ---------- */
/* Sits behind the page content as an ambient element. mix-blend-mode +
   opacity + a left-fade mask make only the model show, so it never looks
   like a separate panel and text stays readable. */
:root { --model-opacity: 0.85; --model-blend: multiply; }

#transformer3d {
  display: none; position: fixed; top: 0; right: 0;
  width: min(60vw, 900px); height: 100vh; z-index: -1; pointer-events: none;
  opacity: var(--model-opacity); mix-blend-mode: var(--model-blend);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
#transformer3d canvas { display: block; width: 100% !important; height: 100% !important; }

.model-hint { display: none; position: fixed; right: 24px; bottom: 26px; z-index: 7; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.model-hint.is-visible { opacity: 1; }
.model-hint__arrow { color: var(--cyan); animation: hintBounce 1.6s ease-in-out infinite; }
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Enable only on wide screens where there is room beside the content */
@media (min-width: 1200px) {
  body.model-on #transformer3d { display: block; }
  body.model-on .model-hint { display: inline-flex; }
}

@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; aspect-ratio: 16 / 10; }
  .about__layout { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet & below: collapse the primary nav into a slide-down menu so
   the header never overflows between ~760px and ~1024px. */
@media (max-width: 1024px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform 0.35s ease; padding: 16px var(--gutter) 24px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { padding: 13px 14px; font-size: 1rem; border-radius: 10px; }
  .nav__item--dropdown { width: 100%; }
  .nav__dropdown-toggle { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1rem; text-align: left; }
  .nav__submenu {
    position: static; display: none; min-width: 0; padding: 4px 0 8px 12px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  .nav__item--dropdown:hover .nav__submenu,
  .nav__item--dropdown:focus-within .nav__submenu { display: none; }
  .nav__item--dropdown.is-open .nav__submenu { display: block; }
  .nav__submenu a { padding: 10px 14px !important; font-size: 0.95rem !important; white-space: normal; }
  .nav-toggle { display: flex; }
  #navCta { display: none; }
}

@media (max-width: 760px) {
  .specs-row { grid-template-columns: 1fr; }
  .specs-row .k { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
  .specs-row .v { padding-top: 8px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .about__media { aspect-ratio: 16 / 9; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .card__name { font-size: 1rem; }
  .btn { width: 100%; }
  .hero__ctas { flex-direction: column; }
  .footer__cols { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .gallery-item--wide, .gallery-item--tall { grid-column: auto; grid-row: auto; }
}

/* ---------- Interactive transformer model ---------- */
.model-explorer { overflow: hidden; background: var(--bg-alt); backdrop-filter: none; -webkit-backdrop-filter: none; }
.model-explorer .section__head { max-width: 760px; }
.model-explorer__layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.72fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.model-stage { position: relative; min-width: 0; height: 520px; overflow: hidden; border: 1px solid var(--border-strong); background-color: var(--bg-alt); background-image: linear-gradient(rgba(120,150,220,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120,150,220,0.08) 1px, transparent 1px); background-size: 36px 36px; }
.model-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.model-stage canvas:active { cursor: grabbing; }
.model-stage__status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); font-size: 0.92rem; pointer-events: none; }
.model-stage__status.is-hidden { display: none; }
.model-stage__index { position: absolute; left: 18px; bottom: 16px; color: var(--text-dim); font: 600 0.68rem var(--font-head); letter-spacing: 0.08em; pointer-events: none; }
.model-callouts, .model-callouts__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.model-callouts { z-index: 2; overflow: hidden; }
.model-callouts__lines { z-index: 1; overflow: visible; }
.model-callout-line { fill: none; stroke: var(--cyan); stroke-width: 1.5; opacity: 0.78; vector-effect: non-scaling-stroke; }
.model-callout-dot { fill: var(--amber); stroke: var(--bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.model-callout-dot.is-active { fill: var(--cyan); stroke: #fff; stroke-width: 2; }
.model-callout { position: absolute; max-width: 132px; min-height: 30px; padding: 6px 9px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--bg) 90%, transparent); color: var(--text); font: 600 0.68rem/1.2 var(--font-head); text-align: left; cursor: pointer; pointer-events: auto; box-shadow: 0 3px 12px rgba(0,0,0,0.2); transition: color 0.18s, border-color 0.18s, background 0.18s, opacity 0.18s; }
.model-callout:hover, .model-callout.is-active { border-color: var(--cyan); color: var(--cyan-soft); background: var(--surface); }
.model-callout:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.model-callout.is-hidden { display: none; }
.model-parts { display: flex; min-width: 0; flex-direction: column; border-top: 2px solid var(--cyan); }
.model-parts__detail { padding: 24px 0 22px; border-bottom: 1px solid var(--border-strong); }
.model-parts__eyebrow { color: var(--cyan-soft); font: 600 0.7rem var(--font-head); letter-spacing: 0.08em; }
.model-parts__detail h3 { margin-top: 10px; font: 600 1.3rem/1.25 var(--font-head); }
.model-parts__detail p { margin-top: 10px; color: var(--text-muted); font-size: 0.92rem; }
.model-parts__list { display: grid; }
.model-part { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text-muted); text-align: left; font: 500 0.9rem var(--font-body); cursor: pointer; transition: color 0.2s, background 0.2s; }
.model-part span { color: var(--text-dim); font: 600 0.7rem var(--font-head); }
.model-part:hover, .model-part.is-active { color: var(--text); background: var(--tint-cyan); }
.model-part.is-active span { color: var(--cyan-soft); }
.model-part:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.model-parts__list { max-height: 390px; overflow-y: auto; }

@media (max-width: 760px) {
  .model-explorer__layout { grid-template-columns: 1fr; }
  .model-stage { height: min(108vw, 430px); min-height: 300px; }
  .model-parts__detail { padding-top: 20px; }
  .model-callout { max-width: 108px; padding: 5px 7px; font-size: 0.62rem; }
}
