/* Modern Premium Design System for OSS Cafe */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Color Tokens - Dark Mode (Default) */
  --bg-base: #06090e;
  --bg-surface: rgba(13, 17, 24, 0.7);
  --bg-surface-elevated: rgba(22, 28, 38, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  
  --text-primary: #f0f3f6;
  --text-secondary: #8b97a8;
  --text-muted: #5e6b7d;
  
  /* Accent Colors */
  --accent-primary-rgb: 56, 189, 248; /* Sky Blue */
  --accent-primary: rgb(var(--accent-primary-rgb));
  --accent-secondary-rgb: 52, 211, 153; /* Emerald Green */
  --accent-secondary: rgb(var(--accent-secondary-rgb));
  --accent-soon-rgb: 167, 139, 250; /* Violet */
  --accent-soon: rgb(var(--accent-soon-rgb));
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout Metrics */
  --nav-height: 72px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Shadow & Glow Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --glass-glow: 0 0 30px rgba(var(--accent-primary-rgb), 0.05);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* Color Tokens - Light Mode */
  --bg-base: #f6f8fb;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  
  --text-primary: #121926;
  --text-secondary: #4b586e;
  --text-muted: #8292a8;
  
  /* Accent Colors */
  --accent-primary-rgb: 2, 132, 199; /* Deep Sky Blue */
  --accent-primary: rgb(var(--accent-primary-rgb));
  --accent-secondary-rgb: 5, 150, 105; /* Deep Emerald */
  --accent-secondary: rgb(var(--accent-secondary-rgb));
  --accent-soon-rgb: 109, 40, 217; /* Deep Purple */
  --accent-soon: rgb(var(--accent-soon-rgb));
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.06);
  --glass-glow: 0 0 30px rgba(var(--accent-primary-rgb), 0.02);
}

/* CSS Reset & General */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-base);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Mesh Background Glows */
.mesh-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: var(--radius-full);
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mesh-glow--1 {
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.6) 0%, transparent 70%);
}

.mesh-glow--2 {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(var(--accent-soon-rgb), 0.4) 0%, transparent 70%);
}

/* Typography elements */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  line-height: 1.625;
  color: var(--text-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  opacity: 0.85;
}

/* Buttons */
.cafe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.cafe-btn--primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--accent-primary-rgb), 0.3);
}

.cafe-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.45);
}

.cafe-btn--secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.cafe-btn--secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.cafe-btn--text {
  padding: 0;
  background: transparent;
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.cafe-btn--text:hover {
  color: var(--text-primary);
}

.cafe-btn--disabled {
  background: var(--border-color);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--green {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge--blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge--purple {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-soon);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Sticky Navigation */
.cafe-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(var(--bg-base) == #06090e ? 6 : 246, var(--bg-base) == #06090e ? 9 : 248, var(--bg-base) == #06090e ? 14 : 251, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-slow);
}

.cafe-nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cafe-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cafe-nav__logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.cafe-nav__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.cafe-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.cafe-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

.cafe-nav__link:hover {
  color: var(--text-primary);
}

.cafe-nav__link:hover::after {
  width: 100%;
}

.cafe-nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-surface);
}

.cafe-nav__hamburger {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.cafe-hero {
  max-width: 800px;
  margin: 6rem auto 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
}

.cafe-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cafe-hero__tag-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: pulse-green 2s infinite;
}

.cafe-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cafe-hero__title span {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cafe-hero__subtitle {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

.cafe-hero__actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

/* Sections */
.cafe-section {
  max-width: var(--max-width);
  margin: 6rem auto;
  padding: 0 1.5rem;
}

.cafe-section--accent {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-md), var(--glass-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cafe-section--dark-bg {
  max-width: 100%;
  margin: 6rem 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-primary-rgb), 0.05));
  border-top: 1px solid var(--border-color);
  padding: 6rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header__tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header__title {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.section-header__desc {
  font-size: 1.05rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.product-card--soon {
  border-style: dashed;
}

.product-card--soon:hover {
  border-color: rgba(var(--accent-soon-rgb), 0.3);
}

.product-card__meta {
  margin-bottom: 1.25rem;
}

.product-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-card__desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-card__features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.product-card__features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.product-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

.product-card--soon .product-card__features li::before {
  content: '•';
  color: var(--accent-soon);
}

.product-card__actions {
  margin-top: auto;
}

/* Simulator Layout */
.simulator-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3rem;
  align-items: stretch;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.simulator-controls h3 {
  font-size: 1.5rem;
}

.simulator-controls p {
  font-size: 0.95rem;
}

.simulator-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sim-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: left;
}

.sim-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
}

.sim-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.1);
}

.sim-btn__icon {
  font-size: 1.75rem;
}

.sim-btn__info {
  display: flex;
  flex-direction: column;
}

