:root {
    color-scheme: dark;
    --void: #030713;
    --deep: #071328;
    --panel: rgba(10, 26, 54, 0.8);
    --line: rgba(154, 211, 255, 0.2);
    --line-strong: rgba(171, 222, 255, 0.52);
    --blue: #9cd7ff;
    --gold: #f5bd59;
    --white: #f7fbff;
    --muted: #acc2dc;
    --dim: #6f89a9;
    --display: "Montserrat", system-ui, sans-serif;
    --sans: "Space Grotesk", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--void);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 15%, rgba(61, 140, 230, 0.22), transparent 26rem),
        radial-gradient(circle at 89% 80%, rgba(58, 106, 190, 0.18), transparent 34rem),
        linear-gradient(150deg, #07162f 0%, var(--void) 48%, #061229 100%);
    color: var(--white);
    font-family: var(--sans);
}

body::before,
body::after {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    content: "";
}

body::before {
    inset: 0;
    opacity: 0.5;
    background-image:
        radial-gradient(circle at 15% 18%, rgba(255,255,255,0.92) 0 0.7px, transparent 0.9px),
        radial-gradient(circle at 70% 25%, rgba(160,215,255,0.85) 0 0.6px, transparent 0.9px),
        radial-gradient(circle at 92% 62%, rgba(255,255,255,0.68) 0 0.65px, transparent 0.9px);
    background-size: 251px 283px, 337px 307px, 289px 359px;
}

