:root {
  --bg: #050914;
  --panel: rgba(7, 18, 33, 0.86);
  --line: rgba(123, 174, 223, 0.24);
  --line-strong: rgba(75, 162, 255, 0.48);
  --text: #eef6ff;
  --muted: #9fb0c4;
  --blue: #2388ff;
  --blue-strong: #57a8ff;
  --cyan: #66d9ef;
  --amber: #f5bd55;
  --ok: #78d08b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f9fe;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(35, 94, 153, 0.18);
  --line-strong: rgba(35, 136, 255, 0.42);
  --text: #102033;
  --muted: #52677e;
  --blue: #176fd2;
  --blue-strong: #0b72e7;
  --ok: #2f9f58;
  --shadow: 0 24px 70px rgba(23, 68, 112, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  background:
    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: 36px 36px;
}

:root[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(23, 111, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 111, 210, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}

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

.teaser {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow: hidden;
}

.teaser-bg,
.teaser-overlay {
  position: fixed;
  inset: 0;
}

.teaser-bg {
  z-index: -3;
  display: block;
  opacity: 0.76;
}

.teaser-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

:root[data-theme="light"] .teaser-bg {
  opacity: 0.82;
}

.teaser-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 9, 20, 0.98), rgba(5, 9, 20, 0.84) 45%, rgba(5, 9, 20, 0.52)),
    linear-gradient(180deg, rgba(5, 9, 20, 0.05), #050914 100%);
}

:root[data-theme="light"] .teaser-overlay {
  background:
    linear-gradient(90deg, rgba(245, 249, 254, 0.88), rgba(245, 249, 254, 0.62) 44%, rgba(245, 249, 254, 0.1)),
    linear-gradient(180deg, rgba(245, 249, 254, 0), rgba(245, 249, 254, 0.42) 100%);
}

.topbar,
.hero,
.footer-box {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #07111f;
  background: var(--blue-strong);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(35, 136, 255, 0.36);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

:root[data-theme="light"] .brand-mark {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.78);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: rgba(7, 18, 33, 0.58);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

:root[data-theme="light"] .theme-toggle {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.78);
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-icon-sun {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  padding: clamp(40px, 6vw, 84px) 0 clamp(52px, 8vw, 104px);
}

:root[data-theme="light"] .hero-copy {
  text-shadow: 0 1px 22px rgba(255, 255, 255, 0.72);
}

.terminal-label {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

:root[data-theme="light"] .terminal-label {
  color: var(--blue);
}

h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 9vw, 7.8rem);
  font-weight: 700;
  line-height: 0.92;
}

.subtitle {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--blue-strong);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
}

.summary {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.summary + .summary {
  margin-top: 10px;
}

.dynamic-tech {
  display: inline-block;
  min-width: 24ch;
  color: var(--blue-strong);
  font-family: var(--font-display);
  font-weight: 700;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.dynamic-tech.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  color: #04101d;
  background: var(--blue-strong);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 0 36px rgba(35, 136, 255, 0.25);
  font-family: var(--font-display);
  font-weight: 800;
}

:root[data-theme="light"] .button {
  color: #ffffff;
}

.status-card,
.footer-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.status-card {
  align-self: end;
  overflow: hidden;
}

:root[data-theme="light"] .status-card,
:root[data-theme="light"] .footer-box {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(23, 68, 112, 0.1);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="light"] .window-bar {
  background: rgba(35, 94, 153, 0.045);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--ok);
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  display: block;
  padding: 22px;
  color: #cce7ff;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.6;
}

:root[data-theme="light"] code {
  color: #183550;
}

.prompt {
  color: var(--blue-strong);
}

.footer-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px 22px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .status-card {
    align-self: auto;
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .footer-box {
    width: min(100% - 28px, 1240px);
  }

  .button {
    width: 100%;
  }
}
