/* =============================================================
   SKYFIRE 2026 — demo site styles
   Palette + the pretix widget overrides live at the bottom.
   ============================================================= */

:root {
  --bg:        #0a0612;
  --bg-2:      #120a22;
  --panel:     #170d2b;
  --panel-2:   #1e1336;
  --ink:       #f4eefe;
  --muted:     #b6a9d4;
  --line:      rgba(255, 255, 255, 0.08);

  --gold:      #ffb627;
  --magenta:   #ff2e88;
  --cyan:      #18d6ff;
  --violet:    #8b5cf6;

  --accent:    var(--magenta);     /* primary brand accent  */
  --accent-2:  var(--gold);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font:      "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:   "Bebas Neue", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 0.4em; }

a { color: inherit; text-decoration: none; }

.container { width: min(var(--maxw), 100% - 3rem); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 0.6rem;
}

.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--magenta), var(--violet));
  box-shadow: 0 10px 30px -8px rgba(255, 46, 136, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(255, 46, 136, 0.75); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.link-arrow { color: var(--accent-2); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* =================== NAV =================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 6, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.04em; }
.brand__name { font-weight: 400; }
.brand__name strong { color: var(--accent); font-weight: 400; }
.brand__spark {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold), var(--magenta));
  box-shadow: 0 0 12px var(--gold), 0 0 24px var(--magenta);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.7; } }

