:root {
    --reels-bg: #090909;
    --reels-surface: #121212;
    --reels-surface-strong: #181818;
    --reels-line: rgba(255, 255, 255, 0.1);
    --reels-text: #ffffff;
    --reels-muted: #a6a6a6;
    --reels-coral: #f36354;
    --reels-green: #32c48d;
}

.reels-page {
    background: var(--reels-bg);
    color: var(--reels-text);
    letter-spacing: 0;
}

.reels-page button,
.reels-page a,
.reels-page h1,
.reels-page h2,
.reels-page h3,
.reels-page p {
    letter-spacing: 0;
}

.reels-shell {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.reels-header-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 8px;
    background: var(--reels-coral);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 180ms ease;
}

.reels-header-action:hover,
.reels-header-action:focus-visible {
    background: #ff7769;
    outline: none;
}

.reels-header-action--mobile {
    width: 100%;
}

.reels-page #mobile-menu {
    max-height: calc(100svh - 80px);
    overflow-y: auto;
    background: #090909;
}

.reels-page.landing-mobile-menu-open {
    overflow: hidden;
}

.reels-hero {
    position: relative;
    display: flex;
    min-height: 700px;
    height: 78svh;
    max-height: 820px;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--reels-line);
    background: #080808;
}

.reels-hero-video,
.reels-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.reels-hero-video {
    object-fit: cover;
    object-position: center 42%;
}

.reels-hero-shade {
    z-index: 1;
    background: rgba(4, 4, 4, 0.64);
    box-shadow: inset 0 -190px 150px rgba(4, 4, 4, 0.82);
}

.reels-hero-content {
    position: relative;
    z-index: 2;
    padding-block: 132px 66px;
}

.reels-eyebrow {
    margin: 0 0 14px;
    color: var(--reels-coral);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.reels-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: 72px;
    font-weight: 900;
    line-height: 0.98;
    text-wrap: balance;
    text-shadow: 0 4px 26px rgba(0, 0, 0, 0.45);
}

.reels-hero-lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: #ededed;
    font-size: 21px;
    line-height: 1.6;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.62);
}

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

.reels-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 750;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.reels-button svg {
    width: 18px;
    height: 18px;
}

.reels-button:hover {
    transform: translateY(-2px);
}

.reels-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.reels-button--primary {
    background: var(--reels-coral);
    color: #fff;
    box-shadow: 0 14px 34px rgba(243, 99, 84, 0.22);
}

.reels-button--primary:hover {
    background: #ff7769;
}

.reels-button--secondary {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(8, 8, 8, 0.68);
    color: #fff;
}

.reels-button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background: #1b1b1b;
}

.reels-hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #d7d7d7;
    font-size: 13px;
    font-weight: 600;
}

.reels-hero-note svg {
    width: 16px;
    height: 16px;
    color: var(--reels-green);
}

.reels-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.reels-hero-badges li {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.62);
    color: #e8e8e8;
    font-size: 12px;
    font-weight: 650;
}

.reels-section {
    padding-block: 112px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reels-section-heading {
    max-width: 790px;
    margin: 0 auto 58px;
    text-align: center;
}

.reels-section-heading--left {
    margin: 0;
    text-align: left;
}

.reels-section-heading h2,
.reels-final-cta h2,
.reels-credit-band h2 {
    margin: 0;
    color: #fff;
    font-size: 42px;
    font-weight: 820;
    line-height: 1.12;
    text-wrap: balance;
}

.reels-section-heading > p:last-child,
.reels-final-cta-inner > p,
.reels-credit-band > div > p:last-child {
    margin-top: 18px;
    color: var(--reels-muted);
    font-size: 18px;
    line-height: 1.75;
}

.reels-section--steps {
    background: var(--reels-bg);
}

.reels-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--reels-line);
    border-bottom: 1px solid var(--reels-line);
}

.reels-step {
    min-height: 292px;
    padding: 34px;
    border-right: 1px solid var(--reels-line);
}

.reels-step:last-child {
    border-right: 0;
}

.reels-step-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reels-step-icon,
.reels-control-icon,
.reels-credit-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(243, 99, 84, 0.28);
    border-radius: 8px;
    background: rgba(243, 99, 84, 0.09);
    color: var(--reels-coral);
}

.reels-step-icon svg,
.reels-control-icon svg,
.reels-credit-icon svg {
    width: 22px;
    height: 22px;
}

.reels-step-number {
    color: #484848;
    font-size: 14px;
    font-weight: 800;
}

.reels-step h3 {
    margin: 52px 0 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.25;
}

.reels-step p {
    margin: 0;
    color: var(--reels-muted);
    font-size: 15px;
    line-height: 1.7;
}

.reels-section--gallery {
    overflow: hidden;
    background: #0e0e0e;
}

.reels-gallery-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 50px;
}

