/* ============================================================
   UX LEADERSHIP 2027 — Berlin
   Personality: Berlin grid-brutalism meets no-code playfulness
   Ink backgrounds, signal-yellow accent, square corners.
   ============================================================ */

:root {
  --ink: #0e0f13;
  --ink-2: #16181f;
  --ink-3: #22252e;
  --paper: #f4f2ec;
  --paper-2: #ffffff;
  --accent: #e8ff3d;
  --accent-dark: #d4eb1e;
  --text-on-light: #16181f;
  --text-on-dark: #f4f2ec;
  --muted-on-light: #5a5d66;
  --muted-on-dark: #a9adb8;
  --border-light: #dcd8cd;
  --border-dark: #2e323d;
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --container: 1180px;
  --section-pad: clamp(72px, 9vw, 130px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(232, 255, 61, 0.25);
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-ghost {
  border-color: rgba(244, 242, 236, 0.6);
  color: var(--text-on-dark);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-full { width: 100%; text-align: center; }

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-on-light);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.text-link:hover { color: #6b7a00; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(14, 15, 19, 0.96);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-accent { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav .nav-cta {
  background: var(--accent);
  color: var(--ink);
  padding: 10px 20px;
  border: none;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 120;
  flex-shrink: 0;
}
.nav-toggle-bar {
  width: 26px;
  height: 3px;
  background: var(--text-on-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--ink);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 15, 19, 0.55) 0%, rgba(14, 15, 19, 0.35) 45%, rgba(14, 15, 19, 0.8) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px clamp(20px, 4vw, 40px) 80px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8.5vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 26px;
}
.accent-outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--accent);
  text-shadow: none;
}
.hero-sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(244, 242, 236, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: 38px;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-meta-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  z-index: 2;
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--accent);
  color: var(--ink);
  overflow: hidden;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-dot {
  width: 10px;
  height: 10px;
  background: var(--ink);
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-light {
  background: var(--paper);
  color: var(--text-on-light);
}
.section-dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  margin-bottom: 16px;
}
.section-dark .section-eyebrow,
.section-eyebrow.accent { color: #b8cf1f; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.section-intro {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--muted-on-light);
}
.section-dark .section-intro { color: var(--muted-on-dark); }
.section-dark .section-title { color: #ffffff; }
.section-dark p { color: var(--muted-on-dark); }

/* ---------- Summit / About ---------- */
.summit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.summit-copy p {
  margin-bottom: 18px;
  color: var(--muted-on-light);
  font-size: 1.02rem;
}
.summit-copy .section-title { color: var(--text-on-light); }
.summit-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.stat {
  background: var(--paper-2);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--ink);
}
.stat-number::after {
  content: "";
  display: block;
  width: 28px;
  height: 6px;
  background: var(--accent);
  margin-top: 10px;
}
.stat-label { font-size: 0.86rem; color: var(--muted-on-light); }

/* ---------- Tracks ---------- */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 50px;
  background: var(--border-dark);
  border: 2px solid var(--border-dark);
}
.track-card {
  background: var(--ink-2);
  padding: 34px 26px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.track-card:hover {
  background: var(--ink-3);
  transform: translateY(-4px);
}
.track-number {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 10px;
  margin-bottom: 20px;
}
.track-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}
.track-card p { font-size: 0.92rem; color: var(--muted-on-dark); }

/* ---------- Speakers ---------- */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: 50px;
}
.speaker-card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.speaker-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--accent);
}
.speaker-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.speaker-card:hover .speaker-photo img { transform: scale(1.04); }
.speaker-info { padding: 22px 22px 26px; }
.speaker-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-on-light);
}
.speaker-role {
  font-size: 0.88rem;
  color: var(--muted-on-light);
  margin: 6px 0 12px;
}
.speaker-talk {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-light);
  border-top: 2px solid var(--border-light);
  padding-top: 12px;
}

/* ---------- Program ---------- */
.program-tabs {
  display: flex;
  gap: 0;
  margin-top: 44px;
  border: 2px solid var(--border-dark);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.program-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--muted-on-dark);
  border: none;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.program-tab.active {
  background: var(--accent);
  color: var(--ink);
}
.program-day { display: none; max-width: 820px; margin: 48px auto 0; }
.program-day.active { display: block; }
.program-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 2px solid var(--border-dark);
  align-items: baseline;
}
.program-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}
.program-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}
.program-item p { font-size: 0.92rem; }

/* ---------- Gallery section ---------- */
.gallery-section .section-intro { margin-bottom: 48px; }
.gallery-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ---------- Venue ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  margin: 50px 0 44px;
}
.venue-photo {
  border: 2px solid var(--border-dark);
  overflow: hidden;
}
.venue-photo img { width: 100%; height: 100%; object-fit: cover; }
.venue-info p { margin-bottom: 20px; }
.venue-address {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 24px;
}
.venue-facts {
  list-style: none;
}
.venue-facts li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  color: var(--muted-on-dark);
}
.venue-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  background: var(--accent);
}
.venue-map {
  border: 2px solid var(--border-dark);
  filter: grayscale(0.4);
}

/* ---------- Tickets ---------- */
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: 10px;
  align-items: stretch;
}
.ticket-card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ticket-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--accent);
}
.ticket-featured {
  background: var(--ink);
  color: var(--text-on-dark);
}
.ticket-flag {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
}
.ticket-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.ticket-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  margin: 14px 0 20px;
}
.ticket-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-on-light);
}
.ticket-featured .ticket-price span { color: var(--muted-on-dark); }
.ticket-card ul {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}
.ticket-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--muted-on-light);
}
.ticket-featured li { color: var(--muted-on-dark); }
.ticket-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  background: var(--accent);
}
.ticket-note {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-light);
  border-top: 2px solid var(--border-light);
  padding-top: 14px;
}
.ticket-featured .ticket-note {
  color: var(--accent);
  border-top-color: var(--border-dark);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy p { margin-bottom: 18px; }
.contact-detail {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent) !important;
  letter-spacing: 0.03em;
}
.contact-form {
  background: var(--ink-2);
  border: 2px solid var(--border-dark);
  padding: clamp(24px, 4vw, 40px);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--ink);
  border: 2px solid var(--border-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 16px;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #6a6e79; }
#formStatus p { font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #08090b;
  color: var(--text-on-dark);
  padding: 60px 0 34px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  margin-top: 12px;
  max-width: 320px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
  padding-top: 26px;
  font-size: 0.84rem;
  color: var(--muted-on-dark);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .tracks-grid { grid-template-columns: repeat(2, 1fr); }
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }
  .tickets-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .summit-grid { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 36px 36px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 110;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 1.1rem; }
  .site-header.scrolled, .site-header { background: rgba(14, 15, 19, 0.96); }
}

@media (max-width: 640px) {
  .tracks-grid { grid-template-columns: 1fr; }
  .speakers-grid { grid-template-columns: 1fr; }
  .summit-stats { grid-template-columns: 1fr 1fr; }
  .program-row { grid-template-columns: 1fr; gap: 6px; }
  .program-tabs { width: 100%; }
  .program-tab { flex: 1; padding: 12px 10px; font-size: 0.85rem; }
  .hero-meta { gap: 18px 28px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
