/* ============================================================
   SHELF LIFE CALCULATOR — Premium Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors — Dark Mode Base */
  --bg-primary: #060a14;
  --bg-secondary: #0c1220;

  /* Button text on gradient backgrounds (dark default = dark bg) */
  --btn-on-gradient: #060a14;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(20, 30, 55, 0.75);
  --bg-input: rgba(15, 23, 42, 0.8);
  --bg-switcher: rgba(15, 23, 42, 0.6);

  /* Accent Palette */
  --accent-emerald: #00c9a7;
  --accent-teal: #00b4d8;
  --accent-gold: #f0c27f;
  --accent-coral: #ff6b6b;
  --accent-amber: #fbbf24;
  --accent-lime: #84cc16;

  /* Gradient Presets */
  --gradient-primary: linear-gradient(135deg, #00c9a7 0%, #00b4d8 100%);
  --gradient-gold: linear-gradient(135deg, #f0c27f 0%, #fc5c7d 100%);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #0f172a 40%, #0c1631 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(0, 201, 167, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #00c9a7;

  /* Borders */
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 201, 167, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 201, 167, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(0, 201, 167, 0.25);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Light Mode Overrides --- */
:root:not(.dark) {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-input: rgba(255, 255, 255, 0.9);
  --bg-switcher: rgba(15, 23, 42, 0.06);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;

  /* Light-mode-safe button text on gradient backgrounds */
  --btn-on-gradient: #ffffff;

  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 201, 167, 0.2);

  --gradient-hero: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(0, 201, 167, 0.08) 0%, transparent 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(0, 201, 167, 0.1);
  --shadow-glow-strong: 0 0 60px rgba(0, 201, 167, 0.15);
}

/* --- Scoped Base Styles --- */
.shelf-life-home {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
}

.shelf-life-home a {
  color: var(--accent-emerald);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.shelf-life-home a:hover {
  color: var(--accent-teal);
}

.shelf-life-home img {
  max-width: 100%;
  display: block;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-padding {
  padding: var(--space-4xl) 0;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* --- Section Headings --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.section-badge svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

:root:not(.dark) .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: var(--space-sm) var(--space-lg);
  background: var(--gradient-primary);
  color: var(--btn-on-gradient) !important;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  font-size: 0.85rem;
  transition: all var(--transition-base) !important;
  box-shadow: 0 0 20px rgba(0, 201, 167, 0.2);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 201, 167, 0.35) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  animation: heroGlow 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  animation: heroGlow 10s ease-in-out infinite reverse;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(40px, -30px) scale(1.1); opacity: 1; }
}

/* Animated mesh grid */
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 201, 167, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 167, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: meshDrift 20s linear infinite;
  z-index: 1;
}

@keyframes meshDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-emerald);
  margin-bottom: var(--space-xl);
  animation: fadeSlideUp 0.8s ease-out;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeSlideUp 0.8s ease-out 0.1s backwards;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  animation: fadeSlideUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  animation: fadeSlideUp 0.8s ease-out 0.3s backwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: var(--btn-on-gradient);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 0 30px rgba(0, 201, 167, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 201, 167, 0.35);
  color: var(--btn-on-gradient);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  border-color: var(--border-glow);
  background: rgba(0, 201, 167, 0.05);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  animation: fadeSlideUp 0.8s ease-out 0.4s backwards;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Illustration */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 1s ease-out 0.3s backwards;
}

.hero-visual {
  position: relative;
  width: 420px;
  height: 420px;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: rotateRing linear infinite;
}

.hero-ring-1 {
  inset: 0;
  border-color: rgba(0, 201, 167, 0.15);
  animation-duration: 20s;
}

.hero-ring-2 {
  inset: 40px;
  border-color: rgba(0, 180, 216, 0.1);
  animation-duration: 30s;
  animation-direction: reverse;
}

.hero-ring-3 {
  inset: 80px;
  border-color: rgba(240, 194, 127, 0.08);
  animation-duration: 25s;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Ring dots */
.ring-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 201, 167, 0.5);
}

.hero-ring-1 .ring-dot { top: -4px; left: 50%; }
.hero-ring-2 .ring-dot { bottom: -4px; right: 20%; }
.hero-ring-3 .ring-dot { top: 20%; left: -4px; }

