:root {
    --mp4-ink: #18130d;
    --mp4-ink-soft: #4f4435;
    --mp4-cream: #fff6e4;
    --mp4-paper: #fffaf0;
    --mp4-gold: #ffb84d;
    --mp4-flame: #f45b33;
    --mp4-ruby: #7d2031;
    --mp4-blue: #14384a;
    --mp4-cyan: #73d6d0;
    --mp4-shadow: 0 28px 70px rgba(24, 19, 13, 0.18);
}

.mp4-search-page {
    background:
            radial-gradient(circle at 8% 10%, rgba(244, 91, 51, 0.18), transparent 30%),
            radial-gradient(circle at 92% 5%, rgba(115, 214, 208, 0.2), transparent 28%),
            linear-gradient(180deg, #fff6e4 0%, #fffaf0 42%, #f6efe1 100%);
    color: var(--mp4-ink);
    font-family: "Fraunces", "Georgia", serif;
}

.mp4-search-page .main {
    overflow: hidden;
}

.mp4-hero {
    position: relative;
    isolation: isolate;
    padding: 96px 0 82px;
    background:
            linear-gradient(135deg, rgba(20, 56, 74, 0.98), rgba(125, 32, 49, 0.94)),
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 8px, transparent 8px 22px);
    color: #fffdf6;
}

.mp4-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0 4%, transparent 4% 96%, rgba(0, 0, 0, 0.42) 96% 100%),
            repeating-linear-gradient(0deg, transparent 0 24px, rgba(255, 184, 77, 0.18) 24px 27px);
    opacity: 0.58;
}

.mp4-hero__grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
            radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
            radial-gradient(circle, rgba(255, 184, 77, 0.14) 1px, transparent 1px);
    background-size: 19px 19px, 31px 31px;
    mix-blend-mode: screen;
    opacity: 0.26;
}

.mp4-hero__content {
    position: relative;
    z-index: 1;
}

.mp4-eyebrow,
.mp4-section__label {
    margin: 0 0 18px;
    color: var(--mp4-flame);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mp4-hero .mp4-eyebrow {
    color: var(--mp4-gold);
}

.mp4-hero h1 {
    max-width: 830px;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
    margin: 0;
    color: #fffaf0;
    font-size: clamp(3rem, 8vw, 6.7rem);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.88;
    text-shadow:
            0 6px 26px rgba(0, 0, 0, 0.52),
            0 1px 0 rgba(255, 255, 255, 0.28);
    text-wrap: balance;
    -webkit-text-stroke: 1px rgba(255, 250, 240, 0.22);
}

.mp4-hero__lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255, 253, 246, 0.92);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: clamp(1.22rem, 2vw, 1.52rem);
    line-height: 1.55;
}

.mp4-hero__note {
    max-width: 730px;
    margin: 18px 0 0;
    color: rgba(255, 253, 246, 0.78);
    font-size: 1.06rem;
    line-height: 1.72;
}

.mp4-search-form {
    max-width: 760px;
    margin-top: 34px;
}

.mp4-search-form__group {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.mp4-search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: rgba(255, 250, 240, 0.94);
    color: var(--mp4-ink);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 1rem;
    outline: none;
}

.mp4-search-form button,
.mp4-final__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--mp4-gold), var(--mp4-flame));
    color: #21160c;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(244, 91, 51, 0.34);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.mp4-search-form button:hover,
.mp4-final__link:hover {
    transform: translateY(-2px);
    color: #21160c;
    box-shadow: 0 22px 40px rgba(244, 91, 51, 0.42);
}

.mp4-hero__examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.mp4-hero__examples a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 13px;
    color: rgba(255, 253, 246, 0.88);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
}

.mp4-screen {
    position: relative;
    max-width: 440px;
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(255, 250, 240, 0.18), rgba(255, 250, 240, 0.07));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(20px);
}

.mp4-screen__topbar,
.mp4-screen__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 253, 246, 0.9);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.mp4-screen__topbar span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--mp4-gold);
}

.mp4-screen__topbar span:nth-child(2) {
    background: var(--mp4-flame);
}

.mp4-screen__topbar span:nth-child(3) {
    background: var(--mp4-cyan);
}

.mp4-screen__topbar strong {
    margin-left: auto;
}

.mp4-screen__frame {
    position: relative;
    min-height: 285px;
    margin-top: 16px;
    border-radius: 24px;
    overflow: hidden;
    background:
            linear-gradient(135deg, rgba(255, 184, 77, 0.72), rgba(244, 91, 51, 0.55)),
            radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.54), transparent 16%),
            linear-gradient(165deg, #1b4a5f 0%, #10232e 65%);
}

.mp4-screen__frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
}

.mp4-screen__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 250, 240, 0.92);
    color: var(--mp4-ruby);
    font-size: 3rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
}

.mp4-screen__scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.24) 48%, transparent 56%);
    animation: mp4-scanline 4.5s ease-in-out infinite;
}

.mp4-filmstrip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
    margin: 14px 0;
}

