/* Goggles3Streamer homepage — dark theme, cyan accent (matches the app's Instant-Replay color) */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-VariableFont_wght.ttf");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Space Grotesk", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #14171c;
  --bg-alt: #191d24;
  --card-bg: #1e232b;
  --border: #2a2f38;
  --text: #e8ebef;
  --text-muted: #9aa4b2;
  --accent: #52b5b8;
  --accent-hover: #6cc9cc;
  --accent-text: #06282a;
  --radius: 10px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(600px circle at 18% -8%, rgba(82, 181, 184, 0.10), transparent 60%),
    radial-gradient(500px circle at 108% 42%, rgba(82, 181, 184, 0.08), transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0/48px 48px,
    var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .brand, .btn, .tagline, .step .num {
  font-family: var(--font-display);
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 23, 28, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a { color: var(--text-muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
}

.lang-switch a {
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.lang-switch a.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* HUD-style corner accents for showcase frames */

.hud-corners { position: relative; }

.hud-corners::before,
.hud-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

.hud-corners::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.hud-corners::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* Hero */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding: 0 0 56px;
  text-align: center;
}

.hero-banner-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 78%;
  width: auto;
  max-width: 90%;
}

.hero-content { padding-top: 40px; }

.hero .tagline {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 8px;
}

.hero .sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stat {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }

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

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

/* Sections */

section { padding: 64px 0; }

section h2 {
  font-size: 1.7rem;
  text-align: center;
  margin: 0 0 8px;
}

section .section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.alt-bg { background: var(--bg-alt); }

/* Feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px -8px rgba(82, 181, 184, 0.45);
  transform: translateY(-2px);
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(82, 181, 184, 0.12);
  border: 1px solid rgba(82, 181, 184, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.card:hover .icon { transform: scale(1.1); }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card.highlight {
  border-color: var(--accent);
}

/* Main screenshot — large, with a click-to-compare toggle */

.hero-shot {
  max-width: 820px;
  margin: 0 auto 40px;
}

.hero-shot-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1282 / 792;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-shot-frame img.active { opacity: 1; }

.toggle-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.toggle-btn {
  font: inherit;
  font-family: var(--font-display);
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

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

.toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.hero-shot-frame.settings-frame { aspect-ratio: 1373 / 889; }
.hero-shot-frame.replay-frame { aspect-ratio: 1373 / 889; }

.hero-shot-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
}

/* YouTube embed */

.video-embed {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 640px;
  margin: 16px auto 0;
}

/* Instant Replay concept overlay, on top of the reused hero footage */

.replay-frame .hero-bg {
  /* Without a video (mobile / reduced-motion), this stays an <img class="hero-bg">
     inside .hero-shot-frame, which defaults compare-toggle images to opacity: 0. */
  opacity: 1;
}

.replay-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.replay-key {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%) scale(1);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: rgba(6, 10, 14, 0.75);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: replay-key-pulse 8s ease-in-out infinite;
}

.replay-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 6px);
  background: rgba(6, 10, 14, 0.85);
  border: 1px solid rgba(82, 181, 184, 0.4);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  animation: replay-toast-fade 8s ease-in-out infinite;
}

@keyframes replay-key-pulse {
  0%, 60% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 rgba(82, 181, 184, 0); }
  66% { transform: translateX(-50%) scale(1.18); box-shadow: 0 0 26px rgba(82, 181, 184, 0.75); }
  72%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 rgba(82, 181, 184, 0); }
}

@keyframes replay-toast-fade {
  0%, 68% { opacity: 0; transform: translate(-50%, 6px); }
  74%, 92% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .replay-key, .replay-toast { animation: none; }
  .replay-toast { opacity: 0; }
}

/* Why section */

.why-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.why-box p { color: var(--text-muted); font-size: 1.02rem; }

/* Final call-to-action */

.cta-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: 0 0 40px -12px rgba(82, 181, 184, 0.35);
}

.cta-box h2 { margin: 0 0 10px; }

.cta-box p {
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* Support / Ko-fi section */

.support-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: 0 0 40px -12px rgba(82, 181, 184, 0.35);
}

.support-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.support-box .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(82, 181, 184, 0.12);
  border: 1px solid rgba(82, 181, 184, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.support-box .icon svg {
  width: 26px;
  height: 26px;
}

.support-box h2 { margin: 0 0 12px; }

.support-box p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Quick start */

.steps {
  max-width: 640px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-row {
  display: flex;
  gap: 16px;
}

.step .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(82, 181, 184, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step .body > strong { display: block; margin-bottom: 2px; }
.step .body span { display: block; color: var(--text-muted); font-size: 0.95rem; }
.step .body .btn { margin-top: 24px; padding: 9px 18px; font-size: 0.9rem; }

.step-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0 46px;
}

.step-shots figure {
  margin: 0;
  width: 200px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.step-shots figure.wide { width: 412px; }

.step-shots img { width: 100%; height: auto; display: block; }

.step-shots figcaption {
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.note-box {
  max-width: 640px;
  margin: 28px auto 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ */

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 640px;
}

/* Legal pages (Impressum, Datenschutz) */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 0;
}

.legal h1 {
  font-size: 1.9rem;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 36px 0 10px;
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal ul { padding-left: 20px; margin: 0 0 12px; }

.legal a { color: var(--accent); }

.legal .back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal .back-link:hover { color: var(--accent); }

/* Responsive */

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero-banner-wrap { height: 300px; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .step-shots { margin-left: 0; }
  .step-shots figure { width: 100%; max-width: 260px; }
  .step-shots figure.wide { max-width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .hero-banner-wrap { height: 220px; }
}
