/* ============================================================
   STUDIO 8S PAKISTAN — BRAND-ALIGNED CSS
   Mirrors studio8s.com: dark nav, white body, blue CTAs,
   Nunito/Nunito Sans fonts, professional clean layout
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ===== BRAND TOKENS ===== */
:root {
  --s8-blue:       #0057ff;
  --s8-blue-dark:  #0041cc;
  --s8-blue-light: #e8eeff;
  --s8-dark:       #0d1117;
  --s8-charcoal:   #1e2430;
  --s8-text:       #374151;
  --s8-muted:      #6b7280;
  --s8-border:     #e5e7eb;
  --s8-bg:         #ffffff;
  --s8-bg-alt:     #f8f9fc;
  --s8-green:      #10b981;
  --s8-red:        #ef4444;
  --s8-orange:     #f59e0b;
  /* System sans-serif stack — no Google Fonts needed, loads instantly */
  --font-h: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-b: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.09);
}
/* 17px base on ALL devices */
html { font-size: 17px; }
body { font-family: var(--font-b); background: var(--s8-bg); color: var(--s8-text); font-size: 17px; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { font-family: var(--font-h); color: var(--s8-dark); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { font-size: 17px; line-height: 1.75; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--s8-bg-alt); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; color: var(--s8-blue); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.section-h2 { margin-bottom: 16px; }
.section-sub { color: var(--s8-muted); font-size: 17px; max-width: 580px; margin-bottom: 48px; line-height: 1.75; }
.hidden { display: none !important; }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--s8-charcoal); height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 34px; }
.nav-logo-fallback { font-weight: 900; font-size: 1.3rem; color: #fff; }
.nav-pk-badge { background: var(--s8-blue); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--s8-blue); color: #fff; font-size: 15px; font-weight: 700; padding: 11px 24px; border-radius: var(--r-sm); transition: background .2s,transform .15s; white-space: nowrap; }
.nav-cta:hover { background: var(--s8-blue-dark); transform: translateY(-1px); }

/* ===== HERO — Animated Canvas Background ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 110px 24px 70px;
  background: var(--s8-charcoal);
  position: relative; overflow: hidden; text-align: center;
}
/* Animated canvas sits behind everything */
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
/* Overlay gradient for readability */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,17,23,0.82) 0%,
    rgba(30,36,48,0.70) 50%,
    rgba(0,87,255,0.18) 100%
  );
  z-index: 1; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,87,255,.18); border: 1px solid rgba(0,87,255,.4); color: #7aabff; font-size: 12px; font-weight: 700; padding: 7px 18px; border-radius: 20px; margin-bottom: 28px; text-transform: uppercase; letter-spacing: .08em; animation: fadeUp .5s ease both; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #2dca72; box-shadow: 0 0 0 3px rgba(45,202,114,.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.hero-h1 { font-size: clamp(2.4rem,6vw,4.2rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; animation: fadeUp .5s ease .1s both; }
.hero-h1 em { font-style: normal; color: #5b9dff; }
.hero-sub { font-size: 19px; color: rgba(255,255,255,.72); max-width: 580px; margin: 0 auto 38px; line-height: 1.75; animation: fadeUp .5s ease .2s both; font-weight: 400; }
.hero-steps { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 38px; animation: fadeUp .5s ease .3s both; }
.hs { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 9px 18px; border-radius: var(--r-sm); }
.hs-n { font-size: 11px; font-weight: 900; color: var(--s8-blue); background: rgba(0,87,255,.18); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hs-t { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); }
.hs-arrow { color: rgba(255,255,255,.2); font-size: 15px; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--s8-blue); color: #fff; font-size: 17px; font-weight: 700; padding: 17px 40px; border-radius: var(--r-sm); transition: all .2s; box-shadow: 0 4px 24px rgba(0,87,255,.45); animation: fadeUp .5s ease .4s both; }
.hero-btn:hover { background: var(--s8-blue-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,87,255,.55); }
.hero-stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 56px; position: relative; z-index: 2; animation: fadeUp .5s ease .5s both; }
.hstat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 18px 24px; text-align: center; min-width: 130px; backdrop-filter: blur(4px); }
.hstat-val { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.hstat-val.blue { color: #7aabff; }
.hstat-val span { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.45); }
.hstat-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.38); margin-top: 5px; text-transform: uppercase; letter-spacing: .07em; }

