/* ==========================================================================
   UrbanHarvest & Co. - Master Stylesheet
   Theme: Biophilic Modern Glassmorphism & High-Performance UI
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.3);

  --bg-dark: #070d19;
  --bg-darker: #040810;
  --bg-card: rgba(15, 25, 42, 0.75);
  --bg-card-hover: rgba(22, 36, 61, 0.85);

  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(16, 185, 129, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --danger: #ef4444;
  --success: #10b981;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Announcement Bar */
.top-bar {
  background: rgba(4, 8, 16, 0.95);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--primary);
}

.pulse {
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-info {
  color: var(--text-muted);
}

.btn-top-pitch {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  transition: var(--transition);
}

.btn-top-pitch:hover {
  background: var(--accent);
  color: #000;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.badge-new {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-trigger {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1.1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-trigger:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-pitch-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
  color: #000;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: var(--transition);
}

.btn-pitch-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.mobile-toggle {
  display: none;
  font-size: 1.3rem;
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.4rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

.hero-visual {
  position: relative;
}

.hero-main-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.card-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  border: 1px solid var(--glass-border);
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.hero-card-floating-tag {
  position: absolute;
  background: rgba(11, 19, 32, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  font-size: 0.8rem;
}

.float-top-right {
  top: -15px;
  right: -15px;
}

.float-bottom-left {
  bottom: -15px;
  left: -15px;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-header {
  margin-bottom: 48px;
  max-width: 680px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-sub {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.4rem;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Harvest Radar (IoT Telemetry) */
.iot-telemetry-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  background: rgba(10, 18, 30, 0.9);
}

.telemetry-node {
  display: flex;
  align-items: center;
  gap: 14px;
}

.telemetry-icon {
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.telemetry-data {
  display: flex;
  flex-direction: column;
}

.telemetry-data .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.telemetry-data .val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.harvest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.harvest-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.harvest-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
}

.harvest-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.crop-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
}

.freshness-timer {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.crop-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.crop-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.crop-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.8rem;
}

.crop-stats strong {
  color: var(--primary-light);
}

/* Custom Plate Crafter Workspace */
.crafter-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.crafter-display {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}

.plate-render-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}

.plate-outer-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 60%, #e2e8f0 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate-inner-base {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.08);
}

.plate-empty-state {
  text-align: center;
  color: #94a3b8;
  padding: 20px;
}

.plate-empty-state i {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.plate-empty-state p {
  font-size: 0.78rem;
  line-height: 1.3;
}

.plate-layer-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.macro-dashboard {
  background: rgba(4, 8, 16, 0.6);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--glass-border);
}

.macro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.macro-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.carbon-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.macro-bars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.macro-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.macro-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  transition: width 0.4s ease;
}

.cal-fill { background: var(--accent); }
.prot-fill { background: #3b82f6; }
.carb-fill { background: #ec4899; }
.fat-fill { background: #10b981; }

.crafter-footer-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.crafter-price-box .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.crafter-price-box .price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
}

/* Crafter Tabs & Options */
.crafter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  color: var(--primary-light);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.ingredient-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.ingredient-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.ingredient-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ingredient-card.selected {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
}

.ing-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ing-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ing-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}

.ing-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.ingredient-card.selected .ing-check {
  display: flex;
}

/* Bistro Menu Section */
.menu-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.menu-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
}

.menu-img-wrap {
  position: relative;
  height: 200px;
  margin: -24px -24px 18px -24px;
}

.menu-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diet-tags {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.diet-tag {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.menu-card-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.menu-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.menu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-light);
}

/* Reservation Section */
.reservation-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.res-sub-title {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.zones-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zone-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.zone-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.zone-card.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

.zone-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.zone-icon {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.zone-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.zone-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.zone-vibe {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
}

.res-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input, select.form-input {
  background: rgba(4, 8, 16, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Farm Box Section */
.farmbox-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.farmbox-content h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.farmbox-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.farmbox-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.farmbox-configurator {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.fb-option {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.fb-option.active {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
}

.fb-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.fb-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.fb-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fb-price {
  font-weight: 800;
  color: var(--text-main);
  font-size: 0.9rem;
}

.fb-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg-darker);
  border-left: 1px solid var(--glass-border);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-cart {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.cart-item-details h5 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.cart-item-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary-light);
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  background: rgba(11, 19, 32, 0.9);
}

.promo-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.form-input-sm {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: #fff;
  font-size: 0.8rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-line.total {
  font-size: 1.1rem;
  color: var(--text-main);
  border-top: 1px solid var(--glass-border);
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 18px;
}

/* Pitch Proposal Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-darker);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-badge {
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 6px;
}

.close-modal {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.pitch-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.pitch-tab {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.pitch-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.pitch-content {
  display: none;
}

.pitch-content.active {
  display: block;
}

.pitch-callout {
  display: flex;
  gap: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.pitch-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pmetric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.pnum {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.plbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Comparison Table */
.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comp-col {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.old-way { background: rgba(239, 68, 68, 0.05); }
.new-way { background: rgba(16, 185, 129, 0.08); }

.comp-col ul {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

/* Revenue Streams */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.stream-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.st-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ROI Calculator */
.roi-calculator-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.range-slider {
  width: 100%;
  accent-color: var(--primary);
}

.range-val {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.roi-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.roi-stat .val {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
}

.modal-footer {
  padding: 18px 30px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 25, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  animation: slideToast 0.3s ease;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 14px 0 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: #000;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--primary-light);
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Helper Utilities */
.text-emerald { color: var(--primary-light); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }

/* Responsive Adaptations */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-cta-group { justify-content: center; }
  .hero-stats-row { justify-content: center; }
  .crafter-workspace { grid-template-columns: 1fr; }
  .reservation-workspace { grid-template-columns: 1fr; }
  .farmbox-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .iot-telemetry-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.4rem; }
  .comparison-table, .streams-grid, .pitch-metrics-grid { grid-template-columns: 1fr; }
  .farmbox-configurator { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
