*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --black: #070707;
  --white: #f8f8f8;
  --blue: #2775ca;
  --blue-hot: #3d8ef0;
  --cyan: #5fd4ff;
  --panel: rgba(8, 10, 16, 0.82);
  --line: rgba(95, 212, 255, 0.35);
  --muted: rgba(248, 248, 248, 0.72);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  font-family: var(--body);
  color: var(--white);
  background: var(--black);
}

.hidden {
  display: none !important;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--black);
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bg-video.is-visible {
  opacity: 1;
}

.video-black {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 2;
}

.video-black.is-showing {
  opacity: 1;
}

.video-bg-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1;
  pointer-events: none;
}

.site {
  position: relative;
  z-index: 1;
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero {
  text-align: center;
}

.logo {
  display: block;
  width: min(260px, 68vw);
  height: auto;
  margin: 0.75rem auto 1rem;
  border-radius: 1rem;
  outline: 3px solid var(--blue-hot);
  outline-offset: 4px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 0 28px rgba(95, 212, 255, 0.35);
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 10vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
}

.hero-tag {
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.action-btn {
  appearance: none;
  border: 3px solid var(--white);
  background: var(--white);
  color: var(--black);
  padding: 0.8rem 1.2rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.action-btn:hover,
.action-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--blue-hot);
  border-color: var(--blue-hot);
  color: var(--white);
  outline: none;
}

.action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.ca-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ca-strip:hover,
.ca-strip:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-2px);
  outline: none;
}

.ca-strip-label {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  background: var(--blue);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.ca-strip-value {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: break-all;
  color: var(--muted);
}

.panel {
  padding: 1.35rem 1.15rem;
  border: 3px solid var(--line);
  background: var(--panel);
}

.panel-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.panel-copy {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.panel-copy:last-child {
  margin-bottom: 0;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.thesis-card {
  padding: 1.1rem 1rem;
  border: 2px solid var(--line);
  background: var(--panel);
}

.thesis-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--blue-hot);
}

.thesis-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.75rem;
  border: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.stat-value {
  font-family: var(--display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: 0.06em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  font-family: var(--display);
  font-size: 1rem;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.steps p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: 0.08em;
}

.footer-line {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(248, 248, 248, 0.45);
}

.notice {
  position: fixed;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
  padding: 0.75rem 1.2rem;
  border: 2px solid var(--cyan);
  background: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

body.blackout .hero-title,
body.blackout .hero-tag,
body.blackout .footer-brand,
body.blackout .footer-line,
body.blackout .panel-title {
  color: var(--white);
}

body.blackout .hero-tag,
body.blackout .footer-line {
  color: rgba(248, 248, 248, 0.88);
}

body.blackout .action-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

body.blackout .action-btn:disabled {
  opacity: 0.45;
}

@media (max-width: 760px) {
  .thesis-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
    text-align: center;
  }
}