/* Center icon */
.hero-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.hero-center-icon svg {
  width: 48px;
  height: 48px;
}

/* Floating labels */
.float-label {
  position: absolute;
  padding: 8px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  animation: floatLabel 4s ease-in-out infinite;
  box-shadow: var(--shadow-sm);
}

.float-label-1 { top: 15%; right: -10%; animation-delay: 0s; }
.float-label-2 { bottom: 20%; left: -5%; animation-delay: 1.5s; }
.float-label-3 { top: 5%; left: 5%; animation-delay: 3s; }

.float-label .label-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.float-label-1 .label-dot { background: var(--accent-emerald); }
.float-label-2 .label-dot { background: var(--accent-gold); }
.float-label-3 .label-dot { background: var(--accent-teal); }

@keyframes floatLabel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   CALCULATOR SECTION
   ============================================================ */
.calculator-section {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.calculator-section.calculator-top {
  padding-top: var(--space-2xl);
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  position: relative;
}

/* Calculator Form */
.calc-form-card {
  padding: var(--space-2xl);
}

.calc-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.1);
}

/* Date input calendar icon — make visible on dark bg */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(3) hue-rotate(130deg);
  cursor: pointer;
}

.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Toggle Switch */
.toggle-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(100, 116, 139, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  outline: none;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition-base);
}

.toggle-switch:checked {
  background: var(--accent-emerald);
}

.toggle-switch:checked::after {
  transform: translateX(24px);
}

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

/* Mode Switcher */
.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: 4px;
  background: var(--bg-switcher);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.mode-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mode-btn:hover {
  color: var(--text-secondary);
  background: rgba(0, 201, 167, 0.03);
}

.mode-btn.active {
  background: rgba(0, 201, 167, 0.08);
  border-color: rgba(0, 201, 167, 0.2);
  color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(0, 201, 167, 0.08);
}

/* Manual Mode Info Hint */
.manual-info-hint {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 12px 16px;
  background: rgba(0, 180, 216, 0.05);
  border: 1px solid rgba(0, 180, 216, 0.12);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.manual-info-hint svg {
  width: 16px;
  height: 16px;
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.manual-info-hint span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Required Star */
.required-star {
  color: var(--accent-coral);
  font-weight: 600;
}

/* Field Validation Errors */
.field-error {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-coral);
  margin-top: 4px;
  min-height: 0;
  opacity: 0;
  transition: all var(--transition-fast);
}

.field-error.visible {
  opacity: 1;
  min-height: 1em;
}

.form-control.has-error {
  border-color: var(--accent-coral) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12) !important;
}

/* Form Error Summary */
.form-error-summary {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-coral);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: var(--space-md);
  animation: fadeSlideUp 0.3s ease-out;
}

.form-error-summary svg {
  flex-shrink: 0;
}

/* Form Actions Row */
.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Calculate Button */
.btn-calculate {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  color: var(--btn-on-gradient);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 0 30px rgba(0, 201, 167, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 201, 167, 0.3);
}

.btn-calculate svg {
  width: 18px;
  height: 18px;
}

/* Demo Button */
.btn-demo {
  padding: 16px 24px;
  background: rgba(240, 194, 127, 0.08);
  border: 1px solid rgba(240, 194, 127, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.btn-demo:hover {
  background: rgba(240, 194, 127, 0.15);
  border-color: rgba(240, 194, 127, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(240, 194, 127, 0.12);
}

.btn-demo svg {
  width: 16px;
  height: 16px;
}

/* Download PDF Button */
.btn-download-pdf {
  width: 100%;
  padding: 14px;
  background: rgba(0, 201, 167, 0.06);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-emerald);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn-download-pdf:hover {
  background: rgba(0, 201, 167, 0.12);
  border-color: rgba(0, 201, 167, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 201, 167, 0.12);
}

.btn-download-pdf svg {
  width: 18px;
  height: 18px;
}

/* Results Card */
.calc-results-card {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
}

.results-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
}

.results-placeholder-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 201, 167, 0.06);
  border: 1px dashed rgba(0, 201, 167, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.results-placeholder-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-emerald);
  opacity: 0.5;
}

.results-placeholder h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

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

/* Active Results */
.results-active {
  display: none;
  flex-direction: column;
  gap: var(--space-xl);
}

.results-active.visible {
  display: flex;
  animation: fadeSlideUp 0.6s ease-out;
}

