/* ============================================================
   SiteForge — Homepage stylesheet
   ============================================================ */

:root {
  --blue:     #0071e3;
  --blue-dk:  #005bb5;
  --text:     #1d1d1f;
  --muted:    #86868b;
  --border:   #e2e2e5;
  --bg:       #ffffff;
  --bg-alt:   #f5f5f7;
  --radius:   14px;
  --max-w:    1120px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 980px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dk); text-decoration: none; color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn--ghost-light { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.25); text-decoration: none; color: #fff; }
.btn--hero { background: #fff; color: var(--blue); font-size: 17px; padding: 16px 36px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn--hero:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); text-decoration: none; color: var(--blue); }
.btn--full { width: 100%; justify-content: center; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; transition: all 0.2s;
}
.nav--scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700;
  color: #fff; text-decoration: none;
}
.nav--scrolled .nav__logo { color: var(--text); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.9); }
.nav--scrolled .nav__links a { color: var(--text); }
.nav__links a:hover { text-decoration: none; opacity: 0.7; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #001f5b 0%, #0071e3 60%, #2997ff 100%);
  color: #fff; text-align: center;
  padding: 160px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 80px;
  background: var(--bg); clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__tag {
  display: inline-block; background: rgba(255,255,255,0.15); color: #fff;
  font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 20px;
  margin-bottom: 24px; letter-spacing: 0.04em; border: 1px solid rgba(255,255,255,0.3);
}
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.08; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(90deg, #fff 0%, #a8d4ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero > p { font-size: 19px; color: rgba(255,255,255,0.8); max-width: 580px; margin: 0 auto 36px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero__proof { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 64px; }

/* ── Hero device mockups ──────────────────────────────────────── */
.hero__visual {
  display: flex; align-items: flex-end; justify-content: center; gap: 24px;
  max-width: 900px; margin: 0 auto; position: relative; z-index: 1;
}
.device {
  border-radius: 16px; overflow: hidden;
  border: 6px solid rgba(255,255,255,0.2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  background: #fff;
}
.device--desktop { width: 560px; flex-shrink: 0; }
.device--mobile  { width: 140px; flex-shrink: 0; }
.device__screen  { aspect-ratio: 16/10; overflow: hidden; }
.device--mobile .device__screen { aspect-ratio: 9/19; }

.mock-site { height: 100%; display: flex; flex-direction: column; }
.mock-site__header { height: 28px; background: #1d1d1f; flex-shrink: 0; }
.mock-site__hero { flex-shrink: 0; height: 80px; background: linear-gradient(135deg, #0071e3, #2997ff); }
.mock-site__hero--sm { height: 60px; }
.mock-site__body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-site__line { height: 10px; border-radius: 4px; background: #e2e2e5; }
.mock-site__line--wide { width: 80%; }
.mock-site__line--short { width: 45%; }
.mock-site__nav { height: 36px; background: #f5f5f7; border-top: 1px solid #e2e2e5; flex-shrink: 0; }

/* ── Stats ───────────────────────────────────────────────────── */
.stats { padding: 48px 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__number { font-size: 40px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 6px; }
.stat__label  { font-size: 15px; color: var(--muted); font-weight: 500; }

/* ── Section header ──────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 44px; font-weight: 800; margin-bottom: 14px; }
.section-header p  { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── Features ────────────────────────────────────────────────── */
.features { padding: 100px 0; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); transform: translateY(-3px); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin: 16px 0 10px; }
.feature-card p  { font-size: 15px; color: var(--muted); line-height: 1.6; }

.feature-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.feature-card__icon--blue   { background: #e3f0ff; color: #0071e3; }
.feature-card__icon--green  { background: #e4f7ec; color: #30b35d; }
.feature-card__icon--purple { background: #ede8ff; color: #7b61ff; }
.feature-card__icon--orange { background: #fff4e8; color: #ff8c00; }
.feature-card__icon--red    { background: #ffe8e7; color: #ff3b30; }
.feature-card__icon--teal   { background: #e5f7f6; color: #0aaa99; }

/* ── How it works ────────────────────────────────────────────── */
.how-it-works { padding: 100px 0; background: var(--bg-alt); }
.steps { display: flex; align-items: flex-start; gap: 0; }
.step { flex: 1; text-align: center; padding: 0 24px; }
.step__number {
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: 15px; color: var(--muted); }
.step__arrow { flex-shrink: 0; display: flex; align-items: center; padding-top: 20px; color: var(--border); }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing { padding: 100px 0; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }

.pricing-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative;
}
.pricing-card--featured {
  background: linear-gradient(160deg, #001f5b, #0071e3);
  color: #fff; border-color: transparent;
  box-shadow: 0 24px 60px rgba(0,113,227,0.3);
  transform: scale(1.04);
}
.pricing-card__badge {
  display: inline-block; background: #ffd60a; color: #333;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.pricing-card__header h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pricing-card__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.pricing-card__amount { font-size: 48px; font-weight: 800; }
.pricing-card__period { font-size: 15px; color: var(--muted); }
.pricing-card--featured .pricing-card__period { color: rgba(255,255,255,0.6); }

.pricing-card__features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.pricing-card__features li { font-size: 15px; padding-left: 24px; position: relative; }
.pricing-card__features li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.pricing-card--featured .pricing-card__features li::before { color: #a8d4ff; }
.pricing-card--featured .pricing-card__features li { color: rgba(255,255,255,0.85); }

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta {
  background: linear-gradient(160deg, #001f5b, #0071e3);
  color: #fff; text-align: center; padding: 100px 24px;
}
.final-cta h2 { font-size: 44px; font-weight: 800; margin-bottom: 16px; }
.final-cta p  { font-size: 19px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { padding: 60px 0 32px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer__logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer__col > p  { font-size: 14px; color: var(--muted); max-width: 280px; }
.footer__col h4   { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.footer__col a    { display: block; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.footer__col a:hover { color: var(--blue); text-decoration: none; }
.footer__bottom p { font-size: 13px; color: var(--muted); }

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

@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 38px; }
  .hero > p { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--hero { font-size: 16px; padding: 14px 28px; width: 100%; max-width: 320px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 32px; }
  .step__arrow { display: none; }
  .pricing__grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: scale(1); }
  .section-header h2 { font-size: 32px; }
  .final-cta h2 { font-size: 32px; }
  .footer__grid { grid-template-columns: 1fr; }
}
