:root {
  color-scheme: light;
  --navy-950: #061426;
  --navy-900: #071b33;
  --navy-800: #0a274a;
  --blue-700: #063a75;
  --blue-600: #0353a8;
  --blue-500: #1170cf;
  --blue-400: #3492eb;
  --blue-100: #bfe3ff;
  --blue-50: #dbf0ff;
  --blue-25: #f0f7ff;
  --bronze: #c49a6c;
  --ink: #122033;
  --ink-muted: #58677a;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --border: #dce4ed;
  --success: #1d8b63;
  --warning: #ca7b16;
  --shadow-sm: 0 8px 24px rgba(9, 27, 51, 0.07);
  --shadow-lg: 0 28px 80px rgba(4, 22, 43, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shell: 1200px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-600);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: #fff;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(4, 22, 43, 0.16);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--bronze), var(--blue-400) 52%, var(--bronze));
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-400), var(--blue-600));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 112, 207, 0.3);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-name {
  color: inherit;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brand-name span {
  color: var(--blue-400);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav a:hover {
  color: #fff;
}

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

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.language-option {
  min-width: 34px;
  min-height: 32px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.64);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.language-option:hover {
  color: #fff;
}

.language-option[aria-current="page"] {
  color: #fff;
  background: var(--blue-500);
  box-shadow: 0 4px 14px rgba(17, 112, 207, 0.3);
}

.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.32);
}

.header-cta svg,
.button svg,
.portal-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.header-cta:hover svg,
.button:hover svg,
.portal-card:hover .portal-link svg {
  transform: translateX(3px);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(7, 27, 51, 0.98) 0%, rgba(7, 27, 51, 0.94) 46%, rgba(10, 39, 74, 0.96) 100%),
    radial-gradient(circle at 80% 20%, #1170cf 0%, transparent 50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 146, 235, 0.55), transparent);
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}

.hero-glow-one {
  width: 520px;
  height: 520px;
  top: -260px;
  right: -90px;
  background: radial-gradient(circle, rgba(52, 146, 235, 0.18), transparent 70%);
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  bottom: -300px;
  left: 22%;
  background: radial-gradient(circle, rgba(196, 154, 108, 0.15), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  align-items: center;
  gap: 70px;
  padding-block: 84px 94px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--blue-400);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze), var(--blue-400));
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 em {
  color: var(--blue-400);
  font-family: var(--font-serif);
  font-weight: 500;
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--blue-500);
  box-shadow: 0 12px 32px rgba(17, 112, 207, 0.34);
}

.button-primary:hover {
  background: var(--blue-400);
  box-shadow: 0 16px 40px rgba(17, 112, 207, 0.4);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.17);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  list-style: none;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.hero-features span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--blue-100);
  background: rgba(52, 146, 235, 0.16);
  border-radius: 50%;
  font-size: 11px;
}

.network-visual {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  justify-self: end;
}

.network-visual::before {
  content: "";
  position: absolute;
  inset: 11%;
  background: radial-gradient(circle, rgba(17, 112, 207, 0.17), transparent 65%);
  border-radius: 50%;
}

.network-orbit {
  position: absolute;
  border: 1px solid rgba(142, 203, 255, 0.13);
  border-radius: 50%;
}

.network-orbit-outer {
  inset: 4%;
}

.network-orbit-inner {
  inset: 25%;
  border-color: rgba(196, 154, 108, 0.14);
}

.network-hub {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 152px;
  height: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(142, 203, 255, 0.25);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(17, 112, 207, 0.24), rgba(6, 20, 38, 0.96));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 0 34px rgba(52, 146, 235, 0.08);
  transform: translate(-50%, -50%);
}

.hub-pulse {
  position: absolute;
  inset: -12px;
  opacity: 0.35;
  border: 1px solid rgba(52, 146, 235, 0.3);
  border-radius: 50%;
}

.hub-logo {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: #fff;
  background: var(--blue-500);
  border-radius: 12px;
}

.hub-logo svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.network-hub strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.network-hub small,
.network-node small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.network-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(52, 146, 235, 0.12), rgba(52, 146, 235, 0.6), rgba(52, 146, 235, 0.12));
  border-radius: 999px;
  transform-origin: left center;
}

.network-line::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 20%;
  height: 5px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(191, 227, 255, 0.96), rgba(52, 146, 235, 0.6) 38%, transparent 72%);
  transform: translate3d(-100%, 0, 0) scaleX(0.7);
}

.line-one {
  width: 45%;
  transform: rotate(-36deg);
}

.line-two {
  width: 46%;
  transform: rotate(40deg);
}

.line-three {
  width: 42%;
  transform: rotate(150deg);
}

.line-four {
  width: 44%;
  transform: rotate(210deg);
}

.line-one,
.node-wallbox { --signal-delay: 0s; }

