/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #1b3d2f;
  --green-800: #1e4d3d;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-400: #74c69d;
  --green-300: #95d5b2;
  --green-200: #b7e4c7;
  --green-100: #d8f3dc;
  --green-50:  #f0faf3;

  --dark-950: #09090b;
  --dark-900: #0f1117;
  --dark-800: #161822;
  --dark-700: #1e2030;
  --dark-600: #2a2d40;
  --dark-500: #3a3d52;

  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Scroll Progress Bar ──────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green-700), var(--green-400), var(--green-300));
  z-index: 200;
  transition: width 0.1s linear;
  will-change: width;
}

/* ── Scroll Animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.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.35s; }

/* Staggered card directions */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* ── Noise Overlay (dark sections) ────────────────────── */
.noise-overlay {
  position: relative;
}
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  z-index: 0;
}
.noise-overlay > * {
  position: relative;
  z-index: 1;
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--green-400); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--green-700);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--green-600); }

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(15, 17, 23, 0.97);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark-900);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Particle canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Aurora effect */
.hero-aurora {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 80%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(45,106,79,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 60% 30%, rgba(82,183,136,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 80% 60%, rgba(116,198,157,0.06) 0%, transparent 50%);
  animation: aurora 15s ease-in-out infinite;
  will-change: transform, opacity;
  z-index: 0;
}
@keyframes aurora {
  0%, 100% { transform: translateX(0) translateY(0) scale(1); opacity: 0.7; }
  25% { transform: translateX(30px) translateY(-20px) scale(1.05); opacity: 1; }
  50% { transform: translateX(-20px) translateY(15px) scale(0.97); opacity: 0.8; }
  75% { transform: translateX(15px) translateY(-10px) scale(1.03); opacity: 0.9; }
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
  will-change: transform;
}
.hero-gradient-orb:nth-child(1) {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--green-700), transparent 70%);
  top: -20%; left: -10%;
  animation-delay: 0s;
}
.hero-gradient-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--green-500), transparent 70%);
  bottom: -30%; right: -5%;
  animation-delay: -4s;
  opacity: 0.25;
}
.hero-gradient-orb:nth-child(3) {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #6dd5a0, transparent 70%);
  top: 30%; right: 20%;
  animation-delay: -8s;
  opacity: 0.15;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Animated grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  animation: grid-drift 20s linear infinite;
  will-change: background-position;
}
@keyframes grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 0 4rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(82, 183, 136, 0.12);
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 100px;
  color: var(--green-400);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 1.5rem;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--green-400), var(--green-300), #a8e6cf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--green-400);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.75s step-end infinite;
}
.typing-cursor.hidden { display: none; }
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll hint chevron */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce-hint 2s ease-in-out infinite;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
}
.scroll-hint svg {
  width: 28px;
  height: 28px;
}
@keyframes bounce-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(45,106,79,0.5), 0 2px 8px rgba(45,106,79,0.3);
}
.btn-primary:hover {
  background: var(--green-600);
  box-shadow: 0 0 0 1px rgba(64,145,108,0.5), 0 4px 16px rgba(45,106,79,0.4);
  transform: translateY(-1px);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after { opacity: 1; }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.btn svg { width: 18px; height: 18px; }

/* ── Hero Mockup ──────────────────────────────────────── */
.hero-mockup {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 120px rgba(45,106,79,0.15);
}
.hero-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--dark-700);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.hero-mockup-dot:nth-child(1) { background: #ff5f57; }
.hero-mockup-dot:nth-child(2) { background: #febc2e; }
.hero-mockup-dot:nth-child(3) { background: #28c840; }
.hero-mockup-url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.hero-mockup-body {
  background: var(--dark-800);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-height: 300px;
}
@media (max-width: 640px) {
  .hero-mockup-body { grid-template-columns: 1fr; min-height: 200px; }
}
.mockup-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.25rem;
}
.mockup-card-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}
.mockup-metric {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.mockup-metric-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}
.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 0.75rem;
}
.mockup-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--green-700), var(--green-500));
  opacity: 0.7;
}
.mockup-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mockup-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  flex-shrink: 0;
}
.mockup-list-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.mockup-list-text strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.mockup-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(82,183,136,0.15);
  color: var(--green-400);
  margin-left: auto;
  white-space: nowrap;
}

/* ── Section Shared ────────────────────────────────────── */
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-400);
  text-align: center;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
}
.section-title-light { color: var(--white); }
.section-title-dark { color: var(--gray-800); }
.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.section-desc-light { color: rgba(255,255,255,0.5); }
.section-desc-dark { color: var(--gray-500); }