.results-header {
  text-align: center;
}

.results-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.results-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Freshness Gauge */
.gauge-container {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.gauge-svg {
  width: 200px;
  height: 200px;
}

.gauge-track {
  fill: none;
  stroke: rgba(100, 116, 139, 0.15);
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 0.5s ease;
  filter: drop-shadow(0 0 8px currentColor);
}

.gauge-text {
  font-family: var(--font-heading);
  font-weight: 700;
  fill: var(--text-primary);
}

.gauge-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  fill: var(--text-secondary);
}

/* Results Data */
.results-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.result-item {
  padding: var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  text-align: center;
}

.result-item-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.result-item-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 auto;
}

.status-fresh {
  background: rgba(0, 201, 167, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 201, 167, 0.2);
}

.status-caution {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-expired {
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent-coral);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================================
   HOW IT WORKS — INTERACTIVE DIAGRAMS
   ============================================================ */
.how-it-works-section {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Flowchart Diagram */
.flowchart-container {
  max-width: 900px;
  margin: 0 auto var(--space-4xl);
}

.flowchart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}

.flow-step-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: all var(--transition-slow);
  position: relative;
  z-index: 2;
}

.flow-step-icon svg {
  width: 30px;
  height: 30px;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.flow-step.active .flow-step-icon {
  border-color: var(--accent-emerald);
  background: rgba(0, 201, 167, 0.08);
  box-shadow: 0 0 30px rgba(0, 201, 167, 0.2);
}

.flow-step.active .flow-step-icon svg {
  color: var(--accent-emerald);
}

.flow-step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all var(--transition-base);
}

.flow-step.active .flow-step-number {
  background: var(--accent-emerald);
  color: var(--btn-on-gradient);
  border-color: var(--accent-emerald);
}

.flow-step-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color var(--transition-base);
}

.flow-step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 140px;
}

/* Connecting lines */
.flow-connector {
  width: 100px;
  height: 2px;
  position: relative;
  margin-bottom: 50px;
}

.flow-connector-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(100, 116, 139, 0.15);
  border-radius: var(--radius-full);
}

.flow-connector-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 201, 167, 0.3);
}

.flow-connector.active .flow-connector-fill {
  width: 100%;
}

.flow-connector-arrow {
  position: absolute;
  right: -6px;
  top: -5px;
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.flow-connector.active .flow-connector-arrow {
  color: var(--accent-emerald);
}

/* Radial Factor Chart */
.factor-chart-container {
  max-width: 800px;
  margin: 0 auto;
}

.factor-chart-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.factor-chart-svg-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.factor-chart-svg {
  width: 340px;
  height: 340px;
}

.factor-arc {
  fill: none;
  stroke-width: 20;
  stroke-linecap: round;
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0.7;
}

.factor-arc:hover,
.factor-arc.active {
  opacity: 1;
  stroke-width: 24;
  filter: drop-shadow(0 0 12px currentColor);
}

.factor-center-circle {
  fill: var(--bg-card);
  stroke: var(--border-glass);
  stroke-width: 1;
}

.factor-center-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  fill: var(--text-primary);
  text-anchor: middle;
}

.factor-center-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  fill: var(--accent-emerald);
  text-anchor: middle;
}

