/* ===== SAS Stack, Inc. — site styles ===== */
:root {
    --bg: #0b0f1a;
    --bg-2: #0f1422;
    --card: #141a2b;
    --card-2: #161d30;
    --line: rgba(255,255,255,.08);
    --text: #e8ecf6;
    --muted: #9aa6c0;
    --brand-1: #6aa3ff;
    --brand-2: #b07bff;
    --radius: 18px;
    --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad { background: linear-gradient(120deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand-1); margin-bottom: 16px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: linear-gradient(120deg, var(--brand-1), var(--brand-2)); color: #0b0f1a; box-shadow: 0 10px 30px -8px rgba(124,140,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124,140,255,.7); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11,15,26,.7); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.header.scrolled { border-bottom-color: var(--line); background: rgba(11,15,26,.85); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-text { font-size: 1.18rem; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; }
.nav-cta:hover { background: rgba(255,255,255,.07); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 96px 0 80px; text-align: center; overflow: hidden; }
.hero-glow {
    position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 700px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(106,163,255,.28), transparent 70%),
                radial-gradient(closest-side, rgba(176,123,255,.22), transparent 70%);
    background-position: 30% 30%, 70% 40%; background-repeat: no-repeat; filter: blur(10px);
}
.hero-content { position: relative; max-width: 860px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; font-weight: 900; letter-spacing: -.03em; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 56px; }
.hero-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; min-width: 200px; text-align: left; }
.hero-stats strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* ===== Trust ===== */
.trust { padding: 28px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-label { text-align: center; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.trust-logos { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.trust-logos a { font-size: 1.4rem; font-weight: 800; color: #c5cee6; opacity: .65; transition: opacity .2s, transform .2s; letter-spacing: -.02em; }
.trust-logos a:hover { opacity: 1; transform: translateY(-2px); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, border-color .25s, background .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(124,140,255,.4); background: var(--card-2); }
.card-icon { font-size: 1.7rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(124,140,255,.12); margin-bottom: 18px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }

/* Work cards */
.work-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; }
.work-card:hover { transform: translateY(-5px); border-color: rgba(124,140,255,.5); }
.work-top { height: 130px; display: grid; place-items: center; font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; color: #fff; background: linear-gradient(120deg, var(--c1), var(--c2)); }
.work-body { padding: 24px; }
.work-body h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.work-body .arrow { font-size: 1rem; color: var(--muted); transition: transform .2s; }
.work-card:hover .arrow { transform: translate(3px,-3px); color: var(--brand-1); }
.work-body .tag { color: var(--brand-1); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 10px; }
.work-body p:last-child { color: var(--muted); font-size: .96rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num { font-size: 2.2rem; font-weight: 900; background: linear-gradient(120deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* CTA */
.cta-section { background: linear-gradient(160deg, var(--bg-2), var(--bg)); }
.cta { max-width: 680px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 56px 40px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(600px 200px at 50% -10%, rgba(124,140,255,.25), transparent 70%); pointer-events: none; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; padding-top: 24px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    body.nav-open .nav-links { max-height: 320px; }
    .nav-links a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--line); }
    .nav-cta { border: 0 !important; border-radius: 0; }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .grid-3, .steps { grid-template-columns: 1fr; }
    .hero-stats > div { min-width: 0; flex: 1 1 100%; }
    .footer-inner { flex-direction: column; }
}
