:root {
    --orange: #ff8800;
    --orange-2: #ff9700;
    --violet: #9600fa;
    --violet-2: #8c00ff;
    --black: #050208;
    --ink: #160d1d;
    --surface: rgba(255, 255, 255, 0.078);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --border: rgba(255, 255, 255, 0.16);
    --border-strong: rgba(255, 255, 255, 0.28);
    --text: #ffffff;
    --muted: #cfc2d8;
    --soft: #8f8299;
    --good: #41e88b;
    --warn: #ffd36c;
    --danger: #ff5f7d;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
    --radius: 8px;
    --font-display: "Outfit", "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 136, 0, 0.22), transparent 30vw),
        radial-gradient(circle at 82% 8%, rgba(150, 0, 250, 0.28), transparent 32vw),
        linear-gradient(135deg, #09050d 0%, #12091a 48%, #050208 100%);
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 88%);
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

#smoke-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.42;
    pointer-events: none;
}

.topbar {
    position: fixed;
    top: 10px;
    right: 14px;
    left: 14px;
    z-index: 20;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(10, 4, 14, 0.76);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(22px);
}

.brand {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 76px;
    max-height: 42px;
    height: auto;
    object-fit: contain;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.quick-actions a,
.controls button,
.hero-actions a,
.deck-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.075);
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-actions a:first-child,
.hero-actions a:first-child,
.deck-button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    box-shadow: 0 14px 34px rgba(255, 136, 0, 0.24);
}

.quick-actions a:hover,
.controls button:hover,
.hero-actions a:hover,
.deck-button:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.13);
}

.quick-actions a:first-child:hover,
.hero-actions a:first-child:hover,
.deck-button--primary:hover {
    background: linear-gradient(135deg, #ff9d23, #a720ff);
}

.progress {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.progress span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.progress__track {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.progress__track i {
    display: block;
    width: 5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), #fff, var(--violet));
    transition: width 200ms ease;
}

.slide-rail {
    position: fixed;
    top: 76px;
    bottom: 78px;
    left: 18px;
    z-index: 15;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 226px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(9, 4, 13, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.slide-rail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
}

.slide-rail__head span {
    color: var(--orange);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slide-rail__head strong {
    color: var(--muted);
    font-size: 12px;
}

.slide-nav {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 9px;
    overflow-y: auto;
}

.slide-nav a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 40px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    text-decoration: none;
}

.slide-nav a span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--soft);
    font-size: 10px;
    font-weight: 900;
}

.slide-nav a b {
    overflow: hidden;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slide-nav a.active {
    border-color: rgba(255, 136, 0, 0.46);
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.18), rgba(150, 0, 250, 0.2));
    color: #fff;
}

.slide-nav a.active span {
    background: linear-gradient(135deg, var(--orange), var(--violet));
    color: #fff;
}

.deck {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    width: min(1520px, calc(100% - 294px));
    margin: 0 18px 0 auto;
    padding: 76px 0 78px;
}

.slide {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: calc(100vh - 94px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
        rgba(10, 4, 14, 0.68);
    box-shadow: var(--shadow);
    scroll-margin-top: 72px;
}

.slide::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(circle at var(--mx, 82%) var(--my, 16%), rgba(255, 136, 0, 0.23), transparent 26vw),
        radial-gradient(circle at 9% 82%, rgba(150, 0, 250, 0.18), transparent 28vw);
}

.slide__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
    padding: clamp(26px, 3vw, 52px);
}

.slide__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.slide__kicker {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.slide h1,
.slide h2 {
    max-width: 1100px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(44px, 5.6vw, 88px);
    line-height: 0.92;
    letter-spacing: -0.015em;
}

.slide h2 {
    font-size: clamp(36px, 4.5vw, 68px);
}

.slide__lead {
    max-width: 880px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.45;
}

.slide__number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
}

.slide__body {
    display: grid;
    align-content: center;
    gap: 18px;
    min-width: 0;
}

.layout-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.proof-chip {
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.proof-chip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
}

.proof-chip span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

.hero-media,
.media-card {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.16), rgba(150, 0, 250, 0.14));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.hero-media img,
.media-card img,
.asset-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after,
.media-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(5, 2, 8, 0.86));
}

.media-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    display: grid;
    gap: 6px;
    color: #fff;
}

.media-caption strong {
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1;
}

.media-caption span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 14px;
}

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

.card,
.quote-card,
.metric-card,
.step-card,
.matrix-card,
.risk-card,
.asset-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(18px);
}

.card,
.quote-card,
.metric-card,
.step-card,
.matrix-card,
.risk-card {
    padding: clamp(17px, 1.6vw, 26px);
}

.card h3,
.quote-card h3,
.metric-card h3,
.step-card h3,
.matrix-card h3,
.risk-card h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(21px, 1.7vw, 29px);
    line-height: 1.08;
}

.card p,
.quote-card p,
.step-card p,
.matrix-card p,
.risk-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.card ul {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.card li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.card li::before {
    position: absolute;
    top: 0.56em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: linear-gradient(135deg, var(--orange), var(--violet));
}

.metric-card strong {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: clamp(35px, 4vw, 68px);
    line-height: 0.9;
    color: #fff;
}

.metric-card span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.metric-card--orange {
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.24), rgba(255, 255, 255, 0.055));
}

