:root {
  --background: #131313;
  --surface: #201f1f;
  --surface-low: #1c1b1b;
  --surface-highest: #353534;
  --primary: #ffb690;
  --primary-container: #f97316;
  --secondary-container: #813401;
  --on-secondary: #562000;
  --on-surface: #e5e2e1;
  --on-surface-variant: #e0c0b1;
  --outline: #a78b7d;
  --outline-variant: #584237;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  background: var(--background);
  color: var(--on-surface);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

::selection {
  background: var(--primary-container);
  color: #582200;
}

@keyframes flicker {
  0% { opacity: 0.97; }
  5% { opacity: 0.92; }
  10% { opacity: 0.99; }
  15% { opacity: 0.95; }
  20% { opacity: 1; }
  25% { opacity: 0.98; }
  30% { opacity: 0.94; }
  100% { opacity: 1; }
}

@keyframes flipTick {
  0% { filter: brightness(1); transform: translateY(0); }
  50% { filter: brightness(1.12); transform: translateY(2px); }
  100% { filter: brightness(1); transform: translateY(0); }
}

@keyframes pulse {
  50% { opacity: 0.55; }
}

.flicker-animation {
  animation: flicker 0.2s infinite;
}

.scanline-overlay {
  background:
    linear-gradient(rgba(34, 33, 33, 0) 50%, rgba(0, 0, 0, 0.18) 50%),
    linear-gradient(90deg, rgba(255, 182, 144, 0.01), rgba(255, 182, 144, 0.005), rgba(255, 182, 144, 0.01));
  background-size: 100% 4px, 3px 100%;
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
}

.grain-overlay {
  background-image: radial-gradient(rgba(255, 182, 144, 0.28) 0.8px, transparent 0.9px);
  background-size: 5px 5px;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  position: fixed;
  z-index: 9998;
}

.bezel-container {
  border: 40px solid #050505;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  align-items: center;
  background: var(--background);
  border-bottom: 4px solid var(--surface-highest);
  box-shadow: 4px 4px 0 0 rgba(86, 32, 0, 1);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  padding: 24px 40px;
  position: relative;
  width: 100%;
  z-index: 50;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.brand-icon {
  color: var(--primary);
  flex: 0 0 auto;
  height: 40px;
  width: 40px;
}

h1,
h2,
h3,
.footer-brand span,
.privacy-policy-title,
.privacy-policy-section h3 {
  font-family: "Barlow Condensed", Impact, sans-serif;
}

h1 {
  color: var(--primary);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin: 0;
  text-shadow: 2px 2px 0 rgba(129, 52, 1, 1);
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--on-surface-variant);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 8px;
  transition: background 75ms ease, color 75ms ease, transform 75ms ease;
  width: 44px;
}

.icon-button svg {
  height: 28px;
  width: 28px;
}

.icon-button:hover {
  background: var(--primary);
  color: #552100;
}

.icon-button:active {
  transform: translateY(4px) scale(0.95);
}

.site-main {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 48px;
  justify-content: center;
  overflow: hidden;
  padding: 64px 40px;
  position: relative;
}

.hero {
  max-width: 896px;
  position: relative;
  text-align: center;
  z-index: 10;
}

.hero-logo {
  display: block;
  filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.3));
  height: 256px;
  margin: 0 auto 32px;
  max-width: min(100%, 770px);
  object-fit: contain;
  width: auto;
}

