/* OpenLake marketing site - single shared stylesheet.
   Brand: primary blue #1976D2 (matches the platform webapp theme), deep navy for dark
   sections. System font stack only - no webfont requests, keeps pages fast and cheap. */

:root {
    --blue: #1976d2;
    --blue-dark: #115293;
    --blue-light: #e8f1fb;
    --navy: #0b1d33;
    --navy-2: #10263f;
    --ink: #1e2a38;
    --slate: #46586b;
    --line: #dde5ee;
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --radius: 10px;
    --maxw: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 28px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}
.main-nav a {
    color: var(--slate);
    font-weight: 600;
    font-size: 0.95rem;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue); }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-light); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
}

/* ---------- Hero / dark sections ---------- */

.hero {
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(25, 118, 210, 0.35), transparent 60%),
        radial-gradient(900px 420px at 10% 110%, rgba(25, 118, 210, 0.22), transparent 60%),
        var(--navy);
    color: #fff;
    padding: 88px 0 96px;
}
.hero .kicker { color: #8fc1f2; }
.hero p.lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: #c3d3e5;
    max-width: 46em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: #8ba3bd; }

.kicker {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
    background:
        radial-gradient(900px 400px at 85% 0%, rgba(25, 118, 210, 0.3), transparent 60%),
        var(--navy);
    color: #fff;
}
.section-dark h2 { color: #fff; }
.section-dark p { color: #c3d3e5; }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.section-dark .section-head p { color: #c3d3e5; }

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

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

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.card h3 { margin-top: 14px; }
.card p { color: var(--slate); margin-bottom: 0; font-size: 0.98rem; }

.icon-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-light);
    color: var(--blue);
}
.icon-dot svg { width: 24px; height: 24px; }

.section-dark .card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: #b7c8da; }
.section-dark .icon-dot { background: rgba(25, 118, 210, 0.25); color: #8fc1f2; }

/* ---------- Stack strip ---------- */

.stack-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.stack-strip li {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate);
}

/* ---------- Stats band ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .num {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: #fff;
    display: block;
}
.stat .label { color: #9fb4ca; font-size: 0.95rem; }

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
    position: relative;
    padding: 0 0 28px 34px;
    border-left: 2px solid var(--line);
    margin-left: 10px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--blue);
}
.timeline .phase { font-weight: 800; }
.timeline .dur {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 999px;
    padding: 2px 10px;
    margin-left: 8px;
    white-space: nowrap;
}
.timeline p { color: var(--slate); margin: 4px 0 0; font-size: 0.97rem; }

/* ---------- Tables ---------- */

.metric-table { width: 100%; border-collapse: collapse; }
.metric-table th, .metric-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.metric-table th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.metric-table td.metric { font-weight: 800; color: var(--blue); white-space: nowrap; }

/* ---------- Feature rows (platform page) ---------- */

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 44px 0;
    border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: 0; }
.feature-row h3 { font-size: 1.45rem; }
.feature-row p { color: var(--slate); }
.feature-row ul { color: var(--slate); padding-left: 20px; margin: 0; }
.feature-row ul li { margin-bottom: 6px; }

.feature-visual {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    border-radius: var(--radius);
    padding: 26px;
    color: #cfe1f3;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
}
.feature-visual .c { color: #6d87a3; }
.feature-visual .k { color: #8fc1f2; }
.feature-visual .s { color: #9fe3b4; }

/* ---------- CTA banner ---------- */

.cta-banner {
    background:
        radial-gradient(800px 360px at 15% 0%, rgba(25, 118, 210, 0.4), transparent 60%),
        var(--navy);
    color: #fff;
    border-radius: 16px;
    padding: 56px 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta-banner h2 { margin: 0 0 6px; }
.cta-banner p { margin: 0; color: #c3d3e5; }

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

.site-footer {
    background: var(--navy);
    color: #9fb4ca;
    padding: 56px 0 32px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #9fb4ca; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 26px; }
.footer-tag { max-width: 30em; font-size: 0.95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; font-size: 0.85rem; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 64px 0 56px; }
.page-hero p.lead { font-size: 1.15rem; color: #c3d3e5; max-width: 44em; }

/* ---------- Reveal animation (JS adds .in; off under reduced motion) ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 24px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 16px 24px 20px;
        gap: 14px;
    }
    .main-nav.open { display: flex; }
    .main-nav .btn { text-align: center; }
    .hero { padding: 64px 0 72px; }
    .cta-banner { padding: 40px 28px; }
}
