:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --accent: #f43f5e;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: transform 0.2s;
}
.logo:hover { transform: scale(1.04); }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.hero { padding: 100px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 14px; margin-bottom: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,70,229,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.trust { font-size: 13px; color: var(--text-muted); }
.trust .check { color: var(--primary); font-weight: 600; }

.hero-visual {
  background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
  border-radius: 20px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-pulse {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}
.hero-visual-inner { text-align: center; z-index: 1; }
.hero-icon {
  font-size: 72px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

.thought-section { background: var(--bg-alt); }
.thought {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 0;
}
.thought h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}
.thought p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.section { padding: 100px 0; }
.section-alt {
  background: var(--bg-alt);
  padding: 100px 0;
}
.section-header {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.3s, color 0.2s;
}
.section-link:hover { gap: 12px; color: var(--primary-dark); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.benefit-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s;
}
.benefit-card:hover .benefit-icon { transform: scale(1.2); }
.benefit-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.stat {
  text-align: center;
  padding: 44px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.calculator {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.calculator h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.calc-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.calc-row label {
  font-size: 14px;
  font-weight: 600;
}
.calc-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text);
}
.calc-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.calc-value {
  font-size: 18px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}
.calc-result {
  background: var(--primary-light);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  margin-top: 32px;
  transition: transform 0.3s;
}
.calc-result.pop { animation: pop 0.4s ease; }
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.result-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}
.result-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}
.result-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.calc-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
}

.testimonial {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  transition: box-shadow 0.3s;
}
.testimonial:hover { box-shadow: var(--shadow-lg); }
.testimonial blockquote {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
}
.testimonial-author {
  font-size: 14px;
  font-weight: 600;
}

.cta-final {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  right: -200px;
}
.cta-final h2 {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
}
.cta-final p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.btn-white {
  background: white;
  color: var(--primary);
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
  position: relative;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
}
.faq-item.open .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}
.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page { padding: 80px 0; min-height: 500px; }
.page h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}
.page-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.7;
}
.page-content { max-width: 800px; line-height: 1.8; }
.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 20px;
}
.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}
.page-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.page-content ul, .page-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
.page-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.page-content strong { color: var(--text); }
.page-content a { color: var(--primary); }
.page-content a:hover { color: var(--accent); }
.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
  text-align: center;
  font-size: 13px;
}
.footer p { margin-bottom: 8px; }
.footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: white; }

@media (max-width: 900px) {
  .hero { padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 36px; }
  .hero-visual { height: 280px; }
  .features-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 16px;
  }
  .nav.mobile-open { display: flex; }
  .nav.mobile-open a::after { display: none; }
  .nav.mobile-open .nav-cta { text-align: center; }
  .menu-toggle { display: block; }
  .section, .section-alt, .thought { padding: 60px 0; }
  .section-header h2 { font-size: 28px; }
  .cta-final { padding: 60px 0; }
  .cta-final h2 { font-size: 28px; }
  .hero-buttons { flex-direction: column; }
  .calculator { padding: 24px; }
  .calc-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page h1 { font-size: 32px; }
}

/* ===== DROPDOWN NAV ===== */
.nav-item { position: relative; }
.nav-item > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 0;
}
.nav-item > a:hover { color: var(--primary); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 200;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.dropdown a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

/* ===== FOOTER GRID ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 13px;
}
.footer-col a:hover { color: white; }
.footer-col p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* ===== BLOG POST LIST ===== */
.post-list { margin-top: 40px; }
.post-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.post-card .post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.post-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.post-card .post-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }
  .nav.mobile-open .dropdown { display: block; }
  .nav-item:hover .dropdown { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