.hero h2 {
  color: var(--primary);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero p,
.countdown-label,
.status-panel h4,
.status-panel dt,
.signal,
.footer-brand small,
.footer-link {
  font-family: "Space Mono", Consolas, monospace;
}

.hero p {
  color: var(--on-surface-variant);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

.hero strong {
  color: var(--primary);
}

.countdown {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1024px;
  width: 100%;
}

.countdown-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.countdown-unit {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.flip-clock-card {
  align-items: center;
  aspect-ratio: 1;
  background: var(--surface);
  border: 2px solid var(--secondary-container);
  box-shadow: 4px 4px 0 0 rgba(86, 32, 0, 1);
  display: flex;
  justify-content: center;
  perspective: 600px;
  position: relative;
  width: 100%;
}

.flip-clock-card::after {
  background: rgba(0, 0, 0, 0.5);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 50%;
  width: 100%;
  z-index: 2;
}

.countdown-value {
  backface-visibility: hidden;
  color: var(--primary);
  display: inline-block;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(76px, 8vw, 120px);
  font-weight: 700;
  line-height: 1.1;
  transform-origin: center;
}

.countdown-value.is-flipping {
  animation: flipTick 0.28s ease-out;
}

.countdown-label {
  color: var(--outline);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-top: 8px;
  text-transform: uppercase;
}

.stamped-text {
  background: rgba(86, 32, 0, 0.1);
  border: 2px dashed var(--secondary-container);
  color: var(--secondary-container);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.2;
  opacity: 0.8;
  padding: 8px 24px;
  text-shadow: 2px 2px 0 var(--on-secondary);
  text-transform: uppercase;
}

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  max-width: 1152px;
  width: 100%;
}

.about-panel {
  background: var(--surface-low);
  border: 2px solid var(--outline-variant);
  box-shadow: 4px 4px 0 0 rgba(88, 66, 55, 1);
  grid-column: span 2;
  overflow: hidden;
  padding: 32px;
  position: relative;
}

.about-panel::before {
  background: var(--secondary-container);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.about-panel h3 {
  color: var(--primary);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

.about-panel p {
  color: var(--on-surface);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.status-panel {
  background: var(--secondary-container);
  border: 2px solid var(--on-secondary);
  box-shadow: 4px 4px 0 0 rgba(86, 32, 0, 1);
  color: var(--on-secondary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}

.status-panel h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.status-panel dl {
  margin: 0;
}

.status-panel dl div {
  align-items: center;
  border-bottom: 1px solid rgba(86, 32, 0, 0.3);
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.status-panel dl div:last-child {
  border-bottom: 0;
}

.status-panel dt {
  font-size: 14px;
  opacity: 0.8;
}

.status-panel dd {
  font-weight: 700;
  margin: 0;
}

.signal {
  align-items: center;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: flex;
  font-size: 14px;
  gap: 8px;
  margin-top: 16px;
}

.signal span {
  background: var(--on-secondary);
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.site-footer {
  align-items: center;
  background: var(--surface-low);
  border-top: 4px solid var(--surface-highest);
  box-shadow: 0 -4px 0 0 rgba(86, 32, 0, 1);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 32px 40px;
  position: relative;
  width: 100%;
  z-index: 50;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 16px;
}

.footer-brand span {
  color: var(--primary);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-brand small {
  border-left: 2px solid var(--outline-variant);
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  padding-left: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.footer-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--outline);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  padding: 4px 8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 100ms ease, color 100ms ease;
}

.footer-link:hover {
  background: var(--surface-highest);
  color: var(--primary);
}

.footer-icon {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.footer-author-icon {
  background-color: currentColor;
  mask: url("./resources/falcon_logo_white.png") center / contain no-repeat;
  -webkit-mask: url("./resources/falcon_logo_white.png") center / contain no-repeat;
}

.footer-button {
  font: inherit;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 16px;
  }

  .brand-lockup {
    width: 100%;
  }

  h1 {
    font-size: 40px;
  }

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

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

  .about-panel {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .bezel-container {
    border: 20px solid var(--background);
  }

  .site-header,
  .site-main,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-logo {
    height: 192px;
  }

  .hero h2 {
    font-size: 40px;
  }

  .footer-brand small {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .brand-icon {
    height: 32px;
    width: 32px;
  }

  h1 {
    font-size: 34px;
  }

  .countdown-value {
    font-size: 72px;
  }

  .about-panel,
  .status-panel {
    padding: 24px;
  }
}