.line-two,
.node-fleet { --signal-delay: 2s; }

.line-three,
.node-driver { --signal-delay: 4s; }

.line-four,
.node-operations { --signal-delay: 6s; }

.network-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px 10px 10px;
  color: #fff;
  background: rgba(9, 33, 62, 0.88);
  border: 1px solid rgba(142, 203, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.node-icon {
  position: relative;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--blue-100);
  background: rgba(17, 112, 207, 0.18);
  border-radius: 10px;
}

.node-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(142, 203, 255, 0.55);
  border-radius: inherit;
  transform: scale(0.78);
}

.node-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-node > span:last-child {
  display: flex;
  flex-direction: column;
}

.network-node strong {
  font-size: 12px;
  line-height: 1.3;
}

.node-wallbox { top: 4%; right: 13%; }
.node-fleet { top: 42%; right: -1%; }
.node-driver { bottom: 5%; left: 19%; }
.node-operations { top: 22%; left: 0; }

@keyframes pulse {
  0% { opacity: 0.8; transform: scale(0.9); }
  70%, 100% { opacity: 0; transform: scale(1.12); }
}

@keyframes network-data-flow {
  0%, 4% { opacity: 0; transform: translate3d(-100%, 0, 0) scaleX(0.7); }
  8% { opacity: 0.95; }
  28% { opacity: 0.75; }
  32%, 100% { opacity: 0; transform: translate3d(500%, 0, 0) scaleX(1); }
}

@keyframes node-receive {
  0%, 27%, 100% { opacity: 0; transform: scale(0.78); }
  32% { opacity: 0.72; transform: scale(1); }
  42% { opacity: 0; transform: scale(1.42); }
}

@keyframes hub-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@media (prefers-reduced-motion: no-preference) {
  .network-line::after {
    animation: network-data-flow 8s linear var(--signal-delay) infinite;
  }

  .node-icon::after {
    animation: node-receive 8s ease-out var(--signal-delay) infinite;
  }

  .hub-pulse {
    animation: pulse 4s ease-out infinite;
  }

  .hub-logo {
    animation: hub-breathe 4s ease-in-out infinite;
  }
}

.section {
  padding-block: 104px;
}

.portals {
  background: var(--surface-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 50px;
  margin-bottom: 44px;
}

.section-heading h2,
.ocpp-intro h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  position: relative;
  min-height: 304px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(9, 27, 51, 0.02);
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(17, 112, 207, 0.07), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portal-card:hover {
  z-index: 2;
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.portal-card-featured {
  color: #fff;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-700));
  border-color: transparent;
  box-shadow: 0 18px 50px rgba(3, 83, 168, 0.18);
}

.portal-card-featured::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.portal-card-featured:hover {
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(3, 83, 168, 0.26);
}

.portal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  color: var(--blue-600);
  background: var(--blue-25);
  border: 1px solid var(--blue-50);
  border-radius: 13px;
}

.portal-card-featured .portal-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.portal-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-label {
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-card-featured .portal-label {
  color: var(--blue-100);
}

.portal-card h3 {
  margin: 7px 0 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.portal-card p {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
}

.portal-card p code {
  color: inherit;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.portal-card-featured p {
  color: rgba(255, 255, 255, 0.7);
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 750;
}

.portal-card-featured .portal-link {
  color: #fff;
}

.portal-link svg {
  width: 15px;
  height: 15px;
}

.documentation-group {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.documentation-kicker {
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.documentation-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  color: var(--ink);
  background: linear-gradient(110deg, #fff 0%, var(--blue-25) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(9, 27, 51, 0.02);
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.documentation-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.documentation-card .portal-icon {
  margin-bottom: 0;
}

.documentation-copy h3 {
  margin: 4px 0 3px;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.documentation-copy p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

.documentation-card .portal-link {
  margin-top: 0;
  white-space: nowrap;
}

.documentation-card:hover .portal-link svg {
  transform: translateX(3px);
}

.ocpp-section {
  background: #fff;
}

.ocpp-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(480px, 1.25fr);
  gap: 70px;
  padding: 68px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 5% 110%, rgba(196, 154, 108, 0.13), transparent 38%),
    radial-gradient(circle at 95% -10%, rgba(52, 146, 235, 0.2), transparent 38%),
    var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.ocpp-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 65%);
}

.ocpp-intro,
.endpoint-list {
  position: relative;
  z-index: 1;
}

.section-kicker-light {
  color: var(--blue-400);
}

.ocpp-intro h2 {
  color: #fff;
}

.ocpp-intro > p:not(.section-kicker) {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.75;
}

.ocpp-intro code {
  color: var(--blue-100);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.ocpp-note {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 15px;
  background: rgba(52, 146, 235, 0.08);
  border: 1px solid rgba(52, 146, 235, 0.17);
  border-radius: 12px;
}

.ocpp-note svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: var(--blue-100);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ocpp-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.6;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.endpoint-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.endpoint-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.endpoint-status,
.endpoint-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.endpoint-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.58);
}

.endpoint-status > span {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(29, 139, 99, 0.12);
}

.endpoint-legacy .endpoint-status > span {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(202, 123, 22, 0.12);
}

.endpoint-badge {
  padding: 5px 8px;
  color: #a8efd5;
  background: rgba(29, 139, 99, 0.13);
  border: 1px solid rgba(65, 192, 146, 0.2);
  border-radius: 7px;
}

.endpoint-legacy .endpoint-badge {
  color: #ffd49a;
  background: rgba(202, 123, 22, 0.12);
  border-color: rgba(232, 160, 67, 0.2);
}

.endpoint-card h3 {
  margin: 13px 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.endpoint-code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 9px 9px 13px;
  background: rgba(3, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.endpoint-code > code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--blue-100);
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  font: 700 11px/1 var(--font-sans);
  transition: background 150ms ease, color 150ms ease;
}

.copy-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.copy-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-button .check-icon {
  display: none;
}

.copy-button.is-copied {
  color: #a8efd5;
}

.copy-button.is-copied .copy-icon {
  display: none;
}

.copy-button.is-copied .check-icon {
  display: block;
}

.legacy-warning {
  margin: 10px 2px 0;
  color: #e9b976;
  font-size: 11px;
  line-height: 1.5;
}

.copy-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  color: rgba(255, 255, 255, 0.58);
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 48px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  margin: 3px 0 0;
  font-size: 12px;
}

.footer-company {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-style: normal;
  line-height: 1.75;
}

.footer-company strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
  font-size: 12px;
}

.legal-main {
  min-height: calc(100vh - 234px);
  background: var(--surface-soft);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 10%, rgba(52, 146, 235, 0.2), transparent 36%),
    var(--navy-900);
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 146, 235, 0.55), transparent);
}

