:root {
    color-scheme: dark;
    --background: #10131c;
    --surface: rgba(25, 29, 42, 0.82);
    --surface-raised: #1d2231;
    --surface-border: rgba(197, 207, 235, 0.12);
    --text: #f5f6fb;
    --muted: #a4aabe;
    --subtle: #727b91;
    --accent: #a6f26a;
    --accent-dark: #75c63c;
    --danger: #ff808d;
    --success: #a6f26a;
    --font-body: "Segoe UI", Arial, sans-serif;
    --font-display: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

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

a {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.ambient {
    position: absolute;
    z-index: -1;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.13;
    pointer-events: none;
}

.ambient-one {
    top: 0;
    left: -230px;
    background: #4779ff;
    animation: drift 16s ease-in-out infinite alternate;
}

.ambient-two {
    top: 440px;
    right: -270px;
    background: #9b58ff;
    animation: drift 19s ease-in-out infinite alternate-reverse;
}

.site-nav {
    position: sticky;
    z-index: 5;
    top: 0;
    border-bottom: 1px solid rgba(197, 207, 235, 0.07);
    background: rgba(16, 19, 28, 0.78);
    backdrop-filter: blur(20px);
}

.nav-inner {
    display: flex;
    width: min(1160px, calc(100% - 48px));
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 11px;
    background: var(--accent);
    color: #172310;
    font-size: 18px;
    transform: rotate(-5deg);
}

.brand-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a,
.site-footer a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
}

main {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    padding: 108px 0 54px;
    text-align: center;
    animation: rise-in 650ms both;
}

.eyebrow,
.section-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 19px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 13px rgba(166, 242, 106, 0.8);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
}

.hero h1 {
    margin-bottom: 19px;
    font-size: clamp(43px, 7vw, 72px);
    font-weight: 600;
    letter-spacing: -4px;
    line-height: 1.05;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
}

.download-card {
    max-width: 780px;
    margin: 38px auto 0;
    padding: 25px;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.22);
    text-align: left;
    backdrop-filter: blur(18px);
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #c7cbd7;
    font-size: 12px;
    font-weight: 600;
}

