:root {
  --red: #E10600;
  --charcoal: #1F1F1F;
  --steel: #707070;
  --light-gray: #EAEAEA;
  --white: #FFFFFF;
  --bg: #0F0F0F;
  --bg-soft: #171717;
  --surface: #202020;
  --surface-strong: #2A2A2A;
  --text: #FFFFFF;
  --muted: #BDBDBD;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --container: 1160px;
}

:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-soft: #F6F6F6;
  --surface: #FFFFFF;
  --surface-strong: #F1F1F1;
  --text: #1F1F1F;
  --muted: #5E5E5E;
  --line: rgba(31, 31, 31, 0.12);
  --shadow: 0 24px 70px rgba(31, 31, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: background-color 220ms ease, color 220ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 48px, rgba(225, 6, 0, 0.07) 49px, transparent 50px),
    radial-gradient(circle at 74% 8%, rgba(225, 6, 0, 0.18), transparent 28rem);
  background-size: 50px 50px, auto;
  opacity: 0.72;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(225, 6, 0, 0.32);
}

.nav-menu {
  position: fixed;
  top: 72px;
  right: 16px;
  left: 16px;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle,
.icon-button,
.lang-switch {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.icon-button,
.lang-switch {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.lang-switch {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.theme-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -5px -5px 0 currentColor;
}

:root[data-theme="light"] .theme-icon {
  box-shadow: inset 5px 0 0 currentColor;
}

.section {
  padding: 82px 0;
}

.section-muted {
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 64px 0;
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(42px, 9vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.3;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(20px, 3.2vw, 30px);
  line-height: 1.2;
}

.hero-description,
.section-heading p:not(.eyebrow),
.about-copy,
.footer-note {
  color: var(--muted);
}

.hero-description {
  max-width: 660px;
  margin-bottom: 30px;
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 780;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 16px 34px rgba(225, 6, 0, 0.28);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: var(--surface);
}

.button-ghost {
  color: var(--muted);
}

.hero-visual {
  min-height: 330px;
}

.circuit-panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.14), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow);
}

.circuit-panel::before,
.circuit-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(225, 6, 0, 0.42);
}

.circuit-panel::before {
  inset: 44px;
}

.circuit-panel::after {
  right: 72px;
  bottom: 58px;
  width: 112px;
  height: 112px;
}

.circuit-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 32px rgba(225, 6, 0, 0.9);
}

.node-a {
  top: 58px;
  left: 58px;
}

.node-b {
  top: 58px;
  right: 58px;
}

.node-c {
  bottom: 72px;
  left: 42%;
}

.node-d {
  right: 122px;
  bottom: 102px;
}

.circuit-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.line-a {
  top: 64px;
  left: 72px;
  width: calc(100% - 144px);
}

.line-b {
  top: 52%;
  left: 44px;
  width: 52%;
  transform: rotate(35deg);
  transform-origin: left;
}

.line-c {
  right: 70px;
  bottom: 113px;
  width: 118px;
}

.voltage-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 120px;
  border: 16px solid var(--red);
  clip-path: polygon(48% 0, 100% 0, 62% 40%, 100% 40%, 28% 100%, 46% 56%, 0 56%);
  filter: drop-shadow(0 0 26px rgba(225, 6, 0, 0.55));
  transform: translate(-50%, -50%);
}

.section-heading {
  margin-bottom: 30px;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.info-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.info-card {
  min-height: 150px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.info-card:hover {
  border-color: rgba(225, 6, 0, 0.58);
  transform: translateY(-3px);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card.is-open {
  border-color: rgba(225, 6, 0, 0.58);
  background:
    linear-gradient(145deg, rgba(225, 6, 0, 0.08), transparent 44%),
    var(--surface);
}

.card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  font-weight: 900;
}

.service-details {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transition: grid-template-rows 240ms ease, margin-top 240ms ease, opacity 180ms ease;
}

.service-details > p {
  min-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.service-card.is-open .service-details {
  grid-template-rows: 1fr;
  margin-top: 16px;
  opacity: 1;
}

.service-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
  text-align: left;
}

.service-details + .service-toggle {
  margin-top: 18px;
}

.service-toggle-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.service-toggle-icon::before,
.service-toggle-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.5px;
  content: "";
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.service-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-card.is-open .service-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.about-copy {
  max-width: 680px;
  font-size: 17px;
}

.compliance-note {
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--red);
  color: var(--muted);
  font-size: 14px;
}

.social-feed-widget {
  width: 100%;
  min-height: 360px;
  overflow: hidden;
}

.social-feed-widget a[title=""][href] {
  display: none !important;
}

.contact-panel {
  padding: 24px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row span {
  color: var(--muted);
}

.contact-row a,
.contact-row strong {
  text-align: right;
}

.contact-actions {
  margin-top: 22px;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-shell {
  display: grid;
  gap: 24px;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.footer-details {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.copy-row {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.copy-row:last-child {
  border-bottom: 0;
}

.copy-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  white-space: pre-line;
  cursor: pointer;
}

.copy-value::after {
  flex: 0 0 auto;
  content: attr(data-copy-state);
  min-width: 62px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-align: center;
}

.copy-value:not([data-copy-state])::after {
  content: attr(data-copy-label);
}

.copy-value:hover::after,
.copy-value:focus-visible::after {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.footer-note {
  max-width: 760px;
  font-size: 13px;
}

.footer-socials {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-socials a:hover {
  color: var(--text);
}

.footer-copyright {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.footer-project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.footer-project-link:hover {
  color: var(--text);
}

.infinity-icon {
  color: var(--red);
  font-size: 18px;
  line-height: 1;
}

.footer-separator {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (min-width: 680px) {
  .services-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu a {
    padding: 8px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 0.85fr 1fr;
    align-items: start;
  }

  .footer-shell {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .footer-details,
  .footer-note {
    grid-column: 2;
  }

  .footer-socials,
  .footer-copyright {
    grid-column: 1 / -1;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
