/*
  Cookies Hub — minimal modern styles
*/

:root {
  --bg: #0b0c10;
  --panel: #111217;
  --elev: #171924;
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --brand: #7c3aed;
  --brand-500: #8b5cf6;
  --success: #22c55e;
  --danger: #ef4444;
  --ring: rgba(124, 58, 237, 0.6);
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, #1b2033 0%, #0b0c10 60%);
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { filter: drop-shadow(0 2px 6px var(--shadow)); }
.brand-name { letter-spacing: 0.2px; }

.nav { display: flex; gap: 18px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: var(--text); }
.nav a { position: relative; }

/* Hero */
.hero {
  padding: 72px 0 32px;
}
.hero-inner { text-align: center; position: relative; }
.hero h1 {
  font-size: 48px;
  margin: 0 0 10px;
}
.subtitle {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 720px;
}
.cta-row { display: inline-flex; gap: 12px; margin-top: 6px; }
/* Animated gradient glow behind hero */
.hero:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background: radial-gradient(400px 200px at 50% 0%, rgba(139, 92, 246, 0.25), transparent 60%),
              radial-gradient(300px 180px at 70% 10%, rgba(124, 58, 237, 0.18), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  animation: shimmer 8s ease-in-out infinite alternate;
}

/* Sections */
.section { padding: 48px 0; }
.section h2 { font-size: 28px; margin: 0 0 6px; }
.section-lead { color: var(--muted); margin: 0 0 22px; }

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--elev));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card { border-color: rgba(255, 255, 255, 0.08); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(124, 58, 237, 0.15), 0 10px 30px var(--shadow); border-color: rgba(124, 58, 237, 0.35); }

/* removed advanced effects (tilt, magnetic, fancy borders) to restore simpler UI */

/* Copy area */
.copy .copy-card {
  background: linear-gradient(180deg, var(--panel), var(--elev));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 40px var(--shadow);
}
.code-area {
  width: 100%;
  min-height: 180px;
  background: #0a0b0f;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
.copy-actions { display: flex; gap: 10px; margin-top: 12px; }

.toast {
  margin-top: 10px;
  min-height: 24px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #11121a;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 120ms ease, transform 80ms ease, border-color 120ms ease;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--brand-500), var(--brand)); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.primary { box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25); }
.btn.primary:hover { box-shadow: 0 14px 36px rgba(124, 58, 237, 0.35); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Keyframes */
@keyframes shimmer {
  0% { opacity: 0.5; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(12px); }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  margin-top: 20px;
}
.footer-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.small-link { color: var(--muted); text-decoration: none; }
.small-link:hover { color: var(--text); }

/* a11y */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Showcase video */
.showcase { text-align: center; }
.showcase .video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--elev));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px var(--shadow);
  max-width: 920px;
  margin: 16px auto 0;
}
.showcase .video-wrap:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(124,58,237,.0), rgba(124,58,237,.45), rgba(124,58,237,.0) 60%);
  filter: blur(12px);
  z-index: -1;
}
.showcase .video {
  width: 100%;
  height: auto;
  display: block;
}

/* Custom video controls */
.video-controls {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 18, 26, 0.6);
  backdrop-filter: saturate(140%) blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.showcase .video-wrap:hover .video-controls { opacity: 1; transform: translateY(0); }
.vbtn {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0f1117;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.vbtn:hover { border-color: rgba(255,255,255,0.28); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
.icon { width: 18px; height: 18px; display: none; }
.icon-play { display: inline-block; }
.vbtn.paused .icon-play { display: inline-block; }
.vbtn.paused .icon-pause { display: none; }
.vbtn.playing .icon-play { display: none; }
.vbtn.playing .icon-pause { display: inline-block; }

.icon-volume { display: inline-block; }
.vbtn.muted .icon-volume { display: none; }
.vbtn.muted .icon-muted { display: inline-block; }
.vseek {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand));
  outline: none;
}
.vseek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; cursor: pointer; }
.vseek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; cursor: pointer; }
.vtime { color: var(--muted); font-variant-numeric: tabular-nums; }