.reels-gallery-note {
    display: flex;
    max-width: 340px;
    align-items: flex-start;
    gap: 10px;
    color: #8f8f8f;
    font-size: 13px;
    line-height: 1.55;
}

.reels-gallery-note svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--reels-green);
}

.reels-gallery {
    display: grid;
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.reels-gallery-item {
    min-width: 0;
}

.reels-gallery-media {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #050505;
}

.reels-gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease, opacity 180ms ease;
}

.reels-gallery-item:hover .reels-gallery-media video,
.reels-gallery-item:focus-within .reels-gallery-media video {
    transform: scale(1.015);
}

.reels-gallery-play,
.reels-gallery-sound {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(4, 4, 4, 0.72);
    color: #fff;
    backdrop-filter: blur(8px);
}

.reels-gallery-play {
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 180ms ease, background-color 180ms ease;
}

.reels-gallery-play svg {
    width: 21px;
    height: 21px;
    margin-left: 2px;
}

.reels-icon-pause,
.reels-icon-sound {
    display: none;
}

.reels-gallery-item.is-playing .reels-icon-play,
.reels-gallery-item.has-sound .reels-icon-muted {
    display: none;
}

.reels-gallery-item.is-playing .reels-icon-pause,
.reels-gallery-item.has-sound .reels-icon-sound {
    display: block;
}

.reels-gallery-item.is-playing .reels-gallery-play {
    opacity: 0;
}

.reels-gallery-item.is-playing:hover .reels-gallery-play,
.reels-gallery-item.is-playing:focus-within .reels-gallery-play {
    opacity: 1;
}

.reels-gallery-sound {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 180ms ease, background-color 180ms ease;
}

.reels-gallery-sound svg {
    width: 17px;
    height: 17px;
}

.reels-gallery-item.is-playing .reels-gallery-sound,
.reels-gallery-item:focus-within .reels-gallery-sound {
    opacity: 1;
}

.reels-gallery-play:hover,
.reels-gallery-sound:hover {
    background: var(--reels-coral);
}

.reels-gallery-play:focus-visible,
.reels-gallery-sound:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.reels-gallery-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 7px;
    border-radius: 5px;
    background: rgba(4, 4, 4, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
}

.reels-gallery-copy {
    padding: 16px 4px 0;
}

.reels-gallery-copy p {
    margin: 0 0 5px;
    color: var(--reels-coral);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.reels-gallery-copy h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.reels-section--controls {
    background: var(--reels-bg);
}

.reels-controls-layout,
.reels-faq-layout,
.reels-batch-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 84px;
    align-items: start;
}

.reels-control-list {
    border-top: 1px solid var(--reels-line);
}

.reels-control-item {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--reels-line);
}

.reels-control-item h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 19px;
    font-weight: 740;
}

.reels-control-item p {
    margin: 0;
    color: var(--reels-muted);
    font-size: 15px;
    line-height: 1.65;
}

.reels-section--batch {
    background: #0e0e0e;
}

.reels-batch-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
}

.reels-batch-demo {
    padding: 22px;
    border: 1px solid var(--reels-line);
    border-radius: 8px;
    background: #111;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.reels-draft-row {
    display: grid;
    min-height: 70px;
    align-items: center;
    grid-template-columns: 28px minmax(90px, 1fr) auto auto;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--reels-muted);
}

.reels-draft-row--selected {
    background: rgba(243, 99, 84, 0.07);
}

.reels-draft-check {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
}

.reels-draft-row--selected .reels-draft-check {
    border-color: var(--reels-coral);
    background: var(--reels-coral);
    color: #fff;
}

.reels-draft-check svg {
    width: 14px;
    height: 14px;
}

.reels-draft-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reels-draft-lines i {
    display: block;
    width: 78%;
    height: 7px;
    border-radius: 5px;
    background: #303030;
}

.reels-draft-lines i:last-child {
    width: 52%;
    background: #242424;
}

.reels-draft-row small {
    color: #b8b8b8;
    font-size: 12px;
}

.reels-draft-row b {
    color: var(--reels-green);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.reels-batch-action {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    border-radius: 8px;
    background: var(--reels-coral);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
}

.reels-batch-action svg {
    width: 18px;
    height: 18px;
}

.reels-section--credits {
    padding-block: 72px;
    background: #131313;
}

.reels-credit-band {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.reels-credit-icon {
    width: 58px;
    height: 58px;
    border-color: rgba(50, 196, 141, 0.3);
    background: rgba(50, 196, 141, 0.09);
    color: var(--reels-green);
}

.reels-credit-band h2 {
    font-size: 30px;
}

.reels-credit-band > div > p:last-child {
    max-width: 900px;
    font-size: 16px;
}

.reels-section--faq {
    background: var(--reels-bg);
}

.reels-faq-list {
    border-top: 1px solid var(--reels-line);
}

.reels-faq-item {
    border-bottom: 1px solid var(--reels-line);
}

.reels-faq-toggle {
    display: flex;
    width: 100%;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 4px;
    color: #fff;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
}

.reels-faq-toggle svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--reels-coral);
    transition: transform 180ms ease;
}

