/* ============================================
   ClawCamp Wroclaw — Conference Site
   Dark default · Light mode toggle · Terminal aesthetic
   ============================================ */

/* ========== CSS VARIABLES (DARK DEFAULT) ========== */
:root {
  --bg:       #0a0e14;
  --bg2:      #111820;
  --bg3:      #1a2230;
  --surface:  rgba(14, 20, 32, 0.8);
  --border:   #243040;
  --text:     #e0e8f0;
  --text-dim: #7a8a9e;
  --accent:   #ff4d2a;
  --accent2:  #ff6b4a;
  --accent-glow: rgba(255, 77, 42, 0.15);
  --green:    #3fb950;
  --yellow:   #d29922;
  --red:      #f85149;
  --blue:     #58a6ff;
  --purple:   #bc8cff;
  --cyan:     #39d2e0;
  --claw-red: #e8412c;

  --font-display: 'Clash Display', -apple-system, sans-serif;
  --font-body: 'Satoshi', -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', 'Consolas', monospace;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 20px;
  --border-alpha: rgba(136, 146, 176, 0.15);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========== LIGHT MODE ========== */
[data-theme="light"] {
  --bg: #fcfeff;
  --bg2: #f0f2f5;
  --bg3: #e8eaed;
  --surface: rgba(255, 255, 255, 0.88);
  --border: #d0d0c8;
  --text: #1a1a1a;
  --text-dim: #666660;
  --accent: #d93a1a;
  --accent2: #ff4d2a;
  --accent-glow: rgba(217, 58, 26, 0.08);
  --border-alpha: rgba(15, 23, 42, 0.12);
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-toggle .toggle-icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* ========== NAVIGATION ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-alpha);
  padding: 0 2rem;
  transition: background 0.3s;
}

[data-theme="light"] .nav {
  background: rgba(252, 254, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  padding: 0.85rem 1.5rem 0.85rem 0;
  margin-right: auto;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0.85rem 1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.nav a::before {
  content: '$ ';
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}

.nav a:hover::before,
.nav a.active::before {
  opacity: 1;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ========== LANGUAGE SWITCH ========== */
.lang-switch {
  font-size: 0.65rem !important;
  padding: 0.25rem 0.6rem !important;
  border: 1px solid var(--accent) !important;
  border-bottom: 1px solid var(--accent) !important;
  border-radius: 999px;
  color: var(--accent) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
  align-self: center;
  transition: all 0.15s;
}

.lang-switch:hover {
  background: var(--accent);
  color: var(--bg) !important;
  border-bottom-color: var(--accent) !important;
}

.lang-switch::before {
  content: '' !important;
  display: none !important;
}

.lang-switch-mobile {
  color: var(--accent) !important;
  font-weight: 700;
}

.lang-switch-mobile svg {
  color: var(--accent);
}

/* ========== MOBILE TOP HEADER ========== */
.mobile-header {
  display: none;
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-alpha);
    padding: 0.6rem 1rem;
    transition: background 0.3s;
  }

  [data-theme="light"] .mobile-header {
    background: rgba(252, 254, 255, 0.92);
  }

  .mobile-header .nav-brand {
    padding: 0;
    margin: 0;
  }
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-alpha);
    padding: 0.4rem 0;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    transition: background 0.3s;
  }

  [data-theme="light"] .mobile-nav {
    background: rgba(252, 254, 255, 0.95);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius);
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav a svg {
    transition: color 0.15s;
  }

  .mobile-nav a.active {
    color: var(--accent);
  }

  .mobile-nav a.active svg {
    color: var(--accent);
  }

  body {
    padding-top: 44px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-alpha);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 49px,
      var(--border) 49px,
      var(--border) 50px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 49px,
      var(--border) 49px,
      var(--border) 50px
    );
  opacity: 0.08;
  pointer-events: none;
}

.hero::after {
  content: '\1F99E';
  position: absolute;
  font-size: 20rem;
  opacity: 0.03;
  bottom: -2rem;
  right: -2rem;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge::before {
  content: '>';
  color: var(--accent);
  font-weight: 700;
}

h1 {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--claw-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-family: var(--font-body);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-sub code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg3);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border-alpha);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #d93a1a;
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.scroll-hint::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
  font-weight: 700;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ========== SECTIONS (GENERAL) ========== */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-tag::before {
  content: '// ';
  opacity: 0.5;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-dim);
  max-width: 650px;
  font-size: 0.95rem;
}

