:root {
    --yt-bg: #0f0f0f;
    --yt-raised: #212121;
    --yt-hover: #272727;
    --yt-chip: #272727;
    --yt-red: #ff0000;
    --yt-red-dark: #cc0000;
    --yt-blue: #3ea6ff;
    --yt-text: #f1f1f1;
    --yt-muted: #aaaaaa;
    --yt-line: rgba(255, 255, 255, 0.12);
    --yt-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --nav-h: 56px;
    --radius: 12px;
    --bg-dark: var(--yt-bg);
    --bg-card: var(--yt-raised);
    --accent-primary: var(--yt-red);
    --accent-secondary: var(--yt-blue);
    --text-primary: var(--yt-text);
    --text-secondary: var(--yt-muted);
    --gradient-1: linear-gradient(135deg, #ff0000 0%, #ff4d4d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Roboto", "Segoe UI", sans-serif;
    background: var(--yt-bg);
    color: var(--yt-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden !important;
    height: 100vh;
}

img, video, canvas {
    max-width: 100%;
}

#videoPreview {
    max-width: 100% !important;
}

a {
    color: inherit;
}

/* ================= MASTHEAD ================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    padding: 0 12px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #0f0f0f;
    border-bottom: 1px solid var(--yt-line);
    z-index: 2000;
}

.brand-logo {
    height: 40px;
    width: auto;
    max-width: min(240px, 58vw);
    object-fit: contain;
    display: block;
}

.footer-brand-img {
    height: 42px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.drop-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    /* background: #111; */
    display: grid;
    place-items: center;
    overflow: hidden;
    animation: floatY 3s ease-in-out infinite;
}

.drop-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.yt-trial-icon {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
}

.yt-trial-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand,
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    background: none;
    -webkit-text-fill-color: unset;
}

.logo a,
.brand {
    text-decoration: none;
}

.brand-text {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
}

.brand-red {
    color: #ff0000;
    font-weight: 700;
}

.brand-white {
    color: #ffffff;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: stretch;
    margin: 0;
    position: fixed;
    top: var(--nav-h);
    right: -100%;
    height: calc(100vh - var(--nav-h));
    width: min(82%, 320px);
    background: #212121;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px;
    transition: right 0.28s ease;
    z-index: 1500;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.35);
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    color: var(--yt-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: var(--yt-hover);
    color: #fff;
}

.cta-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #3ea6ff;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #3ea6ff;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background: rgba(62, 166, 255, 0.12);
    transform: none;
}

.hamburger {
    display: flex;
    width: 42px;
    height: 42px;
    margin-left: auto;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 50%;
    z-index: 2100;
    padding: 0;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.28s ease;
}

.hamburger:hover {
    background: var(--yt-hover);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= HERO / STUDIO ================= */
.hero {
    min-height: calc(100svh - var(--nav-h));
    padding: calc(var(--nav-h) + 32px) 5% 48px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
    overflow-x: hidden;
}

.hero > * {
    min-width: 0;
    max-width: 100%;
}

.hero-bg {
    display: none;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yt-chip);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.live-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yt-red);
    animation: liveDot 1.2s ease-in-out infinite;
}

@keyframes liveDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.75); }
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.6px;
}

.gradient-text {
    color: #fff;
    background: none;
    -webkit-text-fill-color: unset;
}

.hero p {
    color: var(--yt-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.chip {
    background: var(--yt-chip);
    color: #fff;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 8px;
}

.stats-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.stat strong {
    display: block;
    font-size: 1.35rem;
}

.stat span {
    color: var(--yt-muted);
    font-size: 13px;
}

.studio-stage,
.tool-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.player-shell,
.result-section {
    background: #000;
    border-radius: 16px;
    border: 1px solid var(--yt-line);
    overflow: hidden;
    position: relative;
    box-shadow: var(--yt-shadow);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 0, 0, 0.12), transparent 42%),
        #000;
}

.drop-area {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    z-index: 2;
    background: transparent;
}

.drop-area.is-hidden {
    display: none;
}

.drop-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    /* background: #111; */
    display: grid;
    place-items: center;
    overflow: hidden;
    animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.drop-area p {
    color: #fff;
    font-size: 16px;
    margin: 0;
}

.drop-area small {
    color: var(--yt-muted);
}

.drop-area:hover .drop-icon {
    background: #303030;
}

#videoPreview {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
    border: 0;
}

.preview-hidden {
    display: none !important;
}

.video-blur {
    filter: blur(10px) brightness(0.55);
    transition: filter 0.45s ease;
}

.player-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #181818;
    border-top: 1px solid var(--yt-line);
    min-width: 0;
}

#fileName {
    color: var(--yt-muted);
    font-size: 13px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.btn-primary,
.pricing-btn {
    background: var(--yt-red);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    width: auto;
    min-width: 180px;
    padding: 10px 18px;
    font-size: 14px;
}

