/* ============================================
   AWAKEN NW — DESIGN SYSTEM
   Inspired by Victory Beyond the Cup
   Mobile-first, blue accent on black
   ============================================ */

/* ── TOKENS ── */
:root {
  --green: #3b82f6;
  --green-light: #60a5fa;
  --green-dim: #2563eb;
  --green-glow: rgba(59, 130, 246, 0.18);
  --green-glow-strong: rgba(59, 130, 246, 0.32);
  --bg: #0e0e0e;
  --bg-surface: #151515;
  --bg-card: #1a1a1a;
  --bg-elevated: #222;
  --white: #fafafa;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;
  --border: rgba(59, 130, 246, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; font-size: 15px; }
::selection { background: var(--green); color: var(--bg); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-logo span { color: var(--green); }

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  padding: 0.5rem 1.2rem;
  background: var(--green);
  color: var(--bg) !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  transition: background 0.25s ease, transform 0.25s var(--ease-spring);
}

.nav-cta:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  -webkit-tap-highlight-color: transparent;
}

.nav-menu-backdrop.active { display: block; }

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  animation: menuSlideDown 0.3s var(--ease) both;
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links.open li {
  border-bottom: 1px solid var(--border-subtle);
}

.nav-links.open li:last-child {
  border-bottom: none;
  padding-top: 0.5rem;
}

.nav-links.open a {
  display: flex;
  align-items: center;
  padding: 0.9rem 0;
  min-height: 48px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links.open .nav-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem !important;
  border-radius: var(--radius-md);
  min-height: 48px;
}

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--green-dim);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--green-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.btn-outline-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-outline-green:hover {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--green-glow);
}

/* ── FORMS ── */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: var(--radius-sm);
  color: #1a1a1a;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.form-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--green);
  flex-shrink: 0;
  cursor: pointer;
}

.form-consent label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.form-submit {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.form-submit:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--green-glow);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-message {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.form-message-success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.form-message-error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ── CARDS ── */
.card {
  padding: 2rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* ── FOOTER ── */
.footer {
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.footer-logo span { color: var(--green); }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1.25rem;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--white); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-social a:hover {
  border-color: var(--border);
  color: var(--green);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── YOUTUBE VIDEO FACADE ── */
.yt-facade-wrap {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.yt-facade {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.yt-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.yt-facade .yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3);
}

.yt-facade .yt-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--green);
  box-shadow: 0 0 40px var(--green-glow-strong);
}

.yt-facade .yt-play svg { margin-left: 3px; }

.yt-facade.playing img,
.yt-facade.playing .yt-play {
  opacity: 0;
  pointer-events: none;
}

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

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── UTILITY ── */
.container { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }
.text-green { color: var(--green); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ── BUTTON ACTIVE STATES (mobile feedback) ── */
.btn-primary:active { transform: scale(0.97); }
.btn-secondary:active { transform: scale(0.97); }
.btn-outline-green:active { transform: scale(0.97); }
.form-submit:active { transform: scale(0.97); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE: TABLET + ── */
@media (min-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 1rem 2rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 2rem; }
}

/* ── COOKIE CONSENT BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
}

.cookie-banner a {
  color: var(--green);
  text-decoration: underline;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.cookie-btn-accept {
  background: var(--green);
  color: var(--bg);
}

.cookie-btn-accept:hover { background: var(--green-light); }

.cookie-btn-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.cookie-btn-decline:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

@media (min-width: 640px) {
  .cookie-banner { padding: 1rem 2rem; }
}

/* ── RESPONSIVE: DESKTOP ── */
@media (min-width: 1024px) {
  .nav { padding: 1.1rem 2.5rem; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