/* Factor info cards */
.factor-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.factor-info-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.factor-info-card:hover,
.factor-info-card.active {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.factor-info-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.factor-info-content h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.factor-info-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.factor-info-impact {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-top: 4px;
  display: block;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  background: var(--bg-secondary);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  background: rgba(0, 201, 167, 0.06);
  border: 1px solid rgba(0, 201, 167, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: rgba(0, 201, 167, 0.1);
  border-color: rgba(0, 201, 167, 0.25);
  box-shadow: 0 0 20px rgba(0, 201, 167, 0.15);
  transform: translateY(-2px);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-emerald);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

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

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(0, 201, 167, 0.15);
}

.faq-item.active {
  border-color: rgba(0, 201, 167, 0.25);
  box-shadow: 0 0 20px rgba(0, 201, 167, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-emerald);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-emerald);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.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.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-illustration {
    display: none;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .factor-chart-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .section-padding {
    padding: var(--space-3xl) 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
  }

  :root:not(.dark) .nav-links {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .flowchart {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .flow-connector {
    width: 2px;
    height: 40px;
    margin-bottom: 0;
  }

  .flow-connector-line,
  .flow-connector-fill {
    width: 100%;
    height: 100%;
  }

  .flow-connector-fill {
    width: 100% !important;
    height: 0%;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .flow-connector.active .flow-connector-fill {
    height: 100%;
  }

  .flow-connector-arrow {
    display: none;
  }

  .results-data {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .factor-chart-svg {
    width: 280px;
    height: 280px;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.5);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(0, 201, 167, 0.25);
  color: var(--text-primary);
}

/* ============================================================
   SEO HERO BANNER
   ============================================================ */
.seo-hero-banner { background: var(--bg-primary); position: relative; overflow: hidden; max-width: 100vw; box-sizing: border-box; }
.seo-hero-banner::before { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:800px; height:800px; background:var(--gradient-glow); pointer-events:none; }
.seo-hero-content { text-align:center; position:relative; z-index:1; }
.seo-hero-headline { font-family:var(--font-heading); font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:700; line-height:1.2; margin-bottom:var(--space-lg); color:var(--text-primary); }
.seo-hero-sub { font-size:1.05rem; color:var(--text-secondary); max-width:650px; margin:0 auto var(--space-2xl); line-height:1.7; }
.seo-stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-lg); max-width:800px; margin:0 auto; }
.seo-stat-card { padding:var(--space-xl) var(--space-lg); text-align:center; display:flex; flex-direction:column; align-items:center; gap:var(--space-xs); }
.seo-stat-icon { font-size:1.8rem; margin-bottom:var(--space-xs); }
.seo-stat-number { font-family:var(--font-heading); font-size:2rem; font-weight:700; color:var(--accent-emerald); display:inline; }
.seo-stat-suffix { font-family:var(--font-heading); font-size:1.4rem; font-weight:700; color:var(--accent-emerald); }
.seo-stat-label { font-size:0.78rem; color:var(--text-muted); font-weight:500; }

/* ============================================================
   HOW TO USE
   ============================================================ */
.how-to-use-section { background:var(--bg-secondary); }
.htu-steps-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-xl); }
.htu-step { padding:var(--space-2xl); text-align:center; position:relative; overflow:hidden; }
.htu-step::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:80px; height:3px; background:var(--gradient-primary); border-radius:var(--radius-full); opacity:0; transition:opacity var(--transition-base); }
.htu-step:hover::before { opacity:1; }
.htu-step-number { width:40px; height:40px; background:var(--gradient-primary); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto var(--space-md); }
.htu-step-number span { font-family:var(--font-heading); font-weight:700; font-size:1rem; color:var(--btn-on-gradient); }
.htu-step-icon { font-size:2.5rem; margin-bottom:var(--space-lg); }
.htu-step h3 { font-family:var(--font-heading); font-size:1.1rem; font-weight:600; margin-bottom:var(--space-md); color:var(--text-primary); }
.htu-step p { font-size:0.85rem; color:var(--text-secondary); line-height:1.6; margin-bottom:var(--space-lg); }
.htu-step-visual { display:flex; flex-wrap:wrap; gap:var(--space-sm); justify-content:center; }
.htu-mini-select { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; background:rgba(0,201,167,0.06); border:1px solid rgba(0,201,167,0.15); border-radius:var(--radius-full); font-size:0.72rem; color:var(--text-secondary); font-weight:500; }
.htu-dot { width:6px; height:6px; border-radius:50%; }
.htu-dot.green { background:var(--accent-emerald); }
.htu-dot.gold { background:var(--accent-gold); }
.htu-mini-tag { padding:6px 12px; background:rgba(0,180,216,0.06); border:1px solid rgba(0,180,216,0.15); border-radius:var(--radius-full); font-size:0.72rem; color:var(--text-secondary); font-weight:500; }
.htu-mini-gauge { width:100%; height:28px; background:rgba(100,116,139,0.15); border-radius:var(--radius-full); position:relative; overflow:hidden; }
.htu-mini-gauge-fill { height:100%; background:var(--gradient-primary); border-radius:var(--radius-full); transition:width 1.5s cubic-bezier(0.4,0,0.2,1); }
.htu-mini-gauge span { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:0.72rem; font-weight:600; color:var(--text-primary); }

/* ============================================================
   FORMULA SECTION
   ============================================================ */
