/*
 * Fulcrum product site — turinglambdaai family design system.
 * Same token skeleton and class vocabulary as rivet.jrtx.site; each site
 * also overrides the accent variables in a small inline <style> block in
 * its <head>. Fulcrum's accent family is warm amber/copper.
 */

:root {
    --bg: #F5F5F7;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --text: #1D1D1F;
    --text-2: #6E6E73;
    --text-3: #8E8E93;
    --accent: #D97706;
    --accent-hover: #B45309;
    --accent-soft: rgba(217, 119, 6, 0.15);
    --accent-tint: rgba(217, 119, 6, 0.08);
    --accent-bright: #FBBF24;
    --border: rgba(0, 0, 0, 0.10);
    --border-strong: rgba(0, 0, 0, 0.16);

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: "Newsreader", Georgia, serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

    --wrapper-width: 1080px;
    --radius-l: 20px;
    --radius-m: 14px;
    --radius-s: 10px;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 40px rgba(0, 0, 0, 0.09);
    --shadow-window: 0 30px 70px rgba(0, 0, 0, 0.13), 0 8px 20px rgba(0, 0, 0, 0.06);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.011em;
    min-width: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: var(--accent); transition: color 0.2s var(--ease); }
ul { list-style: none; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Navigation ---------- */
.nav-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 56px;
    background: rgba(245, 245, 247, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 9999;
}

.nav-wrapper {
    max-width: var(--wrapper-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 21px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo { flex-shrink: 0; border-radius: 6px; }

.nav-menu { display: flex; gap: 28px; align-items: center; }

.nav-menu a {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 450;
    transition: color 0.2s;
}
.nav-menu a:hover { color: var(--accent); }

/* Language dropdown */
.lang-dropdown-wrapper { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-2);
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s var(--ease);
}
.lang-btn:hover { color: var(--accent); background: var(--accent-tint); }
.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    box-shadow: var(--shadow-hover);
    padding: 6px;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.18s var(--ease);
    z-index: 10000;
}
.lang-dropdown-wrapper:hover .lang-menu,
.lang-dropdown-wrapper:focus-within .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-menu li {
    padding: 7px 12px;
    font-size: 14px;
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.lang-menu li:hover { background: var(--accent-tint); color: var(--accent); }

/* ---------- Layout ---------- */
.container { max-width: var(--wrapper-width); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 14px;
}
.section-title .accent { color: var(--accent); font-style: italic; }

.section-lead {
    font-size: 18px;
    color: var(--text-2);
    max-width: 640px;
    line-height: 1.65;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; text-align: center; overflow: hidden; }

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero h1 span { display: block; }

.hero .lead {
    font-size: 19px;
    color: var(--text-2);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s var(--ease);
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px var(--accent-soft);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px var(--accent-soft);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
}
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }

.hero-visual {
    max-width: 900px;
    margin: 56px auto 0;
    position: relative;
}
.hero-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 640px;
    height: 380px;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
    pointer-events: none;
}

/* ---------- Launcher palette mockup (pure HTML/CSS) ---------- */
.launcher {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    background: #1E1E22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-window);
    text-align: left;
    overflow: hidden;
}
.launcher-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.launcher-chevron {
    color: var(--accent-bright);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    user-select: none;
}
.launcher-query {
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-mono);
    font-size: 16px;
}
.launcher-caret {
    width: 2px;
    height: 20px;
    margin-left: 1px;
    background: var(--accent-bright);
    animation: caret-blink 1.1s step-end infinite;
}
@keyframes caret-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.launcher-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 18px 11px 15px;
    border-left: 3px solid transparent;
}
.launcher-row.is-active {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--accent-bright);
}
.row-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.row-title {
    min-width: 0;
    flex-shrink: 1;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.row-value {
    flex-shrink: 0;
    color: var(--accent-bright);
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 600;
}
.row-kind {
    margin-left: auto;
    padding-left: 12px;
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.launcher-row.is-active .row-kind { color: var(--accent-bright); }
.launcher-footer {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 9px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.launcher-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
}
.launcher-hint-right { margin-left: auto; }
.launcher-kbd {
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-width: 2px;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Bento feature grid ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 48px;
}
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 28px;
    transition: all 0.25s var(--ease);
    box-shadow: var(--shadow-card);
}
.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.bento-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 14px 0 6px;
    letter-spacing: -0.01em;
}
.bento-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Platforms grid ---------- */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 44px;
}
.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 24px;
    text-align: center;
    transition: all 0.2s var(--ease);
    box-shadow: var(--shadow-card);
}
.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}
.platform-icon { margin-bottom: 8px; color: var(--text-2); }
.platform-name { font-weight: 600; font-size: 15px; }
.platform-format { font-size: 12.5px; color: var(--text-3); font-family: var(--font-mono); margin-top: 3px; }

