/* ── Base ────────────────────────────────────────── */
:root {
  --primary:   #6366f1;
  --primary-d: #4338ca;
  --secondary: #8b5cf6;
  --accent:    #f59e0b;
  --dark:      #0f172a;
  --text:      #334155;
  --muted:     #64748b;
  --surface:   #f8fafc;
  --glass:     rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
}

* { font-family: 'Inter', sans-serif; }
body { background: #fff; color: var(--text); overflow-x: hidden; }
a { text-decoration: none; }

/* ── Navbar ──────────────────────────────────────── */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #064e3b;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.lp-nav.scrolled {
  background: #064e3b;
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner { 
  display: grid; 
  grid-template-columns: auto 1fr auto; 
  align-items: center; 
  gap: clamp(1rem, 3vw, 2.5rem);
}
.nav-logo { display: inline-flex; align-items: center; position: relative; padding-bottom: 7px; }
.nav-logo::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 4px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; justify-content: center; }
.nav-links a { color: rgba(255,255,255,0.7); font-weight: 600; font-size: clamp(0.75rem, 1.2vw, 0.85rem); letter-spacing: 0.02em; transition: all 0.3s; }
.nav-links a:hover { color: #fff; transform: translateY(-1px); }
.lp-nav.scrolled .nav-links a { color: rgba(255,255,255,0.8); }
.lp-nav.scrolled .nav-links a:hover { color: #fff; }

.nav-cta { display: flex; gap: clamp(0.5rem, 1.5vw, 1rem); align-items: center; justify-content: flex-end; }
.nav-cta .btn { letter-spacing: 0.03em; border-radius: 50px; font-weight: 600; }

/* ── Dropdown & Mega Menu ────────────────────────── */
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
  padding: 20px; min-width: 240px; margin-top: 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 1000;
}
.nav-links .dropdown-mega .dropdown-menu {
  min-width: 650px;
  padding: 28px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1200px) {
  .nav-links .dropdown-mega .dropdown-menu {
    min-width: 500px;
  }
}
.nav-links .dropdown:hover .dropdown-menu { display: block; animation: dropdownFade 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes dropdownFade { from { opacity: 0; transform: translateX(-50%) translateY(15px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* Mega Menu Grid */
.mega-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr) !important; 
  gap: 20px; 
}

.dropdown-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px; border-radius: 14px; transition: all 0.25s;
  color: rgba(255,255,255,0.75) !important;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}
.dropdown-card:hover {
  background: rgba(255,255,255,0.05);
  color: #fff !important;
  transform: translateX(5px);
}
.dropdown-card i {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.1); color: var(--primary);
  font-size: 1rem; flex-shrink: 0;
}
.dropdown-card-info { display: flex; flex-direction: column; gap: 2px; }
.dropdown-card-title { font-weight: 700; font-size: 0.9rem; margin: 0; }
.dropdown-card-desc { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin: 0; line-height: 1.3; }

/* Utility to close on click */
.dropdown-menu.force-hide { 
  display: none !important; 
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: #fff !important;
  display: flex;
  align-items: center;
  padding: clamp(100px, 15vh, 180px) 0 clamp(60px, 10vh, 120px);
  position: relative; overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  z-index: 1;
}
@media (min-width: 992px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}
.hero::before {
  content:'';
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  background: #fff !important;
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; pointer-events: none; }
.blob-1 { width: 500px; height: 500px; background:#6366f1; top:-100px; right:-100px; animation: float 8s ease-in-out infinite; }
.blob-2 { width: 350px; height: 350px; background:#f59e0b; bottom:-80px; left:-80px; animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-30px)} }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary); padding: 6px 16px; border-radius: 50px;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem); font-weight: 600; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 900; color: var(--dark); line-height: 1.1; }
.hero-title span { background: linear-gradient(135deg, var(--primary), #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.75; max-width: 520px; }

.btn-primary-glow {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; padding: 16px 36px;
  border-radius: 14px; font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
  transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary-glow:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(99,102,241,0.6); color:#fff; }
.btn-outline-glass {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 16px 36px; border-radius: 14px; font-weight: 600; font-size: 1rem;
  transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-outline-glass:hover { background: rgba(255,255,255,0.15); color:#fff; }

/* Hero Choice Cards */
.hero-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 40px; }
.hero-choice-card {
  background: #fff; border: 1px solid #e2e8f0; backdrop-filter: blur(12px);
  border-radius: 16px; padding: 24px; text-align: left; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; gap: 12px; transform: perspective(1000px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.hero-choice-card:hover { transform: translateY(-5px) rotateX(2deg); background: #fff; border-color: rgba(99, 102, 241, 0.45); box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12); }
.hero-choice-card.popular { border-color: var(--primary); background: rgba(99, 102, 241, 0.06); }

.hc-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: rgba(99,102,241,0.1); color: var(--primary); }
.hero-choice-card.popular .hc-icon { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.hc-title { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.2; color: var(--dark); }
.hc-sub { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.4; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  align-items: center;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 700;
  line-height: 1.2;
}
.hero-stat-divider {
  width: 1px;
  height: 30px;
  background: #cbd5e1;
}

/* ── Section shared ──────────────────────────────── */
section { padding: clamp(80px, 12vw, 140px) 0; }
.section-label {
  display: inline-flex; align-items:center; gap: 8px;
  background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25);
  padding: 8px 24px; border-radius: 50px; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px;
}
.section-title { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; color: var(--dark); line-height: 1.1; letter-spacing: -0.02em; }
.section-sub { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--muted); max-width: 650px; margin: 1.5rem auto 0; line-height: 1.7; }
.text-white .section-title { color: #fff; }
.text-white .section-sub { color: rgba(255,255,255,0.7); }

/* ── Features ────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 3vw, 2rem);
}
.feature-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 32px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(99,102,241,0.1); border-color: var(--primary); }
.feat-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 24px; }
.feature-card h4 { font-weight: 800; font-size: 1.25rem; margin-bottom: 12px; color: var(--dark); }
.feature-card p { color: var(--muted); line-height: 1.6; margin: 0; }

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  #features .section-title { font-size: 1.75rem; }
  #features .section-sub { font-size: 0.95rem; }
  .feature-grid { gap: 0.85rem; }
  .feature-card { border-radius: 18px; padding: 18px 14px; }
  .feat-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.2rem; margin-bottom: 18px; }
  .feature-card h4 { font-size: 0.98rem; line-height: 1.2; margin-bottom: 8px; }
  .feature-card p { font-size: 0.82rem; line-height: 1.45; }
}

/* ── How it works ─────────────────────────────────── */
#how-it-works { background: #fff !important; }
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 3vw, 2rem);
}
.hiw-step {
  text-align: center;
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom: 4px solid #800000;
  border-radius: 20px;
  padding: 32px 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.step-icon-wrap {
  width: 80px; height: 80px; background: linear-gradient(135deg, #800000, #a52a2a);
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; box-shadow: 0 10px 25px rgba(99,102,241,0.3);
  position: relative; z-index: 2;
}
.step-icon-wrap i { font-size: 1.8rem; color: #fff; }
.step-num { position: absolute; top: -10px; right: -10px; width: 32px; height: 32px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #800000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 0.9rem; }
.hiw-step h5 { color: #0f172a; }
.hiw-step p { color: #111827; font-size: 0.9rem; line-height: 1.55; margin: 0; }
#how-it-works .btn-primary-glow {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom: 4px solid #800000;
  box-shadow: 0 16px 40px rgba(128, 0, 0, 0.12);
}
#how-it-works .btn-primary-glow:hover {
  border-color: #800000;
  color: #800000;
  box-shadow: 0 18px 45px rgba(128, 0, 0, 0.18);
}

@media (min-width: 992px) {
  .hiw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .hiw-grid { gap: 0.85rem; }
  .hiw-step { border-radius: 18px; padding: 18px 12px; }
  .step-icon-wrap { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 16px; }
  .step-icon-wrap i { font-size: 1.25rem; }
  .step-num { width: 26px; height: 26px; font-size: 0.78rem; top: -8px; right: -8px; }
  .hiw-step h5 { font-size: 0.95rem; line-height: 1.2; margin-bottom: 8px !important; }
  .hiw-step p { font-size: 0.78rem; line-height: 1.4; }
  #how-it-works .btn-primary-glow { padding: 14px 22px; width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Letter Section ────────────────────────────── */
.letter-type-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(12px);
  border-radius: 24px; padding: 32px; height: 100%; transition: all 0.3s;
}
.letter-type-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.type-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 20px; color: #fff; }

/* ── Templates ───────────────────────────────────── */
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.template-preview {
  border-radius: 16px; overflow: hidden; border: 2px solid #f1f5f9; background: #fff;
  transition: all 0.3s; position: relative;
}
.template-preview:hover { transform: scale(1.03); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* ── Pricing ─────────────────────────────────────── */
.pricing-section { background: #0f172a; padding: 120px 0; position: relative; overflow: hidden; }
.pricing-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(16px);
  border-radius: 32px; padding: 48px; color: #fff; transition: all 0.4s; position: relative;
}
.pricing-card:hover { transform: translateY(-10px); border-color: var(--primary); background: rgba(255, 255, 255, 0.05); }
.pricing-card.popular { border: 2px solid var(--primary); background: rgba(99, 102, 241, 0.08); }
.price-tag { font-size: 3.5rem; font-weight: 900; margin: 2rem 0; line-height: 1; }
.price-tag span { font-size: 1rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.price-feat { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.price-feat i { color: var(--primary); margin-top: 4px; }

/* ── Testimonials ────────────────────────────────── */
.testimonial-card {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 24px; padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.avatar-wrap { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.avatar-img { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }

/* ── Final CTA ───────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 40px; padding: 80px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-box::after { content:''; position: absolute; width:100%; height:100%; top:0; left:0; background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E"); opacity: 0.2; }

/* ── Mobile & Hamburger ───────────────────────────── */
.hamburger { display: none; background: none; border: none; padding: 10px; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }
@media (max-width: 991px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-logo { min-width: 0; }
  .nav-logo img { height: 36px; max-width: 92px; object-fit: contain; }
  .nav-cta { gap: 10px; }
  .nav-credit { display: none; }
  .nav-premium { font-size: 0.9rem; white-space: nowrap; }
}

@media (max-width: 380px) {
  .nav-logo img { max-width: 78px; }
  .nav-premium { font-size: 0.82rem; }
  .nav-premium i { display: none; }
}

.mobile-menu {
  position: fixed; top: 0; right: -300px; width: 300px; height: 100vh;
  background: #0f172a; z-index: 1000; padding: 40px 20px; transition: 0.4s;
}
.mobile-menu.active { right: 0; }
.mobile-nav-link { display: block; padding: 15px 0; color: #fff; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1); }
