/* ══════════════════════════════════════════
   Center-alfa — Global Styles
   ══════════════════════════════════════════ */

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

:root {
  --bg: #0a0e0d;
  --surface: #111916;
  --surface-hover: #172019;
  --accent: #00e676;
  --accent-dim: #00e67622;
  --accent-glow: #00e67644;
  --text: #e8ede9;
  --text-muted: #7a8a7e;
  --text-dim: #4a5c4f;
  --line: #1e2b22;
  --font-display: "Anybody", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Pitch background ── */
.pitch-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; opacity: 0.35; }
.pitch-bg::before { content: ""; position: absolute; top: 50%; left: 50%; width: 500px; height: 500px; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-bg::after { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: var(--line); }
.pitch-line-h { position: absolute; left: 0; width: 100%; height: 1px; background: var(--line); }
.pitch-line-h:nth-child(1) { top: 25%; }
.pitch-line-h:nth-child(2) { top: 75%; }
.pitch-box { position: absolute; border: 1px solid var(--line); }
.pitch-box.top { top: 0; left: 50%; transform: translateX(-50%); width: 260px; height: 140px; }
.pitch-box.bottom { bottom: 0; left: 50%; transform: translateX(-50%); width: 260px; height: 140px; }

/* ── Grain overlay ── */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 150px;
}

/* ── Scan line ── */
.scan-line {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.15; z-index: 2; animation: scan 6s linear infinite;
}
@keyframes scan { 0% { top: -2px; } 100% { top: 100vh; } }

/* ── Fade in animation ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── Logo ── */
.logo-block { display: flex; align-items: center; gap: 14px; animation: fadeIn 1s ease both; }
.logo-mark { width: 42px; height: 42px; border: none; border-radius: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text); }
.logo-text span { color: var(--accent); }

/* ── Footer ── */
.footer { position: relative; z-index: 3; text-align: center; padding: 40px 24px; font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.08em; }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text-dim); transition: color 0.2s; }
.footer-socials a:hover { color: var(--accent); }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Cookie banner ── */
#cookie-banner { position: fixed; bottom: 24px; left: 0; right: 0; margin: 0 auto; z-index: 1000; width: calc(100% - 48px); max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); animation: fadeIn 0.4s ease both; box-sizing: border-box; }
#cookie-banner.hidden { display: none; }
.cookie-text { flex: 1; min-width: 0; font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.cookie-text a { color: var(--accent); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { border: none; border-radius: 7px; padding: 8px 16px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.cookie-btn-accept { background: var(--accent); color: var(--bg); }
.cookie-btn-accept:hover { background: #33eb91; }
.cookie-btn-decline { background: transparent; color: var(--text-dim); border: 1px solid var(--line); }
.cookie-btn-decline:hover { color: var(--text-muted); border-color: var(--text-dim); }

@media (max-width: 600px) {
  .footer-socials svg { width: 22px; height: 22px; }
  .logo-block { margin-bottom: 48px; }
  #cookie-banner { bottom: 0; width: 100%; max-width: 100%; border-radius: 12px 12px 0 0; border-bottom: none; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .cookie-actions { display: flex; gap: 8px; }
  .cookie-btn { flex: 1; min-height: 48px; }
}
