/* Shared marketing-site styles — used by Platform/Solutions/Resources/About pages */

:root {
    --primary:       #0369A1;
    --primary-600:   #0284C7;
    --primary-800:   #075985;
    --primary-900:   #0C4A6E;
    --teal:          #0891B2;
    --teal-light:    #22D3EE;
    --sky:           #38BDF8;
    --sky-tint:      #E0F2FE;
    --sky-tint-2:    #F0F9FF;
    --success:       #10B981;
    --warning:       #D97706;
    --danger:        #DC2626;
    --bg:            #FFFFFF;
    --bg-alt:        #F8FAFC;
    --surface:       #FFFFFF;
    --border:        #E2E8F0;
    --border-strong: #CBD5E1;
    --border-accent: #BAE6FD;
    --ink:           #0F172A;
    --ink-2:         #1E293B;
    --ink-3:         #334155;
    --muted:         #64748B;
    --muted-2:       #94A3B8;
    --grad:          linear-gradient(135deg, #0369A1 0%, #0891B2 50%, #06B6D4 100%);
    --grad-line:     linear-gradient(135deg, rgba(3,105,161,.55), rgba(8,145,178,.5), rgba(6,182,212,.55));
    --grad-light:    linear-gradient(135deg, #E0F2FE 0%, #CFFAFE 100%);
    --shadow-xs:     0 1px 2px rgba(15,23,42,.04);
    --shadow-sm:     0 2px 6px rgba(15,23,42,.05);
    --shadow:        0 10px 30px -12px rgba(15,23,42,.12);
    --shadow-lg:     0 24px 50px -20px rgba(15,23,42,.18);
    --radius:        12px;
    --radius-lg:     18px;
    --radius-xl:     24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv11','ss01','ss03';
    color: var(--ink-3);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
::selection { background: rgba(3,105,161,.18); color: var(--primary-900); }

h1, h2, h3, h4, h5 { color: var(--ink); letter-spacing: -.018em; line-height: 1.2; }

/* ===== Nav ===== */
.navbar {
    background: rgba(255,255,255,.82) !important;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(226,232,240,.7);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: all .3s ease;
}
.navbar.scrolled { background: rgba(255,255,255,.96) !important; box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.08); }
.navbar .container { min-height: 72px; }
.navbar-brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -.012em; color: var(--ink) !important; display: flex; align-items: center; gap: .6rem; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 8px 22px rgba(3,105,161,.3), inset 0 -2px 4px rgba(0,0,0,.08); overflow: hidden; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.navbar-nav .nav-link { font-weight: 500; font-size: .95rem; color: var(--ink-3) !important; margin: 0 .15rem; padding: .5rem .8rem !important; border-radius: 8px; transition: all .2s ease; }
.navbar-nav .nav-link:hover { color: var(--primary) !important; background: var(--sky-tint-2); }
.navbar-nav .nav-link.active { color: var(--primary) !important; background: var(--sky-tint); }

/* Mega dropdown — Bootstrap toggles `display: none` on .dropdown-menu and
   switches to the rule we set here via `.show`. We keep the grid layout
   only on `.show` so closed menus stay hidden. */
.dropdown-menu.mega {
    min-width: 560px; padding: 1rem; border-radius: 14px; border: 1px solid var(--border);
    box-shadow: 0 24px 50px -20px rgba(15,23,42,.18);
    grid-template-columns: 1fr 1fr; gap: .25rem .75rem;
}
.dropdown-menu.mega.show { display: grid; }
.dropdown-menu.mega a { display: flex; align-items: flex-start; gap: .75rem; padding: .65rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); transition: background .15s; }
.dropdown-menu.mega a:hover { background: var(--sky-tint-2); color: var(--primary-900); }
.dropdown-menu.mega a i { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; margin-top: .15rem; }
.dropdown-menu.mega a .dd-title { font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.dropdown-menu.mega a .dd-desc { font-size: .78rem; color: var(--muted); margin-top: .15rem; line-height: 1.35; }
@media (max-width: 991px) { .dropdown-menu.mega { min-width: 100%; grid-template-columns: 1fr; } }

/* Buttons */
.btn { font-weight: 600; letter-spacing: -.005em; border-radius: 10px; padding: .6rem 1.1rem; transition: all .2s ease; }
.btn-lg { padding: .9rem 1.75rem; font-size: 1rem; }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 26px -8px rgba(3,105,161,.45); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; box-shadow: 0 16px 36px -10px rgba(3,105,161,.55); }
.btn-outline-primary { background: #fff; border: 1px solid var(--border-strong); color: var(--ink); }
.btn-outline-primary:hover { background: var(--sky-tint-2); border-color: var(--primary); color: var(--primary-800); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--sky-tint-2); color: var(--primary-800); }
.btn-white { background: #fff; color: var(--primary-800); border: 1px solid #fff; }
.btn-white:hover { background: var(--sky-tint-2); color: var(--primary-900); transform: translateY(-1px); }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Hero */
.page-hero {
    padding: 9rem 0 4rem;
    position: relative; overflow: hidden;
    background:
      radial-gradient(1000px 500px at 50% -10%, rgba(56,189,248,.18), transparent 60%),
      radial-gradient(900px 400px at 100% 10%, rgba(8,145,178,.12), transparent 60%),
      linear-gradient(180deg, var(--sky-tint-2) 0%, #fff 100%);
}
.page-hero .eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .85rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--border-accent);
    color: var(--primary-800); font-weight: 600; font-size: .82rem;
    box-shadow: var(--shadow-xs); margin-bottom: 1.25rem;
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; color: var(--ink); margin-bottom: 1.25rem; }
.page-hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { font-size: 1.15rem; max-width: 720px; color: var(--ink-3); margin-bottom: 2rem; }
.page-hero .hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Sections */
section { padding: 4rem 0; }
section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 760px; }
.section-eyebrow { color: var(--primary); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; display: inline-block; margin-bottom: .75rem; }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 800; margin-bottom: .75rem; color: var(--ink); }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 720px; }