body::after {
    right: -18rem;
    bottom: -21rem;
    width: 56rem;
    height: 56rem;
    border: 1px solid rgba(121, 193, 255, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(121, 193, 255, 0.025), 0 0 0 10rem rgba(121, 193, 255, 0.018);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: 0.8rem;
    left: 0.8rem;
    transform: translateY(-200%);
    padding: 0.7rem 0.9rem;
    border-radius: 0.4rem;
    background: var(--gold);
    color: #12100b;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.pitch-header {
    width: min(100% - 3rem, 82rem);
    min-height: 5.2rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pitch-brand,
.pitch-header__tools,
.pitch-brand__lockup {
    display: flex;
    align-items: center;
}

.pitch-brand {
    gap: 0.72rem;
    min-width: 0;
}

.pitch-brand__mark {
    position: relative;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: radial-gradient(circle at 39% 31%, #bce4ff 0 7%, #3d8ac8 8% 16%, #0b2c56 17% 59%, #061228 60%);
    box-shadow: inset 0 0 16px rgba(126, 205, 255, 0.42), 0 0 22px rgba(71, 168, 246, 0.18);
}

.pitch-brand__mark::before {
    position: absolute;
    top: 0.73rem;
    left: -0.34rem;
    width: 2.96rem;
    height: 0.78rem;
    border: 1px solid rgba(216, 241, 255, 0.86);
    border-radius: 50%;
    content: "";
    transform: rotate(-29deg);
}

.pitch-brand__mark i,
.pitch-brand__mark b {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: #fff9e8;
    box-shadow: 0 0 7px #fff9e8;
}

.pitch-brand__mark i {
    top: 0.42rem;
    right: 0.49rem;
    width: 0.14rem;
    height: 0.14rem;
}

.pitch-brand__mark b {
    bottom: 0.49rem;
    left: 0.46rem;
    width: 0.1rem;
    height: 0.1rem;
}

.pitch-brand__lockup {
    display: grid;
    gap: 0.08rem;
    line-height: 1;
}

.pitch-brand__lockup strong {
    color: #fff;
    font-family: var(--display);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pitch-brand__lockup small,
.deck-identity,
.deck-count,
.context-kicker {
    color: var(--blue);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.pitch-header__tools {
    gap: 0.65rem;
}

.pitch-link,
.language-button {
    min-height: 2.35rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 0.44rem;
    background: rgba(11, 31, 62, 0.46);
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pitch-link {
    padding: 0.68rem 0.85rem;
}

.language-button {
    width: 2.35rem;
    padding: 0;
    cursor: pointer;
}

.pitch-link:hover,
.language-button:hover {
    border-color: var(--line-strong);
    background: rgba(63, 141, 213, 0.16);
    color: #fff;
    transform: translateY(-1px);
}

main {
    width: min(100% - 3rem, 82rem);
    margin: 0 auto;
    padding: clamp(1.2rem, 3vw, 3rem) 0 4.5rem;
}

.pitch-deck {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, rgba(34, 79, 130, 0.19), transparent 38%), rgba(5, 16, 37, 0.82);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.39), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.pitch-deck__chrome,
.pitch-deck__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pitch-deck__chrome {
    min-height: 3.75rem;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 9, 22, 0.35);
}

.pitch-deck__guardrail {
    margin: 0;
    padding: 0.66rem 1.25rem;
    border-bottom: 1px solid rgba(156, 215, 255, 0.12);
    background: rgba(4, 16, 37, 0.62);
    color: #c8d9eb;
    font-size: 0.69rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1.45;
    text-align: center;
}

.deck-identity {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.deck-identity__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #6ee7a5;
    box-shadow: 0 0 12px rgba(110, 231, 165, 0.84);
}

.deck-count {
    margin: 0;
    color: var(--white);
}

.pitch-deck__body {
    min-height: 35.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12.5rem;
}

.pitch-slide {
    position: relative;
    min-width: 0;
    min-height: 35.25rem;
    padding: clamp(1.75rem, 5vw, 4rem);
    display: grid;
    align-items: center;
}

.pitch-slide::before {
    position: absolute;
    top: 0;
    right: 8%;
    width: min(43%, 25rem);
    aspect-ratio: 1;
    border: 1px solid rgba(135, 208, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 2.5rem rgba(128, 203, 255, 0.025), 0 0 0 5rem rgba(128, 203, 255, 0.018);
    content: "";
    transform: translateY(-48%);
}

.pitch-slide.is-changing {
    animation: pitch-enter 280ms ease both;
}

@keyframes pitch-enter {
    from { opacity: 0.15; transform: translateX(0.65rem); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-layout {
    position: relative;
    z-index: 1;
    max-width: 49rem;
}

.slide-number,
.slide-eyebrow,
.slide-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.35rem 0.58rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.slide-number {
    margin-right: 0.35rem;
    border-color: rgba(245, 189, 89, 0.42);
    color: var(--gold);
}

.slide-status {
    margin-top: 1.25rem;
    color: #c9dcf0;
}

.slide-title {
    max-width: 46rem;
    margin: 1.25rem 0 0;
    color: #fff;
    font-family: var(--display);
    font-size: clamp(2.15rem, 4.7vw, 4.65rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.01;
    text-wrap: balance;
}

.slide-lede {
    max-width: 43rem;
    margin: 1.35rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.55vw, 1.18rem);
    line-height: 1.68;
}

.slide-details {
    max-width: 49rem;
    margin-top: clamp(1.35rem, 3vw, 2.3rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.slide-details--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.slide-detail {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(156, 215, 255, 0.18);
    border-radius: 0.7rem;
    background: linear-gradient(145deg, rgba(51, 102, 162, 0.2), rgba(7, 21, 47, 0.58));
}

.slide-detail strong {
    display: block;
    color: #fff;
    font-family: var(--display);
    font-size: 0.88rem;
    line-height: 1.22;
}

.slide-detail span {
    display: block;
    margin-top: 0.48rem;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.42;
}

.slide-callout {
    max-width: 46rem;
    margin: 1.25rem 0 0;
    padding: 0.85rem 1rem;
    border-left: 2px solid var(--gold);
    background: rgba(245, 189, 89, 0.07);
    color: #e8f3ff;
    font-size: 0.84rem;
    line-height: 1.55;
}

.pitch-rail {
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-left: 1px solid var(--line);
    background: rgba(2, 9, 22, 0.22);
}

.pitch-rail__button {
    width: 100%;
    padding: 0.7rem 0.55rem;
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.45rem;
    border: 0;
    border-radius: 0.44rem;
    background: transparent;
    color: var(--dim);
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease, color 160ms ease;
}

.pitch-rail__button:hover { background: rgba(112, 180, 237, 0.1); color: var(--muted); }
.pitch-rail__button.is-active { background: rgba(78, 162, 230, 0.14); color: #fff; }
.pitch-rail__number { color: var(--blue); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.07em; }
.pitch-rail__label { overflow: hidden; font-size: 0.68rem; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; }

.pitch-deck__controls {
    min-height: 4.8rem;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--line);
    background: rgba(2, 9, 22, 0.3);
}

.deck-control {
    min-width: 7.2rem;
    min-height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.48rem;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.deck-control--quiet { background: transparent; }
.deck-control--primary { border-color: rgba(150, 215, 255, 0.64); background: linear-gradient(135deg, rgba(59, 156, 232, 0.9), rgba(36, 102, 193, 0.88)); box-shadow: 0 9px 24px rgba(22, 105, 198, 0.23); }
.deck-control:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--line-strong); }
.deck-control:disabled { cursor: not-allowed; opacity: 0.34; }

.deck-shortcuts {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--dim);
    font-size: 0.66rem;
}

kbd {
    min-width: 1.35rem;
    padding: 0.18rem 0.34rem;
    border: 1px solid var(--line);
    border-bottom-color: rgba(156, 215, 255, 0.46);
    border-radius: 0.26rem;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.64rem;
    text-align: center;
}

.pitch-context {
    margin: 1rem auto 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.25fr) auto;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: center;
    border: 1px solid rgba(156, 215, 255, 0.15);
    border-radius: 0.85rem;
    background: rgba(5, 18, 42, 0.54);
}

.context-kicker { margin: 0; color: var(--gold); }
.pitch-context h2 { max-width: 19rem; margin: 0.45rem 0 0; color: #fff; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.72rem); letter-spacing: -0.04em; line-height: 1.12; }
.pitch-context > p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.context-link { white-space: nowrap; color: var(--blue); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.055em; text-transform: uppercase; }
.context-link:hover { color: #fff; }

@media (max-width: 68rem) {
    .pitch-deck__body { grid-template-columns: 1fr; }
    .pitch-rail { padding: 0.7rem 0.8rem; flex-direction: row; overflow-x: auto; border-top: 1px solid var(--line); border-left: 0; }
    .pitch-rail__button { min-width: 9.7rem; }
    .pitch-context { grid-template-columns: 1fr; }
}

@media (max-width: 57rem) and (min-width: 42.01rem) {
    .slide-details--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 42rem) {
    .pitch-header, main { width: min(100% - 2rem, 82rem); }
    .pitch-header { min-height: 4.65rem; }
    .pitch-brand__lockup small, .pitch-link { display: none; }
    .pitch-deck { border-radius: 0.85rem; }
    .pitch-deck__chrome { min-height: 3.4rem; padding: 0.7rem 0.85rem; }
    .pitch-deck__guardrail { padding: 0.62rem 0.85rem; font-size: 0.63rem; }
    .deck-identity { max-width: 72%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .pitch-slide { min-height: 32.5rem; padding: 1.5rem 1.1rem 1.65rem; }
    .pitch-slide::before { right: -15%; width: 70%; }
    .slide-title { font-size: clamp(2.05rem, 11vw, 3rem); }
    .slide-details { grid-template-columns: 1fr; }
    .slide-detail { padding: 0.82rem 0.88rem; }
    .pitch-deck__controls { min-height: 4.35rem; padding: 0.75rem 0.85rem; }
    .deck-control { min-width: 6rem; }
    .deck-shortcuts { display: none; }
}

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