/* =========================================================================
   0xFRONT — Московская конференция фронтенд-разработчиков
   main.css — единый файл стилей
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

:root {
  color-scheme: dark;

  --bg: #05060a;
  --bg-alt: #090b14;
  --surface: #0d1120;
  --surface-2: #121729;
  --border: #1c2540;

  --text: #dce6ff;
  --text-dim: #8792b0;
  --muted: #5a6688;

  --cyan: #00f0ff;
  --cyan-dim: #0891a8;
  --magenta: #ff2bd6;
  --violet: #8b5cf6;
  --green: #39ff88;

  --glow-cyan: 0 0 6px rgba(0, 240, 255, 0.9), 0 0 24px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.15);
  --glow-magenta: 0 0 6px rgba(255, 43, 214, 0.9), 0 0 24px rgba(255, 43, 214, 0.4), 0 0 60px rgba(255, 43, 214, 0.15);
  --glow-violet: 0 0 6px rgba(139, 92, 246, 0.9), 0 0 24px rgba(139, 92, 246, 0.4);

  --font: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 48px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 860px), (hover: none) {
  body {
    cursor: auto;
  }
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4, p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--magenta);
  color: #05060a;
}

/* thin neon scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--magenta));
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-dim);
  max-width: 52ch;
}

.accent {
  color: var(--cyan);
}
.accent-m {
  color: var(--magenta);
}

section {
  position: relative;
  padding-block: clamp(64px, 10vw, 140px);
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   background fx layers
   ========================================================================= */

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.bg-scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}

.noise-flicker {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 240, 255, 0.04);
  mix-blend-mode: color-dodge;
}

/* =========================================================================
   custom cursor
   ========================================================================= */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  border-color: var(--magenta);
  background: rgba(255, 43, 214, 0.08);
}

@media (max-width: 860px), (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* =========================================================================
   preloader
   ========================================================================= */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__term {
  width: min(480px, 84vw);
  font-size: 13px;
  color: var(--green);
}

.preloader__line {
  min-height: 1.6em;
  white-space: pre-wrap;
  word-break: break-word;
}

.preloader__caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--green);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
}

.preloader__bar {
  margin-top: 18px;
  height: 2px;
  width: 100%;
  background: rgba(57, 255, 136, 0.15);
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  transition: width 0.2s linear;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* =========================================================================
   progress bar
   ========================================================================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 500;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* =========================================================================
   header / nav
   ========================================================================= */

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 200;
  padding-block: 18px;
  transition: padding 0.35s var(--ease-out), background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(5, 6, 10, 0.75);
  backdrop-filter: blur(10px);
  border-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.logo b {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.logo em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
  margin-left: 8px;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
}

.nav-links a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  padding-block: 4px;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  transition: right 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(5, 6, 10, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-nav.is-open {
  transform: translateY(0);
}
.mobile-nav a {
  font-size: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-nav.is-open a {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   buttons
   ========================================================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--cyan), var(--violet) 50%, var(--magenta));
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
}

.btn:hover {
  color: #05060a;
  border-color: transparent;
}
.btn:hover::before {
  transform: translateX(0);
}
.btn:active {
  transform: scale(0.97);
}

.btn--ghost {
  border-color: var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--cyan);
}
.btn--ghost::before {
  display: none;
}
.btn--ghost:hover {
  box-shadow: var(--glow-cyan);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 12px;
}

/* =========================================================================
   hero
   ========================================================================= */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 64px;
}

.hero__inner {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow {
  justify-content: center;
}

.hero__title {
  margin-top: 22px;
  font-weight: 700;
  font-size: clamp(48px, 11vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  position: relative;
}

.glitch {
  position: relative;
  display: inline-block;
  color: var(--text);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--bg);
  clip-path: inset(50% 0 50% 0);
}

.glitch::before {
  color: var(--cyan);
  left: 2px;
}
.glitch::after {
  color: var(--magenta);
  left: -2px;
}

.glitch.is-glitching::before {
  animation: glitch-a 0.35s steps(2, end) 1;
}
.glitch.is-glitching::after {
  animation: glitch-b 0.35s steps(2, end) 1;
}

@keyframes glitch-a {
  0% { clip-path: inset(10% 0 70% 0); transform: translate(-3px, -1px); }
  30% { clip-path: inset(60% 0 5% 0); transform: translate(3px, 1px); }
  60% { clip-path: inset(30% 0 45% 0); transform: translate(-2px, 1px); }
  100% { clip-path: inset(50% 0 50% 0); transform: translate(0); }
}
@keyframes glitch-b {
  0% { clip-path: inset(70% 0 5% 0); transform: translate(3px, 0); }
  30% { clip-path: inset(5% 0 80% 0); transform: translate(-3px, 1px); }
  60% { clip-path: inset(40% 0 30% 0); transform: translate(2px, -1px); }
  100% { clip-path: inset(50% 0 50% 0); transform: translate(0); }
}

.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: clamp(14px, 1.6vw, 17px);
}

