/* ============================================
   Nubi Coffee Lounge — Modern Light Design System
   Color Ratio: 60% White · 30% Coffee · 10% Black
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@200;300;400;500;600;700&display=swap');

:root {
  /* ── White Tones (60%) ── */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FDFBF8;
  --bg-tertiary: #FAF6F1;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255,255,255,0.85);
  --bg-glass-hover: rgba(255,255,255,0.95);

  /* ── Foamy Coffee Tones (30%) ── */
  --coffee: #D4B896;
  --coffee-light: #E8D5B7;
  --coffee-lighter: #F2E6D4;
  --coffee-warm: #C9A87C;
  --coffee-deep: #A08060;
  --coffee-bg: rgba(212,184,150,0.07);
  --coffee-bg-medium: rgba(212,184,150,0.14);
  --coffee-bg-strong: rgba(212,184,150,0.22);
  --coffee-glow: rgba(212,184,150,0.18);

  /* ── Black Tones (10%) ── */
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #8A8A8A;
  --border-color: rgba(0,0,0,0.07);
  --border-hover: rgba(0,0,0,0.14);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.05), 0 2px 6px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* ── Spacing ── */
  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
  --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
  --space-3xl: 4rem; --space-4xl: 6rem; --space-5xl: 8rem;

  /* ── Radius ── */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-base: 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);

  /* ── Layout ── */
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--coffee-deep); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--coffee); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--coffee); color: #FFFFFF; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-xl); }
.container--narrow { max-width: var(--container-narrow); }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: var(--space-lg) 0;
  background: transparent;
  transition: all var(--transition-base);
}
.nav.scrolled {
  padding: var(--space-sm) 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-xl);
}
.nav__logo {
  display: flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; color: var(--text-primary); letter-spacing: 0.05em;
}
.nav__logo img { width: 38px; height: 38px; border-radius: 50%; }
.nav__links { display: flex; align-items: center; gap: var(--space-2xl); list-style: none; }
.nav__links a {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
  transition: color var(--transition-base); position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--text-primary); }
.nav__links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1.5px; background: var(--coffee);
  transition: width var(--transition-base);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

/* Lang Switcher */
.lang-switcher {
  display: flex; gap: 2px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full); padding: 3px;
  border: 1px solid var(--border-color);
}
.lang-btn {
  padding: 5px 10px; border: none; background: transparent;
  color: var(--text-muted); font-size: 0.7rem; font-weight: 500;
  border-radius: var(--radius-full); cursor: pointer;
  transition: all var(--transition-fast); font-family: var(--font-display);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active { background: var(--coffee); color: #FFFFFF; }

/* Hamburger */
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.nav__toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--text-primary);
  position: absolute; left: 6px; transition: all var(--transition-fast);
}
.nav__toggle span:nth-child(1) { top: 10px; }
.nav__toggle span:nth-child(2) { top: 16px; }
.nav__toggle span:nth-child(3) { top: 22px; }
.nav__toggle.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--coffee-bg-strong) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 20%, var(--coffee-bg) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 30%, var(--coffee-bg) 0%, transparent 50%),
    var(--bg-primary);
}

/* Decorative line elements */
.hero::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid var(--coffee-bg-medium);
  pointer-events: none;
  animation: hero-ring-breathe 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(212,184,150,0.06);
  pointer-events: none;
  animation: hero-ring-breathe 8s ease-in-out infinite 1s;
}

@keyframes hero-ring-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.5; }
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 750px; padding: 0 var(--space-xl);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--coffee-bg-medium);
  border: 1px solid rgba(212,184,150,0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 500;
  color: var(--coffee-deep); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: var(--space-xl);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coffee); animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 200; line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.hero-title .accent {
  color: var(--coffee-warm);
  font-weight: 300;
  position: relative;
}
.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 0.05em; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coffee), transparent);
  opacity: 0.4;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px; margin: 0 auto var(--space-2xl);
  line-height: 1.8; font-weight: 300;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 14px 40px;
  background: var(--coffee);
  border: 1px solid var(--coffee);
  color: #FFFFFF;
  font-family: var(--font-display); font-weight: 500; font-size: 0.85rem;
  border-radius: var(--radius-full); cursor: pointer;
  transition: all var(--transition-base); letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(212,184,150,0.3);
}
.hero-cta:hover {
  background: var(--coffee-warm);
  border-color: var(--coffee-warm);
  color: #FFFFFF;
  box-shadow: 0 6px 30px rgba(212,184,150,0.4);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: opacity 0.4s ease;
}
.scroll-indicator span {
  font-family: var(--font-display); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-indicator .scroll-arrow {
  width: 18px; height: 18px;
  border-right: 1.5px solid var(--coffee);
  border-bottom: 1.5px solid var(--coffee);
  transform: rotate(45deg); animation: bounce-arrow 2s infinite;
}
@keyframes bounce-arrow {
  0%,100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.3; }
}

