:root {
  --sf-blue: #2b3990;
  --sf-blue-dark: #1f2a6b;
  --sf-navy: #0d094a;
  --sf-ink: #1a2357;
  --sf-muted: #5a6180;
  --sf-soft: #f3f5fc;
}

.sf-page p { font-size: 1rem; color: var(--sf-muted); }
.sf-page h1, .sf-page h2 { font-weight: 800; letter-spacing: -.02em; color: var(--sf-ink); }
.sf-page h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; }
.sf-page h3 { font-weight: 700; color: var(--sf-ink); }
.sf-soft { background: var(--sf-soft); }
.sf-head { max-width: 800px; margin: 0 auto 2.5rem; text-align: center; }
.sf-page .sf-kicker { margin: 0 0 .5rem; color: var(--sf-blue); font-size: 1.1rem; font-weight: 700; }
.sf-head p { margin: .75rem 0 0; }

/* Buttons */
.sf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.5rem; border: 2px solid var(--sf-blue); border-radius: 8px;
  background: var(--sf-blue); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease;
}
.sf-btn:hover, .sf-btn:focus-visible { border-color: var(--sf-blue-dark); background: var(--sf-blue-dark); color: #fff; }
.sf-btn i { font-size: .8em; transition: transform .2s ease; }
.sf-btn:hover i { transform: translateX(3px); }
.sf-btn-light { border-color: rgba(255,255,255,.65); background: transparent; }
.sf-btn-light:hover { border-color: #fff; background: rgba(255,255,255,.14); }

/* Hero */
.sf-hero { background: linear-gradient(115deg, #070345 0%, #130d78 35%, #363af5 72%, #77a0f7 100%); }
.sf-page .sf-hero h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; }
.sf-page .sf-hero p { color: #e4e9fb; }
.sf-page .sf-hero .sf-sub { font-size: 1.2rem; font-weight: 600; color: #fff; }
.sf-hero img { filter: drop-shadow(0 20px 40px rgba(7,3,69,.35)); }

/* Cards */
.sf-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(43,57,144,.1); transition: transform .3s ease, box-shadow .3s ease; }
.sf-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(43,57,144,.2); }
.sf-img-wrapper { display: flex; align-items: center; justify-content: center; flex: none; height: 130px; padding: 1.25rem; background: linear-gradient(135deg, #f3f5fc, #e6eafa); }
.sf-img-wrapper img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sf-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.sf-text-wrapper { flex: 1; margin-bottom: 1.1rem; }
.sf-page .sf-card .sf-label { margin: 0 0 .5rem; color: var(--sf-blue); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.sf-page .sf-card h3 { margin-bottom: .6rem; font-size: 1.1rem; line-height: 1.35; }
.sf-page .sf-card p { margin: 0; font-size: .9rem; line-height: 1.55; }

/* Work from home */
.sf-wfh { background: url('/images/stonefly/wfh-1.png') no-repeat right center, linear-gradient(90deg, #0d094a 30%, #070345 100%); background-size: cover; }
.sf-page .sf-wfh p { color: #dfe4f8; }
.sf-page .sf-wfh h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; }

/* CTA */
.sf-cta { position: relative; overflow: hidden; padding: 3rem clamp(1.5rem, 5vw, 3.5rem); border-radius: 28px; background: linear-gradient(115deg, #130d78 0%, #2b3990 60%, #4a63d8 100%); box-shadow: 0 24px 56px rgba(43,57,144,.28); }
.sf-cta::before, .sf-cta::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.sf-cta::before { width: 280px; height: 280px; top: -120px; right: -60px; }
.sf-cta::after { width: 180px; height: 180px; bottom: -90px; right: 22%; }
.sf-cta .row { position: relative; z-index: 1; }
.sf-page .sf-cta h2 { margin: 0 0 .6rem; color: #fff; }
.sf-page .sf-cta p { margin: 0; color: #dfe5fb; }
.sf-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 992px) { .sf-btns { justify-content: flex-end; } }
.sf-btn-white { border-color: #fff; background: #fff; color: var(--sf-blue); }
.sf-btn-white:hover { border-color: #e8ecfb; background: #e8ecfb; color: var(--sf-blue-dark); }

@media (prefers-reduced-motion: reduce) {
  .sf-btn, .sf-btn i, .sf-card { transition: none; }
}
