/* ============================================================
   Clocktone — Variant v2: Dark Neon Arcade
   Retro-futuristic synthwave / arcade cabinet aesthetic
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #0a0b12;
  --panel: #0d0f1a;
  --panel-2: #10121f;
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --purple: #8a5cff;
  --text: #e7ecff;
  --text-dim: #a6adcc;
  --text-faint: #7b83a8;
  --grid-line: rgba(0, 240, 255, 0.06);
  --border: rgba(0, 240, 255, 0.22);
  --border-magenta: rgba(255, 43, 214, 0.35);
  --radius: 14px;
  --wrap: 1120px;
  --mono: ui-monospace, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 43, 214, 0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(0, 240, 255, 0.10), transparent 55%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  background-attachment: fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* scanline overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.5;
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap-narrow { max-width: 760px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--cyan);
  color: #001014;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Focus states ---- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(0, 240, 255, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px var(--cyan), 0 0 20px var(--magenta);
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.primary-nav { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: inline-block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--cyan);
  border-color: var(--border);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

/* ============================================================
   Buttons / links
   ============================================================ */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,240,255,0.10), rgba(255,43,214,0.10));
  border: 1px solid var(--cyan);
  border-radius: 12px;
  padding: 12px 26px;
  line-height: 1.2;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4), inset 0 0 12px rgba(0, 240, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.7), 0 0 40px rgba(255, 43, 214, 0.4);
}
.store-badge-small {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.store-badge-big {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.link-secondary {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--magenta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, text-shadow 0.2s, border-color 0.2s;
}
.link-secondary:hover,
.link-secondary:focus-visible {
  color: #ff7ce6;
  border-bottom-color: var(--magenta);
  text-shadow: 0 0 10px rgba(255, 43, 214, 0.6);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(48px, 8vw, 96px) 0; position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.04);
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta), 0 0 14px var(--magenta);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.hero-title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(2.1rem, 6.5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0, 240, 255, 0.7),
    0 0 20px rgba(0, 240, 255, 0.5),
    0 0 42px rgba(255, 43, 214, 0.35);
  animation: flicker 6s infinite;
}

.lede {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--text-dim);
  max-width: 44ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* game card = arcade cabinet */
.game-card {
  text-align: center;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-magenta);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow:
    0 0 28px rgba(255, 43, 214, 0.22),
    inset 0 0 30px rgba(138, 92, 255, 0.06);
}
.game-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 26px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.5);
}
.game-title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.25rem;
  margin: 0 0 6px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.game-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.coming-tag {
  display: inline-block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--magenta);
  border: 1px solid var(--border-magenta);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0;
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.25);
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(48px, 8vw, 92px) 0; position: relative; z-index: 2; }

.section-title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.55), 0 0 26px rgba(255, 43, 214, 0.28);
}
.section-lede {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--text-dim);
  max-width: 58ch;
  margin: 0 0 34px;
}

/* ---- Screenshots ---- */
.shots {
  list-style: none;
  margin: 0;
  padding: 6px 4px 20px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot { flex: 0 0 auto; scroll-snap-align: center; }
.shot img {
  width: 240px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--cyan);
  box-shadow:
    0 0 18px rgba(0, 240, 255, 0.35),
    0 0 36px rgba(255, 43, 214, 0.18);
  transition: transform 0.25s, box-shadow 0.25s;
}
.shot img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 28px rgba(0, 240, 255, 0.6),
    0 0 52px rgba(255, 43, 214, 0.35);
}
.shots-hint {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--text-faint);
  margin: 4px 0 0;
}

/* ---- About / features ---- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: inset 0 0 22px rgba(0, 240, 255, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.3);
}
.feature-title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}
.feature p { margin: 0; color: var(--text-dim); }

/* ---- Contact ---- */
.email-link {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.4);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  transition: color 0.2s, text-shadow 0.2s;
}
.email-link:hover,
.email-link:focus-visible {
  color: #7cf6ff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}

/* ============================================================
   Legal / privacy article
   ============================================================ */
.legal p { color: var(--text-dim); }
.legal-meta {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--magenta);
  margin: 0 0 28px;
}
.legal h2 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
  color: var(--cyan);
  margin: 36px 0 12px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}
.legal strong { color: var(--text); }
.legal ul { color: var(--text-dim); padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--magenta); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 10, 0.7);
  position: relative;
  z-index: 2;
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.copyright {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0;
}
.footer-nav { display: flex; gap: 18px; }
.footer-nav a {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px var(--cyan), 0 0 16px var(--magenta); }
  50% { box-shadow: 0 0 18px var(--cyan), 0 0 30px var(--magenta); }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
@keyframes flicker {
  0%, 19%, 21%, 55%, 57%, 100% { opacity: 1; }
  20%, 56% { opacity: 0.82; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 66px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(8, 9, 16, 0.97);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 0 26px rgba(0, 240, 255, 0.2);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { display: block; }
}

@media (max-width: 420px) {
  .shot img { width: 200px; }
  .hero-actions { gap: 16px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
