/* NixFitness Shared Styles */
:root {
    --accent: #22c55e; --accent-hover: #4ade80;
    --accent-glow: rgba(34, 197, 94, 0.15);
    --accent-secondary: #06b6d4;
    --gradient: linear-gradient(135deg, #22c55e, #06b6d4);
    --danger: #ef4444; --warning: #f59e0b;
    --radius: 16px; --radius-sm: 8px; --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
    --bg: #0a0a0a; --bg-elevated: #111111; --bg-card: #141414;
    --bg-card-hover: #1a1a1a; --bg-input: #1e1e1e;
    --bg-nav: rgba(10, 10, 10, 0.85);
    --text: #f5f5f5; --text-secondary: #d4d4d4; --text-dim: #a3a3a3;
    --text-muted: #737373; --border: #262626; --border-hover: #404040;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(34, 197, 94, 0.2);
    --chat-user-bg: #1e3a2f; --chat-user-text: #d1fae5;
    --chat-bot-bg: #1e1e1e;
    --comp-highlight: rgba(34, 197, 94, 0.05);
}
[data-theme="light"] {
    --bg: #ffffff; --bg-elevated: #f9fafb; --bg-card: #ffffff;
    --bg-card-hover: #f3f4f6; --bg-input: #f3f4f6;
    --bg-nav: rgba(255, 255, 255, 0.85);
    --text: #111827; --text-secondary: #374151; --text-dim: #6b7280;
    --text-muted: #9ca3af; --border: #e5e7eb; --border-hover: #d1d5db;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px rgba(34, 197, 94, 0.15);
    --chat-user-bg: #dcfce7; --chat-user-text: #166534;
    --chat-bot-bg: #f3f4f6;
    --comp-highlight: rgba(34, 197, 94, 0.06);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.6; overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* BG Ambient */
.bg-ambient { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.bg-ambient::before, .bg-ambient::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(120px);
    animation: float 20s ease-in-out infinite;
}
.bg-ambient::before { width: 600px; height: 600px; top: -200px; left: -100px; background: rgba(34, 197, 94, 0.05); }
.bg-ambient::after { width: 500px; height: 500px; bottom: -200px; right: -100px; background: rgba(6, 182, 212, 0.05); animation-delay: -10s; animation-direction: reverse; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* NAV */
nav { position: fixed; top: 0; width: 100%; background: var(--bg-nav); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); z-index: 1000; transition: all var(--transition); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-dim); transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all var(--transition); position: relative; overflow: hidden; }
.theme-toggle:hover { border-color: var(--border-hover); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { position: absolute; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: scale(1); }
.nav-cta { background: var(--accent); color: #000; padding: 9px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; transition: all var(--transition); }
.nav-cta:hover { background: var(--accent-hover); }
.hamburger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); cursor: pointer; align-items: center; justify-content: center; font-size: 1.2rem; padding: 0; color: var(--text); transition: all var(--transition); }
.hamburger:hover { border-color: var(--border-hover); }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-nav); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); padding: 20px 24px; z-index: 999; flex-direction: column; gap: 12px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); padding: 8px 0; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mobile-cta { display: block; margin-top: 8px; background: var(--accent); color: #000; padding: 12px 24px; border-radius: 8px; font-weight: 600; text-align: center; }
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
}

/* Sections */
.section { padding: 100px 0; }
.section-divider { border-top: 1px solid var(--border); transition: border-color var(--transition); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; line-height: 1.15; }
.section-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 1rem; transition: all var(--transition); cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--accent); color: #000; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); }
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 48px 0; transition: border-color var(--transition); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-weight: 700; font-size: 1rem; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.83rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .section-title { font-size: 1.7rem; }
    .btn { padding: 12px 24px; font-size: 0.93rem; }
}

/* Lucide Icons */
[data-lucide] { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value-icon [data-lucide], .feature-icon [data-lucide], .disclosure-icon [data-lucide] { color: var(--accent); }
.timeline-dot [data-lucide] { color: var(--accent); }
.profile-avatar [data-lucide] { color: #fff; }
.li-icon [data-lucide] { color: var(--accent); }
.pricing-badge [data-lucide] { color: #000; }
.kc-badge [data-lucide] { width: 14px; height: 14px; }
.problem-icon [data-lucide] { color: var(--accent); }

/* Footer mobile fix */
@media (max-width: 640px) {
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px 20px; }
    .footer-copy { margin-top: 16px; }
}

/* Theme toggle icon colors */
.theme-toggle [data-lucide] { color: var(--text-dim); stroke: var(--text-dim); }
.theme-toggle:hover [data-lucide] { color: var(--accent); stroke: var(--accent); }