.sim-btn__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.sim-btn__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ag-ui-info-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ag-ui-info-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.event-feed {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.event-log-line {
  color: var(--text-secondary);
}

.event-log-line--system {
  color: var(--text-muted);
}

.event-log-line--event {
  color: var(--accent-secondary);
}

.event-log-line--tool {
  color: var(--accent-soon);
}

/* Chat Console */
.simulator-console {
  background: #090d13;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 520px;
}

[data-theme="light"] .simulator-console {
  background: #f1f5f9;
}

.console-header {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .console-header {
  background: #e2e8f0;
}

.console-header__dots {
  display: flex;
  gap: 0.35rem;
}

.console-header__dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.console-header__dots span:nth-child(1) { background: #ff5f56; }
.console-header__dots span:nth-child(2) { background: #ffbd2e; }
.console-header__dots span:nth-child(3) { background: #27c93f; }

.console-header__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.console-header__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.status-dot--active {
  background-color: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
}

.status-dot--idle {
  background-color: var(--text-muted);
  box-shadow: none;
}

.console-chat {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 380px;
}

.chat-bubble {
  display: flex;
  gap: 0.85rem;
  max-width: 80%;
  animation: slide-up 0.3s ease forwards;
}

.chat-bubble--agent {
  align-self: flex-start;
}

.chat-bubble--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-bubble__content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.15rem;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  font-size: 0.925rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.chat-bubble--user .chat-bubble__content {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.2rem;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  animation: typing-bounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* Loader Skeleton for Hydration */
.loader-skeleton {
  width: 100%;
  min-height: 100px;
  background: var(--bg-surface-elevated);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: pulse-bg 1.5s infinite;
}

.skeleton-line {
  height: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  width: 100%;
}

[data-theme="light"] .skeleton-line {
  background: rgba(0, 0, 0, 0.05);
}

.skeleton-line--short { width: 40%; }
.skeleton-line--medium { width: 70%; }

/* Hydrated Generative UI Cards */
.gen-ui-card {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.75rem;
  box-shadow: var(--shadow-md);
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 1. Flight Options Card */
.flight-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flight-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.flight-title h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.flight-title .price {
  font-weight: 700;
  color: var(--accent-secondary);
}

.flight-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flight-point {
  text-align: center;
}

.flight-point span {
  display: block;
}

.flight-point .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.flight-point .time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.flight-arrow-path {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.flight-arrow-path::after {
  content: '';
  height: 1px;
  width: 80%;
  background: var(--border-color);
  position: absolute;
  top: 50%;
  z-index: 1;
}

.flight-arrow-path span {
  font-size: 0.7rem;
  background: var(--bg-surface-elevated);
  padding: 0 0.5rem;
  z-index: 2;
  color: var(--text-muted);
}

.flight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.flight-airline {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 2. Interactive Sales Chart */
.chart-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-header h4 {
  font-size: 0.95rem;
}

.chart-toggle {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2px;
  border-radius: var(--radius-sm);
}

.chart-toggle button {
  background: transparent;
  border: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
}

.chart-toggle button.active {
  background: var(--accent-primary);
  color: #ffffff;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  height: 120px;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(0deg, rgba(var(--accent-primary-rgb), 0.3) 0%, var(--accent-primary) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chart-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* 3. Coffee Order UI (Human-In-The-Loop) */
.coffee-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coffee-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.coffee-header h4 {
  font-size: 0.95rem;
}

.coffee-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.coffee-sizes {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.size-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.size-btn.active {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.coffee-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.approve-flow-btn {
  background: var(--accent-secondary);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 10px rgba(52, 211, 153, 0.2);
}

.approve-flow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(52, 211, 153, 0.3);
}

.approve-flow-btn.approved {
  background: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Console Input Bar */
.console-input-bar {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

[data-theme="light"] .console-input-bar {
  background: #f1f5f9;
}

.console-input-bar input {
  flex-grow: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.console-input-bar input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  border: none;
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.value-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.95rem;
}

/* Community Banner */
.community-banner {
  background: rgba(var(--accent-primary-rgb), 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.community-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.community-banner p {
  max-width: 650px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
}

.community-banner__actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

/* Footer styling */
.cafe-footer {
  background: #05070a;
  border-top: 1px solid var(--border-color);
  padding: 5rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
}

[data-theme="light"] .cafe-footer {
  background: #edf2f7;
}

.cafe-footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.cafe-footer__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cafe-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cafe-footer__logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.cafe-footer__info p {
  font-size: 0.9rem;
  max-width: 320px;
}

.cafe-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary);
  padding-left: 2px;
}

.cafe-footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes pulse-green {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulse-bg {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes pop-in {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .products-grid, .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card--soon {
    grid-column: span 2;
  }
  .simulator-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  .cafe-nav__menu {
    display: none; /* Mobile menu can toggle in JS */
  }
  .cafe-nav__hamburger {
    display: block;
  }
  .cafe-hero__title {
    font-size: 2.5rem;
  }
  .products-grid, .values-grid {
    grid-template-columns: 1fr;
  }
  .product-card--soon {
    grid-column: span 1;
  }
  .cafe-footer__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* MCP Gateway Focus Section */
.mcp-focus-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: center;
}

@media (max-width: 968px) {
  .mcp-focus-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.mcp-focus-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.mcp-focus-text p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.mcp-focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.mcp-focus-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.mcp-focus-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.mcp-focus-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.policy-card__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-soon);
  font-weight: 600;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.policy-card pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* AI Workflows Focus Section */
.coming-soon-tag {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-soon);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-workflows-content {
  margin-top: 3rem;
}

.ai-workflows-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1100px) {
  .ai-workflows-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ai-workflows-cards {
    grid-template-columns: 1fr;
  }
}

.workflow-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.workflow-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.workflow-feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.workflow-feature-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.workflow-feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-workflows-notify {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
}

.ai-workflows-notify p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .ai-workflows-notify {
    flex-direction: column;
    align-items: flex-start;
  }
}