.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.98rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #1a0f33 0%, var(--bg) 55%),
    var(--bg);
}
.hero__sky { position: absolute; inset: 0; z-index: 0; }
/* stars */
.hero__sky::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
    radial-gradient(1px 1px at 40% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 45%, #fff, transparent),
    radial-gradient(1px 1px at 55% 80%, #fff, transparent),
    radial-gradient(1px 1px at 10% 75%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 70%, #fff, transparent),
    radial-gradient(1px 1px at 33% 12%, #fff, transparent);
  opacity: 0.5;
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.65; } }

.hero__content { position: relative; z-index: 2; padding: 4rem 0; }
.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.6rem;
  background: rgba(255, 255, 255, 0.03);
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8rem);
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.hero__title span {
  background: linear-gradient(100deg, var(--gold), var(--magenta) 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { max-width: 520px; font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--display); font-size: 2rem; font-weight: 400; color: var(--ink); }
.hero__facts span { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; border-radius: 2px; background: var(--accent-2);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- CSS fireworks ---------- */
.firework {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  opacity: 0;
  box-shadow:
    0 0 0 0 var(--c, var(--gold));
}
.firework::before, .firework::after {
  content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%;
}
@keyframes launch {
  0%   { opacity: 0; transform: scale(0.1); box-shadow: 0 0 6px 2px var(--c); }
  8%   { opacity: 1; }
  35%  {
          opacity: 1; transform: scale(1);
          box-shadow:
            40px -30px 4px -1px var(--c), -40px -30px 4px -1px var(--c),
            50px 10px 4px -1px var(--c), -50px 10px 4px -1px var(--c),
            0 -55px 4px -1px var(--c), 0 50px 4px -1px var(--c),
            30px 40px 4px -1px var(--c), -30px 40px 4px -1px var(--c),
            60px -10px 4px -1px var(--c), -60px -10px 4px -1px var(--c);
       }
  70%, 100% {
          opacity: 0; transform: scale(1.25);
          box-shadow:
            80px -60px 2px -2px var(--c), -80px -60px 2px -2px var(--c),
            100px 20px 2px -2px var(--c), -100px 20px 2px -2px var(--c),
            0 -110px 2px -2px var(--c), 0 100px 2px -2px var(--c),
            60px 80px 2px -2px var(--c), -60px 80px 2px -2px var(--c),
            120px -20px 2px -2px var(--c), -120px -20px 2px -2px var(--c);
       }
}
.fw1 { left: 18%; top: 32%; --c: var(--gold);    animation: launch 4s ease-out infinite;        animation-delay: 0.2s; }
.fw2 { left: 72%; top: 26%; --c: var(--magenta); animation: launch 4.6s ease-out infinite;      animation-delay: 1.4s; }
.fw3 { left: 45%; top: 18%; --c: var(--cyan);    animation: launch 5.2s ease-out infinite;      animation-delay: 2.6s; }
.fw4 { left: 86%; top: 44%; --c: var(--violet);  animation: launch 4.2s ease-out infinite;      animation-delay: 3.4s; }
.fw5 { left: 30%; top: 52%; --c: var(--gold);    animation: launch 4.8s ease-out infinite;      animation-delay: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  .firework, .brand__spark, .hero__sky::before, .hero__scroll span::after { animation: none; }
  .firework { display: none; }
}

/* =================== ABOUT =================== */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.about__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.about__text h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.about__text p { color: var(--muted); margin-bottom: 1.2rem; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
}
.stat strong { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 400; color: var(--accent-2); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* =================== EXPERIENCE =================== */
.experience { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 46, 136, 0.4); box-shadow: var(--shadow); }
.card__icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* =================== SCHEDULE =================== */
.schedule { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.timeline__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.timeline__item:first-child { border-top: 0; }
.timeline__time { font-family: var(--display); font-size: 1.5rem; color: var(--muted); }
.timeline__body h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.timeline__body p { color: var(--muted); margin: 0; }
.timeline__item--highlight {
  background: linear-gradient(100deg, rgba(255, 46, 136, 0.12), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(255, 46, 136, 0.3);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 0.6rem 0;
}
.timeline__item--highlight .timeline__time { color: var(--accent-2); }

/* =================== TICKETS =================== */
.tickets {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
    var(--bg);
}
.tickets .section__head { margin-inline: auto; text-align: center; }
.ticket-shop {
  max-width: 880px;
  margin: 0 auto;
}
.ticket-shop__panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.tickets__trust {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1.6rem;
}

/* =================== FAQ =================== */
.faq { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.faq__inner { max-width: 760px; margin-inline: auto; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 0;
  cursor: pointer;
}
.accordion__icon { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--accent); border-radius: 2px;
}
.accordion__icon::before { width: 16px; height: 2px; }
.accordion__icon::after { width: 2px; height: 16px; transition: transform 0.25s ease; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion__panel p { color: var(--muted); margin: 0 0 1.4rem; }

/* =================== FOOTER =================== */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand .brand__name { font-family: var(--display); font-size: 1.8rem; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; }
.footer__col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--ink); opacity: 0.85; padding: 0.3rem 0; font-size: 0.95rem; }
.footer__col a:hover { color: var(--accent-2); opacity: 1; }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem;
}
.footer__base strong { color: var(--ink); }

/* =================== RESPONSIVE =================== */
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column;
    background: rgba(10, 6, 18, 0.97);
    backdrop-filter: blur(14px);
    padding: 1.5rem;
    gap: 0.4rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a { padding: 0.7rem 0; font-size: 1.1rem; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--sm { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 70px 1fr; gap: 1rem; }
}

/* =============================================================
   PRETIX WIDGET — seamless integration overrides
   -------------------------------------------------------------
   The widget loads its own stylesheet (widget/v2.css) from your
   pretix instance. These rules sit on top of it to match the
   SKYFIRE look: our font, our accent colour, transparent panel
   background so it blends into .ticket-shop__panel.

   TIP: also set the matching "primary colour" in pretix admin
   under  Event → Settings → Widget  so server-rendered parts
   (the checkout flow) share the same accent.
   ============================================================= */
.pretix-widget-wrapper {
  margin: 0 !important;
  max-width: none !important;
}
.pretix-widget {
  font-family: var(--font) !important;
  color: var(--ink) !important;
  background: transparent !important;
}
/* Product rows / structure */
.pretix-widget .pretix-widget-event-list,
.pretix-widget .pretix-widget-item,
.pretix-widget .pretix-widget-item-row {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.pretix-widget .pretix-widget-item-title,
.pretix-widget .pretix-widget-event-name,
.pretix-widget .pretix-widget-item-description {
  color: var(--ink) !important;
}
.pretix-widget .pretix-widget-item-description,
.pretix-widget .pretix-widget-clock,
.pretix-widget .pretix-widget-info-message {
  color: var(--muted) !important;
}
.pretix-widget .pretix-widget-item-price,
.pretix-widget .pretix-widget-pricebox {
  color: var(--accent-2) !important;
}
/* Primary action buttons */
.pretix-widget .pretix-widget-button,
.pretix-widget button.pretix-widget-button {
  background: linear-gradient(120deg, var(--magenta), var(--violet)) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 30px -8px rgba(255, 46, 136, 0.6) !important;
}
.pretix-widget .pretix-widget-button:hover { filter: brightness(1.05); }
/* Quantity / number inputs + selects */
.pretix-widget input,
.pretix-widget select {
  background: var(--panel-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
}
/* Links inside the widget */
.pretix-widget a { color: var(--accent-2) !important; }
/* Loading spinner accent */
.pretix-widget .pretix-widget-loading svg path { stroke: var(--accent) !important; }
