/* Shared base for all Snow Fest pages.
   Linked before the per-page <style> block so per-page rules can still override. */

/* ===== TOKENS ===== */
:root {
  --bg:        #0B0B0A;
  --bg-2:      #131311;
  --surface:   #1A1A17;
  --surface-2: #232320;
  --ink:       #FAFAF5;
  --ink-2:     rgba(250,250,245,.72);
  --ink-3:     rgba(250,250,245,.5);
  --line:      rgba(250,250,245,.10);
  --line-2:    rgba(250,250,245,.18);

  --yellow:    #F7C910;
  --yellow-2:  #FFE066;
  --aqua:      #29D6E6;
  --teal:      #18BA9B;
  --red:       #FF3B30;

  --grad-yellow: linear-gradient(135deg, #FFE066 0%, #F7C910 60%, #D9A704 100%);
  --grad-aurora: linear-gradient(120deg, #18BA9B 0%, #29D6E6 40%, #F7C910 80%, #FF3B30 100%);

  --radius:    16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

/* ===== RESET / BASELINE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

/* ===== SHARED PRIMITIVES ===== */
.serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}

.btn-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(11,11,10,.18);
  display: grid; place-items: center;
  font-size: 12px;
  transition: transform .2s var(--ease);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: -.005em;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--yellow); color: var(--bg);
  box-shadow: 0 14px 40px -16px rgba(247,201,16,.55);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--yellow-2); }
.btn-primary[disabled],
.btn:disabled { opacity: .5; pointer-events: none; cursor: not-allowed; transform: none; }
.btn:disabled:hover { transform: none; box-shadow: none; }

.btn-ghost {
  background: rgba(250,250,245,.06); color: var(--ink);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(250,250,245,.1); border-color: rgba(250,250,245,.28); }

.btn-sm    { padding: 11px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-aqua  { background: var(--aqua); color: var(--bg); }
.btn-teal  { background: var(--teal); color: var(--bg); }
.btn-red   { background: var(--red);  color: var(--ink); }

/* ===== LANGUAGE TOGGLE ===== */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px;
  background: rgba(11,11,10,.4);
}
.lang-switch button {
  appearance: none; border: 0; background: transparent;
  color: var(--ink-3); cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--yellow); color: var(--bg);
}

/* ===== HEADER ACTION PILLS ===== */
.mobile-menu-toggle,
.mobile-menu-panel {
  display: none;
}

.mobile-menu-panel[hidden] {
  display: none !important;
}

.pill.pill-login,
.pill.pill-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.pill.pill-login {
  padding: 0 18px;
  color: var(--ink);
  border-color: rgba(250,250,245,.24);
  background: rgba(11,11,10,.34);
  box-shadow: inset 0 1px 0 rgba(250,250,245,.08);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.pill.pill-login:hover {
  transform: translateY(-1px);
  border-color: rgba(250,250,245,.42);
  background: rgba(250,250,245,.10);
  box-shadow: inset 0 1px 0 rgba(250,250,245,.12), 0 16px 34px -24px rgba(250,250,245,.5);
}

.pill.pill-cta {
  padding: 0 20px;
  gap: 8px;
}

@media (max-width: 1060px) {
  .mobile-menu-toggle {
    position: relative;
    width: 44px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(250,250,245,.24);
    border-radius: 999px;
    background: rgba(250,250,245,.06);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(250,250,245,.06);
  }
  .mobile-menu-toggle span,
  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    content: '';
    width: 16px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s var(--ease), opacity .18s var(--ease);
  }
  .mobile-menu-toggle span {
    position: relative;
  }
  .mobile-menu-toggle::before {
    position: absolute;
    transform: translateY(-6px);
  }
  .mobile-menu-toggle::after {
    position: absolute;
    transform: translateY(6px);
  }
  .mobile-menu-toggle[aria-expanded="true"] span {
    opacity: 0;
  }
  .mobile-menu-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
  }
  .mobile-menu-toggle[aria-expanded="true"]::after {
    transform: rotate(-45deg);
  }
  .mobile-menu-panel {
    position: absolute;
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
    top: calc(100% + 8px);
    z-index: 80;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: rgba(11,11,10,.96);
    box-shadow: 0 22px 70px rgba(0,0,0,.45);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .mobile-menu-panel a,
  .mobile-menu-panel button {
    min-height: 44px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(250,250,245,.12);
    border-radius: 12px;
    background: rgba(250,250,245,.045);
    color: var(--ink);
    font: inherit;
    text-align: left;
  }
  .mobile-menu-panel a::after,
  .mobile-menu-panel button::after {
    content: '→';
    color: var(--yellow);
  }
}

@media (max-width: 640px) {
  .lang-switch {
    padding: 2px;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .lang-switch button {
    min-width: 36px;
    padding: 6px 8px;
  }
  .nav .pill.pill-cta {
    width: 44px;
    min-width: 44px;
    min-height: 40px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    font-size: 0;
  }
  .nav .pill.pill-cta > span {
    font-size: 18px;
    line-height: 1;
  }
}

/* ===== ANCHOR / NAV OFFSET ===== */
/* Home + event navs are position: fixed (~76px tall): without this, anchor
   navigation (e.g. #pricing-engine from every home CTA) lands the target
   heading underneath the nav. */
[id] { scroll-margin-top: 88px; }

/* ===== KEYBOARD FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== UTILITIES ===== */
.section-py-0  { padding-top: 0; }
.section-py-md { padding-top: 40px; }
.section-py-lg { padding-top: 60px; }
