/*
Theme Name: CustomTheme
Description: WebHaven custom landing page theme
Version: 1.0
*/

:root {
  --navy:  #050c1a;
  --navy2: #091220;
  --navy3: #0d1b2e;
  --card:  #0e1c30;
  --blue:  #1d6ef5;
  --blue2: #2f7fff;
  --cyan:  #38bdf8;
  --white: #f0f6ff;
  --muted: #7a96b8;
  --border: rgba(45,100,200,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 90px;
  background: rgba(5,12,26,0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--white); text-decoration: none; letter-spacing: -0.5px; }
.nav-logo span { color: var(--blue2); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 0.45rem 1.1rem; border-radius: 6px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--blue2) !important; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 5% 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,110,245,0.22) 0%, transparent 70%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(56,189,248,0.1) 0%, transparent 60%), var(--navy); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(29,110,245,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(29,110,245,0.06) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 80%); }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(29,110,245,0.12); border: 1px solid rgba(29,110,245,0.3); border-radius: 100px; padding: 0.35rem 1rem; font-size: 0.8rem; font-weight: 600; color: var(--cyan); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.8rem; }
.hero-badge::before { content: '●'; font-size: 0.55rem; color: #22c55e; }
h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 1.4rem; }
h1 .accent { color: var(--blue2); }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--muted); font-weight: 300; line-height: 1.65; max-width: 580px; margin: 0 auto 2.4rem; }
.hero-bullets { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }
.hero-bullet { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.hero-bullet svg { color: #22c55e; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .2s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 0 30px rgba(29,110,245,0.35); }
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--white); border-color: rgba(45,100,200,0.4); }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* SECTIONS */
section { position: relative; padding: 90px 5%; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue2); margin-bottom: 0.8rem; }
h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.9rem, 3.5vw, 2.9rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 1rem; }
.section-desc { color: var(--muted); font-size: 1.05rem; font-weight: 300; line-height: 1.7; max-width: 520px; }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* HOW IT WORKS */
#how-it-works { background: var(--navy2); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5px; margin-top: 3.5rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.step { background: var(--card); padding: 2.2rem 1.8rem; }
.step-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 3.5rem; font-weight: 800; color: rgba(29,110,245,0.12); line-height: 1; margin-bottom: 0.8rem; }
.step h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* PRICING */
#pricing { background: var(--navy); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; max-width: 1000px; margin-left: auto; margin-right: auto; }
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 1.8rem 1.8rem; display: flex; flex-direction: column; position: relative; transition: border-color .25s, transform .25s, box-shadow .25s; cursor: pointer; }
.plan-card:hover { border-color: rgba(29,110,245,0.5); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.plan-card.popular { border-color: var(--blue); box-shadow: 0 0 50px rgba(29,110,245,0.2); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.9rem; border-radius: 100px; white-space: nowrap; }
.plan-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.plan-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 3rem; font-weight: 800; letter-spacing: -2px; line-height: 1; margin-bottom: 0.3rem; }
.plan-price sup { font-size: 1.4rem; vertical-align: super; letter-spacing: 0; }
.plan-price-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.4rem; }
.plan-divider { height: 1px; background: var(--border); margin: 1.2rem 0; }
.plan-features { list-style: none; margin-bottom: 1.8rem; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--muted); padding: 0.4rem 0; line-height: 1.4; }
.plan-features li svg { color: #22c55e; flex-shrink: 0; margin-top: 1px; }
.plan-features li.dim svg { color: var(--muted); }
.plan-features li.dim { opacity: 0.45; }
.btn-plan { width: 100%; justify-content: center; padding: 0.8rem; border-radius: 8px; background: rgba(29,110,245,0.1); border: 1px solid rgba(29,110,245,0.3); color: var(--blue2); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all .2s; display: flex; align-items: center; font-family: 'Plus Jakarta Sans', sans-serif; }
.plan-card.popular .btn-plan { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-plan:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.plan-delivery { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }

/* CHECKOUT */
#checkout-flow { background: var(--navy2); display: none; }
#checkout-flow.active { display: block; }
.checkout-container { max-width: 700px; margin: 0 auto; }
.flow-steps { display: flex; margin-bottom: 3rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.flow-step { flex: 1; padding: 0.9rem; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.flow-step.active { background: rgba(29,110,245,0.12); color: var(--blue2); }
.flow-step.done { color: #22c55e; }
.flow-step-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.72rem; font-weight: 700; margin-right: 0.4rem; background: rgba(255,255,255,0.06); }
.flow-step.active .flow-step-num { background: var(--blue); color: #fff; }
.flow-step.done .flow-step-num { background: #22c55e; color: #fff; }
.checkout-panel { display: none; }
.checkout-panel.active { display: block; }
.selected-plan-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem 1.6rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.selected-plan-info h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.selected-plan-info p { font-size: 0.85rem; color: var(--muted); }
.selected-plan-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--blue2); letter-spacing: -1px; }
.selected-plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.change-plan { font-size: 0.78rem; color: var(--blue2); cursor: pointer; text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
input, textarea, select { background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--white); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.92rem; padding: 0.75rem 1rem; outline: none; transition: border-color .2s; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
input::placeholder, textarea::placeholder { color: rgba(122,150,184,0.5); }
select option { background: var(--navy3); }
textarea { resize: vertical; min-height: 90px; }
.btn-full { width: 100%; justify-content: center; margin-top: 1.4rem; padding: 0.95rem; }
.payment-summary { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; margin-bottom: 1.5rem; }
.payment-summary h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; margin-bottom: 1.2rem; font-size: 1rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 1rem; }
.stripe-note { display: flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; color: var(--muted); background: rgba(29,110,245,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; }
.stripe-note svg { flex-shrink: 0; color: var(--blue2); }
.btn-stripe { background: #635bff; color: #fff; border: none; box-shadow: 0 0 30px rgba(99,91,255,0.3); }
.btn-stripe:hover { background: #7c75ff; }

/* SHOWCASE */
#showcase { background: var(--navy2); }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.showcase-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .25s, border-color .25s; }
.showcase-card:hover { transform: translateY(-4px); border-color: rgba(29,110,245,0.4); }
.showcase-img { width: 100%; height: 200px; overflow: hidden; }
.showcase-img a { display: block; width: 100%; height: 100%; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.showcase-card:hover .showcase-img img { transform: scale(1.03); }
.showcase-body { padding: 1.3rem; }
.showcase-body h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.showcase-body a { font-size: 0.8rem; color: var(--blue2); text-decoration: none; }
.showcase-body p { font-size: 0.83rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.55; }

/* FAQ */
#faq { background: var(--navy); }
.faq-grid { max-width: 780px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 0; font-weight: 600; font-size: 0.95rem; cursor: pointer; gap: 1rem; user-select: none; }
.faq-q:hover { color: var(--blue2); }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: rgba(29,110,245,0.1); border: 1px solid rgba(29,110,245,0.2); display: flex; align-items: center; justify-content: center; color: var(--blue2); font-size: 1rem; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 0.88rem; color: var(--muted); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.2rem; }

/* CTA */
.cta-strip { background: linear-gradient(135deg, rgba(29,110,245,0.15) 0%, rgba(56,189,248,0.08) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 70px 5%; text-align: center; }
.cta-strip h2 { margin-bottom: 0.6rem; }
.cta-strip p { color: var(--muted); margin-bottom: 2rem; }

/* FOOTER */
footer { background: var(--navy2); border-top: 1px solid var(--border); padding: 2.5rem 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.1rem; }
.footer-brand span { color: var(--blue2); }
footer p { font-size: 0.8rem; color: var(--muted); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge   { animation: fadeUp .6s ease both; animation-delay: .1s;  opacity: 0; }
.hero h1      { animation: fadeUp .7s ease both; animation-delay: .22s; opacity: 0; }
.hero-sub     { animation: fadeUp .7s ease both; animation-delay: .34s; opacity: 0; }
.hero-bullets { animation: fadeUp .7s ease both; animation-delay: .44s; opacity: 0; }
.hero-btns    { animation: fadeUp .7s ease both; animation-delay: .54s; opacity: 0; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .selected-plan-box { flex-direction: column; text-align: center; }
  .flow-step { font-size: 0.72rem; padding: 0.7rem 0.4rem; }
}

  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  padding: 0.85rem !important;
  border-bottom: none !important;
  font-weight: 600 !important;
}
@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .selected-plan-box { flex-direction: column; text-align: center; }
  .flow-step { font-size: 0.72rem; padding: 0.7rem 0.4rem; }
}