/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #5b6abf;
  --primary-dark: #4a5ab5;
  --primary-light: #8b97e8;
  --text: #1a1a2e;
  --text-secondary: #555;
  --bg: #ffffff;
  --bg-subtle: #f8f9fc;
  --bg-dark: #12132a;
  --border: #e2e4ea;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s, transform 0.1s;
  border: 2px solid transparent;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0f5; transform: translateY(-1px); }

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a:not(.btn) { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; }
.nav-links a:not(.btn):hover { color: var(--primary); }

/* === Hero === */
.hero {
  padding: 80px 0 60px;
  background: var(--bg-subtle);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.highlight { color: var(--primary); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.8rem; color: #888; }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* === Section Titles === */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* === Features === */
.features { padding: 100px 0; }
.features .section-title { margin-bottom: 56px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(91, 106, 191, 0.1);
  transform: translateY(-2px);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 600; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* === Preview === */
.preview {
  padding: 80px 0 100px;
  background: var(--bg-subtle);
}
.preview .section-title { margin-bottom: 8px; }
.preview-image {
  max-width: 900px;
  margin: 0 auto;
}
.preview-image img {
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

/* === Details === */
.details-section { padding: 100px 0; }
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.details-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
}
.details-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.details-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }
.details-card img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* === Pricing === */
.pricing {
  padding: 100px 0;
  background: var(--bg-subtle);
}
.pricing .section-title { margin-bottom: 48px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}
.pricing-card-popular {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(91, 106, 191, 0.15);
}
.pricing-badge {
  display: inline-block;
  background: var(--primary-light);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.pricing-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-secondary); }
.pricing-desc { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 24px; }
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}
.pricing-card .btn { width: 100%; text-align: center; }

/* === CTA === */
.cta {
  padding: 100px 0;
  background: var(--bg-dark);
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.8rem; color: #999; }

/* === Mobile === */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .feature-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }

  .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .nav-links a:not(.btn) { display: none; }
}
