:root {
  /* SF Pro / San Francisco Font Stack (Apple/Notion) */
  --font-serif: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Notion Slate Palette */
  --slate-50: 248 250 252;
  --slate-100: 241 245 249;
  --slate-200: 226 232 240;
  --slate-300: 203 213 225;
  --slate-400: 148 163 184;
  --slate-500: 100 116 139;
  --slate-600: 71 85 105;
  --slate-700: 51 65 85;
  --slate-800: 30 41 59;
  --slate-900: 15 23 42;
  --slate-950: 3 7 18;

  /* Indigo Accent (Notion primary) */
  --indigo-50: 238 242 255;
  --indigo-100: 224 231 255;
  --indigo-400: 129 140 248;
  --indigo-500: 99 102 241;
  --indigo-600: 79 70 229;
  --indigo-700: 67 56 202;

  /* Success/Danger */
  --green-500: 34 197 94;
  --red-500: 239 68 68;

  /* Spacing (Apple rhythm: 4px multiples) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  /* Sizing */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --container-max: 1024px;
  --topbar-height: 60px;

  /* Shadows (Apple depth) */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.25);

  /* Transitions */
  --ease-apple: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 150ms;
  --duration-normal: 250ms;

  /* Z-index */
  --z-topbar: 1000;
  --z-drawer: 2000;
}

/* Dark Mode Base */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-base: rgb(var(--slate-900));
    --bg-surface: rgb(var(--slate-800));
    --bg-card: rgb(var(--slate-800));
    --text-base: rgb(var(--slate-200));
    --text-muted: rgb(var(--slate-400));
    --border-base: rgb(var(--slate-700));
    --accent-bg: rgb(var(--indigo-900 / 0.2));
  }
}

.dark {
  --bg-base: rgb(var(--slate-900));
  --bg-surface: rgb(var(--slate-800));
  --bg-card: rgb(var(--slate-800));
  --text-base: rgb(var(--slate-200));
  --text-muted: rgb(var(--slate-400));
  --border-base: rgb(var(--slate-700));
  --accent-bg: rgb(var(--indigo-900 / 0.2));
}

.light {
  --bg-base: rgb(var(--slate-50));
  --bg-surface: rgb(255 255 255);
  --bg-card: rgb(255 255 255);
  --text-base: rgb(var(--slate-900));
  --text-muted: rgb(var(--slate-500));
  --border-base: rgb(var(--slate-200));
  --accent-bg: rgb(var(--indigo-50));
}

/* Core Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-base);
  color: var(--text-base);
  line-height: 1.6;
  overscroll-behavior: none;
}

body.dark { color-scheme: dark; }
body.light { color-scheme: light; }

/* Notion Block Card */
.block-card {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-apple);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.block-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgb(var(--indigo-500));
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.block-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgb(var(--indigo-500 / 0.5));
}

.block-card:hover::before {
  opacity: 1;
}

.block-card:focus {
  outline: 2px solid rgb(var(--indigo-500));
  outline-offset: 2px;
}

/* Topbar (Apple/Notion style) */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  height: var(--topbar-height);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-base);
  display: flex;
  align-items: center;
  padding: 0 max(var(--space-6), 1rem);
  gap: var(--space-5);
}

.dark .topbar {
  background: rgba(var(--slate-900), 0.8);
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.search-field {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  color: var(--text-base);
  font-size: 1rem;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: rgb(var(--indigo-500));
  box-shadow: 0 0 0 3px rgb(var(--indigo-500 / 0.1));
}

/* Button Styles (Apple) */
.btn {
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-apple);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: rgb(var(--indigo-500));
  color: white;
}

.btn-primary:hover {
  background: rgb(var(--indigo-600));
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-base);
  border: 1px solid var(--border-base);
}

.btn-secondary:hover {
  border-color: rgb(var(--indigo-500));
  color: rgb(var(--indigo-500));
}

/* Icon Button */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-base);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.icon-btn:hover {
  background: var(--accent-bg);
  color: rgb(var(--indigo-500));
  transform: scale(1.05);
}

/* Hero Section (Apple full-bleed) */
.hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(var(--indigo-500 / 0.1)) 0%, transparent 50%, rgb(var(--slate-900 / 0.3)) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../Images/bonda.jpg') center/cover no-repeat;
  filter: blur(10px) brightness(0.6);
  transform: scale(1.1);
  transition: transform var(--duration-normal) var(--ease-apple);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-8);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0 0 var(--space-4) 0;
  background: linear-gradient(135deg, rgb(var(--indigo-500)), rgb(var(--indigo-400)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-6) 0;
  max-width: 600px;
}

/* Menu Grid (Notion blocks) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: var(--space-10) auto 0;
  padding: 0 var(--space-6);
}

.menu-block {
  composes: block-card;
}

.menu-block img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

/* Cart Bottom Sheet (iOS/Apple) */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  transform: translateY(100%);
  transition: transform 400ms var(--ease-apple);
  z-index: var(--z-drawer);
  max-height: 80vh;
  overflow: hidden;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.handle-bar {
  width: 40px;
  height: 4px;
  background: var(--border-base);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .topbar {
    padding: 0 var(--space-4);
    gap: var(--space-2);
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Micro-interactions */
@keyframes magnetic-pull {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.02) translateY(-1px); }
}

.magnetic {
  transition: transform var(--duration-fast) var(--ease-apple);
}

.magnetic.hover {
  animation: magnetic-pull 300ms var(--ease-apple);
}

/* Keyboard shortcuts indicator */
.kbd {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* PWA/Apple touch targets */
@supports (-webkit-touch-callout: none) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
}
