:root {
  --background: #05182e;
  --dark-background: #031222;
  --lighter-background: #0a2540;
  --foreground: #f6dcac;
  --light-foreground: #a7c9c6;
  --accent: #faa968;
  --teal: #3f8f8a;
  --cyan: #8cbfb8;
  --green: #028391;
  --red: #f85525;
  --muted: #2a6b78;
}

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

[hidden] {
  display: none !important;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

.site-header {
  background: var(--dark-background);
  border-bottom: 1px solid var(--muted);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
  letter-spacing: 0.02em;
}

.site-header nav a {
  margin-left: 24px;
  color: var(--light-foreground);
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--lighter-background), var(--background) 70%);
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.dogfight-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid var(--foreground);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hero-logo:hover {
  transform: scale(1.2);
}

.hero-logo.logo-roaming {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: none;
  will-change: transform;
}

.logo-click-counter {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;
  background: rgba(2, 12, 23, 0.7);
  color: var(--light-foreground);
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid var(--muted);
  border-radius: 4px;
}

.logo-reset-btn {
  display: none;
  position: fixed;
  bottom: 12px;
  right: 68px;
  z-index: 9999;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: rgba(2, 12, 23, 0.7);
  color: var(--light-foreground);
  border: 1px solid var(--muted);
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.logo-reset-btn:active {
  border-color: var(--accent);
  color: var(--accent);
}

@media (pointer: coarse) {
  .logo-reset-btn {
    display: flex;
  }
}

.matrix-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.matrix-overlay.is-visible {
  opacity: 1;
}

.matrix-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.matrix-overlay-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: monospace;
  font-size: clamp(1.5rem, 6vw, 4rem);
  font-weight: bold;
  letter-spacing: 0.15em;
  color: #d6ffe0;
  text-shadow: 0 0 10px #2fe86a, 0 0 30px #2fe86a;
  opacity: 0;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}

.matrix-overlay-message.is-visible {
  opacity: 1;
}

.about,
.contact {
  padding: 80px 0;
  border-top: 1px solid var(--muted);
}

.about {
  background: var(--dark-background);
}

.contact h2 {
  color: var(--accent);
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.contact p {
  color: var(--light-foreground);
  max-width: 640px;
}

.quote {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  color: var(--foreground);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
}

.quote-text::before {
  content: "\201C";
}

.quote-text::after {
  content: "\201D";
}

.quote-author {
  display: block;
  margin-top: 16px;
  color: var(--accent);
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-footer {
  background: var(--dark-background);
  border-top: 1px solid var(--muted);
  padding: 24px 0;
}

.site-footer .wrap {
  color: var(--muted);
  font-size: 0.85rem;
}

.somafm-player {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 12, 23, 0.7);
  color: var(--light-foreground);
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border: 1px solid var(--muted);
  border-radius: 999px;
  cursor: pointer;
}

.somafm-player:hover {
  border-color: var(--accent);
  color: var(--foreground);
}

.somafm-player .somafm-icon {
  font-size: 0.9rem;
}

.somafm-player.is-playing .somafm-icon {
  color: var(--accent);
}