.hero__sub .type-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--cyan);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown {
  margin-top: 56px;
  display: flex;
  gap: clamp(10px, 3vw, 28px);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.countdown__num {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  font-variant-numeric: tabular-nums;
  position: relative;
}

.countdown__num.is-flip {
  animation: flip 0.4s var(--ease-out);
}

@keyframes flip {
  0% { transform: translateY(-6px); opacity: 0.3; filter: blur(2px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

.countdown__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-cue__line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--cyan), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--cyan), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  to { top: 100%; }
}

/* =========================================================================
   marquee ticker
   ========================================================================= */

.ticker {
  border-block: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding-block: 16px;
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 26s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  padding-inline: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 22px;
}

.ticker__item::after {
  content: "//";
  color: var(--magenta);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================================
   about / stats
   ========================================================================= */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about__copy p {
  color: var(--text-dim);
  margin-top: 18px;
  max-width: 54ch;
}

.about__copy h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat {
  background: var(--surface);
  padding: 28px 20px;
  text-align: left;
}

.stat__num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat__num::after {
  content: attr(data-suffix);
  color: var(--cyan);
}

.stat__label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   pinned scroll steps ("why" section)
   ========================================================================= */

.pin-section {
  position: relative;
  height: 420vh;
}

.pin-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pin-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.pin-rail {
  position: relative;
  height: min(46vh, 320px);
  width: 2px;
  background: var(--border);
  justify-self: center;
}

.pin-rail__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(var(--cyan), var(--violet), var(--magenta));
  box-shadow: var(--glow-cyan);
}

.pin-rail__dot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translate(-50%, -50%);
}

.pin-steps {
  position: relative;
  height: min(46vh, 320px);
}

.pin-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  opacity: 0;
  transform: translateY(36px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.pin-step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pin-step__num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.pin-step h3 {
  margin-top: 14px;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.15;
}

.pin-step p {
  margin-top: 16px;
  color: var(--text-dim);
  max-width: 54ch;
  font-size: 14px;
}

.pin-counter {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  gap: 6px;
}

.pin-counter #pin-counter-current {
  color: var(--cyan);
}

.pin-counter i {
  font-style: normal;
  opacity: 0.5;
}

@media (max-width: 640px) {
  .pin-section {
    height: 320vh;
  }
  .pin-inner {
    grid-template-columns: 24px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin-section {
    height: auto;
  }
  .pin-sticky {
    position: static;
    height: auto;
    padding-block: clamp(48px, 8vw, 80px);
  }
  .pin-rail {
    display: none;
  }
  .pin-inner {
    grid-template-columns: 1fr;
  }
  .pin-steps {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 72px);
  }
  .pin-step {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }
  .pin-counter {
    display: none;
  }
}

/* =========================================================================
   program / schedule
   ========================================================================= */

.tabs {
  display: inline-flex;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.tabs button {
  background: transparent;
  border: 0;
  padding: 11px 24px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.25s;
}

.tabs button + button {
  border-left: 1px solid var(--border);
}

.tabs button.is-active {
  color: var(--bg);
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.schedule {
  position: relative;
}

.schedule__day {
  display: none;
}
.schedule__day.is-active {
  display: block;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--violet), var(--magenta));
  opacity: 0.5;
}

.timeline__item {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.timeline__item:hover {
  border-color: var(--cyan);
  transform: translateX(6px);
  box-shadow: -6px 0 24px rgba(0, 240, 255, 0.12);
}

.timeline__time {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 700;
}

.timeline__title {
  font-size: 15px;
}

.timeline__speaker {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.tag--core { color: var(--cyan); }
.tag--perf { color: var(--magenta); }
.tag--ai { color: var(--violet); }
.tag--break { color: var(--muted); }

@media (max-width: 640px) {
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* =========================================================================
   speakers
   ========================================================================= */

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.speaker-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 22px;
  transform-style: preserve-3d;
  transition: border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

.speaker-card:hover {
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
}

.speaker-card__avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 43, 214, 0.12));
  color: var(--text);
  transform: translateZ(30px);
}