.formula-section { background:var(--bg-primary); }
.formula-display { padding:var(--space-2xl); text-align:center; margin-bottom:var(--space-2xl); }
.formula-label { font-size:0.8rem; font-weight:500; color:var(--accent-emerald); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:var(--space-xl); }
.formula-equation { display:flex; align-items:center; justify-content:center; gap:var(--space-md); flex-wrap:wrap; margin-bottom:var(--space-lg); }
.formula-eq-2 { margin-bottom:var(--space-xl); }
.formula-part { padding:10px 20px; background:rgba(0,201,167,0.06); border:1px solid rgba(0,201,167,0.15); border-radius:var(--radius-md); font-family:var(--font-heading); font-size:0.95rem; font-weight:600; color:var(--text-primary); cursor:pointer; transition:all var(--transition-base); }
.formula-part:hover, .formula-part.active { background:rgba(0,201,167,0.12); border-color:var(--accent-emerald); box-shadow:0 0 20px rgba(0,201,167,0.15); transform:translateY(-2px); }
.formula-op { font-family:var(--font-heading); font-size:1.2rem; font-weight:700; color:var(--text-muted); }
.formula-explanation { padding:var(--space-lg); background:rgba(0,201,167,0.04); border:1px solid rgba(0,201,167,0.1); border-radius:var(--radius-md); }
.formula-explanation p { font-size:0.85rem; color:var(--text-secondary); line-height:1.6; margin:0; }
.formula-factors-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-lg); }
.formula-factor { padding:var(--space-xl); text-align:center; }
.formula-factor-icon { font-size:2rem; margin-bottom:var(--space-md); }
.formula-factor h4 { font-family:var(--font-heading); font-size:1rem; font-weight:600; margin-bottom:var(--space-sm); color:var(--text-primary); }
.formula-factor p { font-size:0.82rem; color:var(--text-secondary); line-height:1.6; }

/* ============================================================
   CALCULATION EXAMPLE
   ============================================================ */
.example-section { background:var(--bg-secondary); }
.example-card { padding:var(--space-2xl); max-width:800px; margin:0 auto; }
.example-header { display:flex; align-items:center; gap:var(--space-lg); margin-bottom:var(--space-2xl); }
.example-product-icon { font-size:3rem; }
.example-header h3 { font-family:var(--font-heading); font-size:1.3rem; font-weight:600; color:var(--text-primary); margin-bottom:4px; }
.example-header p { font-size:0.85rem; color:var(--text-secondary); }
.example-timeline { margin-bottom:var(--space-2xl); }
.example-timeline-track { height:6px; background:rgba(100,116,139,0.15); border-radius:var(--radius-full); position:relative; margin-bottom:var(--space-xl); }
.example-timeline-fill { height:100%; width:0%; background:var(--gradient-primary); border-radius:var(--radius-full); transition:width 1.5s cubic-bezier(0.4,0,0.2,1); box-shadow:0 0 12px rgba(0,201,167,0.3); }
.example-timeline-labels { display:flex; justify-content:space-between; }
.example-tl-point { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:0.78rem; color:var(--text-muted); }
.example-tl-point strong { color:var(--text-primary); font-size:0.82rem; }
.example-tl-dot { width:10px; height:10px; border-radius:50%; background:rgba(100,116,139,0.3); border:2px solid var(--bg-secondary); }
.example-tl-dot.active { background:var(--accent-emerald); box-shadow:0 0 10px rgba(0,201,167,0.4); }
.example-calc-steps { display:flex; flex-direction:column; gap:var(--space-md); margin-bottom:var(--space-xl); }
.example-step { display:flex; align-items:center; gap:var(--space-md); padding:var(--space-md) var(--space-lg); background:var(--bg-card); border:1px solid var(--border-glass); border-radius:var(--radius-md); }
.example-step-num { width:28px; height:28px; background:rgba(0,201,167,0.1); border:1px solid rgba(0,201,167,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--font-heading); font-size:0.75rem; font-weight:700; color:var(--accent-emerald); flex-shrink:0; }
.example-step-content { font-size:0.88rem; color:var(--text-secondary); }
.example-result { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-md); }
.example-result-item { padding:var(--space-lg); background:rgba(0,201,167,0.04); border:1px solid rgba(0,201,167,0.1); border-radius:var(--radius-md); text-align:center; }
.example-result-label { display:block; font-size:0.7rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:4px; }
.example-result-value { font-family:var(--font-heading); font-size:1.1rem; font-weight:600; color:var(--text-primary); }