.btn-primary:hover,
.pricing-btn:hover {
    background: var(--yt-red-dark);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ================= LOADER ================= */
#loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.86);
    backdrop-filter: blur(10px);
    z-index: 110;
    padding: 12px;
    text-align: center;
    overflow: hidden;
}

.loader-hidden,
.download-hidden {
    display: none !important;
}

.studio-process {
    width: min(92%, 420px);
}

.spinner,
.studio-ring {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid #333;
    border-top-color: var(--yt-red);
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text,
#mainStatus {
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.loader-sub,
#statusText {
    color: var(--yt-muted);
    font-size: 13px;
    display: block;
    min-height: 18px;
}

.process-stages {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin: 16px 0 10px;
}

.stage {
    flex: 1;
    font-size: 10px;
    color: #777;
    padding: 6px 4px;
    border-radius: 6px;
    background: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stage.active {
    color: #fff;
    background: rgba(255, 0, 0, 0.2);
    box-shadow: inset 0 0 0 1px var(--yt-red);
}

.stage.done {
    color: #3ddc84;
    background: rgba(61, 220, 132, 0.12);
}

.progress-wrapper {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 99px;
    overflow: hidden;
    margin: 12px auto 8px;
}

#progressBar {
    width: 0;
    height: 100%;
    background: var(--yt-red);
    border-radius: 99px;
    transition: width 0.18s linear;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.45);
}

#percentageText {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.process-log {
    margin-top: 12px;
    max-height: 92px;
    overflow: hidden;
    text-align: left;
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-size: 11px;
    color: #8f8f8f;
    background: #0a0a0a;
    border-radius: 8px;
    padding: 8px 10px;
}

.process-log div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: logIn 0.25s ease;
}

@keyframes logIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.overlay-btn {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.overlay-btn.active {
    display: flex;
}

.result-section .overlay-btn .btn-primary {
    width: auto;
    padding: 12px 22px;
    font-size: 15px;
}

/* ================= SECTIONS ================= */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--yt-muted);
    margin-bottom: 40px;
}

.how-it-works,
.pricing,
.faq-section {
    padding: 72px 5%;
}

.how-it-works {
    background: #0f0f0f;
    border-top: 1px solid var(--yt-line);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: auto;
}

.step-card {
    background: var(--yt-raised);
    padding: 28px 22px;
    border-radius: var(--radius);
    text-align: left;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    background: #272727;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff0000;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 14px;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--yt-muted);
    font-size: 0.94rem;
}

/* ================= PRICING ================= */
.pricing {
    text-align: center;
    background: #0f0f0f;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: auto;
}

.pricing-card {
    background: var(--yt-raised);
    padding: 24px 20px 22px;
    border-radius: 16px;
    border: 1px solid transparent;
    text-align: left;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: #3f3f3f;
}

.pricing-card.featured {
    border-color: var(--yt-red);
    background: linear-gradient(180deg, #2a1212 0%, #212121 42%);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--yt-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 8px;
    border-radius: 4px;
}

.pricing-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
}

.price-period {
    color: var(--yt-muted);
    font-size: 13px;
    margin-top: 2px;
}

.features-list {
    list-style: none;
    margin-top: 18px;
    min-height: 180px;
}

.features-list li {
    margin: 8px 0;
    color: var(--yt-muted);
    font-size: 14px;
}

.pricing-btn {
    width: 100%;
    padding: 10px 14px;
    margin-top: 18px;
    font-size: 14px;
}

.pricing-card:not(.featured) .pricing-btn {
    background: #3f3f3f;
}

.pricing-card:not(.featured) .pricing-btn:hover {
    background: #505050;
}

/* ================= FAQ ================= */
.faq-section {
    background: #0f0f0f;
    border-top: 1px solid var(--yt-line);
}

.faq-search-container {
    max-width: 560px;
    margin: 0 auto 32px;
}

#faqSearch {
    width: 100%;
    padding: 12px 18px 12px 42px;
    background: #121212 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23aaa' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 14px center no-repeat;
    border: 1px solid #303030;
    border-radius: 40px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

#faqSearch:focus {
    border-color: var(--yt-blue);
    box-shadow: 0 0 0 1px var(--yt-blue);
}

.faq-container {
    max-width: 820px;
    margin: 0 auto;
}

.faq-cat-title {
    font-size: 14px;
    color: var(--yt-muted);
    margin: 28px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.faq-item {
    background: var(--yt-raised);
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
}

.chevron {
    color: var(--yt-muted);
    transition: transform 0.25s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 18px;
    color: var(--yt-muted);
    transition: all 0.28s ease;
}

.faq-item.active .faq-answer {
    max-height: 420px;
    padding-bottom: 16px;
    opacity: 1;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
    color: var(--yt-red);
}

/* ================= FOOTER ================= */
.site-footer {
    background: #0f0f0f;
    color: var(--yt-muted);
    padding: 48px 5% 20px;
    border-top: 1px solid var(--yt-line);
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--yt-muted);
    text-decoration: none;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-disclaimer-box {
    max-width: 1200px;
    margin: 28px auto 12px;
    padding: 14px 16px;
    background: #181818;
    border-radius: 10px;
    font-size: 13px;
    color: #888;
}

.footer-bottom {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--yt-line);
    font-size: 13px;
    color: #777;
}