/* ========== SECTION COMMON ========== */
section { padding: var(--space-5xl) 0; }
.section-label {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 500;
  color: var(--coffee-deep); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: ''; width: 30px; height: 1.5px; background: var(--coffee);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; margin-bottom: var(--space-md);
  letter-spacing: -0.01em; color: var(--text-primary);
}
.section-desc {
  font-size: 1rem; color: var(--text-secondary); max-width: 550px;
  line-height: 1.8; margin-bottom: var(--space-2xl); font-weight: 300;
}

/* ========== ABOUT ========== */
#about { background: var(--bg-primary); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl); align-items: center;
}
.about-image {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-color); aspect-ratio: 4/3;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(212,184,150,0.15), transparent 50%);
}
.about-text p {
  color: var(--text-secondary); line-height: 1.9;
  margin-bottom: var(--space-lg); font-weight: 300;
}

/* ========== COFFEE GENERATIONS ========== */
.gen-section {
  background: var(--bg-tertiary);
  position: relative;
}
.gen-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
}
.gen-section::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--coffee-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--coffee-bg-medium);
  color: var(--coffee-deep);
  font-size: 1.3rem; margin-bottom: var(--space-lg);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.card-text {
  color: var(--text-secondary); font-size: 0.85rem;
  line-height: 1.7; font-weight: 300;
}

/* Highlight Card (4th Generation) */
.card--highlight {
  border-color: var(--coffee);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--coffee-bg) 100%);
  position: relative;
  overflow: hidden;
}
.card--highlight::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--coffee-warm), var(--coffee-light), var(--coffee-warm));
}
.card--highlight .card-icon {
  background: var(--coffee);
  color: #FFFFFF;
}
.card--highlight:hover {
  border-color: var(--coffee-warm);
  box-shadow: 0 12px 40px rgba(212,184,150,0.2);
}

/* ========== MENU FLIP-BOOK ========== */
.menu-section {
  background: var(--bg-primary);
  position: relative; overflow: hidden;
}
.menu-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
}
.menu-book {
  position: relative;
  max-width: 400px;
  margin: var(--space-2xl) auto 0;
  perspective: 2000px;
}
.menu-page-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  overflow: visible;
  /* Book shadow beneath */
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.12))
          drop-shadow(0 8px 20px rgba(0,0,0,0.08));
}

/* ── Page Styles ── */
.menu-page {
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  opacity: 0;
  z-index: 0;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* Paper-like subtle border */
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.06);
}
.menu-page img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-xl);
  pointer-events: none;
  user-select: none;
}
/* Paper texture overlay */
.menu-page::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0,0,0,0.03) 100%
  );
  pointer-events: none;
}

/* ── Active page ── */
.menu-page.active {
  opacity: 1;
  z-index: 2;
  transform: rotateY(0deg) scale(1);
  transition: none;
}

/* ── Page-flip animations ── */
/* Forward: old page flips to the left */
.menu-page.flip-out-forward {
  z-index: 5;
  opacity: 1;
  transform-origin: left center;
  animation: flipOutForward 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}
@keyframes flipOutForward {
  0% {
    transform: perspective(2000px) rotateY(0deg);
    opacity: 1;
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.06),
      0 1px 4px rgba(0,0,0,0.06);
  }
  30% {
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.06),
      15px 0 40px rgba(0,0,0,0.15),
      5px 0 15px rgba(0,0,0,0.10);
  }
  100% {
    transform: perspective(2000px) rotateY(-180deg);
    opacity: 0;
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.06),
      0 0 0 rgba(0,0,0,0);
  }
}

