/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0a0f0d;
  --bg-secondary: #0f1612;
  --bg-card: #141f18;
  --bg-card-hover: #1a2820;
  --bg-elevated: #1c2a22;

  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-glow: rgba(34, 197, 94, 0.25);

  --text-primary: #f0fdf4;
  --text-secondary: #a3b8ab;
  --text-muted: #6b7f72;

  --border: rgba(255, 255, 255, 0.08);
  --border-green: rgba(34, 197, 94, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --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-green: 0 8px 32px rgba(34, 197, 94, 0.15);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
  --sidebar-width: 260px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--border-green);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--green-500);
  color: var(--green-400);
  background: rgba(34, 197, 94, 0.05);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-icon {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: all var(--transition);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.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% 70% at 50% 30%, black 20%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(34, 197, 94, 0.15);
  top: 10%;
  right: -10%;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(22, 163, 74, 0.1);
  bottom: 20%;
  left: -5%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid var(--border-green);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-card-main {
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.card-dots span:first-child { background: #ef4444; }
.card-dots span:nth-child(2) { background: #eab308; }
.card-dots span:last-child { background: var(--green-500); }

.card-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.payroll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg-card);
  margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }
.av-1 { background: #22c55e; }
.av-2 { background: #3b82f6; }
.av-3 { background: #a855f7; }
.av-4 { background: var(--bg-elevated); color: var(--text-secondary); font-size: 0.625rem; }

.payroll-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.payroll-value {
  font-weight: 700;
  font-size: 0.9375rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 20px;
}

.bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--green-400), var(--green-700));
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.bar:hover {
  opacity: 1;
}

.payroll-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.payroll-total strong {
  font-size: 1.25rem;
  color: var(--green-400);
}

.hero-card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-card-1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.hero-card-2 {
  bottom: 40px;
  left: -30px;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-icon.green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green-400);
}

.float-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.float-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.float-value {
  font-weight: 700;
  font-size: 0.875rem;
}

/* ===== Features ===== */
.features {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-green);
  transform: translateY(-6px);
  box-shadow: var(--shadow-green);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  color: var(--green-400);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: rgba(34, 197, 94, 0.2);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-400);
  transition: color var(--transition);
}

.feature-link:hover {
  color: var(--green-500);
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 120px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--green-400);
  transition: all var(--transition);
}

.step:hover .step-icon {
  border-color: var(--border-green);
  background: rgba(34, 197, 94, 0.08);
  transform: scale(1.08);
}

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--green-600), var(--border));
  margin-top: 80px;
  flex-shrink: 0;
}

/* ===== Pricing ===== */
.pricing {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card-featured {
  border-color: var(--green-500);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, var(--bg-card) 40%);
  box-shadow: var(--shadow-green);
  transform: scale(1.04);
}

.pricing-card-featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 16px 48px rgba(34, 197, 94, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 32px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  color: var(--green-500);
  flex-shrink: 0;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 120px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #eab308;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.author-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0 120px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.05) 100%);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 16px 0 24px;
  max-width: 280px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-links a:hover {
  color: var(--green-400);
  border-color: var(--border-green);
  background: rgba(34, 197, 94, 0.08);
  transform: translateY(-2px);
}

.footer-links-group h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links-group a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-links-group a:hover {
  color: var(--green-400);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: show content if animations are disabled or JS fails */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero-cta,
  .hero-stats,
  .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 15, 13, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    animation: slideDown 0.3s ease;
  }

  .nav-links.open .nav-link {
    padding: 14px 16px;
    width: 100%;
  }

  .nav-actions.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--nav-height) + 280px);
    left: 24px;
    right: 24px;
    gap: 12px;
    animation: slideDown 0.3s ease 0.1s both;
  }

  .nav-actions.open .btn {
    width: 100%;
    justify-content: center;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .menu-toggle {
    display: flex;
  }

  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .cta-content p {
    margin: 0 auto;
  }

  .cta-actions {
    justify-content: center;
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-card-float {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* =============================================
   AUTH PAGES (Login)
   ============================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.auth-orb-1 {
  width: 350px;
  height: 350px;
  background: rgba(34, 197, 94, 0.12);
  top: -10%;
  right: -5%;
}

.auth-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(22, 163, 74, 0.08);
  bottom: 10%;
  left: -5%;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 24px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.auth-back:hover {
  color: var(--green-400);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease forwards;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .logo {
  justify-content: center;
  margin-bottom: 24px;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: 0.875rem;
  margin-bottom: 20px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-group input.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color var(--transition);
}

.password-toggle:hover {
  color: var(--text-primary);
}

.form-error {
  font-size: 0.8125rem;
  color: #f87171;
  min-height: 18px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-primary);
  transition: all var(--transition);
  position: relative;
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--green-500);
  border-color: var(--green-500);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-400);
  transition: color var(--transition);
}

.form-link:hover {
  color: var(--green-500);
}

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.demo-hint {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px dashed var(--border-green);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.demo-hint-label {
  display: block;
  font-weight: 600;
  color: var(--green-400);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
}

.demo-hint code {
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* =============================================
   DASHBOARD
   ============================================= */

.dashboard-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 999;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  color: var(--green-400);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--border-green);
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.sidebar-logout:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.sidebar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.topbar-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.topbar-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.topbar-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.topbar-search input:focus {
  border-color: var(--green-500);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-content {
  flex: 1;
  padding: 32px;
}

.dashboard-welcome {
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease forwards;
}

.dashboard-welcome h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.dashboard-welcome p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.dash-stat-card:hover {
  border-color: var(--border-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-stat-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--green-400); }
.dash-stat-icon.blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.dash-stat-icon.purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.dash-stat-icon.yellow { background: rgba(234, 179, 8, 0.12); color: #facc15; }

.dash-stat-value {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}

.dash-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-panel-header h2 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.activity-list li:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot.green { background: var(--green-500); }
.activity-dot.blue { background: #3b82f6; }
.activity-dot.purple { background: #a855f7; }
.activity-dot.yellow { background: #eab308; }

.activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-content strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.activity-content span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.activity-list time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.quick-action-btn:hover {
  color: var(--green-400);
  border-color: var(--border-green);
  background: rgba(34, 197, 94, 0.05);
  transform: translateY(-2px);
}

/* Dashboard responsive */
@media (max-width: 1024px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex;
  }

  .user-info {
    display: none;
  }

  .dashboard-content {
    padding: 20px 16px;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}

