/* ===========================================
   Canada Strong Ride — Main Stylesheet
   =========================================== */

/* 1. Design Tokens */
:root {
  --bg:          #0D1117;
  --bg-card:     #161B22;
  --bg-input:    #21262D;
  --bg-muted:    #1C2128;

  --red:         #CC0000;
  --red-light:   #E50000;
  --red-dark:    #8B0000;
  --red-glow:    rgba(204, 0, 0, 0.18);

  --white:       #FFFFFF;
  --text:        #F0F6FC;
  --text-muted:  #8B949E;
  --text-subtle: #484F58;

  --gold:        #D4AF37;
  --gold-light:  #F0D060;
  --silver:      #A8A9AD;
  --bronze:      #CD7F32;

  --border:      rgba(240, 246, 252, 0.08);
  --border-red:  rgba(204, 0, 0, 0.35);

  --success:     #238636;
  --error:       #DA3633;

  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Rubik', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-red:  0 0 24px rgba(204,0,0,0.25);

  --nav-height: 72px;
  --max-w:      1200px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}

/* 3. Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* 4. Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.12; }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 200ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-lg { padding: 18px 40px; font-size: 1.0625rem; }
.btn-full { width: 100%; justify-content: center; }

.btn:disabled, .btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .btn-text { opacity: 0.8; }

/* 6. Badges / Tier Labels */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-bronze { background: rgba(205,127,50,0.15); color: var(--bronze); border: 1px solid rgba(205,127,50,0.3); }
.badge-silver { background: rgba(168,169,173,0.15); color: var(--silver); border: 1px solid rgba(168,169,173,0.3); }
.badge-gold   { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }
.badge-ruby   { background: rgba(204,0,0,0.15); color: #FF6666; border: 1px solid rgba(204,0,0,0.35); }
.badge-diamond { background: rgba(185,242,255,0.12); color: #B9F2FF; border: 1px solid rgba(185,242,255,0.3); }

/* Tier color map by category */
.tier-2, .tier-3 { --tier-color: var(--bronze); --tier-bg: rgba(205,127,50,0.1); }
.tier-4, .tier-5 { --tier-color: var(--silver); --tier-bg: rgba(168,169,173,0.1); }
.tier-6, .tier-7 { --tier-color: var(--gold); --tier-bg: rgba(212,175,55,0.1); }
.tier-8, .tier-9 { --tier-color: #FF6666; --tier-bg: rgba(204,0,0,0.1); }
.tier-10         { --tier-color: #B9F2FF; --tier-bg: rgba(185,242,255,0.1); }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 300ms ease, border-bottom 300ms ease;
}
.navbar.scrolled {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 150ms;
}
.nav-logo:hover { color: var(--red); }
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 150ms, background 150ms;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--text); }
.nav-link.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  font-weight: 600;
}
.nav-link.nav-cta:hover { background: var(--red-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 300ms, opacity 300ms;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(204,0,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(204,0,0,0.04) 0%, transparent 60%),
    var(--bg);
}
.hero-leaf {
  position: absolute;
  right: -5%;
  top: 10%;
  width: min(60vw, 600px);
  opacity: 0.04;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-leaf svg { width: 100%; height: auto; fill: var(--red); }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: 99px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title span { color: var(--red); display: block; }
.hero-subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.375rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

/* =============================================
   MARQUEE
   ============================================= */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--red);
  padding: 12px 0;
  border-top: 1px solid var(--red-dark);
  border-bottom: 1px solid var(--red-dark);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content .section-title { margin-bottom: 20px; }
.about-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}
.about-rules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rule-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rule-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rule-icon svg { width: 18px; height: 18px; color: var(--red); }
.rule-text strong { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.rule-text span { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.5; }

.about-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--red-glow), transparent 60%);
  pointer-events: none;
}
.about-leaf {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 32px;
  opacity: 0.12;
}
.about-leaf svg { width: 100%; height: auto; fill: var(--red); }
.about-quote {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
}
.about-quote strong { color: var(--red); font-style: normal; }
.about-sub {
  text-align: center;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* =============================================
   CATEGORIES
   ============================================= */
.categories { background: var(--bg-muted); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 250ms, transform 250ms, box-shadow 250ms;
  cursor: default;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tier-color);
  opacity: 0;
  transition: opacity 250ms;
}
.category-card:hover {
  border-color: var(--tier-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.category-card:hover::before { opacity: 1; }

.category-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--tier-color);
  margin-bottom: 4px;
  transition: transform 250ms;
}
.category-card:hover .category-number { transform: scale(1.05); }
.category-parks {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.category-tier {
  margin-bottom: 12px;
}
.category-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.category-special {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  opacity: 0.5;
}
.category-special svg { width: 100%; height: auto; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border: 2px solid var(--border-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--red);
  opacity: 0.8;
}
.step-icon svg { width: 100%; height: auto; }

/* =============================================
   HALL OF FAME
   ============================================= */
.hof { background: var(--bg-muted); }
.hof-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hof-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.riders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.rider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.rider-card:hover {
  border-color: var(--border-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.rider-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-muted);
}
.rider-photo-placeholder {
  width: 100%;
  height: 180px;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rider-photo-placeholder svg { width: 48px; height: 48px; color: var(--text-subtle); opacity: 0.4; }
.rider-body { padding: 24px; }
.rider-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rider-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}
.rider-province {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.rider-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rider-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.rider-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.rider-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.riders-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.riders-empty svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.3; }
.riders-empty p { font-size: 1rem; }

/* =============================================
   SUBMISSION FORM
   ============================================= */
.submit-section { background: var(--bg); }
.submit-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.submit-info .section-title { margin-bottom: 16px; }
.submit-info .section-subtitle { margin-bottom: 32px; }
.submit-requirements {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.req-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.req-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 7px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full { grid-column: 1/-1; }
label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
label .req { color: var(--red); margin-left: 2px; }
.helper-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -2px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}
input.error, textarea.error, select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(218,54,51,0.12);
}
.field-error {
  font-size: 0.8125rem;
  color: var(--error);
  display: none;
}
.field-error.visible { display: block; }

textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B949E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select option { background: var(--bg-input); }

/* Photo Upload */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
  position: relative;
}
.photo-upload-area:hover, .photo-upload-area.drag-over {
  border-color: var(--red);
  background: var(--red-glow);
}
.photo-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}
.photo-upload-area input[type="file"]:focus { box-shadow: none; }
.upload-icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--text-muted); }
.upload-icon svg { width: 100%; height: auto; }
.upload-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.upload-title span { color: var(--red); }
.upload-subtitle { font-size: 0.875rem; color: var(--text-muted); }

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.preview-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border);
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: opacity 150ms;
}
.preview-thumb:hover .remove-btn { opacity: 1; }
.preview-thumb .park-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(0,0,0,0.75);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.photo-count-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.photo-count-text strong { color: var(--text); }
.photo-count-bar .badge { font-size: 0.75rem; }

/* GPX input */
.gpx-upload { cursor: pointer; }
.gpx-upload::-webkit-file-upload-button {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 6px 12px;
  margin-right: 12px;
  cursor: pointer;
}

/* Checkbox */
.checkbox-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms;
}
.checkbox-wrap:hover { border-color: var(--border-red); }
.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--red);
  margin-top: 3px;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
}
.checkbox-wrap input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(204,0,0,0.15); }
.checkbox-text strong { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 2px; }
.checkbox-text span { font-size: 0.875rem; color: var(--text-muted); }

.form-divider {
  grid-column: 1/-1;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.form-submit-row {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =============================================
   TOAST
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  min-width: 300px;
  max-width: 440px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  pointer-events: all;
  animation: slideIn 300ms var(--ease) forwards;
}
.toast.out { animation: slideOut 250ms ease forwards; }
.toast-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.toast-icon svg { width: 100%; height: auto; }
.toast.success { border-color: rgba(35,134,54,0.4); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-color: rgba(218,54,51,0.4); }
.toast.error .toast-icon { color: var(--error); }
.toast-content strong { display: block; font-weight: 600; margin-bottom: 2px; font-size: 0.9375rem; }
.toast-content p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 320px;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 150ms;
}
.footer-link:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.875rem;
  color: var(--text-subtle);
}
.footer-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-subtle);
}
.footer-flag svg { width: 20px; height: auto; }

/* =============================================
   ANIMATIONS & KEYFRAMES
   ============================================= */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(-5deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}
@keyframes fadeInUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .submit-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: rgba(13,17,23,0.98); backdrop-filter: blur(12px); padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: clamp(3rem, 18vw, 6rem); }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-card { padding: 28px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .hof-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .photo-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .form-submit-row { flex-direction: column; }
  .form-submit-row .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { padding: 32px 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .categories-grid { grid-template-columns: 1fr; }
  .photo-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