.metric-card--violet {
    background: linear-gradient(135deg, rgba(150, 0, 250, 0.24), rgba(255, 255, 255, 0.055));
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.timeline__year {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--orange), var(--violet));
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
}

.timeline__copy {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.timeline__copy strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
}

.timeline__copy span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.42;
}

.quote-card {
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    position: absolute;
    top: -28px;
    right: 20px;
    color: rgba(255, 255, 255, 0.07);
    content: "“";
    font-family: Georgia, serif;
    font-size: 150px;
    line-height: 1;
}

.quote-card p {
    position: relative;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.1vw, 34px);
    line-height: 1.12;
}

.quote-card small {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.bar-list {
    display: grid;
    gap: 14px;
}

.bar-row {
    display: grid;
    gap: 8px;
}

.bar-row__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
}

.bar-row__track {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.bar-row__track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), #fff, var(--violet));
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.pill-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.process {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.step-card {
    min-height: 210px;
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    font-family: var(--font-display);
    font-weight: 900;
}

.legal-table,
.comparison-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.legal-table table,
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-table th,
.legal-table td,
.comparison-table th,
.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.legal-table tr:last-child td,
.comparison-table tr:last-child td {
    border-bottom: 0;
}

.legal-table th,
.comparison-table th {
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-table td,
.comparison-table td {
    color: var(--muted);
    line-height: 1.45;
}

.good-text { color: var(--good); }
.warn-text { color: var(--warn); }
.danger-text { color: var(--danger); }
.orange-text { color: var(--orange); }
.violet-text { color: #c484ff; }

.asset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.asset-card {
    display: grid;
    grid-template-rows: minmax(160px, 1fr) auto;
    overflow: hidden;
}

.asset-card img {
    min-height: 160px;
    background: rgba(255, 255, 255, 0.08);
}

.asset-card figcaption {
    padding: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.swatches {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.swatch {
    min-height: 140px;
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.swatch b,
.swatch span {
    display: block;
}

.swatch b {
    font-family: var(--font-display);
    font-size: 16px;
}

.swatch span {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 900;
}

.swatch--orange { background: #ff8800; color: #160d1d; }
.swatch--violet { background: #9600fa; }
.swatch--black { background: #000; }
.swatch--glass { background: rgba(206, 206, 206, 0.5); color: #160d1d; }
.swatch--white { background: #fff; color: #160d1d; }
.swatch--muted { background: #b9acbf; color: #160d1d; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: clamp(18px, 3vw, 46px);
    align-items: center;
}

.controls {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 226px;
}

.controls button {
    min-width: 0;
    cursor: pointer;
}

.source-note {
    margin-top: 16px;
    color: var(--soft);
    font-size: 12px;
    line-height: 1.4;
}

.callout {
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid rgba(255, 136, 0, 0.42);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 136, 0, 0.2), rgba(150, 0, 250, 0.16)),
        rgba(255, 255, 255, 0.06);
}

.callout strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.2vw, 38px);
    line-height: 1.05;
}

.callout p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 1280px) {
    .topbar {
        grid-template-columns: 88px minmax(0, 1fr) 150px;
    }

    .brand img {
        width: 70px;
    }

    .quick-actions a {
        padding: 0 10px;
        font-size: 12px;
    }

    .slide-rail {
        display: none;
    }

    .controls {
        display: none;
    }

    .deck {
        width: calc(100% - 36px);
        margin: 0 auto;
    }
}

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
    }

    .brand {
        justify-content: flex-start;
        width: 100%;
    }

    .quick-actions {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .progress {
        grid-column: 2;
        grid-row: 1;
    }

    .progress span {
        text-align: right;
    }

    .deck {
        padding-top: 124px;
    }

    .slide {
        min-height: calc(100vh - 142px);
        scroll-margin-top: 118px;
    }

    .slide__top {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .slide__number {
        width: 48px;
        height: 40px;
    }

    .layout-hero,
    .split,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-media,
    .media-card {
        min-height: 310px;
    }

    .hero-proof,
    .process,
    .asset-grid,
    .swatches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar {
        top: 8px;
        right: 10px;
        left: 10px;
        position: absolute;
        min-height: 86px;
        padding: 6px;
    }

    .quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .quick-actions a {
        min-height: 38px;
        padding: 0 6px;
        font-size: 11px;
        line-height: 1.12;
        white-space: normal;
        text-align: center;
    }

    .brand img {
        width: 64px;
        max-height: 36px;
    }

    .deck {
        width: calc(100% - 20px);
        padding-top: 118px;
    }

    .slide {
        min-height: auto;
        scroll-margin-top: 112px;
    }

    .slide__inner {
        padding: 20px;
    }

    .slide h1,
    .slide h2 {
        font-size: 38px;
        line-height: 0.98;
    }

    .slide__lead {
        font-size: 16px;
    }

    .hero-proof,
    .asset-grid,
    .swatches {
        grid-template-columns: 1fr;
    }

    .timeline__item {
        grid-template-columns: 1fr;
    }

    .process {
        grid-template-columns: 1fr;
    }

}

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