.legal-hero-inner {
  padding-block: 78px 82px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.legal-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.legal-content {
  padding-block: 64px 92px;
}

.legal-card {
  max-width: 900px;
  margin-inline: auto;
  padding: 18px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal-card-wide {
  max-width: 1020px;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: 30px;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-section p,
.legal-section address {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.8;
}

.legal-section-body {
  min-width: 0;
}

.legal-section-body > * + * {
  margin-top: 14px;
}

.legal-section code {
  padding: 2px 6px;
  color: var(--ink);
  font-size: 0.92em;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.legal-updated {
  max-width: 1020px;
  margin: 22px auto 0;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: right;
}

.legal-section strong {
  color: var(--ink);
}

.legal-section a {
  color: var(--blue-600);
  text-underline-offset: 3px;
}

.legal-back {
  max-width: 900px;
  margin: 26px auto 0;
}

.legal-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.legal-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    gap: 30px;
  }

  .network-visual {
    transform: scale(0.88);
  }

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

  .ocpp-panel {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .primary-nav {
    display: none;
  }

  .header-actions,
  .header-inner > .header-cta {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 72px 76px;
  }

  .hero-copy {
    position: relative;
    z-index: 4;
  }

  .network-visual {
    width: min(100%, 500px);
    justify-self: center;
    margin-top: -8px;
    transform: none;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .documentation-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .documentation-card .portal-link {
    grid-column: 2;
  }

  .ocpp-panel {
    padding: 44px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-block: 32px;
  }

  .footer-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-cta {
    width: 42px;
    padding: 0;
    overflow: hidden;
    justify-content: center;
    color: transparent;
    white-space: nowrap;
  }

  .header-cta svg {
    position: absolute;
    color: #fff;
  }

  .hero-grid {
    padding-block: 58px 64px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .network-visual {
    width: 430px;
    max-width: none;
    left: auto;
    margin-left: 0;
    justify-self: center;
    transform: scale(0.86);
  }

  .network-node {
    transform: scale(0.9);
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 280px;
  }

  .documentation-group {
    margin-top: 36px;
    padding-top: 28px;
  }

  .documentation-card {
    gap: 16px;
    padding: 20px;
  }

  .documentation-card .portal-link {
    white-space: normal;
  }

  .ocpp-panel {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .endpoint-code {
    align-items: stretch;
    flex-direction: column;
  }

  .endpoint-code > code {
    padding: 5px 3px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
  }

  .copy-button {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .legal-hero-inner {
    padding-block: 56px 60px;
  }

  .legal-content {
    padding-block: 40px 64px;
  }

  .legal-card {
    padding: 6px 24px;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .network-line::after,
  .node-icon::after {
    display: none;
  }

  .hub-pulse,
  .hub-logo {
    animation: none !important;
    transform: none;
  }
}
