:root {
    --navy: #12345B;
    --blue: #1769AA;
    --text: #263238;
    --muted: #607080;
    --light: #F4F7FA;
    --border: #DDE4EA;
    --white: #FFFFFF;
    --shadow: 0 12px 34px rgba(18, 52, 91, .08);
    --radius: 14px;
    --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid transparent;
    transition: .2s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 6px 22px rgba(18,52,91,.06);
}
.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 320px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
    letter-spacing: .6px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { color: var(--navy); font-size: 15px; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 5px; }

.main-nav { display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: 14px; }
.main-nav > a { position: relative; padding: 28px 0 24px; white-space: nowrap; }
.main-nav > a:not(.client-login)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 17px;
    height: 2px;
    background: var(--blue);
    transition: .2s ease;
}
.main-nav > a:hover::after,
.main-nav > a.active::after { right: 0; }
.client-login {
    background: var(--blue);
    color: var(--white);
    padding: 11px 16px !important;
    border-radius: 9px;
}
.client-login:hover { filter: brightness(.96); }

.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; }

.hero {
    min-height: 590px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 85% 28%, rgba(23,105,170,.10), transparent 30%),
        linear-gradient(180deg, #fff, #fbfdff);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 70px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.eyebrow.light { color: #dbe9f5; }
h1, h2, h3 { line-height: 1.18; margin-top: 0; }
h1 { font-size: clamp(42px, 5vw, 60px); color: var(--navy); letter-spacing: -1.6px; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 3vw, 40px); color: var(--navy); letter-spacing: -.8px; }
h3 { color: var(--navy); }
.hero-text { max-width: 720px; font-size: 18px; color: var(--muted); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 9px;
    font-weight: 700;
    border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-secondary { border-color: var(--border); color: var(--navy); background: var(--white); }

.hero-visual { position: relative; min-height: 390px; }
.system-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--navy);
}
.system-card.large {
    width: 74%;
    height: 245px;
    top: 62px;
    left: 9%;
    border-radius: 22px;
    padding: 28px;
}
.system-label {
    display: inline-block;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.1px;
}
.system-process {
    display: grid;
    gap: 13px;
    margin-top: 30px;
    width: 72%;
}
.system-process span {
    position: relative;
    min-height: 30px;
    display: flex;
    align-items: center;
    padding-left: 38px;
    color: #51697e;
    font-size: 13px;
    font-weight: 650;
}
.system-process span::before {
    content: "";
    position: absolute;
    left: 0;
    width: 26px;
    height: 8px;
    border-radius: 8px;
    background: #dfeaf2;
}
.system-process span:nth-child(2)::before { width: 21px; }
.system-process span:nth-child(3)::before { width: 16px; }

.system-card.mini {
    padding: 13px 17px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.system-card.one { right: 2%; top: 26px; }
.system-card.four { left: 22%; bottom: 34px; }
.system-card.two { right: 0; bottom: 45px; }
.system-card.three { left: 0; bottom: 12px; }

.system-node {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    right: 11%;
    top: 150px;
    background: var(--blue);
    box-shadow: 0 0 0 18px rgba(23,105,170,.08);
}

.section { padding: 86px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.centered { text-align: center; }
.narrow { max-width: 850px; }
.section-heading { margin-bottom: 34px; }

.process-grid, .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 40px;
}
.process-grid article, .service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.process-grid article span { color: var(--blue); font-weight: 800; }
.process-grid article h3 { margin: 12px 0 8px; }
.process-grid article p, .service-card p { color: var(--muted); margin-bottom: 0; }

.card-grid { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.service-card { min-height: 245px; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { width: 42px; height: 42px; border-radius: 12px; background: #eaf2f8; margin-bottom: 22px; position: relative; }
.service-icon::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--blue); border-radius: 3px; }
.service-card h3 { margin-bottom: 12px; }
.service-card a { display: inline-block; margin-top: 20px; color: var(--blue); font-weight: 700; }

.development-flow { text-align: center; max-width: 1000px; }
.development-flow h2 { margin-bottom: 0; }

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 42px;
    background: var(--light);
}
.cta h2 { margin-bottom: 10px; }
.cta p:last-child { margin-bottom: 0; color: var(--muted); }

.page-shell { min-height: 58vh; }
.page-intro { padding: 90px 0; }
.page-intro .lead { color: var(--muted); font-size: 19px; max-width: 780px; }
.notice-card { margin-top: 30px; padding: 22px; border: 1px solid var(--border); background: var(--light); border-radius: 12px; color: var(--muted); }

.site-footer { background: #0d2743; color: #d9e5ee; padding-top: 60px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 44px;
}
.footer-brand { font-weight: 900; font-size: 26px; color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 18px; margin: 8px 0 6px; }
.site-footer h3 { color: var(--white); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .7px; }
.site-footer a, .site-footer span { display: block; color: #c6d5e1; margin: 8px 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}
.footer-bottom span { margin: 0; }
.footer-bottom a { display: inline; margin: 0; }

/* Step 17 public framework */
.page-hero {
    background:
        radial-gradient(circle at 88% 15%, rgba(23,105,170,.10), transparent 28%),
        linear-gradient(180deg, #ffffff, #f8fbfd);
    border-bottom: 1px solid var(--border);
}
.page-hero.compact { padding: 78px 0 68px; }
.page-hero .lead { font-size: 19px; color: var(--muted); max-width: 880px; }

.card-title { font-size: 21px; }
.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.solution-grid.large { grid-template-columns: repeat(2, 1fr); }
.solution-tile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform .2s ease, box-shadow .2s ease;
}
.solution-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.solution-tile h3, .solution-tile h2 { margin-bottom: 7px; }
.solution-tile p { margin: 0; color: var(--muted); }
.solution-tile > span:last-child { color: var(--blue); font-size: 23px; }

.content-icon {
    width: 44px;
    height: 44px;
    display: inline-block;
    border-radius: 12px;
    background: #eaf2f8;
    position: relative;
    flex: 0 0 auto;
}
.content-icon::before, .content-icon::after {
    content: "";
    position: absolute;
    border: 2px solid var(--blue);
}
.content-icon.service::before { inset: 11px; border-radius: 4px; }
.content-icon.solution::before { width: 18px; height: 18px; left: 9px; top: 9px; border-radius: 4px; }
.content-icon.solution::after { width: 12px; height: 12px; right: 8px; bottom: 8px; border-radius: 50%; }
.content-icon.industry::before { left: 9px; right: 9px; bottom: 9px; height: 20px; border-radius: 3px; }
.content-icon.industry::after { width: 10px; height: 10px; left: 17px; top: 7px; transform: rotate(45deg); }

.prose-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 44px;
    align-items: start;
}
.principle-card, .side-cta, .contact-card, .form-panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--light);
    padding: 30px;
}
.principle-card h3 { font-size: 27px; }
.compact-cards .service-card { min-height: 190px; }

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px;
}
.check-list { padding: 0; list-style: none; margin: 24px 0; }
.check-list li {
    position: relative;
    padding-left: 28px;
    margin: 12px 0;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
    font-weight: 800;
}
.muted { color: var(--muted); }