.speaker-card__name {
  margin-top: 18px;
  font-size: 16px;
  transform: translateZ(20px);
}

.speaker-card__role {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  transform: translateZ(20px);
}

.speaker-card__talk {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  transform: translateZ(10px);
}

/* =========================================================================
   venue
   ========================================================================= */

.venue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.venue__map {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.venue__map svg {
  width: 100%;
  height: 100%;
}

.venue__pin {
  transform-origin: center;
  animation: pulse-pin 2.4s ease-in-out infinite;
}

@keyframes pulse-pin {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.venue__list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.venue__list li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.venue__list li b {
  color: var(--cyan);
  font-weight: 700;
}

@media (max-width: 860px) {
  .venue {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   tickets
   ========================================================================= */

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ticket-card {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out);
}

.ticket-card:hover {
  transform: translateY(-8px);
}

.ticket-card--highlight {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--cyan), var(--violet), var(--magenta)) border-box;
  border: 1px solid transparent;
}

.ticket-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--magenta);
  color: #05060a;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  box-shadow: var(--glow-magenta);
}

.ticket-card__name {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-card__price {
  margin-top: 12px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
}

.ticket-card__price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.ticket-card__features {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ticket-card__features li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
}
.ticket-card__features li::before {
  content: "◈";
  color: var(--cyan);
}

.ticket-card .btn {
  margin-top: 26px;
  justify-content: center;
}

@media (max-width: 900px) {
  .tickets-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   ticket modal
   ========================================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(88vh, 640px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 40px);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--cyan), var(--violet), var(--magenta)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), var(--glow-cyan);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.35s var(--ease-out);
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}

.modal__close:hover {
  color: var(--bg);
  background: var(--magenta);
  border-color: transparent;
  box-shadow: var(--glow-magenta);
  transform: rotate(90deg);
}

.modal__title {
  margin-top: 14px;
  font-size: clamp(20px, 3vw, 26px);
}

.modal__view[hidden] {
  display: none;
}

#ticket-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field__input::placeholder {
  color: var(--muted);
}

.field__input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.field__input:invalid.is-touched {
  border-color: var(--magenta);
}

.modal__submit {
  margin-top: 6px;
  justify-content: center;
}

.modal__submit.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.modal__view--success {
  text-align: center;
}

.modal__success-icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--bg);
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  border-radius: 50%;
  animation: success-pop 0.5s var(--ease-spring);
}

@keyframes success-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#modal-view-success .modal__title {
  margin-top: 20px;
}

.modal__success-text {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

#modal-view-success .btn {
  margin-top: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .modal__panel {
    transform: none !important;
  }
  .modal__success-icon {
    animation: none;
  }
}

/* =========================================================================
   faq
   ========================================================================= */

.faq {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__q {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
}

.faq-item__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item__icon::before {
  width: 100%;
  height: 1px;
}
.faq-item__icon::after {
  width: 1px;
  height: 100%;
  transition: transform 0.3s var(--ease-out);
}
.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-item__a p {
  padding-bottom: 22px;
  color: var(--text-dim);
  max-width: 60ch;
  font-size: 13px;
}

/* =========================================================================
   cta band
   ========================================================================= */

.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding-block: clamp(60px, 10vw, 110px);
}

.cta-band h2 {
  font-size: clamp(28px, 5vw, 52px);
}

.cta-band__actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================================
   footer
   ========================================================================= */

.site-footer {
  padding-block: 50px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding-block: 5px;
  transition: color 0.25s;
}
.footer-grid a:hover {
  color: var(--cyan);
}

.footer-form {
  display: flex;
  border: 1px solid var(--border);
}
.footer-form input {
  flex: 1;
  background: none;
  border: 0;
  padding: 11px 12px;
  color: var(--text);
  min-width: 0;
}
.footer-form button {
  background: var(--cyan);
  color: var(--bg);
  border: 0;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.25s;
}
.footer-form button:hover {
  background: var(--magenta);
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================================
   utility / responsive nav swap
   ========================================================================= */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
