/*
 * revu.lol — landing site styles
 *
 * Palette + fonts mirror the in-app HUD defined in
 * src/Revu.App/Themes/AppTheme.xaml so users see the same visual
 * language before they install.
 *
 * Webfonts (Orbitron, Rajdhani, Share Tech Mono, Exo 2) are self-hosted
 * under /fonts/ and all licensed SIL OFL — redistributable.
 */

@font-face {
  font-family: 'Orbitron';
  src: url('/fonts/Orbitron.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('/fonts/Rajdhani-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Share Tech Mono';
  src: url('/fonts/ShareTechMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('/fonts/Exo2.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg-canvas: #050409;
  --bg-shell: #07060B;
  --bg-sidebar: #0C0B12;
  --bg-card: #14121E;
  --bg-card-alt: #18162A;
  --bg-input: #110F1A;

  --fg-primary: #F0EEF8;
  --fg-secondary: #7A6E96;
  --fg-muted: #4A3E60;

  --accent-violet: #A78BFA;
  --accent-violet-dim: #1A1430;
  --accent-gold: #C9956A;
  --accent-gold-dim: #261C12;
  --accent-teal: #8A7AF2;

  --win-green: #7EC9A0;
  --loss-red: #D38C90;

  --border-subtle: #24203A;
  --border-bright: #3D3660;

  --font-display: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
  --font-heading: 'Rajdhani', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, 'Courier New', monospace;
  --font-body: 'Exo 2', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--fg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(201, 149, 106, 0.05) 0%, transparent 50%),
    var(--bg-canvas);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* subtle scanline texture on the shell — same trick as the app */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 3px
  );
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 64px;
}

/* ─── Hero card with corner brackets ─────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 56px 48px 48px;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 30, 0.85) 0%,
    rgba(12, 11, 18, 0.85) 100%
  );
  border: 1px solid rgba(167, 139, 250, 0.28);
  backdrop-filter: blur(8px);
}

/* corner brackets — echoes CornerBracketedCard in WinUI */
.hero::before,
.hero::after,
.hero-bl::before,
.hero-bl::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-violet);
  border-style: solid;
  border-width: 0;
}
.hero::before {
  top: -1px; left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.hero::after {
  top: -1px; right: -1px;
  border-top-width: 2px;
  border-right-width: 2px;
}
.hero-bl::before {
  bottom: -1px; left: -1px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}
.hero-bl::after {
  bottom: -1px; right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* ─── Eyebrow label ─────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent-violet);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-violet);
}

/* ─── Wordmark + subhead ────────────────────────────────────────── */

.wordmark {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fg-primary);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.wordmark .cursor {
  display: inline-block;
  width: 0.4em;
  height: 0.85em;
  background: var(--accent-violet);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
  animation: blink 1.6s ease-in-out infinite;
  transform: translateY(4px);
}

@keyframes blink {
  0%, 40%        { opacity: 1; }
  60%, 90%       { opacity: 0.15; }
  100%           { opacity: 1; }
}

.subhead {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin: 12px 0 28px;
}

.pitch {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-primary);
  max-width: 560px;
  margin: 0 0 36px;
}

/* ─── Download CTA ──────────────────────────────────────────────── */

.cta-wrap {
  margin: 0 0 44px;
}

.download-btn {
  display: inline-block;
  padding: 18px 36px;
  background: var(--accent-gold);
  color: var(--bg-shell);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent-gold);
  position: relative;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  cursor: pointer;
}
.download-btn:hover {
  background: #D9A57A;
  box-shadow: 0 0 32px rgba(201, 149, 106, 0.35);
  transform: translateY(-1px);
}
.download-btn:active {
  transform: translateY(0);
}
.download-btn:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 4px;
}

.download-meta {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--fg-secondary);
  text-transform: uppercase;
}

/* ─── Screenshot ────────────────────────────────────────────────── */

.screenshot-hero {
  margin: 0 0 44px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(5, 4, 9, 0.6);
}
.screenshot-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot-hero figcaption,
.screenshot-tile figcaption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--fg-secondary);
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--bg-card-alt);
  border-top: 1px solid rgba(167, 139, 250, 0.16);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 8px;
}
.screenshot-tile {
  margin: 0;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: var(--bg-card);
  overflow: hidden;
}
.screenshot-tile img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .screenshot-grid { grid-template-columns: 1fr; }
}

/* ─── Lightbox ──────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 4, 9, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 95vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.75);
  background: var(--bg-card);
  transform: scale(0.97);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lightbox.is-open .lightbox-img {
  transform: scale(1);
}
.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--fg-secondary);
  text-transform: uppercase;
  text-align: center;
  max-width: 90vw;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--fg-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: background 120ms ease, border-color 120ms ease;
}
.lightbox-close:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: var(--accent-violet);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.screenshot-hero,
.screenshot-tile {
  transition: transform 160ms ease, border-color 160ms ease;
}
.screenshot-hero:hover,
.screenshot-tile:hover {
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-2px);
}
.screenshot-hero:focus-visible,
.screenshot-tile:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 4px;
}

/* ─── Feature bullets ───────────────────────────────────────────── */

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.features li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-primary);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.features li::before {
  content: '◢';
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-violet);
}

/* ─── Footer ────────────────────────────────────────────────────── */

footer {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
footer a {
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 120ms ease;
}
footer a:hover {
  color: var(--accent-violet);
}

/* ─── Responsive ────────────────────────────────────────────────── */

@media (max-width: 640px) {
  main { padding: 24px 12px 40px; }
  .hero {
    padding: 40px 24px 32px;
  }
  .wordmark { font-size: 52px; letter-spacing: 0.14em; }
  .subhead { font-size: 11px; letter-spacing: 0.28em; }
  .pitch { font-size: 16px; }
  .download-btn { padding: 16px 24px; font-size: 13px; letter-spacing: 0.18em; }
  .features { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
