/* ============================================================
   TomatoVarieties.com — Modern Dark/Red Theme
   ============================================================ */

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

:root {
  --crimson: #8B0000;
  --red: #C0392B;
  --red-glow: #E74C3C;
  --dark-bg: #0D0A08;
  --dark-card: #1A1412;
  --dark-surface: #231C17;
  --dark-border: rgba(192,57,43,0.15);
  --cream: #FFF8F0;
  --gold: #D4A843;
  --green: #4CAF50;
  --text-light: #F5E6D3;
  --text-muted: #9B8B7A;
  --text-dim: rgba(255,255,255,0.5);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 12px 40px rgba(192,57,43,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(13,10,8,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--dark-border);
  transition: background var(--transition);
}
#nav.scrolled { background: rgba(13,10,8,0.95); }

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo::before {
  content: '';
  display: inline-block;
  width: 28px; height: 28px;
  background: var(--red);
  border-radius: 50%;
  position: relative;
}
.logo::after {
  content: '';
  position: absolute;
  left: 2.5rem;
  width: 6px; height: 10px;
  background: var(--green);
  border-radius: 0 3px 0 3px;
  transform: rotate(-30deg);
  margin-top: -14px;
  margin-left: 5px;
}

#nav ul { list-style: none; display: flex; gap: 0.25rem; align-items: center; }
#nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}
#nav ul a:hover, #nav ul a.active { color: #fff; background: rgba(255,255,255,0.06); }

.cta-nav {
  background: var(--red) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
}
.cta-nav:hover { background: var(--red-glow) !important; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(231,76,60,0.3); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.dark-toggle { display: none; }

.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  width: 28px; height: 20px;
  position: relative;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
  position: absolute; left: 0;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ============================================================
   APP CONTAINER
   ============================================================ */
#app { padding-top: 64px; min-height: 100vh; }

.page { animation: pageIn 0.5s ease-out; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(13,10,8,0.85) 0%, rgba(139,0,0,0.3) 40%, rgba(13,10,8,0.8) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 820px; padding: 0 2rem;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(192,57,43,0.2);
  color: var(--red-glow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.45rem 1.2rem;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(192,57,43,0.3);
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease-out 0.4s both;
}
.hero h1 span { color: var(--red-glow); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245,230,211,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  animation: fadeUp 0.8s ease-out 0.6s both;
}
.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.8s both;
}

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

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-dim);
  animation: heroFloat 2.5s ease-in-out infinite;
  cursor: pointer;
  width: 30px; height: 50px;
  border: 2px solid var(--text-dim);
  border-radius: 15px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px;
}
.hero-scroll::after {
  content: '';
  width: 4px; height: 8px;
  background: var(--text-dim);
  border-radius: 2px;
  animation: scrollDot 2.5s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}
@keyframes heroFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--red), var(--crimson));
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
  font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.4);
  background: linear-gradient(135deg, var(--red-glow), var(--red));
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red-glow);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-outline:hover { background: var(--red); color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--red);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--dark-card);
  padding: 2.5rem 2rem;
  display: flex; justify-content: center; gap: 5rem; flex-wrap: wrap;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--red-glow);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
}

/* ============================================================
   VARIETY CARDS
   ============================================================ */
.varieties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.variety-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.variety-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(192,57,43,0.3);
}
.variety-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.variety-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.variety-card:hover img { transform: scale(1.08); }
.variety-card .card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,10,8,0.6) 0%, transparent 50%);
}

.variety-card-body { padding: 1.5rem; }
.variety-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
  transition: color var(--transition);
}
.variety-card:hover .variety-card-body h3 { color: var(--red-glow); }
.variety-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  font-size: 0.7rem; font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: rgba(192,57,43,0.1);
  color: var(--red-glow);
  border: 1px solid rgba(192,57,43,0.2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.days {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: flex; align-items: center; gap: 0.4rem;
}

/* ============================================================
   FLAVOR EXPLORER
   ============================================================ */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.flavor-card {
  position: relative; height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  border: 1px solid var(--dark-border);
  transition: all var(--transition);
}
.flavor-card:hover { border-color: rgba(192,57,43,0.4); }
.flavor-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.flavor-card:hover img { transform: scale(1.08); }
.flavor-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,10,8,0.9) 0%, rgba(13,10,8,0.1) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem;
  transition: background var(--transition);
}
.flavor-card:hover .flavor-card-overlay {
  background: linear-gradient(to top, rgba(139,0,0,0.85) 0%, rgba(13,10,8,0.2) 60%);
}
.flavor-card h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.flavor-card p { color: rgba(255,255,255,0.65); font-size: 0.85rem; line-height: 1.5; }

/* ============================================================
   SEARCH & FILTER BAR
   ============================================================ */
.search-filter-wrap {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center; justify-content: center;
  margin-bottom: 2.5rem;
}
.search-box {
  display: flex; align-items: center;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 24px;
  padding: 0 1.25rem;
  min-width: 280px;
  transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--red); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.7rem 0.75rem;
  width: 100%;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--text-muted); }

.filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 24px;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--red); color: var(--text-light); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--red), var(--crimson));
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 12px rgba(192,57,43,0.3);
}

.variety-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.variety-count span { color: var(--red-glow); font-weight: 600; }

/* ============================================================
   GUIDE CARDS
   ============================================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.guide-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  cursor: pointer;
  transition: all var(--transition);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(192,57,43,0.3); }
.guide-card .guide-img-wrap { overflow: hidden; }
.guide-card img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.guide-card:hover img { transform: scale(1.05); }
.guide-card-body { padding: 1.5rem; }
.guide-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.guide-card-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.read-more {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1rem;
  color: var(--red-glow);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap var(--transition);
}
.guide-card:hover .read-more { gap: 0.6rem; }

/* ============================================================
   FINDER / QUIZ
   ============================================================ */
