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

:root {
  --bg: #0D0804;
  --bg-card: #130B06;
  --fg: #F4E8D8;
  --fg-muted: rgba(244,232,216,0.55);
  --accent: #FF4400;
  --accent-warm: #FF8C00;
  --border: rgba(244,232,216,0.12);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --space-xs: clamp(0.75rem, 1.5vw, 1rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(1.5rem, 3vw, 3rem);
  --space-lg: clamp(3rem, 6vw, 6rem);
  --space-xl: clamp(5rem, 10vw, 10rem);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(13,8,4,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--fg);
}

.nav__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 300;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--space-lg) clamp(1.5rem, 5vw, 4rem);
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255,68,0,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,140,0,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 38ch;
  line-height: 1.65;
  font-weight: 300;
}

/* === HERO VISUAL - BEAN ART === */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 480px;
}

.bean-art {
  position: relative;
  width: 320px;
  height: 400px;
}

.bean {
  position: absolute;
  border-radius: 50%;
  background: var(--fg);
}

.bean::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 55%;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border-radius: 2px;
}

.bean--1 { width: 60px; height: 90px; top: 10%; left: 55%; transform: rotate(15deg); background: #3a2310; }
.bean--2 { width: 45px; height: 70px; top: 25%; left: 70%; transform: rotate(-20deg); background: #4a2d14; }
.bean--3 { width: 50px; height: 75px; top: 50%; left: 62%; transform: rotate(35deg); background: #5a3520; }
.bean--4 { width: 55px; height: 82px; top: 15%; left: 38%; transform: rotate(-8deg); background: #3a2310; opacity: 0.7; }
.bean--5 { width: 40px; height: 60px; top: 40%; left: 28%; transform: rotate(22deg); background: #4a2d14; opacity: 0.6; }
.bean--6 { width: 35px; height: 55px; top: 60%; left: 45%; transform: rotate(-15deg); background: #5a3520; opacity: 0.5; }

/* Cup */
.cup {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 150px;
}

.cup__body {
  width: 120px;
  height: 130px;
  background: linear-gradient(135deg, #2a1a0a 0%, #1a0e06 100%);
  border-radius: 8px 8px 16px 16px;
  position: relative;
  box-shadow:
    inset -8px 0 20px rgba(255,140,0,0.15),
    0 20px 60px rgba(0,0,0,0.6);
}

.cup__sleeve {
  position: absolute;
  width: 110px;
  height: 45px;
  background: var(--fg);
  top: 35px;
  left: 5px;
  border-radius: 3px;
}

.cup__lid {
  position: absolute;
  width: 130px;
  height: 14px;
  background: #2a1a0a;
  top: -4px;
  left: -5px;
  border-radius: 4px 4px 0 0;
}

.cup__logo {
  position: absolute;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Steam */
.steam {
  position: absolute;
  width: 8px;
  border-radius: 4px;
  background: rgba(244,232,216,0.15);
  animation: steam-rise 3s ease-in-out infinite;
}

.steam--1 { height: 40px; top: -50px; left: 40px; animation-delay: 0s; }
.steam--2 { height: 55px; top: -55px; left: 58px; animation-delay: 0.8s; }
.steam--3 { height: 35px; top: -48px; left: 76px; animation-delay: 1.6s; }

@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(0) scaleX(1); }
  30% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-60px) scaleX(1.5); }
}

/* === MANIFESTO === */
.manifesto {
  padding: var(--space-lg) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
  max-width: 1200px;
}

.manifesto__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.4rem;
  border-top: 2px solid var(--accent);
  white-space: nowrap;
}

.manifesto__text {
  max-width: 60ch;
}

.manifesto__text p {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  color: var(--fg-muted);
  font-weight: 300;
}

.manifesto__text p + p {
  margin-top: 1rem;
}

/* === CATEGORIES === */
.categories {
  padding: var(--space-xl) clamp(1.5rem, 5vw, 4rem);
}

.categories__header {
  margin-bottom: var(--space-lg);
}

.categories__eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.categories__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
}

.cat-card {
  background: var(--bg-card);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: background 0.3s ease;
}

.cat-card:hover {
  background: #1a1008;
}

.cat-card__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
}

.cat-card__icon {
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

.cat-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.cat-card__desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.cat-card__tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255,68,0,0.3);
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-weight: 600;
}

/* === VIBE === */
.vibe {
  padding: var(--space-xl) clamp(1.5rem, 5vw, 4rem);
  background: #0a0604;
  border-top: 1px solid var(--border);
}

.vibe__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.vibe__tag {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.vibe__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
  font-style: italic;
}

.vibe__facts {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.vibe__fact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vibe__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.vibe__label {
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* === CLOSING === */
.closing {
  padding: var(--space-xl) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(255,68,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.closing__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.25rem;
  position: relative;
}

.closing__body {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 45ch;
  margin: 0 auto 4rem;
  font-weight: 300;
  position: relative;
}

.closing__visual {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing__bean-row {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.closing__bean {
  width: 28px;
  height: 42px;
  border-radius: 50%;
  position: relative;
}

.closing__bean::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 55%;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,8,4,0.7);
  border-radius: 2px;
}

.closing__bean--a { background: #3a2310; transform: rotate(10deg); }
.closing__bean--b { background: #4a2d14; transform: rotate(-15deg); width: 24px; height: 36px; }
.closing__bean--c { background: #5a3520; transform: rotate(5deg); width: 22px; height: 33px; }
.closing__bean--d { background: #4a2d14; transform: rotate(-8deg); width: 24px; height: 36px; }
.closing__bean--e { background: #3a2310; transform: rotate(20deg); }

/* === FOOTER === */
.footer {
  padding: var(--space-lg) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
}

.footer__meta p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--space-md);
  }

  .hero__visual {
    height: 300px;
    order: -1;
  }

  .bean-art {
    transform: scale(0.75);
  }

  .manifesto__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vibe__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 600px) {
  .categories__grid {
    grid-template-columns: 1fr;
  }

  .cat-card__num {
    font-size: 3rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}