:root {
  --color-accent: #78a9ff;
  --color-accent2: #be95ff;
  --color-background: #161616;
  --color-charging: #33b1ff;
  --color-critical: #ee5396;
  --color-error: #ee5396;
  --color-good: #25be6a;
  --color-info: #33b1ff;
  --color-island-bg: #0d0d0d;
  --color-main-bg: #161616;
  --color-main-br: #484848;
  --color-main-fg: #f2f4f8;
  --color-muted: #a6adc8;
  --color-on-primary: #161616;
  --color-on-surface: #f2f4f8;
  --color-on-surface-variant: #a6adc8;
  --color-outline: #484848;
  --color-outline-variant: #48484899;
  --color-primary: #78a9ff;
  --color-primary-container: #2c4a7a;
  --color-primary-text: #161616;
  --color-secondary: #be95ff;
  --color-success: #25be6a;
  --color-surface: #161616;
  --color-surface-container: #1b1b1b;
  --color-surface-container-high: #252525;
  --color-surface-container-highest: #2f2f2f;
  --color-surface-container-low: #121212;
  --color-surface-container-lowest: #0d0d0d;
  --color-surface-text: #f2f4f8;
  --color-surface-variant: #2a2a2a;
  --color-surface-variant-text: #a6adc8;
  --color-warning: #08bdba;
  --font-family: "Noto Sans";
  --font-mono: "UbuntuMono Nerd Font";
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 12px;
  --space-l: 16px;
  --space-xl: 24px;
  --radius-xs: 4px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
}

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

body {
  background: var(--color-main-bg);
  color: var(--color-main-fg);
  font-family: var(--font-family), system-ui, sans-serif;
}

/* The colors come from the theme (opico-web writes it before these rules): carbonfox, dark only.
   Each var() has the carbonfox value as a fallback, so the page also shows correctly when it is
   opened from disk without the theme. The landing keeps its own font. */
:root {
  --box-bg: rgba(22, 22, 22, 0.72);
  --box-line: rgba(242, 244, 248, 0.18);
  --ok: #25be6a;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-main-bg, #161616) url("/background.svg") center / cover no-repeat fixed;
  color: var(--color-main-fg, #f2f4f8);
  font-family: "Noto Sans", system-ui, sans-serif;
}

/* The live background (opico-web-wasm) lies over the CSS background and stays fixed while the page
   scrolls. It stays transparent until its first frame, and also when the wasm or the GPU path
   fails: then background.svg shows. */
.background {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 56px;
  box-sizing: border-box;
}

.logo {
  display: block;
  width: min(560px, 94vw);
  height: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
}

/* One box look for the description box (inside the logo), the contact box and the buttons. */
.box, .chip {
  background: var(--box-bg);
  border: 1px solid var(--box-line);
  border-radius: 14px;
}

.contact {
  margin-top: 4px;
  padding: 10px 28px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.88;
}
.contact p { margin: 0; }
.contact a { color: var(--color-accent, #78a9ff); text-decoration: none; }
.contact a:hover, .contact a:focus-visible { text-decoration: underline; }

.status {
  margin: 18px 0 0;
  white-space: nowrap;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.status a { color: var(--color-accent, #78a9ff); text-decoration: none; }
.status a:hover, .status a:focus-visible { text-decoration: underline; }

.status::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0.6em var(--ok);
  vertical-align: 0.12em;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .status::before { animation: none; }
  html { scroll-behavior: auto; }
}

.features-title {
  margin: 18px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* More room between the status line and the feature buttons. */
.hero .features-title {
  margin-top: 44px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  padding: 7px 14px;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
}
.chip:hover, .chip:focus-visible {
  border-color: var(--color-accent, #78a9ff);
  outline: none;
}

.features {
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: 300px;
  padding: 32px 0;
  scroll-margin-top: 16px;
}
.feature:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1 1 0; }
.feature-text h3 { margin: 0 0 12px; font-size: 26px; font-weight: 700; }
.feature-text p { margin: 0; font-size: 17px; line-height: 1.55; opacity: 0.88; }

.feature-text ul { margin: 12px 0 0; padding-left: 1.2em; font-size: 16px; line-height: 1.5; opacity: 0.88; }
.feature-text li { margin: 4px 0; }

.roadmap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin-top: 24px;
}
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 28px;
}
.phase { padding: 16px 18px; }
.phase h3 { margin: 0; font-size: 20px; font-weight: 700; }
.phase .when { margin: 2px 0 0; font-size: 14px; opacity: 0.7; }
.phase ul { margin: 10px 0 0; padding-left: 1.1em; font-size: 15px; line-height: 1.45; opacity: 0.88; }
.phase li { margin: 4px 0; }
.phase.current { border-color: var(--ok); box-shadow: 0 0 0.8em rgba(37, 190, 106, 0.25); }
.phase.current h3::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: 0.15em;
}

@media (max-width: 1000px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .phases { grid-template-columns: 1fr; } }

/* Empty slot for the media (card 4098). */
.feature-media {
  flex: 1 1 0;
  min-height: 220px;
  border: 1px dashed var(--box-line);
  border-radius: 14px;
  background: var(--box-bg);
}

/* A slot with HTML animations (1280x720 iframe scaled to the slot width by the script). */
.feature-media.showcase {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-style: solid;
}
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
.showcase-tabs button {
  padding: 3px 12px;
  border: 1px solid var(--box-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  opacity: 0.7;
  cursor: pointer;
}
.showcase-tabs button:hover, .showcase-tabs button:focus-visible { border-color: var(--color-accent, #78a9ff); outline: none; }
.showcase-tabs button.active { opacity: 1; border-color: var(--color-accent, #78a9ff); }
.showcase-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.showcase-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(0.4);
  pointer-events: none;
}

@media (max-width: 700px) {
  .feature,.feature:nth-child(even) { flex-direction: column; align-items: stretch; gap: 20px; min-height: 0; }
  .feature-media { min-height: 160px; }
  .feature-media.showcase { flex: none; min-height: 0; }
  .status { white-space: normal; text-align: center; padding: 0 16px; }
}

footer {
  padding: 0 16px 16px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