.finder-wrap { max-width: 720px; margin: 0 auto; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp 0.4s ease-out; }
.quiz-step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1.75rem;
  text-align: center;
}
.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.quiz-option {
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--dark-border);
  background: var(--dark-card);
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
  font-family: inherit;
  font-size: 0.95rem;
}
.quiz-option:hover {
  border-color: var(--red);
  background: rgba(192,57,43,0.08);
  color: var(--red-glow);
}

.quiz-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--dark-surface);
  border-radius: 2px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-glow));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quiz-nav {
  display: flex; justify-content: space-between; align-items: center;
}
.quiz-progress-text { font-size: 0.85rem; color: var(--text-muted); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.match-label {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 4rem 2rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
footer p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-links {
  display: flex; gap: 1.5rem; justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red-glow); }
.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================================
   FEATURED CARD
   ============================================================ */
.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
  margin-bottom: 2rem;
  border: 1px solid var(--dark-border);
  cursor: pointer;
  transition: all var(--transition);
}
.featured-card:hover { box-shadow: var(--shadow-hover); }
.featured-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-card:hover img { transform: scale(1.04); }
.featured-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,10,8,0.9) 0%, rgba(13,10,8,0.3) 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem;
}
.featured-card-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.featured-card-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.varieties-grid .variety-card {
  animation: cardIn 0.5s ease-out both;
}
.varieties-grid .variety-card:nth-child(1) { animation-delay: 0.05s; }
.varieties-grid .variety-card:nth-child(2) { animation-delay: 0.1s; }
.varieties-grid .variety-card:nth-child(3) { animation-delay: 0.15s; }
.varieties-grid .variety-card:nth-child(4) { animation-delay: 0.2s; }
.varieties-grid .variety-card:nth-child(5) { animation-delay: 0.25s; }
.varieties-grid .variety-card:nth-child(6) { animation-delay: 0.3s; }
.varieties-grid .variety-card:nth-child(7) { animation-delay: 0.35s; }
.varieties-grid .variety-card:nth-child(8) { animation-delay: 0.4s; }
.varieties-grid .variety-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .varieties-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .stats-bar { gap: 3rem; }
}

@media (max-width: 768px) {
  #nav { padding: 0 1.25rem; }
  #nav ul {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,10,8,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
  }
  #nav ul.open { display: flex; }
  #nav ul a {
    font-size: 1.4rem;
    padding: 0.75rem 2rem;
    color: #fff;
  }
  .cta-nav { font-size: 1.1rem !important; padding: 0.75rem 2rem !important; }
  .hamburger { display: block; z-index: 1001; }

  .hero { min-height: 500px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero p { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }

  .stats-bar { gap: 2rem; padding: 2rem 1.5rem; }
  .stat-num { font-size: 2rem; }

  section { padding: 4rem 1.25rem; }

  .varieties-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .flavor-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }

  .featured-card { height: 300px; }
  .featured-card-overlay { padding: 1.5rem; }
  .featured-card-overlay h3 { font-size: 1.4rem; }
  .featured-card-overlay p { font-size: 0.9rem; }

  .search-box { min-width: 100%; }
  .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  .quiz-options { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  #nav { height: 56px; }
  #app { padding-top: 56px; }
  .hero { height: calc(100vh - 56px); min-height: 450px; }
  .hero-content { padding: 0 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.6rem; }
  .variety-card .card-img-wrap { height: 180px; }
  .stats-bar { gap: 1.5rem; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.7rem; }
}

.glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.3;
}

/* ============================================================
   VARIETY DETAIL PAGE
   ============================================================ */
.page-section { padding-top: 3rem; }
.detail-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); text-decoration: none; font-weight: 500;
  font-size: 0.9rem; cursor: pointer; border: none; background: none;
  font-family: inherit; margin-bottom: 2rem; transition: color var(--transition);
}
.detail-back:hover { color: var(--red-glow); }
.detail-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.detail-img-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--dark-border);
}
.detail-hero-img {
  width: 100%; height: 420px; object-fit: cover; display: block;
}
.detail-type {
  color: var(--red-glow); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem;
}
.detail-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff; margin-bottom: 1rem;
}
.detail-desc {
  color: var(--text-muted); line-height: 1.75; font-size: 1rem; margin-bottom: 1.25rem;
}
.detail-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin: 2rem 0;
}
.detail-stat {
  background: var(--dark-card); padding: 1.25rem;
  border-radius: var(--radius-sm); text-align: center;
  border: 1px solid var(--dark-border);
}
.detail-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--red-glow); font-weight: 700;
}
.detail-stat-label {
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem;
}
.detail-origin {
  font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem;
}
.detail-wiki {
  margin-top: 3.5rem; padding-top: 3rem;
  border-top: 1px solid var(--dark-border);
}
.detail-wiki h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: #fff; margin-bottom: 1.5rem;
}
.wiki-content { color: var(--text-muted); line-height: 1.85; font-size: 1rem; }
.wiki-content p { margin-bottom: 1rem; }
.wiki-source {
  margin-top: 1.5rem; font-size: 0.82rem;
  color: var(--text-dim); font-style: italic;
}

@media (max-width: 768px) {
  .detail-hero { grid-template-columns: 1fr; gap: 2rem; }
  .detail-hero-img { height: 280px; }
  .detail-info h1 { font-size: 1.8rem; }
  .detail-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .detail-stat { padding: 0.85rem 0.5rem; }
}
