:root {
  --bg-dark: #070b12;
  --bg-surface: #0e1422;
  --bg-card: #121a2c;
  --bg-card-hover: #19243c;
  --border-color: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(16, 185, 129, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.3);
  --primary-dark: #059669;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

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

button {
  font-family: inherit;
}

/* Background Ambient Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 650px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(59, 130, 246, 0.08) 45%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 11, 18, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-name span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
  padding: 0.4rem 0.2rem;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #032115;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: #0ea572;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 18, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 199;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  animation: fadeIn 0.25s ease forwards;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 960px;
  margin: 0 auto 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Device Mockup Frame */
.device-showcase-wrapper {
  margin: 1.5rem auto 5.5rem;
  text-align: center;
}

.phone-mockup {
  position: relative;
  display: inline-block;
  max-width: 360px;
  width: 100%;
  border-radius: 38px;
  padding: 11px;
  background: linear-gradient(145deg, #2a3449, #131926);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  z-index: 10;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.3);
}

.phone-screen img {
  width: 100%;
  display: block;
}

/* Section Common */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Features Grid */
.features {
  padding: 3rem 0 5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Interactive Dish Simulator */
.interactive-section {
  padding: 3rem 0 5rem;
}

.scanner-sim {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.dish-selector {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dish-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dish-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.dish-option.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.dish-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.dish-meta h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.dish-meta p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sim-output {
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Serving multiplier pill selector */
.serving-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.serving-controls span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: auto;
}

.serving-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.macro-bars {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.macro-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.macro-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.35s ease;
}

.fill-cal { background: var(--accent-amber); }
.fill-pro { background: var(--accent-rose); }
.fill-carb { background: var(--accent-blue); }
.fill-fat { background: var(--accent-purple); }

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Gallery Filter Pills */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding: 1.25rem;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.gallery-card img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.gallery-card:hover img {
  transform: scale(1.02);
}

.gallery-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gallery-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  animation: scaleIn 0.25s ease forwards;
}

.lightbox-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Side-by-Side Comparison Matrix */
.comparison-section {
  padding: 3rem 0 5rem;
}

.comparison-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

td {
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

.highlight-col {
  background: rgba(16, 185, 129, 0.04);
  font-weight: 700;
  color: var(--primary);
}

/* User-Pays Architecture Section */
.architecture-section {
  padding: 3rem 0 5rem;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.arch-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.arch-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.arch-features {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.arch-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.arch-feature-item i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.arch-metric-box {
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2.75rem 2rem;
  text-align: center;
}

.arch-metric-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.arch-metric-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.arch-metric-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Currency & Localization Showcase */
.currency-section {
  padding: 3rem 0 5rem;
}

/* Contribution Callout */
.contribute-section {
  padding: 3rem 0 5rem;
}

.contribute-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09) 0%, rgba(59, 130, 246, 0.09) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.contribute-box h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contribute-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 740px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.contribute-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating Sticky Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 11, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  z-index: 150;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--primary);
  color: #032115;
  transform: translateY(-3px);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.5rem;
  background: #05080f;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-bottom a {
  color: var(--primary);
  font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Media Queries for Maximum Mobile & PC Comfort */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .scanner-sim { grid-template-columns: 1fr; gap: 2rem; }
  .arch-card { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 60px; }
  .hero { padding: 3rem 0 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { flex-direction: column; gap: 0.5rem; align-items: center; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .contribute-box { padding: 2.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 5rem; right: 1.25rem; }
}
