/* ---------------------------------------------------------------------------
   DeepMed [+] - the shared look for the pages that have been rebuilt
   (contact.aspx, platform.aspx). The older pages still carry their own copy of
   these rules in a <style> block; anything rebuilt from here on should link
   this file instead of growing another copy.

   Everything is built on Bootstrap 5 - this only adds the brand layer.
   --------------------------------------------------------------------------- */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #0f172a;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --light: #f6f8fb;
    --gray: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow: 0 16px 42px rgba(15, 23, 42, .08);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
    --transition: all .3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

a { color: var(--primary); }

/* --- Navigation ---------------------------------------------------------- */

.navbar {
    padding: .85rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(226, 232, 240, .85);
    backdrop-filter: blur(14px);
}

.navbar.scrolled {
    padding: .65rem 0;
    background-color: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.navbar-brand {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary) !important;
}

.navbar-brand span { color: var(--accent); }

.nav-link {
    font-weight: 500;
    margin: 0 .35rem;
    color: var(--secondary) !important;
    transition: var(--transition);
    border-radius: 8px;
    padding: .5rem .7rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(30, 64, 175, .08);
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: .5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: .55rem .7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.dropdown-item:hover { background: rgba(30, 64, 175, .08); color: var(--primary); }

.di-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: .6rem;
    flex: 0 0 30px;
    font-size: .85rem;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: .78rem 1.35rem;
    transition: var(--transition);
    box-shadow: none;
}

.btn-primary { background-color: var(--primary); border-color: var(--primary); }

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 64, 175, .26);
}

.btn-accent { background-color: var(--accent); border-color: var(--accent); color: #fff; }

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(249, 115, 22, .3);
}

.btn-outline-light:hover { color: var(--secondary); }

/* A nav button must never wrap onto three lines when the bar gets tight. */
.navbar-nav .btn { white-space: nowrap; }

/* --- Page head ----------------------------------------------------------- */

.page-hero {
    background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 9.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero:after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(249, 115, 22, .16);
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-hero p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 760px; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.breadcrumbs { margin-top: 1.4rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs span + span:before { content: '/'; margin: 0 .55rem; opacity: .6; }

/* --- Sections ------------------------------------------------------------ */

.section { padding: 5rem 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--secondary); color: rgba(255, 255, 255, .82); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-title { text-align: center; max-width: 780px; margin: 0 auto 3rem; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 1rem; }
.section-title p { color: var(--gray); font-size: 1.05rem; }

.section-eyebrow {
    display: inline-block;
    background: rgba(30, 64, 175, .1);
    color: var(--primary);
    border-radius: 999px;
    padding: .35rem .95rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: .02em;
}

/* --- Cards --------------------------------------------------------------- */

.card-soft {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(30, 64, 175, .3); }

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
    background: rgba(30, 64, 175, .1);
    color: var(--primary);
}

.card-soft h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card-soft p { color: var(--gray); margin-bottom: 0; font-size: .96rem; }

.tick-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.tick-list li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; color: var(--gray); font-size: .95rem; }
.tick-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: .15rem;
    color: var(--success);
    font-size: .8rem;
}

/* --- Forms --------------------------------------------------------------- */

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.form-label { font-weight: 600; color: var(--secondary); margin-bottom: .35rem; font-size: .92rem; }
.form-label .optional { font-weight: 400; color: var(--gray); font-size: .85rem; }

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .8rem 1rem;
    font-size: .98rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, .12);
}

textarea.form-control { min-height: 150px; resize: vertical; }

/* The honeypot: off-screen rather than display:none, so a bot that fills in
   "every visible field" still walks into it. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Captcha ------------------------------------------------------------- */

.captcha-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--light);
    padding: 1.1rem;
}

.captcha-row { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.captcha-image { border-radius: 10px; display: block; box-shadow: var(--shadow-soft); }

.captcha-refresh {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--gray);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.captcha-refresh:hover { color: var(--primary); border-color: var(--primary); }
.captcha-input { max-width: 190px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; }
.captcha-hint { font-size: .85rem; color: var(--gray); margin: .7rem 0 0; }

/* --- Contact panel ------------------------------------------------------- */

.info-panel {
    background: linear-gradient(150deg, var(--primary-dark) 0%, var(--secondary) 100%);
    color: rgba(255, 255, 255, .88);
    border-radius: 18px;
    padding: 2.5rem;
    height: 100%;
}

.info-panel h2, .info-panel h3, .info-panel h4 { color: #fff; }
.info-panel a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.info-panel a:hover { border-bottom-color: #fff; }

.info-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; }

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .13);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    color: #fff;
}