/* ========== ABOUT / FEATURE CARDS ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

[data-theme="light"] .feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ========== COUNTDOWN ========== */
.countdown {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.countdown-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
}

.countdown-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
  line-height: 1.1;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-expired {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  animation: fadeInUp 0.6s ease-out;
}

/* ========== SCHEDULE GRID ========== */
.schedule {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.schedule-header {
  margin-bottom: 2.5rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
}

.schedule-grid.single-track {
  grid-template-columns: 140px 1fr;
}

.schedule-time-header,
.schedule-track-header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border);
  text-align: center;
  background: var(--bg3);
}

.schedule-time-header {
  border-right: 1px solid var(--border);
}

.schedule-track-header {
  border-right: 1px solid var(--border);
}

.schedule-track-header:last-child {
  border-right: none;
}

.schedule-row {
  display: contents;
}

.schedule-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: var(--bg2);
}

.schedule-slot {
  background: var(--surface);
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 80px;
  transition: background 0.15s;
}

.schedule-slot:last-child {
  border-right: none;
}

.schedule-slot:hover {
  background: var(--bg3);
}

.schedule-slot h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.schedule-slot .speaker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.schedule-slot p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.track-badge {
  display: none;
}

.schedule-slot.tba {
  border: 2px dashed var(--border);
  opacity: 0.7;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.schedule-slot.tba a {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.15s;
}

.schedule-slot.tba a:hover {
  color: var(--accent);
}

.schedule-plenary {
  grid-column: 2 / -1;
  background: var(--surface);
  background-image: linear-gradient(135deg, var(--accent-glow), transparent);
  text-align: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.schedule-plenary h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.schedule-plenary .speaker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.schedule-plenary p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.schedule-break {
  grid-column: 2 / -1;
  background: var(--bg3);
  text-align: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ========== CALL FOR PAPERS ========== */
.cfp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.cfp-content {
  max-width: 700px;
  margin: 0 auto;
}

.cfp-format {
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.cfp-format h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.cfp-format p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.cfp-topics {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.cfp-topics li {
  padding: 0.3rem 0;
  padding-left: 1.8rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.cfp-topics li::before {
  content: '-> ';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.cfp-deadline {
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cfp-deadline .date {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-top: 0.5rem;
}

.cfp-deadline p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.cfp-deadline + .cfp-format {
  margin-top: 1.5rem;
}

/* ========== LOCATION ========== */
.location {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.location-card {
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  box-shadow: var(--shadow);
}

.location-card h3 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.location-address {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.location-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.map-placeholder {
  background: var(--bg3);
  border: 2px dashed var(--border-alpha);
  border-radius: var(--radius-lg);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* ========== SPONSORS ========== */
.sponsors {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.community-block {
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
}

.community-block p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.community-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.community-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s, color 0.2s;
}

.community-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.community-links a svg {
  flex-shrink: 0;
}

.partners-block {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.partners-label {
  color: var(--text-dim);
}

.partners-block a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.partners-block a:hover {
  color: var(--accent);
}

.sponsors-cta {
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.sponsors-cta p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.sponsors-cta a {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.sponsors-cta a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border-alpha);
  padding: 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ========== SECTION DIVIDERS ========== */
.divider {
  text-align: center;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.4;
  user-select: none;
}

/* ========== UTILITIES ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  color: var(--accent);
  transition: color 0.15s;
}

a:hover {
  color: var(--accent2);
}

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

/* Code-style inline elements */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg3);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border-alpha);
}

/* Tag / badge utility */
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border-alpha);
  border-radius: 999px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.tag-accent {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

/* Visually hidden (for accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========== SPEAKERS ========== */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.speaker-card {
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s;
}

.speaker-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.speaker-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin: 0 auto 1rem;
  object-fit: cover;
  background: var(--bg3);
}

.speaker-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.speaker-card .speaker-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.speaker-card .speaker-bio {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.speaker-card .speaker-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.speaker-card .speaker-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.speaker-card .speaker-links a:hover {
  color: var(--accent);
}

/* ========== TICKETS / PRICING ========== */
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ticket-card {
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
}

.ticket-card.featured {
  border-color: var(--accent);
}

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

.ticket-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ticket-price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.ticket-price .currency {
  font-size: 1rem;
  vertical-align: super;
  color: var(--text-dim);
}

.ticket-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.ticket-features li {
  padding: 0.3rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.ticket-features li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 700px;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.faq-question h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
}

.faq-question:hover h3 {
  color: var(--accent);
}

.faq-question .faq-toggle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ========== METHOD NOTE / INFO BANNER ========== */
.method-note {
  background: var(--bg2);
  border: 1px solid var(--border-alpha);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-family: var(--font-body);
}

.method-note .note-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.method-note strong {
  color: var(--text);
}

/* ========== RESPONSIVE — TABLET (768px) ========== */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  section,
  .schedule,
  .cfp,
  .location,
  .sponsors {
    padding: 2.5rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .speakers-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .tickets-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Schedule: switch to single column */
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .schedule-time-header,
  .schedule-track-header:not(:first-of-type) {
    display: none;
  }

  .schedule-track-header:first-of-type {
    display: block;
  }

  .schedule-row {
    display: block;
  }

  .schedule-time {
    border-right: none;
    background: var(--bg3);
    font-weight: 600;
    padding: 0.65rem 1rem;
  }

  .schedule-slot {
    border-right: none;
  }

  .schedule-plenary {
    grid-column: auto;
  }

  .schedule-break {
    grid-column: auto;
  }

  .schedule-slot .track-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
  }

  /* Footer stacked */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .countdown-grid {
    gap: 1.25rem;
  }

  /* Theme toggle mobile adjustments */
  .theme-toggle {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
  }

  /* Hide scroll hint on mobile */
  .scroll-hint {
    display: none;
  }
}

/* ========== RESPONSIVE — SMALL MOBILE (480px) ========== */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.62rem;
  }

  section,
  .schedule,
  .cfp,
  .location,
  .sponsors {
    padding: 2rem 0.75rem;
  }

  h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  .feature-card {
    padding: 1.25rem;
  }

  .cfp-format {
    padding: 1rem;
  }

  .cfp-deadline {
    padding: 1.25rem;
  }

  .location-card {
    padding: 1.25rem;
  }

  .sponsors-cta {
    padding: 1.5rem;
  }

  .countdown-num {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .countdown-grid {
    gap: 0.75rem;
  }

  .footer {
    padding: 1.5rem 1rem;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ========== NEWS FEED (HOMEPAGE) ========== */
.news-feed {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-card time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0.5rem 0;
  line-height: 1.3;
}

.news-read-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

/* ========== NEWS LISTING ========== */
.news-listing {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.news-list {
  margin-top: 2rem;
}

.news-list-item {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.news-list-item:first-child {
  border-top: 1px solid var(--border);
}

.news-list-item:hover {
  color: var(--accent);
}

.news-list-item time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.news-list-item h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.25rem 0 0;
  font-weight: 600;
}

/* ========== NEWS POST ========== */
.news-post {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.news-back {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
}

.news-back:hover {
  color: var(--accent);
}

.news-post time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.news-post h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.5rem 0 2rem;
  line-height: 1.2;
}

.news-post-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

/* ========== SIGNUP FORM ========== */
.signup-form {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius-lg);
  text-align: center;
}

.signup-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.signup-form p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.signup-embed {
  margin-top: 1rem;
}

.signup-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.signup-placeholder-input {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border-alpha);
  border-radius: var(--radius);
  overflow: hidden;
}

.signup-placeholder-input span {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg2);
  text-align: left;
}

.signup-placeholder-input button {
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: not-allowed;
  opacity: 0.7;
}

.signup-placeholder small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.5;
}

.signup-compact {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
}

.signup-compact h3 {
  font-size: 1.1rem;
}

.signup-compact p {
  font-size: 0.85rem;
}

/* ========== PRINT STYLES ========== */
@media print {
  .theme-toggle,
  .mobile-nav,
  .scroll-hint,
  .nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }

  .hero::before,
  .hero::after {
    display: none;
  }
}