/* ---------- Badges & chips ---------- */
.chips-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-2);
}
.version-badge .ver { color: var(--accent); font-weight: 600; }
.rivet-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card);
    border: 1px solid var(--accent-soft);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 550;
    color: var(--accent);
    box-shadow: var(--shadow-card);
    transition: all 0.2s var(--ease);
}
.rivet-chip:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- Compare table ---------- */
.compare-table-wrap {
    margin-top: 44px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: var(--radius-l);
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}
table.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}
.compare th, .compare td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.compare th {
    font-weight: 600;
    background: var(--accent-tint);
    color: var(--text);
    white-space: nowrap;
}
.compare td:first-child { font-weight: 550; color: var(--text-2); white-space: nowrap; }
.compare tr:last-child td { border-bottom: none; }
.compare td { color: var(--text); }
.compare .yes { color: var(--accent); font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 48px;
}
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 30px 28px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s var(--ease);
}
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-hover);
}
.plan-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 600; color: var(--text); }
.plan-price {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-top: 12px;
}
.plan-price .unit {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 450;
    letter-spacing: 0;
    color: var(--text-3);
    margin-left: 4px;
}
.plan-alt { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.plan-features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 11px;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-2);
}
.plan-features .tick { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pricing-note { margin-top: 30px; text-align: center; font-size: 14px; color: var(--text-2); }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 48px;
    margin-top: 40px;
}
.footer-content {
    max-width: var(--wrapper-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 13px; color: var(--text-3); }

/* ---------- Scroll animation ----------
   Hidden-until-revealed only when JS is active (html.js-anim), so content
   stays visible without JavaScript and for crawlers. */
html.js-anim .animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-anim .animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .platforms-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
    section { padding: 56px 0; }
    .hero { padding: 72px 0 48px; }
}

@media (max-width: 600px) {
    .nav-container { height: 52px; }
    .nav-wrapper,
    .container,
    .footer-content { padding-left: 18px; padding-right: 18px; }
    .nav-brand { gap: 8px; font-size: 19px; }
    .nav-logo { width: 26px; height: 26px; }
    .nav-menu { gap: 6px; }
    .nav-menu a.optional { display: none; }
    .lang-btn {
        min-height: 44px;
        padding: 6px 8px;
        font-size: 13px;
    }
    .lang-menu { top: calc(100% + 3px); }

    section { padding: 48px 0; }
    .hero { padding: 56px 0 36px; }
    .hero h1 {
        font-size: clamp(34px, 10.5vw, 42px);
        line-height: 1.06;
        margin-bottom: 18px;
    }
    .hero .lead {
        max-width: 34rem;
        margin-bottom: 26px;
        font-size: 17px;
        line-height: 1.55;
    }
    .hero-buttons {
        max-width: 320px;
        margin: 0 auto 16px;
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        padding: 11px 20px;
    }

    .hero-visual { margin-top: 40px; }
    .hero-visual::before { width: 130%; height: 130%; }
    .launcher { border-radius: 12px; }
    .launcher-search { gap: 9px; padding: 13px 14px; }
    .launcher-query { font-size: 15px; }
    .launcher-caret { height: 18px; }
    .launcher-row { gap: 10px; padding: 10px 14px 10px 12px; }
    .row-icon { width: 26px; height: 26px; border-radius: 6px; }
    .row-title { font-size: 13.5px; }
    .row-value { font-size: 12.5px; }
    .row-kind { font-size: 9.5px; padding-left: 10px; }
    .launcher-footer { gap: 10px 14px; flex-wrap: wrap; padding: 8px 14px; }

    .eyebrow { margin-bottom: 14px; font-size: 12px; }
    .bento-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
    .bento-card { padding: 22px; border-radius: 16px; }
    .section-title { font-size: 34px; }
    .section-lead { font-size: 16px; line-height: 1.6; }

    .platforms-grid { margin-top: 32px; }
    .chips-row { margin-top: 26px; }

    .pricing-grid { margin-top: 32px; }
    .pricing-card { padding: 24px 22px; }
    .plan-price { font-size: 38px; }
    .plan-badge { top: 20px; right: 20px; }

    /* Compare table stays a real table and scrolls horizontally. */
    .compare-table-wrap {
        margin-top: 32px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        border-radius: var(--radius-m);
    }
    table.compare { min-width: 700px; font-size: 13px; }
    .compare th, .compare td { padding: 11px 14px; }

    footer { margin-top: 20px; padding: 32px 0 36px; }
    .footer-content { align-items: flex-start; gap: 18px; }
    .footer-links { width: 100%; gap: 12px 20px; flex-wrap: wrap; }
}

@media (max-width: 360px) {
    .nav-wrapper,
    .container,
    .footer-content { padding-left: 14px; padding-right: 14px; }
    .hero h1 { font-size: 33px; }
    .hero .lead { font-size: 16px; }
    .section-title { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
