/* ───────────────────────────────────────────────────────────────────────────
   Sparkwright Enterprise — shared design system
   Extracted from the original inline /enterprise styles. Same tokens, same
   components. Linked by the hub + all three spokes so the system can't drift.
   ─────────────────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --orange: #FF6B35;
    --dark-bg: #1a2332;
    --darker-bg: #0f1419;
    --light-text: #ffffff;
    --gray-text: #a0aec0;
    --rule: rgba(255, 107, 53, 0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--light-text);
    background: var(--darker-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ── Header ────────────────────────────────────────── */
header {
    background: var(--dark-bg);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--orange);
}
nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.wordmark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
/* Badge icon — clipped from the full logo PNG. */
.wordmark-badge {
    width: 42px;
    height: 42px;
    background-image: url('/static/SparkwrightLogoNoBackground.png');
    background-repeat: no-repeat;
    background-size: auto 71px;
    background-position: -15px -13px;
    flex-shrink: 0;
}
.wordmark-text {
    font-family: 'Anton', 'Impact', 'Helvetica Neue', sans-serif;
    font-weight: 400;     /* Anton is a single-weight display font */
    letter-spacing: 1px;
    line-height: 1;
}
.wordmark .spark { color: var(--light-text); }
.wordmark .wright { color: var(--orange); }
.wordmark .divider {
    width: 1px;
    height: 1.4rem;
    background: var(--gray-text);
    opacity: 0.35;
    align-self: center;
    margin: 0 0.2rem;
}
.wordmark .enterprise-tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gray-text);
    font-weight: 600;
    text-transform: uppercase;
}

/* Header right cluster — spoke nav links + discovery CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-links a {
    color: var(--gray-text);
    transition: color 0.18s ease;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--light-text); }
.nav-links a.active { color: var(--light-text); }
/* Cross-link back to the SMB (Trades) site — set apart from the spoke links by a divider */
.nav-links .trades-link {
    color: var(--gray-text);
    opacity: 0.85;
    padding-right: 1.4rem;
    border-right: 1px solid var(--rule);
}
.nav-links .trades-link:hover { color: var(--light-text); opacity: 1; }

.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.18s ease, transform 0.18s ease;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}
.btn-primary {
    background: var(--orange);
    color: #fff;
}
.btn-primary:hover {
    background: #e55a25;
    transform: translateY(-1px);
}
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-large {
    padding: 1.15rem 2.4rem;
    font-size: 1.1rem;
}

/* ── Layout ────────────────────────────────────────── */
main { display: block; }
section { padding: 7rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.prose { max-width: 720px; margin: 0 auto; }

section.bg-darker { background: var(--darker-bg); }
section.bg-dark   { background: var(--dark-bg); }

/* ── Typography ────────────────────────────────────── */
h1, h2, h3 { line-height: 1.18; font-weight: 700; }
.kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 600; }
p { color: var(--gray-text); }
p + p { margin-top: 1.1rem; }
p.lead { font-size: 1.1rem; }
.source-note {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--gray-text);
    opacity: 0.7;
    line-height: 1.5;
}
.source-note a {
    color: var(--gray-text);
    border-bottom: 1px solid rgba(160, 174, 192, 0.3);
}
.source-note a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
    padding: 9rem 2rem 8rem;
    background: var(--darker-bg);
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    max-width: 900px;
    margin-bottom: 1.75rem;
    letter-spacing: -0.015em;
}
.hero h1 .highlight { color: var(--orange); }
.hero p.subhead {
    font-size: 1.25rem;
    max-width: 760px;
    margin-bottom: 2.5rem;
    color: var(--gray-text);
    line-height: 1.55;
}
.hero .trust-line {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-text);
    opacity: 0.85;
}

/* ── Problem section ──────────────────────────────── */
.problem .scenario {
    border-left: 3px solid var(--orange);
    padding-left: 1.5rem;
    margin: 2.25rem 0;
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.7;
}
.problem p.lead, .problem p.outro {
    color: var(--gray-text);
    font-size: 1.1rem;
    line-height: 1.65;
}

/* ── Problem router (hub) ─────────────────────────── */
.router {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 940px;
    margin: 0 auto;
}
.router-block {
    display: block;
    border-left: 3px solid var(--orange);
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 0 8px 8px 0;
    transition: background 0.18s ease, transform 0.18s ease;
}
.router-block:hover { background: rgba(255, 107, 53, 0.05); transform: translateX(3px); }
.router-block .r-num {
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}
.router-block h3 { color: var(--light-text); font-size: 1.3rem; margin-bottom: 0.6rem; }
.router-block p { color: var(--gray-text); font-size: 1rem; line-height: 1.6; margin-bottom: 0.9rem; }
.router-block .r-link {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.95rem;
}
.router-block:hover .r-link { text-decoration: underline; }

/* ── Capabilities grid ────────────────────────────── */
.cap-opener {
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-text);
}
.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.cap-item h3 {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.005em;
}
.cap-item p { color: var(--gray-text); font-size: 0.98rem; line-height: 1.6; }

/* ── Engagement (phases) ──────────────────────────── */
.engagement-opener {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
    color: var(--gray-text);
}
.phases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}
.phase { padding: 0 1.5rem; border-right: 1px solid var(--rule); }
.phase:last-child { border-right: none; }
.phase-num {
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 0.85rem;
}
.phase h3 { color: var(--light-text); font-size: 1.1rem; margin-bottom: 0.6rem; }
.phase p { color: var(--gray-text); font-size: 0.95rem; line-height: 1.55; }