.url-field {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 0 10px 0 16px;
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    background: rgba(8, 11, 18, 0.5);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.url-field:focus-within {
    border-color: rgba(166, 242, 106, 0.72);
    box-shadow: 0 0 0 3px rgba(166, 242, 106, 0.09);
}

.link-icon {
    color: var(--accent);
    font-size: 18px;
    transform: rotate(45deg);
}

.url-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.url-field input::placeholder {
    color: #6f778a;
}

.paste-button {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid var(--surface-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd0df;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.paste-button:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 12px;
    margin-top: 17px;
}

.select-field select {
    width: 100%;
    height: 49px;
    padding: 0 34px 0 13px;
    border: 1px solid var(--surface-border);
    border-radius: 11px;
    appearance: none;
    background-color: rgba(8, 11, 18, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23a4aabe' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.select-field option {
    background: #1d2231;
    color: var(--text);
}

.download-button,
.secondary-button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: var(--accent);
    color: #172310;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.download-button:hover:not(:disabled) {
    background: #b7ff7b;
    box-shadow: 0 8px 24px rgba(166, 242, 106, 0.18);
    transform: translateY(-1px);
}

.download-button:disabled {
    cursor: wait;
    opacity: 0.78;
}

.button-arrow {
    font-size: 18px;
    line-height: 1;
}

.is-loading .button-arrow {
    animation: nudge 750ms ease-in-out infinite alternate;
}

.privacy-note {
    margin: 17px 0 0;
    color: var(--subtle);
    font-size: 11px;
    text-align: center;
}

.privacy-note span {
    margin-right: 5px;
    color: var(--accent);
}

.status {
    margin-top: 16px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
}

.status-success {
    border-color: rgba(166, 242, 106, 0.2);
    background: rgba(166, 242, 106, 0.08);
    color: var(--success);
}

.status-error {
    border-color: rgba(255, 128, 141, 0.25);
    background: rgba(255, 128, 141, 0.08);
    color: var(--danger);
}

.progress-container {
    margin-top: 17px;
}

.progress-track {
    height: 5px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 0 15px rgba(166, 242, 106, 0.55);
    transition: width 280ms ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
}

.result-card {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(166, 242, 106, 0.17);
    border-radius: 15px;
    background: rgba(166, 242, 106, 0.045);
    animation: rise-in 350ms both;
}

.result-card h2 {
    margin-bottom: 5px;
    font-size: 18px;
    letter-spacing: -0.4px;
}

.result-check {
    display: grid;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #172310;
    font-weight: 700;
}

.result-filename {
    overflow-wrap: anywhere;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.result-video {
    display: block;
    width: min(100%, 560px);
    max-height: 330px;
    margin-top: 16px;
    border-radius: 12px;
    background: #080b12;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.result-download {
    min-height: 42px;
}

.secondary-button {
    min-height: 42px;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 12px;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.platform-section,
.how-section {
    padding: 58px 0 20px;
    animation: rise-in 700ms 100ms both;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.section-kicker {
    display: block;
    margin-bottom: 9px;
    font-size: 9px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(22px, 3vw, 29px);
    letter-spacing: -1px;
}

.section-heading > p {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.platform-card {
    display: flex;
    min-height: 67px;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    background: rgba(25, 29, 42, 0.52);
    color: #e7e9f0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    border-color: rgba(166, 242, 106, 0.42);
    background: rgba(31, 37, 49, 0.9);
}

.platform-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: #242a39;
    color: #f5f6fb;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}

.youtube { color: #ff777c; }
.instagram { color: #e998ff; }
.tiktok { color: #8fe9e0; }
.twitter { color: #d6e2ff; }
.facebook { color: #7eb3ff; }
.terabox { color: #83cbff; }
.other { color: var(--accent); font-size: 10px; }

.platform-arrow {
    margin-left: auto;
    color: var(--subtle);
    font-size: 15px;
}

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

.step-card {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: rgba(25, 29, 42, 0.48);
}

.step-number {
    display: block;
    margin-bottom: 13px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.step-card h3 {
    margin-bottom: 6px;
    font-size: 15px;
}

.step-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    display: flex;
    width: min(1000px, calc(100% - 48px));
    min-height: 95px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 55px auto 0;
    border-top: 1px solid rgba(197, 207, 235, 0.09);
    color: var(--subtle);
    font-size: 11px;
}

.footer-brand {
    font-size: 13px;
}

.site-footer > div {
    display: flex;
    gap: 18px;
}

.hidden {
    display: none !important;
}

.subtitle-page {
    max-width: 720px;
    min-height: calc(100vh - 230px);
    padding-top: 76px;
}

.subtitle-card {
    padding: clamp(22px, 5vw, 38px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.22);
}

.subtitle-card h1 {
    margin: 8px 0 10px;
    font-size: clamp(32px, 6vw, 48px);
    letter-spacing: -2px;
}

.subtitle-intro {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 14px;
}

.subtitle-input {
    width: 100%;
    min-height: 50px;
    margin-bottom: 18px;
    padding: 0 13px;
    border: 1px solid var(--surface-border);
    border-radius: 11px;
    background: rgba(8, 11, 18, 0.5);
    color: var(--text);
}

.subtitle-input::placeholder {
    color: #6f778a;
}

.subtitle-submit {
    width: 100%;
    margin-top: 3px;
}

.subtitle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 11px;
    padding: 13px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.subtitle-lang {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

/* Shared legal-page styles. */
.container {
    width: min(900px, calc(100% - 40px));
    margin: 46px auto;
    padding: clamp(22px, 5vw, 42px);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.17);
}

.container h1,
.container h2 {
    color: var(--text) !important;
    font-family: var(--font-display);
}

.container h1 {
    font-size: clamp(28px, 5vw, 40px);
    letter-spacing: -1px;
}

.container h2 {
    margin-top: 30px;
    font-size: 20px;
}

.container p,
.container li,
.container div {
    color: var(--muted);
}

.legal-content h2 {
    margin-top: 30px;
    font-size: 19px;
}

.legal-content p {
    max-width: 760px;
}

.legal-meta {
    margin-bottom: 28px;
    color: var(--subtle) !important;
    font-size: 12px;
}

.legal-footer {
    margin-top: 25px;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(65px, 32px, 0); }
}

@keyframes nudge {
    from { transform: translateX(0); }
    to { transform: translateX(4px); }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 80px;
    }

    .hero h1 {
        letter-spacing: -2.5px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .section-heading > p {
        margin-bottom: 0;
    }
}

@media (max-width: 560px) {
    .nav-inner,
    main,
    .site-footer {
        width: calc(100% - 32px);
    }

    .nav-inner {
        min-height: 66px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: 16px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--surface-border);
        border-radius: 14px;
        background: #191d2a;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
    }

    .nav-links.is-open {
        display: flex;
        animation: rise-in 150ms both;
    }

    .nav-links a {
        padding: 12px;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .hero {
        padding: 68px 0 35px;
    }

    .hero h1 {
        font-size: clamp(39px, 12vw, 56px);
    }

    .hero-description {
        font-size: 14px;
    }

    .download-card {
        margin-top: 26px;
        padding: 17px;
        border-radius: 16px;
    }

    .download-options {
        grid-template-columns: 1fr 1fr;
    }

    .download-button {
        grid-column: 1 / -1;
    }

    .platform-section,
    .how-section {
        padding-top: 45px;
    }

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

    .step-card {
        min-height: 0;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 22px 0;
    }
}

@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;
    }
}
