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

:root {
  --cafe: #1a0f08;
  --cafe-mid: #2e1508;
  --dorado: #C9963B;
  --dorado-light: #e8b85a;
  --crema: #F5ECD7;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cafe);
  color: var(--crema);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* GRAIN TEXTURE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ORBITING BEANS BACKGROUND */
.beans-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}

.bean-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 42px;
  border-radius: 50%;
  margin: -21px -15px;
}

.bean-orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  width: 60%;
  height: 3px;
  background: rgba(0,0,0,0.4);
  border-radius: 2px;
  transform: translateY(-50%) rotate(15deg);
}

.bo1 { background: var(--dorado); animation: bigOrbit 18s linear infinite; }
.bo2 { background: var(--dorado); animation: bigOrbit 18s linear infinite; animation-delay: -6s; }
.bo3 { background: var(--dorado); animation: bigOrbit 18s linear infinite; animation-delay: -12s; }
.bo4 { background: #6B3A1F; animation: bigOrbit2 25s linear infinite; }
.bo5 { background: #6B3A1F; animation: bigOrbit2 25s linear infinite; animation-delay: -12s; }

@keyframes bigOrbit {
  0% { transform: rotate(0deg) translateX(min(35vw, 220px)) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(min(35vw, 220px)) rotate(-360deg); }
}

@keyframes bigOrbit2 {
  0% { transform: rotate(0deg) translateX(min(25vw, 160px)) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(min(25vw, 160px)) rotate(-360deg); }
}

/* MAIN CONTENT */
.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  width: 100%;
  padding: 40px 20px;
}

/* COFFEE CUP ANIMATION */
.cup-scene {
  margin-bottom: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steam-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  height: 40px;
  align-items: flex-end;
}

.steam {
  width: 4px;
  border-radius: 4px;
  background: rgba(245, 236, 215, 0.25);
  animation: steamRise 2.4s ease-in-out infinite;
}

.s1 { height: 20px; animation-delay: 0s; }
.s2 { height: 30px; animation-delay: 0.5s; }
.s3 { height: 18px; animation-delay: 1s; }
.s4 { height: 26px; animation-delay: 0.25s; }

@keyframes steamRise {
  0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.5; }
  50% { transform: translateY(-14px) scaleX(1.6); opacity: 0; }
}

.cup-outer {
  width: 72px;
  height: 54px;
  background: linear-gradient(160deg, #8B5E2E 0%, #5c3a1e 100%);
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
}

.cup-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cafe);
  animation: coffeeFill 3s steps(8, end) infinite;
  border-radius: 0 0 18px 18px;
}

@keyframes coffeeFill {
  0% { height: 0; }
  60%, 100% { height: 44px; }
}

.cup-crema {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--dorado);
  border-radius: 2px;
  animation: cremaShift 3s steps(8, end) infinite;
  opacity: 0.85;
}

@keyframes cremaShift {
  0%, 40% { opacity: 0; }
  60%, 100% { opacity: 0.85; }
}

.cup-handle {
  position: absolute;
  right: -20px;
  top: 10px;
  width: 18px;
  height: 26px;
  border: 5px solid #7a4e28;
  border-radius: 0 12px 12px 0;
  border-left: none;
}

.saucer {
  width: 90px;
  height: 10px;
  background: #7a4e28;
  border-radius: 50%;
  margin-top: 4px;
}

/* LOGO */
.logo-wrap {
  margin-bottom: 20px;
}

.logo-wrap img {
  height: clamp(80px, 15vw, 120px);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(201, 150, 59, 0.2));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* TEXT */
.eyebrow {
  font-size: clamp(9px, 2.5vw, 11px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 16px;
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 10px;
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.main-title em {
  font-style: italic;
  color: var(--dorado-light);
}

.subtitle {
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 300;
  color: rgba(245, 236, 215, 0.55);
  letter-spacing: 0.06em;
  margin-bottom: clamp(32px, 6vw, 48px);
  line-height: 1.5;
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
  animation-delay: 0.9s;
}

/* TYPING LINE */
.typing-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 52px;
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
  animation-delay: 1.2s;
}

.typing-text {
  font-family: monospace;
  font-size: 13px;
  color: rgba(201, 150, 59, 0.7);
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typeIt 4s steps(24, end) infinite;
}

@keyframes typeIt {
  0%, 5% { width: 0; }
  50%, 80% { width: 24ch; }
  95%, 100% { width: 0; }
}

.cursor {
  width: 2px;
  height: 14px;
  background: var(--dorado);
  opacity: 0.7;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0; }
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  width: min(260px, 80vw);
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
  animation-delay: 1.4s;
}

.div-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 150, 59, 0.3));
}

.div-line.right {
  background: linear-gradient(to left, transparent, rgba(201, 150, 59, 0.3));
}

.div-dot {
  width: 5px;
  height: 5px;
  background: var(--dorado);
  border-radius: 50%;
  opacity: 0.6;
}

/* INSTAGRAM BUTTON */
.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border: 1px solid rgba(201, 150, 59, 0.35);
  border-radius: 3px;
  color: var(--crema);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
  animation-delay: 1.6s;
  position: relative;
  overflow: hidden;
}

.ig-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-btn:hover::before {
  opacity: 0.15;
}

.ig-btn:hover {
  border-color: rgba(201, 150, 59, 0.7);
  transform: translateY(-2px);
}

.ig-btn span, .ig-btn svg {
  position: relative;
  z-index: 1;
}

.ig-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* COPYRIGHT */
.copy {
  position: fixed;
  bottom: 24px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(245, 236, 215, 0.18);
  animation: fadeIn 2s ease forwards;
  opacity: 0;
  animation-delay: 2s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}