/* ===== HOW IT WORKS ===== */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 22px; margin-bottom: 28px; }
.how-card { background: #fff; border: 1px solid var(--s8-border); border-radius: var(--r-lg); padding: 34px 28px; position: relative; overflow: hidden; transition: box-shadow .2s,transform .2s; }
.how-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.how-card::after { content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--s8-blue); transform: scaleX(0); transform-origin: left; transition: transform .3s; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.how-card:hover::after { transform: scaleX(1); }
.how-step-num { font-size: 3.5rem; font-weight: 900; color: var(--s8-blue-light); line-height: 1; position: absolute; top: 12px; right: 18px; }
.how-icon { width: 54px; height: 54px; border-radius: var(--r-md); background: var(--s8-blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }
.how-card h3 { font-size: 17px; margin-bottom: 10px; }
.how-card p { font-size: 16px; color: var(--s8-muted); line-height: 1.7; }
.netflix-callout { background: linear-gradient(135deg,#0d1117,#1a2236); border-radius: var(--r-lg); padding: 24px 28px; display: flex; align-items: flex-start; gap: 16px; border: 1px solid rgba(0,87,255,.2); }
.nc-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.nc-text { font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.75; }
.nc-text strong { color: #fff; }
.nc-text .blue { color: #7aabff; }

/* ===== PLANS ===== */
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.plan-card { background: #fff; border: 1.5px solid var(--s8-border); border-radius: var(--r-xl); padding: 38px 30px; position: relative; transition: box-shadow .25s,transform .25s; }
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.plan-card-featured { border-color: var(--s8-blue); box-shadow: 0 0 0 4px rgba(0,87,255,.07),var(--shadow-md); transform: scale(1.03); z-index: 1; }
.plan-card-featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--s8-blue); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 18px; border-radius: 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: .07em; box-shadow: 0 4px 12px rgba(0,87,255,.35); }
.plan-icon { font-size: 2.2rem; margin-bottom: 14px; }
.plan-name { font-size: 12px; font-weight: 800; color: var(--s8-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.plan-price { font-size: 2.6rem; font-weight: 900; color: var(--s8-dark); line-height: 1; margin-bottom: 6px; }
.plan-price sub { font-size: 15px; font-weight: 500; color: var(--s8-muted); }
.plan-tagline { font-size: 15px; color: var(--s8-muted); margin-bottom: 22px; }
.plan-divider { border: none; border-top: 1px solid var(--s8-border); margin: 18px 0; }
.plan-features { list-style: none; margin-bottom: 26px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--s8-text); padding: 8px 0; border-bottom: 1px solid #f3f4f6; line-height: 1.55; }
.plan-features li:last-child { border: none; }
.pf-yes { color: var(--s8-green); font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.pf-no  { color: #d1d5db; font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.pf-no + span { color: #9ca3af; }
.plan-btn { display: block; width: 100%; padding: 15px; border-radius: var(--r-sm); font-size: 17px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: all .2s; text-align: center; }
.plan-btn-outline { border-color: var(--s8-border); color: var(--s8-dark); background: transparent; }
.plan-btn-outline:hover { border-color: var(--s8-blue); color: var(--s8-blue); }
.plan-btn-primary { background: var(--s8-blue); color: #fff; border-color: var(--s8-blue); box-shadow: 0 4px 16px rgba(0,87,255,.3); }
.plan-btn-primary:hover { background: var(--s8-blue-dark); transform: translateY(-1px); }

/* ===== FORM ===== */
.form-section { padding: 88px 0; background: var(--s8-bg-alt); }
.form-card { background: #fff; border: 1px solid var(--s8-border); border-radius: var(--r-xl); padding: 44px 48px; max-width: 820px; margin: 0 auto 28px; box-shadow: var(--shadow-sm); animation: fadeUp .4s ease; }
.step-indicator { display: flex; align-items: center; margin-bottom: 34px; }
.si { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; background: #f3f4f6; border: 2px solid var(--s8-border); color: var(--s8-muted); flex-shrink: 0; }
.si-active { background: var(--s8-blue); border-color: var(--s8-blue); color: #fff; box-shadow: 0 0 0 4px rgba(0,87,255,.12); }
.si-done { background: var(--s8-green); border-color: var(--s8-green); color: #fff; }
.si-line { flex: 1; height: 2px; background: var(--s8-border); margin: 0 6px; }
.si-line-done { background: var(--s8-green); }
.form-step-title { font-size: 1.5rem; font-weight: 800; color: var(--s8-dark); margin-bottom: 8px; }
.form-step-sub { font-size: 16px; color: var(--s8-muted); margin-bottom: 28px; line-height: 1.65; }
.field-group { margin-bottom: 22px; }
.field-group label { display: block; font-size: 15px; font-weight: 700; color: var(--s8-dark); margin-bottom: 8px; }
.req { color: var(--s8-blue); }
.field-group input,.field-group textarea,.field-group select { width: 100%; background: #fff; border: 1.5px solid var(--s8-border); border-radius: var(--r-sm); padding: 13px 16px; font-size: 17px; color: var(--s8-dark); font-family: inherit; transition: border-color .2s,box-shadow .2s; outline: none; }
.field-group input:focus,.field-group textarea:focus { border-color: var(--s8-blue); box-shadow: 0 0 0 3px rgba(0,87,255,.08); }
.field-group textarea { resize: vertical; line-height: 1.7; }
.field-hint { font-size: 14px; color: var(--s8-muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 9px; }
.ic { background: var(--s8-bg-alt); border: 1.5px solid var(--s8-border); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--s8-muted); text-align: center; transition: all .15s; }
.ic:hover,.ic.active { border-color: var(--s8-blue); color: var(--s8-blue); background: var(--s8-blue-light); }
.color-style-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 9px; }
.cs { background: var(--s8-bg-alt); border: 1.5px solid var(--s8-border); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--s8-muted); text-align: center; transition: all .15s; }
.cs:hover,.cs.active { border-color: var(--s8-blue); color: var(--s8-blue); background: var(--s8-blue-light); }
.form-btn { width: 100%; padding: 16px; margin-top: 8px; background: var(--s8-blue); color: #fff; border: none; border-radius: var(--r-sm); font-size: 17px; font-weight: 700; cursor: pointer; transition: all .2s; box-shadow: 0 4px 16px rgba(0,87,255,.25); }
.form-btn:hover { background: var(--s8-blue-dark); box-shadow: 0 6px 24px rgba(0,87,255,.35); transform: translateY(-1px); }
.form-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== LAYOUTS ===== */
.layouts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.layout-option { border: 2px solid var(--s8-border); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all .2s; background: #fff; position: relative; }
.layout-option:hover { border-color: var(--s8-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.layout-option.selected { border-color: var(--s8-blue); box-shadow: 0 0 0 4px rgba(0,87,255,.1); }
.lo-preview { height: 148px; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.lo-bar { border-radius: 3px; flex-shrink: 0; }
.lo-info { padding: 14px 16px; }
.lo-name { font-size: 15px; font-weight: 800; color: var(--s8-dark); margin-bottom: 4px; }
.lo-desc { font-size: 13px; color: var(--s8-muted); line-height: 1.55; }
.lo-badge { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.lo-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--s8-blue); color: #fff; font-size: 13px; display: none; align-items: center; justify-content: center; }
.layout-option.selected .lo-check { display: flex; }
.layout-loading { text-align: center; padding: 48px; color: var(--s8-muted); }
.layout-loading p { font-size: 17px; }
.layout-spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--s8-border); border-top-color: var(--s8-blue); animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.dots::after { content:''; animation: dots 1.5s steps(4,end) infinite; }
@keyframes dots { 0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'} }

/* ===== INLINE PLANS (step 3) ===== */
.inline-plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.ip-card { background: var(--s8-bg-alt); border: 2px solid var(--s8-border); border-radius: var(--r-lg); padding: 24px; cursor: pointer; transition: all .15s; }
.ip-card:hover,.ip-card.selected { border-color: var(--s8-blue); background: var(--s8-blue-light); }
.ip-card.ip-featured { border-color: rgba(0,87,255,.35); }
.ip-pop { font-size: 11px; font-weight: 800; color: var(--s8-blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.ip-name { font-size: 1.15rem; font-weight: 800; color: var(--s8-dark); }
.ip-price { font-size: 1.6rem; font-weight: 900; color: var(--s8-blue); margin: 6px 0; }
.ip-price span { font-size: 13px; color: var(--s8-muted); font-weight: 500; }
.ip-pages { font-size: 12px; font-weight: 700; color: var(--s8-muted); margin-bottom: 13px; text-transform: uppercase; letter-spacing: .06em; }
.ip-features { list-style: none; font-size: 14px; color: var(--s8-text); }
.ip-features li { padding: 4px 0; }
.ip-features li::before { content: '✓ '; color: var(--s8-green); font-weight: 700; }

/* ===== PAYMENT ===== */
.order-summary { background: var(--s8-bg-alt); border: 1px solid var(--s8-border); border-radius: var(--r-md); padding: 24px; }
.os-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 16px; }
.os-row:last-child { border: none; font-weight: 800; color: var(--s8-blue); font-size: 18px; }
.os-label { color: var(--s8-muted); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.pm-card { background: var(--s8-bg-alt); border: 2px solid var(--s8-border); border-radius: var(--r-lg); padding: 20px; cursor: pointer; transition: all .15s; }
.pm-card:hover { border-color: var(--s8-blue); }
.pm-card.active { border-color: var(--s8-blue); background: var(--s8-blue-light); }
.pm-icon { font-size: 2rem; margin-bottom: 10px; }
.pm-name { font-size: 17px; font-weight: 800; color: var(--s8-dark); margin-bottom: 4px; }
.pm-desc { font-size: 14px; color: var(--s8-muted); }
.payment-instructions { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r-md); padding: 20px; font-size: 16px; color: var(--s8-text); line-height: 1.75; }
.payment-instructions h4 { font-size: 16px; font-weight: 700; color: var(--s8-dark); margin-bottom: 10px; }

/* ===== SUCCESS ===== */
.success-card { background: #fff; border: 2px solid var(--s8-green); border-radius: var(--r-xl); padding: 52px 44px; text-align: center; max-width: 620px; margin: 0 auto; box-shadow: 0 0 0 6px rgba(16,185,129,.06); }
.success-icon { font-size: 3.5rem; margin-bottom: 20px; }
.success-card h3 { font-size: 2rem; color: var(--s8-green); margin-bottom: 16px; }
.success-card p { font-size: 15px; color: var(--s8-muted); margin-bottom: 12px; }
.success-ref { font-family: monospace; background: var(--s8-bg-alt); border: 1px solid var(--s8-border); padding: 12px 20px; border-radius: var(--r-sm); font-size: 14px; color: var(--s8-muted); margin-top: 16px; letter-spacing: .08em; }

/* ===== FOOTER ===== */
.footer { background: var(--s8-charcoal); border-top: 1px solid rgba(255,255,255,.07); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 24px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 14px; line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 800; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-family: var(--font-b); }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }

@keyframes fadeUp { from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)} }

/* ===== RESPONSIVE ===== */
@media(max-width:900px){.plans-grid{grid-template-columns:1fr;max-width:440px;margin:0 auto}.plan-card-featured{transform:none}.footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:span 2}}
@media(max-width:768px){.nav{padding:0 20px}.nav-links{display:none}.form-card{padding:28px 22px}.form-row{grid-template-columns:1fr}.layouts-grid{grid-template-columns:1fr}.inline-plans{grid-template-columns:1fr}.payment-methods{grid-template-columns:1fr}}
@media(max-width:540px){.industry-grid{grid-template-columns:repeat(2,1fr)}.color-style-grid{grid-template-columns:repeat(2,1fr)}.hero-steps{display:none}.footer-grid{grid-template-columns:1fr}.footer-brand{grid-column:span 1}}