.founder-box {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 56px;
    border-left: 4px solid var(--blue);
    padding-left: 34px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 54px;
    align-items: start;
}
.rich-content h2 { margin-top: 38px; margin-bottom: 14px; font-size: 29px; }
.rich-content h2:first-child { margin-top: 0; }
.rich-content h3 { margin-top: 26px; margin-bottom: 9px; font-size: 21px; }
.rich-content p { color: #42505b; }
.rich-content ul { padding-left: 22px; }
.rich-content li { margin: 8px 0; }
.side-cta { position: sticky; top: 112px; }
.side-cta .btn { width: 100%; margin-top: 12px; }
.text-link { display: inline-block; color: var(--blue); font-weight: 700; margin-top: 18px; }

.why-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-list div { border-top: 2px solid var(--border); padding-top: 16px; }
.why-list strong { display: block; color: var(--navy); margin-bottom: 7px; }
.why-list span { color: var(--muted); }

.support-strip { background: #eef5fa; }
.support-strip-inner, .support-desk-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
}
.support-strip-inner p, .support-desk-callout p { max-width: 800px; }

.support-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.support-options article {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.support-options article p { color: var(--muted); }
.support-options h2 { font-size: 22px; }

.btn-light { background: var(--white); color: var(--navy); }

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.app-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.app-mark {
    width: 54px; height: 54px; display: grid; place-items: center;
    border-radius: 14px; background: var(--navy); color: var(--white); font-weight: 800;
}
.status-pill { font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 6px 9px; border-radius: 999px; }
.status-pill.active { background: #e7f5ec; color: #267044; }
.status-pill.maintenance { background: #fff4d9; color: #8a6410; }

.contact-layout {
    display: grid;
    grid-template-columns: .38fr .62fr;
    gap: 34px;
    align-items: start;
}
.contact-card dl { margin: 24px 0; }
.contact-card dt { color: var(--muted); font-size: 13px; margin-top: 16px; }
.contact-card dd { margin: 3px 0 0; font-weight: 700; color: var(--navy); }
.existing-client-box { margin-top: 28px; padding: 20px; background: var(--white); border-radius: 12px; }
.existing-client-box p { color: var(--muted); }
.existing-client-box a { color: var(--blue); font-weight: 700; }

.form-panel { background: var(--white); }
.dev-form-notice { padding: 16px 18px; background: #fff7df; border: 1px solid #f0d98e; border-radius: 10px; margin-bottom: 24px; color: #6f5512; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.two > div { display: grid; gap: 8px; }
.contact-form label { font-weight: 700; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px 13px;
    background: #f8fafc;
    font: inherit;
}
.contact-form button[disabled] { opacity: .55; cursor: not-allowed; }

.legal-content { max-width: 920px; }
.legal-content h2 { margin-top: 34px; font-size: 24px; }
.legal-content p { color: #42505b; }

.center-actions { justify-content: center; }

/* Homepage hero visual refinement */
@media (max-width: 640px) {
    .system-label { font-size: 14px; }
    .system-process { margin-top: 22px; gap: 7px; width: 70%; }
    .system-process span {
        min-height: 24px;
        padding-left: 29px;
        font-size: 11px;
    }
    .system-process span::before { width: 20px; height: 7px; }
    .system-process span:nth-child(2)::before { width: 16px; }
    .system-process span:nth-child(3)::before { width: 13px; }

    .system-card.mini { padding: 10px 12px; font-size: 11px; }
    .system-card.four { left: 25%; bottom: 18px; }
    .system-card.two { bottom: 32px; }
    .system-card.three { bottom: 2px; }
    .system-node {
        width: 68px;
        height: 68px;
        right: 9%;
        top: 135px;
        box-shadow: 0 0 0 14px rgba(23,105,170,.08);
    }
}