/* Forward: new page appears from behind */
.menu-page.flip-in-forward {
  z-index: 3;
  opacity: 0;
  animation: flipInForward 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}
@keyframes flipInForward {
  0% {
    opacity: 0;
    transform: scale(0.95) translateX(10px);
  }
  40% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

/* Backward: old page flips to the right */
.menu-page.flip-out-backward {
  z-index: 5;
  opacity: 1;
  transform-origin: right center;
  animation: flipOutBackward 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}
@keyframes flipOutBackward {
  0% {
    transform: perspective(2000px) rotateY(0deg);
    opacity: 1;
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.06),
      0 1px 4px rgba(0,0,0,0.06);
  }
  30% {
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.06),
      -15px 0 40px rgba(0,0,0,0.15),
      -5px 0 15px rgba(0,0,0,0.10);
  }
  100% {
    transform: perspective(2000px) rotateY(180deg);
    opacity: 0;
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.06),
      0 0 0 rgba(0,0,0,0);
  }
}

/* Backward: new page appears from behind */
.menu-page.flip-in-backward {
  z-index: 3;
  opacity: 0;
  animation: flipInBackward 0.7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}
@keyframes flipInBackward {
  0% {
    opacity: 0;
    transform: scale(0.95) translateX(-10px);
  }
  40% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

/* ── Page indicator dots ── */
.menu-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-lg);
}
.menu-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coffee-light);
  border: none; cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}
.menu-dot.active {
  background: var(--coffee-deep);
  width: 20px;
  border-radius: 3px;
}
.menu-dot:hover:not(.active) {
  background: var(--coffee);
  transform: scale(1.3);
}

/* ── Controls ── */
.menu-controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-xl); margin-top: var(--space-lg);
}
.menu-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary); font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  box-shadow: var(--shadow-sm);
}
.menu-btn:hover {
  background: var(--coffee); color: #FFFFFF;
  border-color: var(--coffee);
  box-shadow: 0 6px 24px rgba(212,184,150,0.35);
  transform: scale(1.08);
}
.menu-btn:active {
  transform: scale(0.95);
}
.menu-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.menu-btn:disabled:hover {
  background: var(--bg-card); color: var(--text-primary);
  border-color: var(--border-color); box-shadow: var(--shadow-sm);
  transform: none;
}
.menu-counter {
  font-family: var(--font-display); font-size: 0.9rem;
  color: var(--text-muted); letter-spacing: 0.1em;
  min-width: 80px; text-align: center;
  font-weight: 400;
}

/* ========== APP SECTION ========== */
.app-section {
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}
.app-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.app-content {
  max-width: 600px;
}
.app-features {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-lg); margin-top: var(--space-2xl);
}
.feature-item {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: var(--space-lg); border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.feature-item:hover {
  border-color: var(--coffee-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--coffee-bg-medium);
  color: var(--coffee-deep); font-size: 1.1rem;
}
.feature-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.95rem; margin-bottom: 4px;
  color: var(--text-primary);
}
.feature-text {
  font-size: 0.85rem; color: var(--text-secondary); font-weight: 300;
}

/* Phone Mockup */
.app-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-mockup {
  position: relative;
  width: 320px;
  height: 650px;
  background: #111;
  border-radius: 44px;
  box-shadow:
    0 0 0 10px #1f1f1f,
    0 0 0 11px #333,
    0 20px 50px rgba(0,0,0,0.2),
    0 40px 100px rgba(0,0,0,0.15);
  padding: 12px;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}
.phone-mockup:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}
/* Dynamic Island / Notch */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 32px;
  overflow: hidden;
  mask-image: radial-gradient(white, black); /* fix inner corners */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.app-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.app-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}
