:root {
  color-scheme: dark;
  --bg: #11121a;
  --panel: #1b1d2b;
  --panel-strong: #24273a;
  --text: #f7f3e8;
  --muted: #b9b4c7;
  --accent: #ffcf5a;
  --accent-2: #ff6b9a;
  --green: #6ee7b7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 207, 90, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 20%, rgba(255, 107, 154, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(17, 18, 26, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.nav a:hover, .nav a:focus-visible { color: var(--text); }

.logo {
  color: var(--text) !important;
  font-size: 1.05rem;
}

main, .footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 12px;
}

h1, h2, h3 { line-height: 1.05; margin: 0; }

h1 {
  font-size: clamp(3rem, 9vw, 7.2rem);
  letter-spacing: -0.07em;
  max-width: 900px;
}

h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.045em; }

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  max-width: 680px;
  margin: 24px 0 32px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.primary {
  background: linear-gradient(135deg, var(--accent), #ff9f43);
  color: #211706;
  box-shadow: 0 12px 36px rgba(255, 207, 90, 0.22);
}

.secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.lunchbox-card {
  min-height: 430px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}

.chip {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent-2);
  color: white;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 1000;
  letter-spacing: 0.1em;
}

.scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  box-shadow: 0 0 30px var(--green);
  animation: scan 2.4s infinite ease-in-out;
}

@keyframes scan {
  0%, 100% { top: 18%; opacity: 0.2; }
  50% { top: 82%; opacity: 1; }
}

.sandwich {
  width: min(260px, 80%);
  aspect-ratio: 1.2;
  display: grid;
  gap: 10px;
  transform: rotate(-7deg);
}

.sandwich span {
  border-radius: 28px;
  background: var(--accent);
  box-shadow: inset 0 -12px 0 rgba(0,0,0,0.12);
}

.sandwich span:nth-child(2) { background: var(--accent-2); transform: translateX(18px); }
.sandwich span:nth-child(3) { background: #f6e6a6; transform: translateX(-12px); }

.lunchbox-card p { color: var(--muted); font-weight: 800; }

.judge-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  padding: 48px;
  border-radius: var(--radius);
  background: rgba(27, 29, 43, 0.86);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
}

.panel-copy p:not(.eyebrow) { color: var(--muted); }

.lunch-form, .verdict {
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 24px;
}

.lunch-form label {
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 140px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
  color: var(--text);
  padding: 16px;
  font: inherit;
}

textarea:focus { outline: 3px solid rgba(110, 231, 183, 0.45); }

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.verdict {
  grid-column: 2;
  margin-top: -8px;
  border-color: rgba(255, 207, 90, 0.28);
}

.verdict-kicker {
  color: var(--accent);
  font-weight: 1000;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.verdict h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.verdict p:last-child { color: var(--muted); margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px 0;
}

.stats div, .examples article {
  border-radius: 22px;
  padding: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
}

.stats strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent);
}

.stats span, .examples span, .examples p { color: var(--muted); }

.examples { padding: 56px 0 80px; }
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.examples h3 { margin-bottom: 12px; font-size: 1.35rem; }
.examples span { display: block; font-weight: 800; }

.footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0 44px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .nav { justify-content: center; flex-wrap: wrap; padding: 12px 0; }
  .hero, .judge-panel, .stats, .example-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 52px 0; }
  .judge-panel { padding: 24px; }
  .verdict { grid-column: auto; }
}

@media (max-width: 520px) {
  main, .footer, .nav { width: min(100% - 22px, 1120px); }
  .button { width: 100%; }
  .lunchbox-card { min-height: 320px; }
}