/* ============================================================
   WHAT IS SHELF LIFE
   ============================================================ */
.what-is-section { background:var(--bg-primary); }
.what-is-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-xl); }
.what-is-card { padding:var(--space-2xl); text-align:center; }
.what-is-icon { font-size:2.5rem; margin-bottom:var(--space-lg); }
.what-is-card h3 { font-family:var(--font-heading); font-size:1.1rem; font-weight:600; margin-bottom:var(--space-md); color:var(--text-primary); }
.what-is-card p { font-size:0.85rem; color:var(--text-secondary); line-height:1.7; }

/* ============================================================
   DAYS & MONTHS CONVERTER
   ============================================================ */
.days-months-section { background:var(--bg-secondary); }
.dm-converter { padding:var(--space-2xl); max-width:900px; margin:0 auto; }
.dm-converter-header { text-align:center; margin-bottom:var(--space-2xl); }
.dm-converter-header h3 { font-family:var(--font-heading); font-size:1.3rem; font-weight:600; color:var(--text-primary); margin-bottom:var(--space-sm); }
.dm-converter-header p { font-size:0.88rem; color:var(--text-secondary); }
.dm-fields { display:flex; align-items:flex-end; gap:var(--space-md); flex-wrap:wrap; justify-content:center; margin-bottom:var(--space-xl); }
.dm-field { flex:1; min-width:100px; }
.dm-field label { display:block; font-size:0.8rem; font-weight:600; color:var(--text-secondary); margin-bottom:var(--space-sm); text-align:center; }
.dm-field .form-control { text-align:center; font-family:var(--font-heading); font-weight:600; font-size:1.1rem; }
.dm-field-separator { display:flex; align-items:center; padding-bottom:12px; }
.dm-field-separator span { font-size:1.2rem; font-weight:700; color:var(--text-muted); }
.dm-visual { margin-bottom:var(--space-xl); }
.dm-bar-container { height:32px; background:rgba(100,116,139,0.1); border-radius:var(--radius-full); overflow:hidden; position:relative; }
.dm-bar { height:100%; background:var(--gradient-primary); border-radius:var(--radius-full); transition:width 0.6s cubic-bezier(0.4,0,0.2,1); display:flex; align-items:center; justify-content:center; min-width:60px; }
.dm-bar span { font-size:0.75rem; font-weight:600; color:var(--btn-on-gradient); white-space:nowrap; }
.dm-bar-legend { display:flex; justify-content:space-between; margin-top:var(--space-sm); font-size:0.72rem; color:var(--text-muted); }
.dm-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-lg); }
.dm-info-item { padding:var(--space-lg); background:rgba(0,201,167,0.03); border:1px solid rgba(0,201,167,0.08); border-radius:var(--radius-md); }
.dm-info-item h4 { font-family:var(--font-heading); font-size:0.95rem; font-weight:600; margin-bottom:var(--space-sm); color:var(--text-primary); }
.dm-info-item p { font-size:0.82rem; color:var(--text-secondary); line-height:1.6; }

/* ============================================================
   INDUSTRY APPLICATIONS
   ============================================================ */
