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

:root {
    --navy:       #0A1628;
    --navy-deep:  #06101E;
    --white:      #FFFFFF;
    --off-white:  #F7F8FA;
    --charcoal:   #1C1C1E;
    --mid-grey:   #6B7280;
    --light-grey: #E5E7EB;
    --gold:       #B8965A;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    color: var(--charcoal);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.35s, box-shadow 0.35s;
}

nav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--light-grey);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}
.nav-logo svg { flex-shrink: 0; }

nav.scrolled .nav-logo { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover          { color: var(--white); }
nav.scrolled .nav-links a   { color: var(--mid-grey); }
nav.scrolled .nav-links a:hover { color: var(--navy); }

/* Inner pages — nav always white */
.inner-page nav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--light-grey);
}
.inner-page .nav-logo          { color: var(--gold); }
.inner-page .nav-links a       { color: var(--mid-grey); }
.inner-page .nav-links a:hover { color: var(--navy); }
.inner-page .nav-links a.active {
    color: var(--navy);
    font-weight: 600;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
    background: var(--navy);
    padding: 140px 48px 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 60%; height: 150%;
    background: radial-gradient(ellipse at center, rgba(29,78,216,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.page-header-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: 16px;
}

/* ── HERO (index.html only) ── */
#hero {
    background: var(--navy);
    display: flex;
    align-items: center;
    padding: 88px 48px 0;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 65%; height: 150%;
    background: radial-gradient(ellipse at center, rgba(29,78,216,0.12) 0%, transparent 65%);
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -10%; left: 30%;
    width: 40%; height: 60%;
    background: radial-gradient(ellipse at center, rgba(184,150,90,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-visual { align-self: center; }

.hero-visual svg { width: 100%; height: auto; display: block; }

.hero-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-title em { font-style: italic; font-weight: 300; }

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 52px;
}

.btn-ghost {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
}

/* ── SECTION COMMONS ── */
section { padding: 100px 48px; }

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 300;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 1rem;
    color: var(--mid-grey);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 64px;
}

/* ── WHAT WE DO ── */
#what-we-do {
    background: var(--white);
    background-image: radial-gradient(circle, rgba(10,22,40,0.1) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    position: relative;
    overflow: hidden;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--light-grey);
}

.pillar {
    padding: 52px 40px 52px 0;
    border-right: 1px solid var(--light-grey);
}

.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 40px; }

.pillar-number {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 28px;
}

.pillar h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.pillar p { font-size: 0.9375rem; color: var(--mid-grey); line-height: 1.8; }

/* ── SOLUTIONS ── */
#solutions {
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.section-pattern {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

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

.solution-card {
    background: var(--white);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.solution-bar {
    width: 32px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 4px;
}

.solution-card h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.solution-card p { font-size: 0.9375rem; color: var(--mid-grey); line-height: 1.8; }

/* ── HOW WE WORK ── */
#how-we-work {
    background: var(--white);
    background-image: radial-gradient(circle, rgba(10,22,40,0.1) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    position: relative;
    overflow: hidden;
}

.rule {
    border: none;
    border-top: 1px solid var(--light-grey);
    margin-bottom: 64px;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.work-text p {
    font-size: 1rem;
    color: var(--mid-grey);
    line-height: 1.85;
    margin-bottom: 20px;
}

.work-text p:last-child { margin-bottom: 0; }

.work-stats { display: flex; flex-direction: column; gap: 36px; }

.stat { border-left: 2px solid var(--gold); padding-left: 24px; }

.stat-value {
    font-size: 2rem;
    font-weight: 300;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label { font-size: 0.8125rem; color: var(--mid-grey); line-height: 1.5; }

/* ── CONTACT ── */
#contact {
    background: var(--navy);
    padding: 100px 48px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.contact-circuit {
    position: absolute;
    bottom: 0; right: 0;
    width: 360px;
    height: 300px;
    pointer-events: none;
    opacity: 0.07;
}

#contact .section-title { color: var(--white); }
#contact .section-intro  { color: rgba(255,255,255,0.45); }

.contact-email {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 4px;
    letter-spacing: -0.01em;
    transition: border-color 0.2s, color 0.2s;
}

.contact-email:hover { color: var(--gold); border-color: var(--gold); }

/* ── FOOTER ── */
footer {
    background: var(--navy-deep);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.25); }

.footer-links { display: flex; gap: 32px; }

.footer-links a {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ── SOLUTIONS TEASER (home page) ── */
.solutions-teaser {
    padding: 48px 48px 100px;
    background: var(--off-white);
}

.teaser-header {
    max-width: 1200px;
    margin: 0 auto 56px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.teaser-header .section-title { margin-bottom: 0; }

.teaser-all-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid-grey);
    text-decoration: none;
    border-bottom: 1px solid var(--light-grey);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.teaser-all-link:hover { color: var(--navy); border-color: var(--navy); }

.scard-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.scard {
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mock app window */
.scard-app {
    background: var(--navy);
    height: 186px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.scard-topbar {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.scard-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
}

.scard-topbar-label {
    font-size: 0.5625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    margin-left: 6px;
}

.scard-app-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.mock-line { border-radius: 2px; background: rgba(255,255,255,0.08); height: 6px; }
.mock-line.w-90 { width: 90%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-70 { width: 70%; }
.mock-line.w-55 { width: 55%; }
.mock-line.accent { background: rgba(184,150,90,0.4); width: 42%; }

.scard-input {
    margin-top: auto;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
}

.scard-input-line {
    height: 4px;
    width: 40%;
    border-radius: 2px;
    background: rgba(255,255,255,0.07);
}

.scard-live {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    animation: livepulse 2.2s ease-in-out infinite;
}

@keyframes livepulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* Card text body */
.scard-body {
    padding: 36px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.scard-bar {
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.scard-body h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.scard-body p {
    font-size: 0.9375rem;
    color: var(--mid-grey);
    line-height: 1.75;
    flex: 1;
}

.launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 8px;
    transition: background 0.2s;
}

.launch-btn::after { content: '→'; font-size: 0.875rem; }
.launch-btn:hover  { background: #142238; }

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--navy);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-left: 3px solid var(--gold);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    white-space: nowrap;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 4px;
}
.capability-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--gold);
    border: 1px solid rgba(184,150,90,0.35);
    padding: 3px 9px;
    border-radius: 2px;
    text-transform: uppercase;
}

/* ── CTA STRIP (home page) ── */
.cta-strip {
    background: var(--navy);
    padding: 80px 48px;
}

.cta-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-strip-text p {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.cta-strip-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    nav { padding: 0 24px; }
    section, #contact { padding: 72px 24px; }
    #hero { padding: 130px 24px 80px; }
    .page-header { padding: 120px 24px 60px; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }

    .pillars { grid-template-columns: 1fr; }
    .pillar {
        border-right: none;
        border-bottom: 1px solid var(--light-grey);
        padding: 44px 0;
    }
    .pillar:last-child { border-bottom: none; }
    .pillar:not(:first-child) { padding-left: 0; }

    .solution-list { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; gap: 48px; }

    footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 580px) {
    .nav-links { display: none; }
}

@media (max-width: 960px) {
    .solutions-teaser { padding: 72px 24px; }
    .scard-grid { grid-template-columns: 1fr; }
    .teaser-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cta-strip { padding: 60px 24px; }
    .cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}