.info-item h4 { font-size: .95rem; margin-bottom: .15rem; }
.info-item p { margin-bottom: 0; font-size: .95rem; }

/* --- Notices ------------------------------------------------------------- */

.notice { border-radius: 12px; padding: 1rem 1.15rem; font-size: .96rem; display: flex; gap: .7rem; align-items: flex-start; }
.notice-ok { background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .35); color: #065f46; }
.notice-bad { background: rgba(220, 38, 38, .08); border: 1px solid rgba(220, 38, 38, .3); color: #991b1b; }
.notice-info { background: rgba(30, 64, 175, .07); border: 1px solid rgba(30, 64, 175, .22); color: #1e3a8a; }

.sent-card { text-align: center; padding: 1rem 0 .5rem; }

.sent-tick {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(16, 185, 129, .12);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin-bottom: 1.4rem;
}

.reference-chip {
    display: inline-block;
    font-family: 'IBM Plex Sans', monospace;
    font-weight: 700;
    letter-spacing: .06em;
    background: var(--light);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: .55rem 1.1rem;
    color: var(--secondary);
}

/* --- Call to action ------------------------------------------------------ */

.cta-band {
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0 auto 1.8rem; }

/* --- Footer -------------------------------------------------------------- */

footer { background: var(--secondary); color: rgba(255, 255, 255, .72); padding: 4.5rem 0 2rem; }
.footer-heading { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
footer p { font-size: .95rem; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; display: block; padding: .3rem 0; font-size: .94rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: .35rem; }
.footer-links i { color: var(--accent); font-size: .7rem; margin-right: .45rem; }

.social-icons { display: flex; gap: .6rem; margin-top: 1.2rem; }

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover { background: var(--primary); color: #fff; }

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 3rem;
    padding-top: 1.6rem;
    font-size: .88rem;
    text-align: center;
}

.copyright a { color: rgba(255, 255, 255, .8); }

/* --- Utilities ----------------------------------------------------------- */

.text-accent { color: var(--accent) !important; }

#backToTop {
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#backToTop.visible { opacity: 1; pointer-events: auto; }

.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.appear { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card-soft:hover { transform: none; }
}

@media (max-width: 991.98px) {
    .page-hero { padding: 7.5rem 0 3.5rem; }
    .form-card, .info-panel { padding: 1.75rem; }
    .navbar-nav .btn { margin-top: .5rem; display: block; }
}

/* --- Stat band ----------------------------------------------------------- */

.stat-band { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-soft); padding: 2.2rem 1rem; }
.stat { text-align: center; padding: .5rem 1rem; }
.stat .figure { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--primary); line-height: 1.1; }
.stat .label { color: var(--gray); font-size: .92rem; margin-top: .4rem; }
.stat .note { color: #94a3b8; font-size: .78rem; margin-top: .25rem; }

/* --- The pipeline -------------------------------------------------------- */

.pipeline { position: relative; padding-left: 2.6rem; }
.pipeline:before { content: ''; position: absolute; left: 1.05rem; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(180deg, var(--primary), rgba(30, 64, 175, .15)); }

.stage { position: relative; padding-bottom: 2.4rem; }
.stage:last-child { padding-bottom: 0; }

.stage-dot {
    position: absolute;
    left: -2.6rem;
    top: .1rem;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

.stage-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: rgba(30, 64, 175, .1); border-radius: 6px; padding: .18rem .5rem; margin-bottom: .45rem; }
.stage h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.stage p { color: var(--gray); margin-bottom: .5rem; font-size: .97rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip { font-size: .78rem; font-weight: 500; color: var(--secondary); background: var(--light); border: 1px solid var(--border); border-radius: 999px; padding: .22rem .7rem; }

/* --- Split feature rows -------------------------------------------------- */

.feature-figure { background: linear-gradient(140deg, #eef4ff 0%, #e6edfb 100%); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; height: 100%; }
.feature-figure h4 { font-size: 1rem; margin-bottom: 1rem; }

.evidence-line { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: .7rem .9rem; font-size: .88rem; color: var(--gray); margin-bottom: .7rem; }
.evidence-line strong { color: var(--secondary); }

.code-pill { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .45rem .75rem; font-size: .85rem; font-weight: 600; color: var(--secondary); margin: 0 .4rem .5rem 0; }
.code-pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--success); }
.code-pill .conf { font-weight: 500; color: var(--gray); font-size: .78rem; }