.footer-seo-keywords {
    display: none;
}

/* ================= POPUPS ================= */
.pricing-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    overflow: auto;
    padding: 20px;
}

.pricing-popup-container {
    width: 100%;
    max-width: 1080px;
    background: #212121;
    padding: 28px 22px;
    border-radius: 16px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #303030;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.popup-close-btn:hover {
    background: #3f3f3f;
}

html.popup-open,
body.popup-open {
    overflow: hidden !important;
}

.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 7px 14px;
    background: #272727;
    border-radius: 18px;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: #212121;
    min-width: 150px;
    z-index: 100;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: #303030;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* ================= SCROLL REVEAL ================= */
.animate,
.animate-fade,
.animate-scale {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-scale {
    transform: translateY(16px) scale(0.98);
}

.animate.show,
.animate-fade.show,
.animate-scale.show {
    opacity: 1;
    transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ================= BLOG ================= */
.blog-post {
    max-width: 860px;
    margin: 100px auto 60px;
    padding: 0 20px;
    color: #ccc;
    line-height: 1.8;
}

.blog-header {
    text-align: left;
    margin-bottom: 36px;
}

.blog-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.blog-header .meta {
    font-size: 0.85rem;
    color: var(--yt-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-body h3 {
    color: white;
    font-size: 1.35rem;
    margin: 32px 0 14px;
}

.blog-body p {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.blog-body blockquote {
    background: #181818;
    border-left: 4px solid var(--yt-red);
    padding: 20px 24px;
    margin: 28px 0;
    color: #eee;
    border-radius: 0 12px 12px 0;
}

.blog-body ul {
    list-style: none;
    margin-bottom: 24px;
}

.blog-body ul li {
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
}

.blog-body ul li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--yt-red);
    font-size: 10px;
    top: 6px;
}

.strategy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
}

.strategy-table th,
.strategy-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.strategy-table th {
    background: #212121;
    color: #fff;
}

.free-trap-warning {
    background: #2a1212;
    border: 1px solid var(--yt-red);
    padding: 28px;
    border-radius: 16px;
    margin-top: 40px;
    text-align: center;
}

.free-trap-warning h4 {
    color: #ff4d4d;
    margin-bottom: 10px;
}

/* ================= MOBILE ================= */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: calc(var(--nav-h) + 20px) 14px 28px;
        gap: 18px;
        min-height: unset;
        text-align: left;
    }

    .studio-stage,
    .tool-container {
        width: 100%;
        max-width: 100%;
        margin-top: 18px;
    }

    .hero h1 {
        font-size: clamp(1.45rem, 6.4vw, 2rem);
        letter-spacing: -0.3px;
        word-break: break-word;
    }

    .hero p {
        font-size: 0.95rem;
        max-width: none;
        margin-bottom: 14px;
    }

    .steps-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 8px 0 12px;
    }

    .brand-logo {
        height: 32px;
        max-width: min(190px, calc(100vw - 78px));
    }

    .nav-links a,
    .nav-links .cta-btn {
        width: 100%;
        text-align: left;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .player-frame {
        aspect-ratio: 16 / 9;
        max-height: 46vh;
        min-height: 180px;
    }

    #videoPreview {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    .player-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .player-meta .btn-primary {
        width: 100%;
        min-width: 0;
    }

    #fileName {
        max-width: 100%;
        white-space: nowrap;
    }

    .process-stages {
        gap: 4px;
        margin: 10px 0 8px;
    }

    .stage {
        font-size: 8px;
        padding: 5px 2px;
        letter-spacing: 0;
    }

    .process-log {
        display: none;
    }

    .studio-process {
        width: 100%;
    }

    .overlay-btn.active {
        padding: 12px;
    }

    .result-section .overlay-btn .btn-primary {
        width: calc(100% - 24px);
        max-width: 280px;
    }

    .pricing-popup-container {
        width: 100%;
        max-height: 88vh;
        padding: 22px 14px 16px;
        border-radius: 14px;
    }

    .yt-trial-box {
        max-width: 100%;
    }

    .hero-actions,
    .stats-row {
        gap: 10px;
    }

    .btn-primary {
        width: 100%;
        min-width: 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .how-it-works,
    .pricing,
    .faq-section {
        padding: 40px 14px;
    }
}

@media (max-width: 420px) {
    .player-frame {
        max-height: 40vh;
        min-height: 160px;
    }

    .drop-area p {
        font-size: 14px;
    }

    .drop-icon,
    .drop-icon img {
        width: 48px;
        height: 48px;
    }
}
