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

:root {
  --bg: #0D0D0D;
  --bg-surface: #161616;
  --bg-card: #1E1E1E;
  --accent: #E8942A;
  --accent-dim: rgba(232, 148, 42, 0.12);
  --accent-glow: rgba(232, 148, 42, 0.08);
  --text: #F5F0E8;
  --text-muted: rgba(245, 240, 232, 0.5);
  --text-dim: rgba(245, 240, 232, 0.28);
  --border: rgba(245, 240, 232, 0.08);
  --border-accent: rgba(232, 148, 42, 0.3);
  --green: #4CAF50;
  --green-dim: rgba(76, 175, 80, 0.15);
  --amber: #F5A623;
  --red: #E85C4A;
  --red-dim: rgba(232, 92, 74, 0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 48px 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 50%, rgba(232, 148, 42, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 5% 80%, rgba(232, 148, 42, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0D0D0D 0%, #111111 50%, #0D0D0D 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(245, 240, 232, 0.025) 79px,
      rgba(245, 240, 232, 0.025) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 79px,
      rgba(245, 240, 232, 0.025) 79px,
      rgba(245, 240, 232, 0.025) 80px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  margin-top: 4px;
  max-width: 120px;
  line-height: 1.4;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow:
    0 0 0 1px rgba(232, 148, 42, 0.06),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-card-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  animation: pulse 2s infinite;
}

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

.hero-card-lines { margin-bottom: 20px; }

.tap-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.tap-line:last-child { border-bottom: none; }

.tap-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tap-status {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
}

.tap-status--ok { background: var(--green-dim); color: var(--green); }
.tap-status--low { background: rgba(245, 166, 35, 0.12); color: var(--amber); }
.tap-status--out { background: var(--red-dim); color: var(--red); }

.hero-card-venue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
}

.venue-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.venue-dist {
  font-size: 12px;
  color: var(--text-dim);
}

.hero-card-ai-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  animation: pulse 1.5s infinite;
}

/* === Manifesto === */
.manifesto {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
}

.manifesto-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.manifesto-text:last-child { margin-bottom: 0; }

.manifesto-text--accent {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  font-style: italic;
}

/* === Section Shared === */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 48px;
}

.section-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  color: rgba(245, 240, 232, 0.06);
  user-select: none;
}

.section-num--light { color: rgba(245, 240, 232, 0.06); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  padding-top: 16px;
}

.section-title--light { color: var(--text); }

.section-header--light {
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.section-header--center { justify-content: center; }

/* === Venues === */
.venues-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.venues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.venue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s;
}

.venue-card:hover { border-color: var(--border-accent); }

.venue-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.venue-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.venue-card-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* === Kegs === */
.kegs-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}

.kegs-inner { max-width: 1200px; margin: 0 auto; }

.kegs-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.keg-visual { padding: 20px 0; }

.keg-row {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-end;
}

.keg {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  height: 120px;
}

.keg-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: height 0.3s;
}

.keg-fill--100 { background: linear-gradient(180deg, rgba(76,175,80,0.4) 0%, rgba(76,175,80,0.2) 100%); height: 100%; }
.keg-fill--60 { background: linear-gradient(180deg, rgba(76,175,80,0.35) 0%, rgba(76,175,80,0.15) 100%); height: 60%; }
.keg-fill--20 { background: linear-gradient(180deg, rgba(245,166,35,0.35) 0%, rgba(245,166,35,0.15) 100%); height: 20%; }
.keg-fill--0 { background: linear-gradient(180deg, rgba(232,92,74,0.3) 0%, rgba(232,92,74,0.1) 100%); height: 0%; }

.keg-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  z-index: 1;
}

.keg-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.keg-alert--urgent {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(232,92,74,0.2);
}

.keg-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: block;
  flex-shrink: 0;
}

.kegs-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.kegs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kegs-list li {
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kegs-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: block;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23E8942A' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* === Analytics === */
.analytics-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.analytics-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.analytics-card--main { /* tall card handled by grid */ }

.analytics-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-bottom: 16px;
  padding-bottom: 24px;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.chart-bar-fill {
  width: 100%;
  background: rgba(245, 240, 232, 0.08);
  border-radius: 4px 4px 0 0;
  transition: height 0.4s;
}

.chart-bar--current .chart-bar-fill {
  background: linear-gradient(180deg, rgba(232,148,42,0.6) 0%, rgba(232,148,42,0.2) 100%);
}

.chart-month {
  font-size: 11px;
  color: var(--text-dim);
  position: absolute;
  bottom: 0;
}

.analytics-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.analytics-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-big {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-big small {
  font-size: 20px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.metric-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* === Who === */
.who-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 80px 48px;
}

.who-inner { max-width: 1200px; margin: 0 auto; }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.who-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  background: var(--bg);
}

.who-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.who-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.who-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* === Closing === */
.closing-section {
  padding: 100px 48px;
  text-align: center;
}

.closing-inner { max-width: 760px; margin: 0 auto; }

.closing-stat { margin-bottom: 32px; }

.closing-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 100px);
  font-weight: 800;
  color: rgba(245, 240, 232, 0.08);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.closing-stat-label {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 360px;
  margin: 0 auto;
  display: block;
  line-height: 1.5;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
  display: block;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .hero-sub { max-width: 100%; }
  .venues-grid, .who-grid { grid-template-columns: 1fr 1fr; }
  .kegs-body { grid-template-columns: 1fr; gap: 48px; }
  .analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 24px 64px; }
  .manifesto { padding: 48px 24px; }
  .venues-section, .kegs-section, .analytics-section, .who-section, .closing-section { padding: 48px 24px; }
  .venues-grid, .who-grid { grid-template-columns: 1fr; }
  .hero-stat-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-stat-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .section-num { font-size: 56px; }
}