.reels-faq-toggle[aria-expanded="true"] svg {
    transform: rotate(45deg);
}

.reels-faq-toggle:focus-visible {
    outline: 2px solid var(--reels-coral);
    outline-offset: -2px;
}

.reels-faq-content {
    padding: 0 46px 24px 4px;
}

.reels-faq-content p {
    margin: 0;
    color: var(--reels-muted);
    font-size: 15px;
    line-height: 1.75;
}

.reels-final-cta {
    padding-block: 100px;
    border-bottom: 1px solid var(--reels-line);
    background: #17110f;
}

.reels-final-cta-inner {
    max-width: 900px;
    text-align: center;
}

.reels-final-cta h2 {
    font-size: 48px;
}

.reels-final-cta-inner > p {
    max-width: 720px;
    margin-inline: auto;
}

.reels-final-actions {
    justify-content: center;
}

@media (max-width: 1180px) {
    .reels-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reels-gallery-item:nth-child(n + 4) {
        margin-top: 18px;
    }
}

@media (max-width: 900px) {
    .reels-hero {
        min-height: 650px;
        height: 76svh;
    }

    .reels-hero h1 {
        font-size: 56px;
    }

    .reels-controls-layout,
    .reels-faq-layout,
    .reels-batch-layout {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .reels-batch-demo {
        order: 2;
    }

    .reels-step {
        min-height: 270px;
        padding: 28px;
    }
}

@media (max-width: 720px) {
    .reels-shell {
        width: min(100% - 32px, 1280px);
    }

    .reels-hero {
        min-height: 620px;
        height: 82svh;
        max-height: 720px;
    }

    .reels-hero-video {
        object-position: center center;
        transform: scale(1.25);
        transform-origin: center top;
    }

    .reels-hero-shade {
        background: rgba(4, 4, 4, 0.64);
        box-shadow: inset 0 -300px 180px rgba(4, 4, 4, 0.98);
    }

    .reels-hero-content {
        padding-block: 118px 38px;
    }

    .reels-hero h1 {
        font-size: 44px;
        line-height: 1.02;
    }

    .reels-hero-lead {
        margin-top: 18px;
        font-size: 17px;
        line-height: 1.55;
    }

    .reels-hero-actions {
        margin-top: 22px;
    }

    .reels-button {
        min-height: 48px;
        padding-inline: 17px;
        font-size: 14px;
    }

    .reels-hero-badges {
        gap: 6px;
        margin-top: 18px;
    }

    .reels-hero-badges li {
        padding: 6px 8px;
        font-size: 10px;
    }

    .reels-section {
        padding-block: 78px;
    }

    .reels-section-heading {
        margin-bottom: 38px;
    }

    .reels-section-heading h2,
    .reels-final-cta h2 {
        font-size: 32px;
    }

    .reels-section-heading > p:last-child,
    .reels-final-cta-inner > p {
        font-size: 16px;
        line-height: 1.65;
    }

    .reels-step-list {
        grid-template-columns: 1fr;
    }

    .reels-step {
        min-height: 0;
        padding: 28px 4px;
        border-right: 0;
        border-bottom: 1px solid var(--reels-line);
    }

    .reels-step:last-child {
        border-bottom: 0;
    }

    .reels-step h3 {
        margin-top: 28px;
    }

    .reels-gallery-heading-row {
        display: block;
        margin-bottom: 30px;
    }

    .reels-gallery-note {
        margin-top: 22px;
    }

    .reels-gallery {
        display: flex;
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        padding: 0 16px 16px;
        scroll-padding-left: 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .reels-gallery::-webkit-scrollbar {
        display: none;
    }

    .reels-gallery-item,
    .reels-gallery-item:nth-child(n + 4) {
        width: min(74vw, 300px);
        flex: 0 0 min(74vw, 300px);
        margin-top: 0;
        scroll-snap-align: start;
    }

    .reels-gallery-sound {
        opacity: 1;
    }

    .reels-draft-row {
        grid-template-columns: 24px minmax(70px, 1fr) auto;
        gap: 10px;
        padding-inline: 8px;
    }

    .reels-draft-row b {
        display: none;
    }

    .reels-section--credits {
        padding-block: 56px;
    }

    .reels-credit-band {
        grid-template-columns: 1fr;
    }

    .reels-credit-band h2 {
        font-size: 27px;
    }

    .reels-final-cta {
        padding-block: 78px;
    }
}

@media (max-width: 430px) {
    .reels-hero {
        min-height: 650px;
        height: 86svh;
    }

    .reels-hero h1 {
        font-size: 39px;
    }

    .reels-hero-actions .reels-button {
        width: 100%;
    }

    .reels-final-actions .reels-button {
        width: 100%;
    }
}

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