.industry-section { background:var(--bg-primary); }
.industry-tab-nav { display:flex; flex-wrap:wrap; gap:var(--space-sm); justify-content:center; margin-bottom:var(--space-2xl); }
.industry-tab-btn { padding:10px 20px; background:var(--bg-card); border:1px solid var(--border-glass); border-radius:var(--radius-full); font-family:var(--font-body); font-size:0.82rem; font-weight:500; color:var(--text-muted); cursor:pointer; transition:all var(--transition-base); white-space:nowrap; }
.industry-tab-btn:hover { color:var(--text-secondary); border-color:rgba(0,201,167,0.15); }
.industry-tab-btn.active { background:rgba(0,201,167,0.08); border-color:rgba(0,201,167,0.25); color:var(--accent-emerald); box-shadow:0 0 15px rgba(0,201,167,0.1); }
.industry-panel { display:none; animation:fadeSlideUp 0.4s ease-out; }
.industry-panel.active { display:block; }
.industry-panel-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:var(--space-2xl); align-items:start; }
.industry-panel-info h3 { font-family:var(--font-heading); font-size:1.3rem; font-weight:600; margin-bottom:var(--space-md); color:var(--text-primary); }
.industry-panel-info > p { font-size:0.9rem; color:var(--text-secondary); line-height:1.7; margin-bottom:var(--space-xl); }
.industry-list { list-style:none; display:flex; flex-direction:column; gap:var(--space-md); }
.industry-list li { display:flex; align-items:flex-start; gap:var(--space-md); font-size:0.85rem; color:var(--text-secondary); line-height:1.5; }
.il-icon { font-size:1.2rem; flex-shrink:0; margin-top:1px; }
.industry-panel-visual { display:flex; flex-direction:column; gap:var(--space-lg); }
.industry-stat-mini { padding:var(--space-xl); background:var(--bg-card); border:1px solid var(--border-glass); border-radius:var(--radius-md); text-align:center; transition:all var(--transition-base); }
.industry-stat-mini:hover { border-color:var(--border-glow); box-shadow:var(--shadow-glow); }
.ism-number { display:block; font-family:var(--font-heading); font-size:1.8rem; font-weight:700; color:var(--accent-emerald); margin-bottom:4px; }
.ism-label { font-size:0.78rem; color:var(--text-muted); }

/* ============================================================
   WHY IT MATTERS
   ============================================================ */
.why-matters-section { background:var(--bg-secondary); }
.why-matters-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:var(--space-xl); }
.why-card { padding:var(--space-2xl); position:relative; overflow:hidden; }
.why-card::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background:var(--gradient-primary); opacity:0; transition:opacity var(--transition-base); }
.why-card:hover::before { opacity:1; }
.why-card-icon { font-size:2.5rem; margin-bottom:var(--space-lg); }
.why-card h3 { font-family:var(--font-heading); font-size:1.1rem; font-weight:600; margin-bottom:var(--space-md); color:var(--text-primary); }
.why-card p { font-size:0.85rem; color:var(--text-secondary); line-height:1.7; margin-bottom:var(--space-lg); }
.why-card-stat { padding:var(--space-md) var(--space-lg); background:rgba(0,201,167,0.04); border:1px solid rgba(0,201,167,0.1); border-radius:var(--radius-md); display:flex; align-items:baseline; gap:var(--space-sm); flex-wrap:wrap; }
.why-stat-num { font-family:var(--font-heading); font-size:1.6rem; font-weight:700; color:var(--accent-emerald); }
.why-stat-suffix { font-family:var(--font-heading); font-size:1rem; font-weight:600; color:var(--accent-emerald); }
.why-stat-label { font-size:0.78rem; color:var(--text-muted); }

/* ============================================================
   EXCEL SECTION
   ============================================================ */
