/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #1B133C; overflow-x: hidden; }

/* Hero Section */
.hero { position: relative; height: 100vh; width: 100%; overflow: hidden; display: flex; flex-direction: column; }
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 130%; object-fit: cover; object-position: top; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,0.10); }

/* Nav */
.nav { position: relative; z-index: 10; display: flex; justify-content: center; padding-top: 1rem; }
@media (min-width: 768px) { .nav { padding-top: 1.5rem; } }
.nav-pill { background: rgba(255,255,255,0.70); backdrop-filter: blur(12px); border-radius: 0.75rem; padding: 0.75rem 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .nav-pill { padding: 0.75rem 1.5rem; } }
.nav-logo { width: 24px; height: 24px; fill: #1B133C; flex-shrink: 0; }
.nav-link { display: none; font-size: 0.875rem; font-weight: 500; color: rgba(27,19,60,0.80); text-decoration: none; cursor: pointer; transition: color 0.2s; }
@media (min-width: 640px) { .nav-link { display: inline; } }
.nav-link:hover { color: #1B133C; }

/* Content Wrapper – clips the sliding panels */
.content-stage { position: relative; z-index: 10; flex: 1; overflow: hidden; }

/* Panels shared */
.hero-panel, .plans-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Hero panel visible by default */
.hero-panel { transform: translateX(0); }
.hero-panel.exit { transform: translateX(-100%); }

/* Plans panel hidden to the right */
.plans-panel { transform: translateX(100%); }
.plans-panel.enter { transform: translateX(0); }

/* Badge */
.badge { margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.625rem; border-radius: 0.75rem; border: 1px solid rgba(27,19,60,0.10); background: rgba(255,255,255,0.70); backdrop-filter: blur(4px); padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; }
.badge-square { background: #f97316; border-radius: 0.25rem; width: 1.25rem; height: 1.25rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem; font-weight: 700; }

/* Heading */
.hero-heading { font-family: 'Instrument Serif', serif; font-size: 2.25rem; line-height: 0.95; letter-spacing: -0.02em; color: #1B133C; max-width: 56rem; }
@media (min-width: 640px) { .hero-heading { font-size: 3rem; } }
@media (min-width: 768px) { .hero-heading { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-heading { font-size: 6rem; } }

/* Subtitle */
.hero-sub { margin-top: 1.25rem; max-width: 48rem; font-size: 0.75rem; line-height: 1.625; color: rgba(27,19,60,0.70); }
@media (min-width: 640px) { .hero-sub { margin-top: 1.5rem; font-size: 0.875rem; } }
@media (min-width: 768px) { .hero-sub { font-size: 1rem; } }

/* CTA */
.cta { margin-top: 1.75rem; display: inline-block; border-radius: 0.75rem; background: #FEFEFE; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; color: #1B133C; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.3s; }
@media (min-width: 640px) { .cta { margin-top: 2rem; padding: 0.875rem 2rem; } }
.cta:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.20); }

/* Back link */
.back-link { margin-bottom: 2rem; font-size: 0.875rem; color: rgba(27,19,60,0.60); cursor: pointer; text-decoration: none; transition: color 0.2s; }
.back-link:hover { color: #1B133C; }

/* Plans title */
.plans-title { font-family: 'Instrument Serif', serif; font-size: 2rem; color: #1B133C; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .plans-title { font-size: 3rem; } }

/* Plan cards grid */
.plans-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; max-width: 64rem; width: 100%; padding: 0 1rem; }

/* Plan card */
.plan-card { flex: 1; min-width: 220px; max-width: 300px; background: rgba(255,255,255,0.75); backdrop-filter: blur(12px); border-radius: 1.25rem; border: 1px solid rgba(27,19,60,0.08); padding: 2.5rem 1.5rem; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.10); }
.plan-card h3 { font-family: 'Instrument Serif', serif; font-size: 1.5rem; color: #1B133C; margin-bottom: 0.75rem; }
.plan-card .plan-price { font-size: 2.25rem; font-weight: 600; color: #1B133C; margin-bottom: 1.25rem; }
.plan-card .plan-price span { font-size: 0.875rem; font-weight: 400; color: rgba(27,19,60,0.50); }
.plan-card ul { list-style: none; font-size: 0.9rem; color: rgba(27,19,60,0.70); line-height: 2.4; margin-bottom: 2rem; }
.plan-card .plan-cta { display: inline-block; border-radius: 0.75rem; background: #1B133C; color: #fff; padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.plan-card .plan-cta:hover { background: #2d2466; }

/* Close button on panels */
.panel-close { position: absolute; top: 1.5rem; right: 2rem; font-size: 1.5rem; color: rgba(27,19,60,0.50); cursor: pointer; background: none; border: none; transition: color 0.2s; }
.panel-close:hover { color: #1B133C; }

/* Info panels (features, security, about) */
.info-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: 5rem 1rem 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.info-panel.enter { transform: translateX(0); }
.info-title { font-family: 'Instrument Serif', serif; font-size: 2.5rem; color: #1B133C; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .info-title { font-size: 3.5rem; } }
.info-sub { font-size: 0.95rem; color: rgba(27,19,60,0.55); margin-bottom: 2.5rem; max-width: 32rem; }
@media (min-width: 768px) { .info-sub { font-size: 1.1rem; margin-bottom: 3rem; } }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 56rem; width: 100%; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: 1fr 1fr 1fr; } }
.feature-card { background: rgba(255,255,255,0.72); backdrop-filter: blur(10px); border-radius: 1rem; border: 1px solid rgba(27,19,60,0.06); padding: 1.5rem; text-align: left; transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1.05rem; color: #1B133C; margin-bottom: 0.375rem; font-weight: 600; }
.feature-card p { font-size: 0.85rem; color: rgba(27,19,60,0.60); line-height: 1.6; }

/* Security list */
.security-list { max-width: 48rem; width: 100%; display: flex; flex-direction: column; gap: 0; }
.security-item { display: flex; align-items: flex-start; gap: 1rem; text-align: left; padding: 1.25rem 0; border-bottom: 1px solid rgba(27,19,60,0.06); }
.security-icon { font-size: 1.75rem; flex-shrink: 0; margin-top: 0.125rem; }
.security-text h3 { font-size: 1.05rem; color: #1B133C; margin-bottom: 0.25rem; font-weight: 600; }
.security-text p { font-size: 0.875rem; color: rgba(27,19,60,0.55); line-height: 1.6; }

/* About */
.about-content { max-width: 40rem; text-align: center; margin-bottom: 2.5rem; }
.about-content p { font-size: 0.95rem; color: rgba(27,19,60,0.65); line-height: 1.8; margin-bottom: 1rem; }
@media (min-width: 768px) { .about-content p { font-size: 1.05rem; } }
.about-stats { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; max-width: 40rem; }
.stat { text-align: center; min-width: 100px; }
.stat-num { font-family: 'Instrument Serif', serif; font-size: 2rem; color: #1B133C; font-weight: 600; }
@media (min-width: 768px) { .stat-num { font-size: 2.5rem; } }
.stat-label { font-size: 0.8rem; color: rgba(27,19,60,0.50); margin-top: 0.25rem; }
