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

:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #A78BFA;
  --accent: #E879F9;
  --dark: #1E1035;
  --gray: #6B7280;
  --light: #FAF5FF;
  --gradient: linear-gradient(135deg, #7C3AED, #E879F9);
  --card-radius: 12px;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--gray); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(30, 16, 53, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO SECTIONS ===== */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: linear-gradient(135deg, #1E1035 0%, #2D1B4E 50%, #1E1035 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(232, 121, 249, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.7); max-width: 640px; margin: 0 auto 40px; }
.hero .btn-group { justify-content: center; }

.hero-home { padding-bottom: 60px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}
.section-light {
  background: var(--light);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header p {
  margin-top: 16px;
  font-size: 1.1rem;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border: 1px solid #EDE9FE;
  border-radius: var(--card-radius);
  padding: 32px;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.08);
  border-color: transparent;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }

/* ===== FEATURE GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 12px; }

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: var(--light);
  padding: 100px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #EDE9FE;
  border-radius: var(--card-radius);
  padding: 32px;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}
.testimonial-avatar {
  margin-bottom: 20px;
}
.testimonial-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #EDE9FE;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card cite {
  font-style: normal;
  color: var(--gray);
  font-size: 0.9rem;
}
.testimonial-card cite strong {
  display: block;
  color: var(--dark);
  font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1E1035, #2D1B4E);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 40px; font-size: 1.15rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-section .btn-group { justify-content: center; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border: 1px solid #EDE9FE;
  border-radius: var(--card-radius);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.pricing-card.featured {
  border: 2px solid var(--primary);
  position: relative;
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18);
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin: 16px 0 4px;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}
.pricing-desc {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 24px;
}
.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--dark);
  display: flex;
  align-items: start;
  gap: 10px;
}
.pricing-features li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #EDE9FE;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gray);
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
  content: '\2212';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}
.faq-answer p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 0 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.timeline-item h3 { margin-bottom: 8px; }

/* ===== VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid #EDE9FE;
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}
.blog-card-image {
  height: 180px;
  background: var(--gradient);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-image span {
  font-size: 3rem;
}
.blog-card-body {
  padding: 24px;
}
.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.blog-meta {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--gray);
}

/* Newsletter */
.newsletter {
  background: var(--light);
  padding: 80px 0;
  text-align: center;
}
.newsletter h2 { margin-bottom: 12px; }
.newsletter p { margin-bottom: 32px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #EDE9FE;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus {
  border-color: var(--primary);
}

/* ===== BLOG POST ===== */
.blog-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-post-header {
  margin-bottom: 40px;
}
.blog-post-header .blog-tag { margin-bottom: 16px; }
.blog-post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--dark);
}
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray);
  font-size: 0.95rem;
}
.blog-post-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-post-hero-img {
  width: 100%;
  border-radius: var(--card-radius);
  margin-bottom: 40px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-post-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--dark);
}
.blog-post-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--dark);
}
.blog-post-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #475569;
}
.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 20px 24px;
  color: #475569;
}
.blog-post-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}
.blog-post-content ol li { list-style: decimal; }
.blog-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--light);
  border-radius: 0 8px 8px 0;
}
.blog-post-content blockquote p {
  font-style: italic;
  color: var(--dark);
  margin-bottom: 8px;
}
.blog-post-content blockquote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gray);
}
.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.blog-post-content th,
.blog-post-content td {
  padding: 12px 16px;
  border: 1px solid #EDE9FE;
  text-align: left;
  color: #475569;
}
.blog-post-content th {
  background: var(--light);
  font-weight: 600;
  color: var(--dark);
}
.blog-post-content strong { color: var(--dark); }
.blog-post-content img {
  border-radius: var(--card-radius);
  margin: 24px 0;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== ABOUT NARRATIVE ===== */
.narrative {
  max-width: 720px;
  margin: 0 auto;
}
.narrative p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #475569;
}

/* ===== FEATURE DETAIL SECTIONS ===== */
.feature-section {
  padding: 80px 0;
}
.feature-section:nth-child(even) {
  background: var(--light);
}
.feature-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.feature-section-header h2 { margin-bottom: 12px; }
.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  margin-top: 12px;
  line-height: 1.7;
}
.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer ul li {
  margin-bottom: 12px;
}
.footer ul a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  font-size: 0.95rem;
}
.footer ul a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== ANIMATIONS ===== */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(30, 16, 53, 0.98);
  backdrop-filter: blur(12px);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 0;
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .nav-cta {
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid,
  .steps-grid,
  .pricing-grid,
  .values-grid,
  .blog-grid,
  .feature-detail-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero { padding: calc(var(--nav-height) + 48px) 0 48px; }
  .section { padding: 60px 0; }
  .cta-section { padding: 60px 0; }

  .newsletter-form { flex-direction: column; }

  .btn-group { flex-direction: column; align-items: center; }
  .btn-group .btn { width: 100%; max-width: 300px; }

  h1 { font-size: 2rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid,
  .blog-grid,
  .feature-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
