/* Layout & Spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 200ms ease-out;
}

a:hover {
  color: var(--accent);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 1rem 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-name {
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 200ms ease-out;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 300ms ease-out;
}

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

/* Buttons */
.btn {
  font-family: var(--font-body);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  box-shadow: var(--shadow-2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.btn-ghost:hover {
  background: var(--brand);
  color: white;
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  min-height: 44px;
  min-width: 44px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 300ms ease-out;
}

.card-header {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

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

.floating-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  animation: float 3s ease-in-out infinite;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(139, 92, 246, 0.05));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.05);
  box-shadow: var(--shadow-3);
  border-color: var(--brand);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.featured-badge {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
}

.price-amount {
  margin: 2rem 0 2rem 0;
  text-align: center;
}

.currency {
  font-size: 0.9rem;
  color: var(--muted);
  margin-right: 0.25rem;
}

.amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
}

.period {
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

.features-list {
  list-style: none;
  flex: 1;
  margin: 2rem 0;
}

.features-list li {
  padding: 0.75rem 0;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.features-list li:last-child {
  border-bottom: none;
}

/* Stats Section */
.stats {
  padding: 60px 0;
  background: var(--bg);
}

.stats-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-box {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.stat-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  text-align: center;
  color: white;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta .btn {
  background: white;
  color: var(--brand);
}

.cta .btn:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
  padding: 0.5rem 0;
  transition: color 200ms ease-out;
}

.footer-section a:hover {
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  animation: reveal-in 1s ease-out forwards;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-visual {
    height: 300px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .floating-card {
    width: 100%;
    position: static;
    animation: none;
  }

  .stats-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-box {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 15px;
  }

  .navbar .container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem;
    order: 3;
    width: 100%;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .features {
    padding: 40px 0;
  }

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

  .pricing {
    padding: 40px 0;
  }

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

  .price-amount {
    margin: 1.5rem 0;
  }

  .cta {
    padding: 40px 0;
  }

  .cta h2 {
    font-size: 1.5rem;
  }

  .cta p {
    font-size: 1rem;
  }

  .footer-content {
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .navbar {
    background: rgba(17, 24, 39, 0.95);
  }
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating-card {
    animation: none;
  }
}
