/* ============================================================ *
 *  Caliper marketing site — base styles                         *
 *  Designed as a clean starting template you can lift sections  *
 *  from. Single brand color, system fonts, generous whitespace. *
 * ============================================================ */

:root {
    --brand: #3372d8;
    --brand-dark: #2058b5;
    --accent: #f08c1a;
    --ink: #1a1f29;
    --ink-soft: #4a5260;
    --ink-mute: #6a7383;
    --line: #e4e7ec;
    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.06);
    --shadow-md: 0 6px 18px rgba(20, 30, 50, 0.08);
    --max-width: 1200px;
}

* { box-sizing: border-box; }

/* Smooth in-page scrolling, offset for the sticky 64px header */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; padding: 0.05em 0.4em; background: var(--bg-alt); border-radius: 4px; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ─────────── Header ─────────── */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 18px;
}
.brand-icon { width: 28px; height: 28px; border-radius: 6px; }
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav a {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav-cta {
    background: var(--brand);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}
.nav-cta:hover { background: var(--brand-dark); color: #fff !important; }

/* ─────────── Hero ─────────── */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 16px;
}
.hero h1 {
    font-size: 56px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    font-weight: 700;
}
.lede {
    font-size: 19px;
    color: var(--ink-soft);
    margin: 0 0 32px;
    max-width: 580px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 24px;
    color: var(--ink-mute);
    font-size: 14px;
}
.hero-art img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ─────────── Buttons ─────────── */
.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost {
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }

/* ─────────── Section primitives ─────────── */
.section-title {
    font-size: 38px;
    letter-spacing: -0.015em;
    font-weight: 700;
    margin: 0 0 16px;
}
.section-lede {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 720px;
    margin: 0;
}
h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    margin: 32px 0 14px;
    font-weight: 600;
}

.intro {
    padding: 80px 0 20px;
    text-align: center;
}
.intro .section-lede { margin: 0 auto; }

/* ─────────── Feature grid ─────────── */
.features { padding: 80px 0; }
.feature-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}
.feature-card h3 {
    margin: 20px 24px 8px;
    font-size: 20px;
    font-weight: 600;
}
.feature-card p {
    margin: 0 24px 24px;
    color: var(--ink-soft);
    font-size: 15px;
}

/* ─────────── Detail sections ─────────── */
.detail-section {
    padding: 100px 0;
    border-top: 1px solid var(--line);
}
.detail-section.alt {
    background: var(--bg-alt);
    border-top: none;
}
.detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.detail-inner.reverse .detail-copy { order: 2; }
.detail-inner.reverse .detail-art  { order: 1; }
.detail-copy h2 {
    font-size: 36px;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    font-weight: 700;
}
.detail-copy p {
    color: var(--ink-soft);
    font-size: 17px;
    margin: 0;
}
.detail-art img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ─────────── Lists ─────────── */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bullet-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 16px;
}
.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.7;
}
.pill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill-list li {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 14px;
    color: var(--ink-soft);
}
.detail-section.alt .pill-list li { background: #fff; }

/* ─────────── Specs ─────────── */
.specs {
    padding: 100px 0;
    background: var(--bg-alt);
}
.specs-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}
.specs-grid h4 {
    margin-top: 0;
}

/* ─────────── CTA ─────────── */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    text-align: center;
}
.cta h2 {
    font-size: 42px;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: #fff;
}
.cta p {
    font-size: 18px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.85);
}
.cta .btn-primary {
    background: #fff;
    color: var(--brand-dark);
}
.cta .btn-primary:hover { background: #f1f4fb; color: var(--brand-dark); }

/* ─────────── Footer ─────────── */
.site-footer {
    padding: 32px 0;
    background: #131822;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.site-footer strong { color: #fff; }
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: #fff; }

/* ─────────── Responsive ─────────── */
@media (max-width: 900px) {
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 42px; }
    .hero-inner,
    .detail-inner { grid-template-columns: 1fr; gap: 40px; }
    .detail-inner.reverse .detail-copy,
    .detail-inner.reverse .detail-art { order: initial; }
    .nav a:not(.nav-cta) { display: none; }
    .section-title { font-size: 30px; }
    .detail-copy h2 { font-size: 28px; }
    .cta h2 { font-size: 32px; }
    .container { padding: 0 24px; }
    .detail-section { padding: 70px 0; }
    .specs { padding: 70px 0; }
    .features { padding: 60px 0; }
}
