/* Root tokens */
:root {
  --color-bg: #050607;
  --color-surface: #0b0c0f;
  --color-border-subtle: #1a1c21;
  --color-border-strong: #2a2d34;
  --color-text-primary: #f7f7f7;
  --color-text-muted: #a2a7b3;
  --color-accent: #00ff85; /* terminal green */
  --color-accent-soft: rgba(0, 255, 133, 0.3);
  --color-accent-strong: #ff7a1a; /* optional safety orange for hover/alerts */

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.75);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #151822 0, #050607 40%, #000 100%);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

a:hover {
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 40px;
}

.hero {
  width: 100%;
  max-width: 960px;
  min-height: 70vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.94)),
    url("img/turret.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-soft);
  padding: 40px 28px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 17.5vh; /* 25% of min-height (70vh) = logo 25% from top */
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
}

.hero-logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-logo img {
  max-width: 260px;
  width: 70%;
  height: auto;
  filter: drop-shadow(0 14px 38px rgba(0, 0, 0, 0.9));
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.wordmark-label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text-primary);
}

.wordmark-label:last-child {
  opacity: 0.8;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(
    90deg,
    rgba(4, 80, 40, 0.7),
    rgba(9, 12, 16, 0.95)
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 18px var(--color-accent-soft);
  animation: pulse 1.7s ease-out infinite;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.hero-action {
  display: flex;
  gap: 16px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.1s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #36ffa8);
  color: #020203;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.75);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.85);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.statement {
  margin-top: 40px;
  max-width: 720px;
  width: 100%;
  text-align: left;
}

.statement p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-left: 1px solid var(--color-border-subtle);
  padding-left: 14px;
}

/* Modal (CSS-only; triggered via :target) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal:target {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 3, 0.82);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  max-width: 460px;
  width: 92%;
  background: linear-gradient(145deg, #090b10, #050608);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px 22px;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-header h1 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.modal-close {
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--color-text-muted);
  border: 1px solid transparent;
}

.modal-close:hover {
  border-color: var(--color-border-subtle);
}

.modal-body {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Footer */
.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--color-border-subtle);
  background: radial-gradient(circle at top, #0b0d13 0, #050607 40%, #020203 100%);
  padding: 20px 20px 18px;
}

.footer-main {
  max-width: 1024px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: 2fr 2fr 1.6fr;
  gap: 24px;
}

.footer-block {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.footer-heading {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.footer-block p {
  margin: 0 0 6px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li + li {
  margin-top: 4px;
}

.footer-link-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.22s ease;
}

.footer-link-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: rgba(232, 232, 235, 0.9);
  transition: width 0.22s ease;
}

.footer-link-list a:hover {
  color: #e8e8eb;
}

.footer-link-list a:hover::after {
  width: 100%;
}

.footer-bottom {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer-mono {
  white-space: nowrap;
}

/* Layout responsiveness */
@media (max-width: 720px) {
  .shell {
    padding: 20px 16px 24px;
  }

  .hero {
    padding: 28px 20px 22px;
  }

  .hero-inner {
    gap: 24px;
  }

  .statement {
    margin-top: 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--color-accent-soft);
  }
  60% {
    transform: scale(1.06);
    box-shadow: 0 0 0 7px rgba(0, 255, 133, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 133, 0);
  }
}