.app-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* ========== FOOTER ========== */
.footer {
  padding: var(--space-4xl) 0 var(--space-xl);
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px; border-radius: 2px;
  background: var(--coffee);
  margin-top: -1.5px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl); margin-bottom: var(--space-2xl);
}
.footer__brand p {
  color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7;
  margin-top: var(--space-md); max-width: 300px; font-weight: 300;
}
.footer__heading {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  color: var(--text-primary); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a {
  font-size: 0.85rem; color: var(--text-secondary); font-weight: 300;
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--coffee-deep); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-xl); border-top: 1px solid var(--border-color);
  font-size: 0.75rem; color: var(--text-muted); font-weight: 300;
}
.footer__bottom a { color: var(--coffee-deep); }

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.stagger-children .reveal { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Fade-up for support page */
.fade-up {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.15s; }
.fade-up-delay-2 { transition-delay: 0.3s; }
.fade-up-delay-3 { transition-delay: 0.45s; }

/* ========== LEGAL PAGES ========== */
.legal-page { padding-top: 120px; padding-bottom: var(--space-4xl); min-height: 100vh; }
.legal-page h1 {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem);
  font-weight: 300; margin-bottom: var(--space-sm); letter-spacing: -0.02em;
  color: var(--text-primary);
}
.legal-page .last-updated {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}
.legal-page h2 {
  font-size: 1.2rem; font-weight: 600;
  margin-top: var(--space-2xl); margin-bottom: var(--space-md);
  color: var(--coffee-deep);
}
.legal-page h3 {
  font-size: 1rem; font-weight: 500;
  margin-top: var(--space-lg); margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.legal-page p, .legal-page li {
  color: var(--text-secondary); line-height: 1.8;
  margin-bottom: var(--space-md); font-weight: 300;
}
.legal-page ul { padding-left: var(--space-xl); margin-bottom: var(--space-md); }
.legal-page li { margin-bottom: var(--space-xs); }
.legal-page a { color: var(--coffee-deep); font-weight: 500; }
.legal-page a:hover { color: var(--coffee); }
.legal-page .contact-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: var(--space-2xl);
  margin-top: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}
.legal-page .contact-card h3 { margin-top: 0; color: var(--text-primary); }
.legal-page .contact-card a { color: var(--coffee-deep); font-weight: 500; }

/* ========== SUPPORT PAGE ========== */
.support-hero {
  text-align: center; padding: 140px 0 var(--space-3xl);
  position: relative;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-tertiary));
}
.support-hero::before {
  content: ''; position: absolute; top: 90px; left: 50%; transform: translateX(-50%);
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, var(--coffee-bg-medium) 0%, transparent 65%);
  pointer-events: none;
}
.support-hero .section__label,
.support-hero .section-label {
  color: var(--coffee-deep);
}
.support-hero .section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text-primary);
}
.support-hero .section__desc {
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 500px;
}

.support-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl); margin-top: var(--space-2xl);
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: var(--space-2xl);
  text-align: center; transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.support-card:hover {
  border-color: var(--coffee);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.support-card__icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--coffee-bg-medium);
  color: var(--coffee-deep); font-size: 1.5rem;
  margin: 0 auto var(--space-lg);
}
.support-card__title {
  font-family: var(--font-display);
  font-weight: 500; margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.support-card__text {
  color: var(--text-secondary); font-size: 0.9rem;
  margin-bottom: var(--space-md); font-weight: 300;
}
.support-card__link { color: var(--coffee-deep); font-weight: 500; font-size: 0.9rem; }

/* FAQ — reuse card styles for support page */
.card__title, .card-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.card__text, .card-text {
  color: var(--text-secondary); font-size: 0.85rem;
  line-height: 1.7; font-weight: 300;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .app-content { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: var(--space-xl);
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.2rem; color: var(--text-primary); }
  .nav__toggle { display: block; }
  .grid-4 { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  section { padding: var(--space-3xl) 0; }
  .hero { min-height: 100vh; min-height: 100dvh; }
  .hero::before { width: 300px; height: 300px; }
  .hero::after { width: 450px; height: 450px; }
  .lang-switcher { order: -1; }
  .menu-book { max-width: 85%; }
}

@media (max-width: 480px) {
  :root { font-size: 15px; }
  .container { padding: 0 var(--space-md); }
  .nav__inner { padding: 0 var(--space-md); }
  .hero::before { width: 250px; height: 250px; }
  .hero::after { width: 350px; height: 350px; }
}