/* Animated section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(82,183,136,0.3), transparent);
  animation: shimmer-line 3s ease-in-out infinite;
}
@keyframes shimmer-line {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Value Props ────────────────────────────────────────── */
.values {
  padding: 6rem 0;
  background: var(--dark-950);
  position: relative;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
/* Spotlight hover effect */
.value-card .spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  border-radius: 16px;
}
.value-card:hover .spotlight { opacity: 1; }
.value-card:hover {
  border-color: rgba(82,183,136,0.2);
  box-shadow: 0 8px 40px rgba(45,106,79,0.12);
}
.value-card:hover::before { opacity: 1; }
.value-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(82,183,136,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green-400);
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}
.value-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* ── How It Works ──────────────────────────────────────── */
.how-it-works {
  padding: 6rem 0;
  background: var(--dark-900);
  position: relative;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-700), var(--green-500), var(--green-700));
  opacity: 0.3;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(82,183,136,0.1);
  border: 2px solid rgba(82,183,136,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-400);
  position: relative;
  z-index: 1;
  background-clip: padding-box;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ── Features Showcase ─────────────────────────────────── */
.features {
  padding: 6rem 0;
  background: var(--white);
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-row.reverse .feature-visual { order: -1; }
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse .feature-visual { order: 0; }
}
.feature-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}
.feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-800);
  margin-bottom: 1rem;
}
.feature-desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.feature-bullets li svg {
  width: 18px; height: 18px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Feature visuals */
.feature-visual {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.visual-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}

/* AI Chat Visual */
.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ai-chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
}
.ai-chat-msg.user {
  align-self: flex-end;
  background: var(--green-700);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.ai-chat-msg.assistant {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  border-bottom-left-radius: 4px;
}
.ai-chat-msg .entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: rgba(45,106,79,0.08);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
}
.ai-confirm {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #92400e;
  align-self: flex-start;
  max-width: 85%;
}
.ai-confirm strong { color: #78350f; }
.ai-confirm-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.ai-confirm-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.ai-confirm-yes { background: var(--green-700); color: var(--white); }
.ai-confirm-no { background: var(--gray-200); color: var(--gray-600); }

/* Stats visual */
.stats-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stat-mini {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem;
}
.stat-mini-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 0.375rem;
}
.stat-mini-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
}
.stat-mini-change {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-600);
  margin-top: 0.25rem;
}

/* Meal plan visual */
.meal-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.meal-visual-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
}
.meal-macros {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.macro-pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
}
.macro-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.macro-dot.cal { background: var(--green-600); }
.macro-dot.protein { background: #6366f1; }
.macro-dot.carbs { background: #f59e0b; }
.macro-dot.fat { background: #ef4444; }
.meal-slot {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meal-slot-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}
.meal-slot-items {
  font-size: 0.775rem;
  color: var(--gray-400);
}
.meal-slot-cals {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}
.allergen-warn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}

/* Search visual */
.search-visual {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.search-input-row svg { color: var(--gray-400); width: 18px; height: 18px; }
.search-input-text {
  font-size: 0.9rem;
  color: var(--gray-800);
}
.search-kbd {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  color: var(--gray-400);
  font-family: monospace;
}
.search-results { padding: 0.5rem; }
.search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.search-result.active { background: var(--green-50); }
.search-result-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.search-result-icon.client { background: rgba(99,102,241,0.1); color: #6366f1; }
.search-result-icon.appt { background: rgba(245,158,11,0.1); color: #f59e0b; }
.search-result-icon.meal { background: rgba(45,106,79,0.1); color: var(--green-700); }
.search-result-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ── Screenshot Showcase ──────────────────────────────── */
.screenshots {
  padding: 6rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.screenshot-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
  border-bottom: 2px solid var(--gray-200);
}
.screenshot-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s var(--ease);
  position: relative;
}
.screenshot-tab:hover { color: var(--gray-800); }
.screenshot-tab.active { color: var(--green-700); }
.tab-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--green-700);
  transition: left 0.3s var(--ease), width 0.3s var(--ease);
}
.screenshot-viewport {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  min-height: 500px;
}
.screenshot-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.screenshot-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
/* Browser chrome for screenshots */
.browser-chrome {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  background: var(--white);
}
.browser-chrome-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.browser-chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.browser-chrome-dot:nth-child(1) { background: #ff5f57; }
.browser-chrome-dot:nth-child(2) { background: #febc2e; }
.browser-chrome-dot:nth-child(3) { background: #28c840; }
.browser-chrome-url {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--gray-400);
  background: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 6px;
  margin: 0 3rem;
}
.browser-chrome-body {
  padding: 1.25rem;
  min-height: 420px;
  background: var(--gray-50);
}
@media (max-width: 768px) {
  .screenshot-tabs { flex-wrap: wrap; }
  .screenshot-tab { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .browser-chrome-body { min-height: 300px; padding: 0.75rem; }
}

/* ── Screenshot Mockup Internals ─────────────────────── */
/* Dashboard mockup */
.mock-dashboard {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  font-size: 0.75rem;
}
.mock-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1rem 0.75rem;
}
.mock-sidebar-item {
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-sidebar-item.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}
.mock-sidebar-item svg { width: 14px; height: 14px; }
.mock-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mock-greeting {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}
.mock-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.mock-metric-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem;
}
.mock-metric-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  font-weight: 600;
}
.mock-metric-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
}
.mock-schedule {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem;
}
.mock-schedule-title {
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}
.mock-schedule-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.mock-schedule-time {
  font-weight: 600;
  color: var(--green-700);
  min-width: 55px;
}
.mock-schedule-name { color: var(--gray-700); font-weight: 500; }
.mock-schedule-type { color: var(--gray-400); margin-left: auto; }
@media (max-width: 768px) {
  .mock-dashboard { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .mock-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* Clients mockup */
.mock-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem;
}
.mock-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
  border-bottom: 2px solid var(--gray-200);
  background: var(--white);
}
.mock-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}
.mock-table tr:hover td { background: var(--green-50); }
.mock-table .name-cell {
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-table .mini-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  flex-shrink: 0;
}
.mock-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
}
.mock-status.active { background: rgba(82,183,136,0.12); color: var(--green-700); }
.mock-status.pending { background: rgba(245,158,11,0.12); color: #b45309; }
.mock-allergy-tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  background: #fef2f2;
  color: #991b1b;
  margin-right: 0.25rem;
}