.excel-section { background:var(--bg-primary); }
.excel-layout { display:grid; grid-template-columns:1.2fr 1fr; gap:var(--space-2xl); align-items:start; }
.excel-guide { padding:var(--space-2xl); }
.excel-guide h3 { font-family:var(--font-heading); font-size:1.2rem; font-weight:600; margin-bottom:var(--space-xl); color:var(--text-primary); }
.excel-steps { display:flex; flex-direction:column; gap:var(--space-md); margin-bottom:var(--space-xl); }
.excel-step-item { display:flex; align-items:flex-start; gap:var(--space-md); }
.excel-step-badge { padding:4px 12px; background:rgba(0,201,167,0.08); border:1px solid rgba(0,201,167,0.15); border-radius:var(--radius-full); font-size:0.7rem; font-weight:600; color:var(--accent-emerald); white-space:nowrap; flex-shrink:0; }
.excel-step-item p { font-size:0.85rem; color:var(--text-secondary); line-height:1.5; }
.excel-step-item code { padding:2px 8px; background:rgba(0,201,167,0.08); border-radius:4px; font-size:0.82rem; color:var(--accent-emerald); font-family:'Consolas',monospace; }
.excel-preview { margin-top:var(--space-lg); overflow:hidden; }
.excel-preview-header { display:flex; align-items:center; gap:var(--space-sm); padding:10px 16px; background:var(--bg-card); border-bottom:1px solid var(--border-glass); font-size:0.75rem; color:var(--text-muted); }
.dark .excel-preview-header { background:rgba(15,23,42,0.8); }
.excel-dot { width:10px; height:10px; border-radius:50%; }
.excel-dot.red { background:#ff6b6b; }
.excel-dot.yellow { background:#fbbf24; }
.excel-dot.green { background:#00c9a7; }
.excel-table { width:100%; border-collapse:collapse; font-size:0.8rem; }
.excel-table th { padding:8px 12px; background:rgba(0,201,167,0.06); border:1px solid var(--border-glass); font-weight:600; color:var(--text-muted); text-align:center; font-size:0.72rem; }
.excel-table td { padding:8px 12px; border:1px solid var(--border-glass); color:var(--text-secondary); }
.excel-row-num { text-align:center; color:var(--text-muted); font-size:0.72rem; background:rgba(0,201,167,0.03); width:30px; }
.excel-formula { color:var(--accent-emerald) !important; font-family:'Consolas',monospace; font-weight:600; }
.excel-note { color:var(--text-muted) !important; font-size:0.72rem; font-style:italic; }
.excel-cta-card { padding:var(--space-2xl); display:flex; flex-direction:column; justify-content:space-between; }
.excel-vs h3 { font-family:var(--font-heading); font-size:1.2rem; font-weight:600; margin-bottom:var(--space-md); color:var(--text-primary); }
.excel-vs > p { font-size:0.88rem; color:var(--text-secondary); line-height:1.7; margin-bottom:var(--space-xl); }
.excel-comparison { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-md); margin-bottom:var(--space-xl); }
.excel-comp-col { padding:var(--space-lg); border:1px solid var(--border-glass); border-radius:var(--radius-md); }
.excel-comp-col.highlight { border-color:rgba(0,201,167,0.25); background:rgba(0,201,167,0.04); }
.excel-comp-col h4 { font-family:var(--font-heading); font-size:0.9rem; font-weight:600; margin-bottom:var(--space-md); color:var(--text-primary); text-align:center; }
.excel-comp-col ul { list-style:none; display:flex; flex-direction:column; gap:var(--space-sm); }
.excel-comp-col li { font-size:0.8rem; padding:4px 0; }
.comp-con { color:var(--accent-coral); }
.comp-pro { color:var(--accent-emerald); }
.excel-actions { display:flex; flex-direction:column; gap:var(--space-md); }
.btn-excel-download { padding:14px 24px; background:rgba(0,201,167,0.06); border:1px solid rgba(0,201,167,0.2); border-radius:var(--radius-md); color:var(--accent-emerald); font-family:var(--font-body); font-size:0.9rem; font-weight:600; cursor:pointer; transition:all var(--transition-base); display:flex; align-items:center; justify-content:center; gap:var(--space-sm); }
.btn-excel-download:hover { background:rgba(0,201,167,0.12); border-color:rgba(0,201,167,0.35); transform:translateY(-1px); box-shadow:0 0 20px rgba(0,201,167,0.12); }
.btn-excel-download svg { width:18px; height:18px; }

/* ============================================================
   NEW SECTIONS — RESPONSIVE
   ============================================================ */
@media (max-width:1024px) {
  .seo-stats-row { grid-template-columns:repeat(2,1fr); }
  .htu-steps-grid { grid-template-columns:1fr; max-width:500px; margin:0 auto; }
  .formula-factors-grid { grid-template-columns:1fr; max-width:500px; margin:0 auto; }
  .what-is-grid { grid-template-columns:1fr; }
  .industry-panel-grid { grid-template-columns:1fr; }
  .why-matters-grid { grid-template-columns:1fr; }
  .excel-layout { grid-template-columns:1fr; }
  .dm-info-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .seo-stats-row { grid-template-columns:repeat(2,1fr); gap:var(--space-md); }
  .dm-fields { flex-direction:column; align-items:stretch; }
  .dm-field-separator { justify-content:center; padding:0; }
  .example-result { grid-template-columns:1fr; }
  .excel-comparison { grid-template-columns:1fr; }
  .industry-tab-nav { gap:6px; }
  .industry-tab-btn { font-size:0.75rem; padding:8px 14px; }
}
@media (max-width:480px) {
  .seo-stats-row { grid-template-columns:1fr 1fr; }
  .formula-equation { gap:var(--space-sm); }
  .formula-part { padding:8px 14px; font-size:0.82rem; }
}
