:root {
    --bg: #080a0f;
    --bg-soft: #0d1119;
    --panel: #111722;
    --panel-2: #151d2a;
    --text: #f7f8fb;
    --muted: #a7afbc;
    --line: rgba(255,255,255,.11);
    --red: #ff2b2f;
    --red-2: #d90f1b;
    --red-soft: rgba(255,43,47,.16);
    --white: #ffffff;
    --max: 1220px;
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 8%, rgba(255,43,47,.10), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(255,255,255,.04), transparent 24%),
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
    z-index: -1;
}

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8,10,15,.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    font-size: 20px;
}
.brand-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: url("assets/logo_silhouette.png") center / contain no-repeat;
    filter: drop-shadow(0 0 12px rgba(255,43,47,.35));
}
.brand-sub { color: var(--red); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    padding: 10px 12px;
    color: #d9dde5;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.08); color: white; }
.nav-cta { border: 1px solid rgba(255,43,47,.5); color: white !important; }

.hero {
    min-height: 720px;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 54px;
    align-items: center;
    padding: 76px 0 84px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ff7073;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
h1, h2, h3 { margin: 0; line-height: 1.02; }
.hero h1 {
    font-size: clamp(64px, 8vw, 118px);
    margin-top: 18px;
    letter-spacing: -.055em;
    text-transform: uppercase;
    font-weight: 1000;
}
.hero h1 span {
    display: block;
    color: var(--red);
    text-shadow: 0 0 34px rgba(255,43,47,.22);
}
.hero-copy {
    max-width: 640px;
    margin: 28px 0 0;
    font-size: clamp(18px, 2vw, 22px);
    color: #ccd2dc;
}
.hero-copy strong { color: white; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 850;
    font-size: 14px;
}
.btn-primary { background: var(--red); color: white; box-shadow: 0 10px 36px rgba(255,43,47,.28); }
.btn-primary:hover { background: #ff4044; }
.btn-secondary { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.btn-secondary:hover { background: rgba(255,255,255,.09); }
.hero-note { margin-top: 23px; color: #8e98a7; font-size: 13px; }

.hero-mosaic {
    position: relative;
    min-height: 570px;
}
.hero-mosaic::before {
    content: "";
    position: absolute;
    inset: 10% 5%;
    border: 1px solid rgba(255,43,47,.35);
    transform: skewY(-3deg);
    box-shadow: 0 0 60px rgba(255,43,47,.11);
}
.mosaic-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 20px 55px rgba(0,0,0,.45);
    background: #111;
}
.mosaic-card img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-a { width: 52%; height: 39%; top: 0; right: 5%; transform: rotate(2deg); clip-path: polygon(8% 0,100% 0,92% 100%,0 88%); }
.mosaic-b { width: 58%; height: 42%; top: 25%; left: 0; transform: rotate(-2deg); clip-path: polygon(0 0,88% 7%,100% 100%,8% 93%); }
.mosaic-c { width: 51%; height: 39%; bottom: 0; right: 0; transform: rotate(1.8deg); clip-path: polygon(8% 0,100% 8%,93% 100%,0 90%); }
.mosaic-d { width: 31%; height: 31%; bottom: 4%; left: 11%; transform: rotate(-4deg); clip-path: polygon(0 7%,100% 0,91% 100%,5% 93%); }

.launch-strip {
    background: linear-gradient(90deg, #cf101a, var(--red), #a90b14);
    color: white;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}
.launch-strip .container { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.launch-strip b { color: #fff; }

.section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section-light { background: #f4f5f7; color: #0c1118; }
.section-kicker { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.section-title { font-size: clamp(42px, 5vw, 72px); letter-spacing: -.045em; margin-top: 13px; max-width: 900px; }
.section-lead { font-size: 20px; color: var(--muted); max-width: 820px; margin: 22px 0 0; }
.section-light .section-lead { color: #5e6672; }

.pitch-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: start;
}
.pitch-copy p { color: #c0c7d1; font-size: 18px; max-width: 680px; }
.pitch-copy p strong { color: white; }
.stat-stack { display: grid; gap: 12px; }
.stat-card {
    padding: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border-radius: 18px;
}
.stat-card strong { display: block; font-size: 28px; letter-spacing: -.03em; }
.stat-card span { display: block; color: var(--muted); margin-top: 5px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    min-height: 280px;
}
.card-number { color: var(--red); font-weight: 900; font-size: 12px; letter-spacing: .16em; }
.card h3 { margin-top: 40px; font-size: 28px; letter-spacing: -.03em; }
.card p { color: var(--muted); margin: 14px 0 0; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.feature-card {
    background: white;
    color: #111722;
    border-radius: 22px;
    padding: 32px;
    min-height: 270px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e1e4e8;
}
.feature-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    right: -40px;
    top: -40px;
    background: radial-gradient(circle, rgba(255,43,47,.18), transparent 68%);
}
.feature-card .mini { color: var(--red); font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.feature-card h3 { margin-top: 18px; font-size: 30px; max-width: 500px; }
.feature-card p { color: #5c6572; max-width: 560px; }

.gallery-wrap { margin-top: 46px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.gallery-main, .gallery-side { display: grid; gap: 16px; }
.gallery-main { grid-template-rows: 1fr .7fr; }
.gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-img { border-radius: 20px; overflow: hidden; min-height: 220px; border: 1px solid var(--line); }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-img:hover img { transform: scale(1.025); }
.gallery-callout {
    border-radius: 20px;
    background: linear-gradient(145deg, #ff2b2f, #ac0711);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.gallery-callout h3 { font-size: 34px; }
.gallery-callout p { margin: 12px 0 0; color: rgba(255,255,255,.88); }

.free-band { padding: 88px 0; background: linear-gradient(120deg, #15060a, #090b10 55%, #120305); }
.free-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.free-band h2 { font-size: clamp(48px, 6vw, 84px); letter-spacing: -.05em; }
.free-band h2 span { color: var(--red); }
.free-band p { color: #c4c9d2; font-size: 19px; max-width: 700px; }
.price-card { border: 1px solid rgba(255,43,47,.45); background: rgba(255,43,47,.075); border-radius: 24px; padding: 30px; }
.price-card .price { font-size: 62px; line-height: 1; font-weight: 950; letter-spacing: -.05em; }
.price-card .price small { font-size: 18px; color: #c8ced7; letter-spacing: 0; }
.price-card p { font-size: 14px; margin-bottom: 0; }

.page-hero { padding: 92px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(52px, 7vw, 92px); text-transform: uppercase; letter-spacing: -.05em; }
.page-hero p { max-width: 780px; color: var(--muted); font-size: 19px; margin-top: 20px; }

.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; }
.download-card { border-radius: 24px; background: var(--panel); border: 1px solid var(--line); padding: 32px; }
.download-card.primary { border-color: rgba(255,43,47,.45); background: linear-gradient(145deg, rgba(255,43,47,.09), rgba(255,255,255,.03)); }
.download-card h2 { font-size: 34px; }
.download-card p { color: var(--muted); }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.version { color: #ff7477; font-weight: 800; font-size: 13px; }
.notes { margin-top: 34px; color: var(--muted); font-size: 14px; }
.archive { margin-top: 48px; border-top: 1px solid var(--line); }
.archive-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.archive-row span { color: var(--muted); font-size: 14px; }
.archive-row .download-actions { margin-top: 0; }
.archive-group { border-bottom: 1px solid var(--line); }
.archive-group summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
}
.archive-group summary::-webkit-details-marker { display: none; }
.archive-group summary span { color: var(--muted); font-size: 14px; }
.archive-group summary::after {
    content: "+";
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    font-size: 20px;
    font-weight: 700;
    transition: background .2s, border-color .2s;
}
.archive-group summary:hover::after { background: rgba(255,255,255,.09); }
.archive-group[open] summary::after { content: "−"; border-color: var(--red); background: var(--red-soft); }
.archive-group summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 8px; }
.archive-list { padding: 0 0 12px 22px; border-left: 2px solid var(--red-soft); margin-bottom: 22px; }
.archive-list .archive-row:last-child { border-bottom: 0; }
.archive-empty { color: var(--muted); font-size: 14px; margin: 0; padding: 14px 0; }
.btn.is-loading { opacity: .6; pointer-events: none; }

/* Documentation page: site header on top, generated docs app fills the rest of the window */
.docs-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.docs-page .site-header { position: static; flex-shrink: 0; }
.docs-frame { flex: 1; width: 100%; min-height: 0; border: 0; display: block; background: #000; }

.video-toolbar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-top: 36px; }
.video-search {
    min-width: min(100%, 390px);
    height: 48px;
    background: #111722;
    color: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
}
.video-search:focus { border-color: rgba(255,43,47,.55); box-shadow: 0 0 0 4px rgba(255,43,47,.08); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { border: 1px solid var(--line); background: #111722; color: #cfd5de; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 800; }
.filter-btn.active, .filter-btn:hover { color: white; background: var(--red); border-color: var(--red); }
.video-list { margin-top: 30px; border-top: 1px solid var(--line); }
.video-row {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.video-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #1b2230, #0c1017);
    position: relative;
    border: 1px solid var(--line);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb.placeholder { display: grid; place-items: center; color: #fff; font-weight: 950; font-size: 28px; }
.video-thumb::after {
    content: "▶";
    position: absolute;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    left: 14px;
    bottom: 12px;
    background: rgba(255,43,47,.94);
    color: white;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,.34);
}
.video-title { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.video-subtitle { color: #f07376; margin-top: 4px; font-size: 14px; font-weight: 750; }
.video-description { margin: 9px 0 0; color: var(--muted); font-size: 14px; max-width: 780px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tag { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: #cbd1db; }
.video-link { white-space: nowrap; color: white; font-size: 13px; font-weight: 900; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 10px 14px; }
.video-link:hover { border-color: var(--red); background: var(--red-soft); }
.no-results { color: var(--muted); padding: 50px 0; text-align: center; display: none; }

.footer { padding: 42px 0 52px; color: #8f98a6; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.footer .brand { color: white; }
.footer small { display: block; margin-top: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 960px) {
    /* Header links drop to a slim second row; Get Incisor stays beside the brand */
    .nav { height: auto; flex-wrap: wrap; justify-content: flex-start; gap: 0 12px; padding-top: 12px; }
    .nav::after { content: ""; flex-basis: 100%; order: 2; }
    .nav-links { display: contents; }
    .nav-cta { order: 1; margin-left: auto; }
    .nav-links a:not(.nav-cta) { order: 3; padding: 6px 10px; font-size: 13px; margin: 6px -8px 8px 0; }
    .nav-links a:not(.nav-cta):first-child { margin-left: -10px; }
    .fl-category { scroll-margin-top: 130px; }
    .hero-grid, .pitch-grid, .free-grid, .gallery-wrap { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-mosaic { min-height: 500px; order: -1; }
    .cards { grid-template-columns: 1fr; }
    .feature-grid, .download-grid { grid-template-columns: 1fr; }
    .gallery-main { grid-template-rows: 300px auto; }
    .gallery-side { min-height: 520px; }
    .video-row { grid-template-columns: 180px 1fr; }
    .video-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 24px, var(--max)); }
    .nav { padding-top: 10px; }
    .brand { font-size: 16px; }
    .brand-mark { width: 30px; height: 30px; }
    .nav-cta { padding: 8px 10px !important; font-size: 12px !important; }
    .hero-grid { padding: 40px 0 56px; gap: 34px; }
    .hero h1 { font-size: 57px; }
    .hero-mosaic { min-height: 390px; }
    .section { padding: 72px 0; }
    .section-title { font-size: 44px; }
    .gallery-side { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); min-height: auto; }
    .video-toolbar { flex-direction: column; }
    .video-search { width: 100%; }
    .video-row { grid-template-columns: 1fr; gap: 14px; }
    .video-link { grid-column: 1; }
    .video-thumb { max-width: 360px; }
    .footer-grid { flex-direction: column; align-items: flex-start; }
    .archive-row { grid-template-columns: 1fr; gap: 12px; }
    .archive-list { padding-left: 14px; }
}

/* Complete feature list (features.html) */
.fl-jump-icon, .fl-category-icon {
    display: inline-block;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.fl-hero h1 { font-size: clamp(52px, 7vw, 96px); letter-spacing: -.05em; margin-top: 16px; }
.fl-hero p strong { color: white; }
.fl-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fl-stats div {
    min-width: 150px;
    padding: 16px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.fl-stats strong { display: block; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.fl-stats div:last-child strong { color: var(--red); }
.fl-stats span { color: var(--muted); font-size: 13px; font-weight: 700; }

.fl-body { padding-top: 48px; }
.fl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fl-count { color: var(--muted); font-size: 14px; font-weight: 700; margin-left: auto; }

.fl-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.fl-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: #cfd5de;
    font-size: 13px;
    font-weight: 800;
}
.fl-jump:hover { color: white; border-color: rgba(255,43,47,.55); background: var(--red-soft); }
.fl-jump-icon { width: 18px; height: 18px; color: var(--red); }

.fl-category {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 48px;
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 90px;
}
.fl-category[hidden] { display: none; }
.fl-category-head { position: sticky; top: 108px; align-self: start; }
.fl-category-icon {
    width: 64px;
    height: 64px;
    color: white;
    background: var(--red);
    -webkit-mask: none;
    mask: none;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 12px 34px rgba(255,43,47,.28);
}
.fl-category-icon::after {
    content: "";
    position: absolute;
    inset: 14px;
    background: white;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.fl-category-head h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.035em; margin-top: 22px; }
.fl-category-head p { color: var(--muted); margin: 14px 0 0; }

.fl-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl-tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.fl-tiles .fl-item { padding: 16px 18px; border-left: 3px solid var(--red); border-radius: 12px; display: flex; flex-direction: column; justify-content: center; }
.fl-tiles .fl-item h4 { font-size: 15px; }
.fl-tiles .fl-item p { margin-top: 3px; font-size: 13px; }
.fl-item {
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    transition: border-color .2s;
}
.fl-item:hover { border-color: rgba(255,255,255,.22); }
.fl-item h4 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.fl-item p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.fl-item code, .fl-category-head code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    color: #ffb3b5;
    background: rgba(255,43,47,.1);
    padding: 1px 5px;
    border-radius: 5px;
    overflow-wrap: anywhere;
}

.fl-cta { margin-top: 64px; padding: 44px; border-radius: var(--radius); border: 1px solid rgba(255,43,47,.45); background: linear-gradient(145deg, rgba(255,43,47,.12), rgba(255,255,255,.02)); }
.fl-cta h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; }
.fl-cta p { color: var(--muted); margin: 12px 0 0; }
.pitch-copy .btn { margin-top: 18px; }

@media (max-width: 960px) {
    .fl-category { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
    .fl-category-head { position: static; }
}
@media (max-width: 640px) {
    .fl-cards { grid-template-columns: 1fr; }
    .fl-tiles { grid-template-columns: 1fr 1fr; }
    .fl-toolbar .video-search { width: 100%; }
    .fl-count { margin-left: 0; }
    .fl-stats div { min-width: 0; flex: 1; padding: 14px 16px; }
    .fl-cta { padding: 28px 22px; }
}
.fl-suffix { color: var(--muted); font-weight: 600; }
@media (max-width: 400px) {
    .brand { gap: 8px; }
    .brand-sub { font-size: 13px; }
}