/* ── ROI / numeric callouts ───────────────────────── */
.roi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}
.roi-stat {
    text-align: left;
    padding-left: 1.25rem;
    border-left: 2px solid var(--orange);
}
.roi-stat .figure {
    display: block;
    color: var(--light-text);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}
.roi-stat .label {
    display: block;
    color: var(--orange);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.roi-stat .detail { color: var(--gray-text); font-size: 0.95rem; line-height: 1.55; }
.roi-example {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--orange);
    color: var(--gray-text);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ── How it works — numbered steps ────────────────── */
.steps {
    max-width: 880px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.step-num {
    color: var(--orange);
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    min-width: 2.5rem;
}
.step-body h3 { color: var(--light-text); font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 600; }
.step-body p { color: var(--gray-text); font-size: 0.98rem; line-height: 1.6; margin: 0; }

/* ── Who this is for / qualifier ──────────────────── */
.qualifier p { font-size: 1.12rem; line-height: 1.7; color: var(--gray-text); }
.qualifier strong { color: var(--light-text); font-weight: 600; }

/* ── Adjacent ─────────────────────────────────────── */
.adjacent .accent {
    width: 60px;
    height: 2px;
    background: var(--orange);
    margin: 0 auto 2rem;
    opacity: 0.6;
}
.adjacent p { font-size: 1.1rem; line-height: 1.65; color: var(--gray-text); }
.adjacent-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 820px;
    margin: 2.5rem auto 2rem;
    text-align: left;
}
.adjacent-link {
    display: block;
    border-left: 2px solid var(--orange);
    padding: 0.9rem 0 0.9rem 1.25rem;
    transition: transform 0.18s ease;
}
.adjacent-link:hover { transform: translateX(3px); }
.adjacent-link .al-title { display: block; color: var(--light-text); font-weight: 600; font-size: 1.02rem; margin-bottom: 0.3rem; }
.adjacent-link .al-desc { color: var(--gray-text); font-size: 0.92rem; line-height: 1.5; }
.adjacent-link .al-go { color: var(--orange); font-weight: 600; }

/* ── Why Sparkwright ──────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.why-item h3 { color: var(--light-text); font-size: 1.15rem; margin-bottom: 0.75rem; }
.why-item p { color: var(--gray-text); font-size: 0.98rem; line-height: 1.6; }

/* ── Contact ──────────────────────────────────────── */
.contact { text-align: center; }
.contact h2, .contact .kicker { display: block; }
.contact .kicker { text-align: center; }
.contact p.lead {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: var(--gray-text);
    line-height: 1.65;
}
.contact .btn-large { margin-bottom: 1.5rem; }
.contact .email-link {
    display: block;
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.contact .email-link a {
    color: var(--gray-text);
    border-bottom: 1px solid rgba(160, 174, 192, 0.3);
    padding-bottom: 1px;
    transition: color 0.18s ease, border-color 0.18s ease;
}
.contact .email-link a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ── Footer ───────────────────────────────────────── */
footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--orange);
    padding: 4rem 2rem 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--light-text);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-col p, .footer-col a { color: var(--gray-text); font-size: 0.95rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a:hover { color: var(--light-text); }
.footer-wordmark { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.footer-wordmark-badge {
    width: 36px;
    height: 36px;
    background-image: url('/static/SparkwrightLogoNoBackground.png');
    background-repeat: no-repeat;
    background-size: auto 60px;
    background-position: -13px -12px;
    flex-shrink: 0;
}
.footer-wordmark-text {
    font-family: 'Anton', 'Impact', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    line-height: 1;
}
.footer-wordmark-text .spark { color: var(--light-text); }
.footer-wordmark-text .wright { color: var(--orange); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-text);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
    section { padding: 5.5rem 2rem; }
    .hero { padding: 7rem 2rem 5.5rem; }
    .phases { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
    .phase { border-right: none; padding: 0 1.25rem; }
    .phase:nth-child(odd) { border-right: 1px solid var(--rule); }
}

/* Collapse the header text links before they crowd at tablet width;
   footer carries full cross-nav (incl. Trades) on small screens. */
@media (max-width: 980px) {
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    body { font-size: 17px; }
    header { padding: 1rem 1.25rem; }
    .wordmark { font-size: 1.15rem; gap: 0.5rem; }
    .wordmark .enterprise-tag { font-size: 0.62rem; }
    .nav-links { display: none; }          /* spoke links collapse; wordmark + CTA stay */
    .nav-right { gap: 0; }
    .btn { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
    .btn-sm { padding: 0.55rem 0.95rem; font-size: 0.82rem; }
    section { padding: 4.5rem 1.25rem; }
    .hero { padding: 5rem 1.25rem 4.5rem; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
    .hero p.subhead { font-size: 1.1rem; }
    .cap-grid { grid-template-columns: 1fr; gap: 2rem; }
    .phases { grid-template-columns: 1fr; gap: 2rem; }
    .phase { border-right: none !important; padding: 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
    .phase:last-child { border-bottom: none; padding-bottom: 0; }
    .why-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .roi-grid { grid-template-columns: 1fr; gap: 2rem; }
    .adjacent-links { grid-template-columns: 1fr; gap: 1rem; }
    .step { gap: 1rem; }
    .step-num { font-size: 1.5rem; min-width: 2rem; }
    .router-block { padding: 1.25rem 1.25rem; }
    .router-block h3 { font-size: 1.15rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .hero p.subhead { font-size: 1rem; }
    h2 { font-size: 1.6rem; }
    .btn-large { padding: 1rem 1.8rem; font-size: 1rem; width: 100%; max-width: 320px; }
}
