/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0a1628;
  --navy-mid:    #132240;
  --blue:        #1e40af;
  --blue-mid:    #2563eb;
  --blue-light:  #eff6ff;
  --gold:        #b45309;
  --gold-light:  #fef3c7;
  --slate:       #475569;
  --slate-light: #f1f5f9;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --muted:       #64748b;
  --white:       #ffffff;
  --radius:      14px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.sp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.sp-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.sp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.sp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.sp-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.sp-logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.025em;
}

.sp-navlinks {
  display: flex;
  gap: 36px;
  list-style: none;
}
.sp-navlinks a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s;
  letter-spacing: .01em;
}
.sp-navlinks a:hover { color: var(--navy); }

.sp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 700;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.sp-nav-cta:hover { background: var(--navy-mid); transform: translateY(-1px); color: #fff; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.sp-hero {
  padding: 148px 0 100px;
  background: linear-gradient(160deg, #f8faff 0%, #fff 45%, #f8faff 100%);
  position: relative;
  overflow: hidden;
}
.sp-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -180px;
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(37,99,235,.05) 0%, transparent 70%);
  pointer-events: none;
}
.sp-hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(180,83,9,.04) 0%, transparent 70%);
  pointer-events: none;
}

.sp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.sp-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--navy);
  margin-bottom: 22px;
}
.sp-hero h1 span { color: var(--blue-mid); }

.sp-hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 38px;
}

.sp-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 13px 26px;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10,22,40,.2);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  color: var(--slate);
  padding: 13px 26px;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .15s, color .15s, transform .1s;
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
}

.sp-hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.sp-hero-stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.sp-hero-stat span { font-size: .76rem; color: var(--muted); font-weight: 500; letter-spacing: .03em; }

/* ── Hero visual / mock card ───────────────────────────────────────────── */
.sp-hero-visual { position: relative; }

.sp-hero-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sp-hero-card-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-hc-dot { width: 10px; height: 10px; border-radius: 50%; }
.sp-hc-dot-red   { background: #ff5f57; }
.sp-hc-dot-amber { background: #ffbc2e; }
.sp-hc-dot-green { background: #28c840; }
.sp-hero-card-body { padding: 28px 24px; }

.sp-mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.sp-mock-stat {
  background: var(--slate-light);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}
.sp-mock-stat strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.sp-mock-stat small  { font-size: .68rem; color: var(--muted); }

.sp-mock-bar-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.sp-mock-bar-label { font-size: .72rem; color: var(--muted); width: 72px; flex-shrink: 0; }
.sp-mock-bar-track { flex: 1; height: 7px; background: var(--border); border-radius: 99px; overflow: hidden; }
.sp-mock-bar-fill  { height: 100%; background: linear-gradient(90deg, var(--blue-mid), #60a5fa); border-radius: 99px; }
.sp-mock-pct { font-size: .72rem; font-weight: 700; color: var(--blue-mid); width: 30px; text-align: right; }

/* ── Section commons ───────────────────────────────────────────────────── */
.sp-section { padding: 100px 0; }
.sp-section-alt { background: var(--slate-light); }

.sp-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 14px;
}

.sp-section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 16px;
}

.sp-section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}

.sp-section-header { margin-bottom: 60px; }
.sp-section-header.center { text-align: center; }
.sp-section-header.center .sp-section-sub { margin: 0 auto; }

/* ── Features ──────────────────────────────────────────────────────────── */
.sp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sp-feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.sp-feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #c7d7ff;
}

.sp-feature-icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue-mid);
  margin-bottom: 18px;
}

.sp-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 9px;
  letter-spacing: -.01em;
}

.sp-feature-card p {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Steps ─────────────────────────────────────────────────────────────── */
.sp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.sp-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 27px);
  right: calc(12.5% + 27px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue-mid), #93c5fd);
}

.sp-step { text-align: center; position: relative; z-index: 1; }

.sp-step-num {
  width: 54px; height: 54px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.sp-step h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: -.01em; }
.sp-step p  { font-size: .83rem; color: var(--muted); line-height: 1.65; }

/* ── Themes showcase ───────────────────────────────────────────────────── */
.sp-themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sp-theme-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  background: var(--white);
}
.sp-theme-card:hover {
  border-color: #c7d7ff;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.sp-theme-preview {
  height: 200px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
}
.sp-theme-preview.slate-theme {
  background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
}

.sp-theme-meta { padding: 22px 26px; }
.sp-theme-meta h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: -.01em; }
.sp-theme-meta p  { font-size: .84rem; color: var(--muted); line-height: 1.6; }

.sp-theme-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.sp-tag {
  font-size: .69rem;
  font-weight: 700;
  background: var(--blue-light);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: .02em;
}

/* ── CTA ───────────────────────────────────────────────────────────────── */
.sp-cta {
  background: var(--navy);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sp-cta::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 65%);
}

.sp-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.035em;
  margin-bottom: 16px;
  position: relative;
}
.sp-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--navy);
  padding: 14px 30px;
  border-radius: 11px;
  font-size: .92rem;
  font-weight: 800;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); color: var(--navy); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.sp-footer {
  background: #060e1c;
  color: rgba(255,255,255,.45);
  padding: 44px 0 32px;
}

.sp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sp-footer-brand { display: flex; align-items: center; gap: 12px; }
.sp-footer-brand img { height: 30px; filter: brightness(0) invert(1); opacity: .7; }
.sp-footer-brand span { font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.8); }

.sp-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.sp-footer-links a { font-size: .8rem; color: rgba(255,255,255,.4); transition: color .15s; }
.sp-footer-links a:hover { color: rgba(255,255,255,.8); }

.sp-footer-copy { font-size: .77rem; }

/* ── Divider accent ────────────────────────────────────────────────────── */
.sp-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--blue-mid), #60a5fa, transparent);
  border: none;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-steps { grid-template-columns: repeat(2, 1fr); }
  .sp-steps::before { display: none; }
}

@media (max-width: 768px) {
  .sp-hero-inner { grid-template-columns: 1fr; }
  .sp-hero-visual { display: none; }
  .sp-navlinks { display: none; }
  .sp-features-grid { grid-template-columns: 1fr; }
  .sp-themes-grid { grid-template-columns: 1fr; }
  .sp-steps { grid-template-columns: 1fr; }
  .sp-hero-stats { gap: 22px; flex-wrap: wrap; }
  .sp-footer-inner { flex-direction: column; text-align: center; }
}

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