.mp4-filmstrip span {
    min-height: 52px;
    border-radius: 10px;
    background:
            linear-gradient(135deg, rgba(255, 184, 77, 0.75), rgba(115, 214, 208, 0.45)),
            #18394a;
}

.mp4-filmstrip span:nth-child(even) {
    background:
            linear-gradient(135deg, rgba(244, 91, 51, 0.72), rgba(255, 250, 240, 0.28)),
            #4a1730;
}

.mp4-screen__meta {
    justify-content: space-between;
    align-items: flex-start;
}

.mp4-screen__meta small {
    max-width: 200px;
    color: rgba(255, 253, 246, 0.65);
    text-align: right;
}

.mp4-section {
    padding: 88px 0;
}

.mp4-section h2 {
    margin: 0;
    color: var(--mp4-ink);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-wrap: balance;
}

.mp4-section__copy,
.mp4-section__intro p,
.mp4-format-grid p,
.mp4-steps span,
.mp4-usecase-grid span,
.mp4-faq dd,
.mp4-final__copy {
    color: var(--mp4-ink-soft);
    font-size: 1.05rem;
    line-height: 1.78;
}

.mp4-section__intro {
    max-width: 870px;
    margin-bottom: 32px;
}

.mp4-section__intro h2 {
    margin-bottom: 20px;
}

.mp4-section--formats,
.mp4-section--faq {
    background: rgba(255, 255, 255, 0.34);
}

.mp4-format-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mp4-format-grid article,
.mp4-faq,
.mp4-usecase-panel,
.mp4-final {
    border: 1px solid rgba(24, 19, 13, 0.1);
    border-radius: 30px;
    background: rgba(255, 250, 240, 0.78);
    box-shadow: var(--mp4-shadow);
}

.mp4-format-grid article {
    padding: 28px;
}

.mp4-format-grid i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 20px;
    margin-bottom: 22px;
    background: var(--mp4-blue);
    color: var(--mp4-gold);
    font-size: 1.55rem;
}

.mp4-format-grid h3,
.mp4-usecase-grid b,
.mp4-faq dt {
    color: var(--mp4-ink);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 1.12rem;
    font-weight: 900;
}

.mp4-steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mp4-steps;
}

.mp4-steps li {
    position: relative;
    counter-increment: mp4-steps;
    padding: 26px 28px 26px 92px;
    border-radius: 28px;
    background: #fffaf0;
    box-shadow: 0 18px 45px rgba(24, 19, 13, 0.1);
}

.mp4-steps li::before {
    content: counter(mp4-steps, decimal-leading-zero);
    position: absolute;
    top: 25px;
    left: 28px;
    color: var(--mp4-flame);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
}

.mp4-steps b,
.mp4-steps span {
    display: block;
}

.mp4-steps b {
    margin-bottom: 7px;
    color: var(--mp4-ink);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.mp4-usecase-panel {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 28px;
    padding: 38px;
    background:
            radial-gradient(circle at 10% 10%, rgba(255, 184, 77, 0.23), transparent 34%),
            rgba(255, 250, 240, 0.84);
}

.mp4-usecase-grid {
    display: grid;
    gap: 14px;
}

.mp4-usecase-grid article {
    display: grid;
    gap: 6px;
    border-left: 5px solid var(--mp4-flame);
    border-radius: 18px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.64);
}

.mp4-faq {
    padding: 14px 30px;
}

.mp4-faq dt {
    padding-top: 22px;
}

.mp4-faq dd {
    margin: 8px 0 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(24, 19, 13, 0.1);
}

.mp4-faq dd:last-child {
    border-bottom: 0;
}

.mp4-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 38px;
    background:
            linear-gradient(135deg, rgba(20, 56, 74, 0.95), rgba(125, 32, 49, 0.92)),
            var(--mp4-blue);
    color: #fffdf6;
}

.mp4-final h2,
.mp4-final .mp4-section__label,
.mp4-final__copy {
    color: #fffdf6;
}

.mp4-final__copy {
    max-width: 760px;
    margin: 16px 0 0;
    opacity: 0.82;
}

@keyframes mp4-scanline {
    0%, 100% {
        transform: translateY(-45%);
        opacity: 0.2;
    }
    50% {
        transform: translateY(45%);
        opacity: 0.55;
    }
}

@media (max-width: 991.98px) {
    .mp4-hero {
        padding: 74px 0 66px;
    }

    .mp4-format-grid,
    .mp4-usecase-panel {
        grid-template-columns: 1fr;
    }

    .mp4-final {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .mp4-search-form__group {
        align-items: stretch;
        flex-direction: column;
        border-radius: 28px;
    }

    .mp4-search-form input,
    .mp4-search-form button {
        min-height: 54px;
    }

    .mp4-screen__frame {
        min-height: 230px;
    }

    .mp4-section {
        padding: 64px 0;
    }

    .mp4-steps li {
        padding: 76px 22px 24px;
    }

    .mp4-steps li::before {
        top: 24px;
    }

    .mp4-usecase-panel,
    .mp4-final {
        padding: 26px;
    }
}
