:root {
  color-scheme: light;
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-soft: #eff6ff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

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

body {
  font-family: "Manrope", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Background Pattern */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

.bg-orbit {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 80vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.1), transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.8), transparent 60%);
  z-index: -1;
}

/* Header & Nav */
.site-header {
  padding: 24px 24px 80px;
}

.nav {
  max-width: var(--max);
  margin: 0 auto 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 6px;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-2);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-strong);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent-soft);
  box-shadow: none;
}

/* Hero Section */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
  color: var(--ink);
}

.hero-copy h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--accent-strong);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.trust {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Dashboard Mockup */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.dashboard-mockup {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
  transform: rotateY(0) rotateX(0);
}

.mockup-header {
  height: 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  background: var(--surface-2);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #10b981; }

.mockup-body {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mockup-stat-card {
  background: var(--surface-2);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.mockup-stat-card .label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  margin-top: 4px;
}

.mockup-stat-card .value.positive { color: #10b981; }

.mockup-chart {
  height: 160px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.mockup-chart::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--accent-soft), transparent);
}

.mockup-chart svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

/* Sections */
.section {
  padding: 100px 24px;
}

.section-head {
  max-width: 600px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin-top: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Bento Grid Features */
.bento-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, auto);
}

.bento-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-item.large {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-item h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.bento-item p {
  color: var(--muted);
  font-size: 1rem;
}

.bento-visual {
  margin-top: 24px;
  flex-grow: 1;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Steps */
.steps {
  background: var(--ink);
  color: white;
  position: relative;
}

.steps .section-head h2 {
  color: white;
}

.steps .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #93c5fd;
}

.steps-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.step-number {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.step p {
  color: #94a3b8;
}

/* Pricing */
.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

.price-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(1.05);
}

.plan-header {
  margin-bottom: 24px;
}

.plan-header h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.price {
  font-family: "Outfit", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.price span {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-description {
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.price-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
}

.price-card ul li svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
}

/* Testimonials */
.testimonial-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial blockquote {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-strong);
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
}

.author-info span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
.footer {
  padding: 80px 24px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-cta {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  padding: 64px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.footer-cta h2 {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.footer-cta p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-copy h1 {
    font-size: clamp(2.4rem, 8vw, 3rem);
  }
  
  .subtitle {
    margin: 0 auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .trust {
    justify-content: center;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-item.large {
    grid-column: span 1;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    border-radius: 16px;
    padding: 20px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