/* Calendar mockup */
.mock-calendar {
  font-size: 0.7rem;
}
.mock-cal-header {
  display: grid;
  grid-template-columns: 50px repeat(5, 1fr);
  gap: 0;
  margin-bottom: 0.5rem;
}
.mock-cal-header span {
  text-align: center;
  font-weight: 700;
  color: var(--gray-500);
  padding: 0.35rem 0;
}
.mock-cal-header span:first-child { text-align: right; padding-right: 0.5rem; }
.mock-cal-body {
  display: grid;
  grid-template-columns: 50px repeat(5, 1fr);
  gap: 2px;
}
.mock-cal-time {
  text-align: right;
  padding-right: 0.5rem;
  color: var(--gray-400);
  font-weight: 500;
  padding-top: 0.25rem;
}
.mock-cal-cell {
  min-height: 48px;
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  background: var(--white);
  position: relative;
}
.mock-cal-event {
  position: absolute;
  inset: 2px;
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
}
.mock-cal-event.initial { background: rgba(99,102,241,0.12); color: #4f46e5; border-left: 2px solid #6366f1; }
.mock-cal-event.followup { background: rgba(82,183,136,0.12); color: var(--green-700); border-left: 2px solid var(--green-600); }
.mock-cal-event.checkin { background: rgba(245,158,11,0.12); color: #b45309; border-left: 2px solid #f59e0b; }

/* AI sidebar mockup */
.mock-app-with-ai {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  min-height: 380px;
}
.mock-app-main {
  background: var(--gray-50);
  padding: 1rem;
  border-right: 1px solid var(--gray-200);
  font-size: 0.75rem;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}
.mock-ai-panel {
  background: var(--white);
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}
.mock-ai-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-ai-header .ai-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}
.mock-ai-messages {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}
.mock-ai-msg {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  line-height: 1.45;
  max-width: 90%;
}
.mock-ai-msg.user {
  align-self: flex-end;
  background: var(--green-700);
  color: var(--white);
}
.mock-ai-msg.bot {
  align-self: flex-start;
  background: var(--gray-100);
  color: var(--gray-700);
}
.mock-ai-input {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-400);
  font-style: italic;
}
@media (max-width: 640px) {
  .mock-app-with-ai { grid-template-columns: 1fr; }
  .mock-app-main { display: none; }
}

/* Progress mockup */
.mock-progress {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1rem;
  font-size: 0.75rem;
}
.mock-chart-area {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1rem;
}
.mock-chart-title {
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}
.mock-chart-svg { width: 100%; height: 160px; }
.mock-goals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mock-goal {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem;
}
.mock-goal-name {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}
.mock-goal-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.35rem;
}
.mock-goal-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
}
.mock-goal-meta {
  font-size: 0.65rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .mock-progress { grid-template-columns: 1fr; }
}

/* ── Tech Stack ─────────────────────────────────────────── */
.tech {
  padding: 6rem 0;
  background: var(--dark-900);
  position: relative;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tech-item:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.tech-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.tech-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}
.tech-item-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.125rem;
}

/* ── Testimonial ──────────────────────────────────────── */
.testimonial {
  padding: 5rem 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}
.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--green-300);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}
.testimonial-author {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.95rem;
}
.testimonial-role {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ── Open Source CTA ────────────────────────────────────── */
.oss {
  padding: 6rem 0;
  background: var(--gray-50);
  position: relative;
}
.oss-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, var(--dark-900), var(--dark-800));
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.oss-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(82,183,136,0.15);
  pointer-events: none;
}
.oss-glow {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,106,79,0.25), transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
}
.oss-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: -0.02em;
}
.oss-card p {
  color: rgba(255,255,255,0.5);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}
.oss-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.oss-stat-item { text-align: center; }
.oss-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-400);
}
.oss-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}
.oss-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}
.btn-oss {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn-oss:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.btn-oss svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .oss-card { padding: 3rem 1.5rem; }
  .oss-stats { gap: 1.5rem; }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 3rem 0 2rem;
  background: var(--dark-950);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand span { color: var(--green-400); }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.375rem;
  max-width: 300px;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.footer-list {
  list-style: none;
}
.footer-list li { margin-bottom: 0.4rem; }
.footer-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}
.back-to-top {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}
.back-to-top:hover { color: var(--white); }
.back-to-top svg { width: 14px; height: 14px; }

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  #particle-canvas { display: none; }
}