/* Feature card */
.feature-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.75rem;
    height: 100%; transition: all .25s ease;
    box-shadow: var(--shadow-xs);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-accent); }
.feature-card .ic {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--grad-light); color: var(--primary-800);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Metric card */
.metric-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.5rem; text-align: center;
}
.metric-card .value { font-size: 2.2rem; font-weight: 800; color: var(--primary-800); line-height: 1.1; letter-spacing: -.02em; }
.metric-card .label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-top: .35rem; font-weight: 600; }

/* Code block */
pre.code {
    background: #0B1526; color: #E2E8F0; border-radius: 14px;
    padding: 1.25rem 1.5rem; font-family: 'JetBrains Mono', monospace;
    font-size: .85rem; line-height: 1.6; overflow-x: auto; margin: 0;
    border: 1px solid rgba(255,255,255,.08);
}
pre.code .k { color: #93C5FD; }
pre.code .s { color: #86EFAC; }
pre.code .n { color: #FCA5A5; }
pre.code .c { color: #64748B; }

/* Chart container */
.chart-wrap {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.5rem; box-shadow: var(--shadow-xs);
}
.chart-wrap h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 1rem; }
.chart-wrap canvas { max-width: 100%; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: .5rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--teal-light)); border-radius: 1px; }
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.7rem; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline-item h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.timeline-item .ts { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.timeline-item p { color: var(--muted); margin: .35rem 0 0; font-size: .92rem; }

/* Illustration box (SVG holder) */
.illus {
    background: linear-gradient(135deg, var(--sky-tint-2) 0%, #fff 60%, #ECFEFF 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex; align-items: center; justify-content: center;
    min-height: 320px;
}
.illus svg { max-width: 100%; height: auto; }

/* CTA strip */
.cta {
    background: var(--grad); color: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem; margin-top: 2rem;
    position: relative; overflow: hidden;
}
.cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 240px at 90% 20%, rgba(255,255,255,.18), transparent 60%);
    pointer-events: none;
}
.cta h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; margin-bottom: .5rem; }
.cta p { color: rgba(255,255,255,.88); margin-bottom: 0; max-width: 640px; }

/* Tag */
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--sky-tint); color: var(--primary-800); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.tag.green { background: #DCFCE7; color: #166534; }
.tag.orange { background: #FFEDD5; color: #9A3412; }
.tag.purple { background: #EDE9FE; color: #5B21B6; }

/* List with check */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .5rem 0 .5rem 1.9rem; position: relative; color: var(--ink-3); }
.check-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .5rem; color: var(--success); font-weight: 600; }

/* Quote */
.quote {
    background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary);
    border-radius: 12px; padding: 1.5rem; font-style: italic; color: var(--ink-2);
}
.quote .who { font-style: normal; color: var(--muted); font-size: .85rem; margin-top: .75rem; font-weight: 600; }

/* Footer */
.footer { background: #071C33; color: #94A3B8; padding: 4rem 0 2rem; margin-top: 4rem; border-top: 1px solid var(--border); }
.footer h5 { color: #fff; font-weight: 700; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: #94A3B8; text-decoration: none; display: block; padding: .25rem 0; font-size: .9rem; transition: color .15s ease; }
.footer a:hover { color: #7DD3FC; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { max-width: 320px; font-size: .9rem; line-height: 1.6; margin-top: .75rem; color: #CBD5E1; }
.footer-bottom { border-top: 1px solid rgba(186,230,253,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #94A3B8; }

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .page-hero { padding: 7rem 0 3rem; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    section { padding: 3rem 0; }
}
