/* ============================================================
   Consolidated stylesheet — full (Link on Top, Buttons Below)
   ============================================================ */

/* ---------- 0. Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700;800&display=swap');

/* ---------- 1. Design tokens ---------- */
:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-soft: #f1f5f9;
    --panel-footer: #f4f5f5;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #334155;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --border: #e2e8f0;
    --border-2: #cbd5e1;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --blue-soft: #eff6ff;
    --teal: #0891b2;
    --teal-hover: #0e7490;
    --emerald: #10b981;
    --emerald-soft: #d1fae5;
    --indigo: #6366f1;
    --indigo-soft: #eef2ff;
    --amber: #f59e0b;
    --red: #ef4444;
    --red-soft: #fee2e2;
    --red-border: #fecaca;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}

svg {
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.375;
    letter-spacing: -.01em;
    font-weight: 700;
}

p {
    margin-bottom: 12px;
}

[id],
#dmca,
#faq {
    scroll-margin-top: 72px;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- 3. Utilities ---------- */
.container {
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
    padding-inline: 16px;
}

.container-narrow {
    width: min(880px, calc(100% - 32px));
    margin-inline: auto;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.text-gradient {
    background: linear-gradient(to right, #4f46e5, #9333ea, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 4. Header ---------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
}

.logo {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1;
    margin-right: 8px;
    white-space: nowrap;
}

.logo .net {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 600;
    margin-left: 1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    transition: .15s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--muted-2);
    display: grid;
    place-items: center;
    transition: .15s;
    cursor: pointer;
}

.nav-btn:hover {
    border-color: var(--border-2);
    color: var(--text);
}

.nav-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-btn.active {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* Menu Button (Mobile) */
.menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
    cursor: pointer;
    flex-shrink: 0;
}

/* ---------- 5. Hero ---------- */
.hero {
    padding: 32px 0 24px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(20px, 3.2vw, 28px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.hero .lead {
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- 6. Downloader card ---------- */
.downloader-card {
    max-width: 100%;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    text-align: left;
}

.dl-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-input-wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    background: var(--panel-soft);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 5px 5px 5px 12px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.dl-input-wrap:focus-within {
    border-color: var(--blue);
    background: var(--panel);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.dl-input-wrap.invalid {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}

.dl-input-icon {
    display: flex;
    align-items: center;
    color: var(--muted);
    flex-shrink: 0;
}

.dl-input-icon svg {
    width: 20px;
    height: 20px;
}

/* URL INPUT (Patla / Thin font style added here) */
.dl-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    /* Patla font */
    letter-spacing: 0.01em;
    padding: 13px 8px;
}

.dl-input:focus-visible {
    outline: 0;
}

.dl-input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

.dl-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.dl-actions .paste-btn,
.dl-actions .dl-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 20px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
}

.dl-actions .paste-btn {
    background: #fff;
    border: 1px solid #0891b2;
    color: #0891b2;
}

.dl-actions .paste-btn:hover:not([disabled]) {
    background: #ecfeff;
    color: #0e7490;
    border-color: #0e7490;
}

.dl-actions .dl-btn {
    background: #0891b2;
    border: 1px solid #0891b2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(8, 145, 178, .25);
}

.dl-actions .dl-btn:hover:not([disabled]) {
    background: #0e7490;
    border-color: #0e7490;
    box-shadow: 0 4px 12px rgba(8, 145, 178, .35);
}

.dl-actions .dl-btn:active:not([disabled]) {
    transform: translateY(1px);
}

.dl-actions .dl-btn[disabled] {
    opacity: .7;
    cursor: progress;
}

.dl-actions .dl-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.dl-btn-text {
    text-align: left;
    line-height: 1.2;
}

.dl-btn-text strong {
    display: block;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.01em;
}

.paste-btn .paste-text {
    display: inline;
}

.paste-btn .paste-loading {
    display: none;
    align-items: center;
    gap: 6px;
}

.paste-btn.loading .paste-text {
    display: none;
}

.paste-btn.loading .paste-loading {
    display: inline-flex;
}

.paste-btn.loading,
.paste-btn[disabled] {
    cursor: progress;
    opacity: .85;
    pointer-events: none;
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(8, 145, 178, .25);
    border-top-color: #0891b2;
    animation: dl-spin .6s linear infinite;
    display: inline-block;
    box-sizing: border-box;
}

@keyframes dl-spin {
    to {
        transform: rotate(360deg);
    }
}

.dl-hint {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin: 4px 0 0;
    min-height: 16px;
}

.dl-hint.error {
    color: var(--red);
    font-weight: 600;
}

.dl-report {
    text-align: center;
    font-size: 11px;
    margin-top: 12px;
}

.dl-report a {
    color: var(--muted);
    border-bottom: 1px dashed var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .15s;
}

.dl-report a:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* ---------- 7. ERROR CARD (New Addition) ---------- */
.error-card {
    background: #fff;
    border: 1px solid var(--red-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-top: 20px;
    animation: slide-in .3s ease both;
}

.error-icon {
    width: 56px;
    height: 56px;
    background: var(--red-soft);
    color: var(--red);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

.error-icon svg {
    width: 28px;
    height: 28px;
}

.error-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.error-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 400px;
    margin-inline: auto;
}

.error-btn {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    box-shadow: 0 2px 8px rgba(239, 68, 68, .25);
}

.error-btn:hover {
    background: #dc2626;
}

/* ---------- 8. Result & preview ---------- */
.result {
    margin-top: 16px;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    animation: slide-in .3s ease both;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--panel);
    background: var(--border);
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.result-info span {
    display: block;
    font-size: 12px;
    color: var(--muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.preview-block {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    animation: fade-in .25s ease both;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.preview-media {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-height: 520px;
    position: relative;
}

.preview-media:has(audio) {
    background: var(--panel-soft);
    min-height: 0;
}

.preview-media video {
    width: 100%;
    max-height: 520px;
    display: block;
    background: #000;
}

.preview-media img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    background: #000;
}

.preview-media audio {
    width: 100%;
    padding: 22px 16px;
    background: var(--panel-soft);
}

.preview-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--panel);
}

.preview-dl {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: .18s;
    border: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}

.preview-dl:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

.preview-dl:active {
    transform: translateY(1px);
}

.preview-dl svg {
    width: 14px;
    height: 14px;
}

.preview-cancel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 8px;
    background: var(--panel);
    color: var(--text-2);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

.preview-cancel:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ---------- 9. Sections ---------- */
.section {
    padding: 44px 0;
    border-top: 1px solid var(--border);
}

.section-head,
.intro-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 28px;
}

.section-head h1,
.section-head h2 {
    font-size: clamp(17px, 2.4vw, 22px);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -.01em;
    color: var(--text);
}

.section-head p,
.intro-text p {
    color: var(--text-2);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.section-body {
    max-width: 760px;
    margin: 0 auto;
}

.section-body p {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.65;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-inline: auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin-inline: auto;
}

.content-img {
    display: block;
    width: 100%;
    max-width: 740px;
    height: auto;
    margin: 30px auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}

/* ---------- 10. Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
}

.step {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: .18s;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    border-color: var(--border-2);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.step p {
    font-size: 12px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.55;
}

.step-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: .18s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .06);
    border-color: var(--border-2);
}

.step-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text);
}

.step-card p {
    font-size: 14px;
    margin: 0;
    color: var(--text-2);
    line-height: 1.5;
}

/* ---------- 11. Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
}

.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    transition: .18s;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--emerald-soft);
    color: var(--emerald);
    margin-bottom: 12px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature p {
    font-size: 12.5px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.55;
}

.features-container {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 30px auto;
    max-width: 1000px;
    overflow: hidden;
}

.features-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text);
}

.features-header span {
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
}

.features-grid {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-item .icon-wrapper {
    width: 22px;
    height: 22px;
    color: var(--indigo);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text);
}

.feature-item p {
    margin: 0;
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ---------- 12. Formats ---------- */
.formats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.format-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: .18s;
}

.format-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.format-card svg {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    display: block;
}

.format-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1px;
}

.format-card span {
    font-size: 11px;
    color: var(--muted);
}

.formats-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.formats-box .format-card {
    border: 0;
    padding: 0;
}

.formats-box .format-card svg {
    width: 56px;
    height: 56px;
    margin-bottom: 15px;
}

.formats-box .format-card strong {
    font-size: 16px;
    margin-bottom: 4px;
}

.formats-box .format-card span {
    font-size: 13px;
    color: var(--muted-2);
}

/* ---------- 13. Callouts ---------- */
.note-callout {
    max-width: 760px;
    margin: 0 auto;
    background: #fffbeb;
    border-left: 4px solid var(--amber);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.note-callout svg {
    width: 18px;
    height: 18px;
    color: var(--amber);
    flex-shrink: 0;
    margin-top: 2px;
}

.note-callout p {
    margin: 0;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

.notice-box {
    background: var(--indigo-soft);
    border-left: 4px solid var(--indigo);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 30px auto;
    max-width: 800px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.notice-box svg {
    width: 24px;
    height: 24px;
    color: var(--indigo);
    flex-shrink: 0;
}

.notice-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--indigo);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.06em;
}

.notice-box p {
    margin: 0;
    color: var(--text-3);
    font-size: 14.5px;
    line-height: 1.6;
}

.notice-box a {
    color: var(--indigo);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.notice-box a:hover {
    color: var(--blue-hover);
}

/* ---------- 14. FAQ ---------- */
.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq details {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: .15s;
}

.faq details[open] {
    border-color: #a7f3d0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 46px 14px 16px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    position: relative;
    transition: .15s;
}

.faq summary:hover {
    color: var(--blue);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--muted-2);
    border-bottom: 2px solid var(--muted-2);
    transform: translateY(-70%) rotate(45deg);
    transition: .25s;
}

.faq details[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
    border-color: var(--blue);
}

.faq .answer {
    padding: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-2);
}

/* ---------- 15. DMCA ---------- */
.dmca-box {
    max-width: 760px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px;
    text-align: center;
}

.dmca-box h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dmca-box p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0;
}

/* ---------- 16. Contact form ---------- */
.contact-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--panel-soft);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    transition: .15s;
}

.form-input:focus,
.form-textarea:focus {
    outline: 0;
    border-color: var(--blue);
    background: var(--panel);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-submit {
    align-self: flex-start;
    border: 0;
    border-radius: 8px;
    padding: 11px 22px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}

.form-submit:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

.form-submit:active {
    transform: translateY(1px);
}

/* ---------- 17. Prose ---------- */
.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose h1 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    margin-bottom: 16px;
}

.prose h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
}

.prose h3 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 6px;
}

.prose p,
.prose li {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 12px;
}

.prose ul,
.prose ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--blue-hover);
}

/* ---------- 18. Footer ---------- */
.site-footer {
    background: var(--panel-footer);
    border-top: 1px solid var(--border);
    margin-top: 44px;
    padding: 44px 0;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.foot-brand .logo {
    margin-bottom: 12px;
}

.foot-brand p {
    font-size: 13px;
    color: var(--text-2);
    max-width: 280px;
    line-height: 1.65;
}

.foot-col h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text);
    margin-bottom: 12px;
}

.foot-col ul {
    list-style: none;
}

.foot-col li {
    margin-bottom: 8px;
}

.foot-col a {
    font-size: 13px;
    color: var(--text-2);
    transition: .15s;
}

.foot-col a:hover {
    color: var(--blue);
}

.foot-bottom {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    font-size: 11px;
    color: var(--muted-2);
    line-height: 1.65;
}

.foot-bottom p {
    margin-bottom: 8px;
}

.foot-bottom p:last-child {
    margin-bottom: 0;
}

/* ---------- 19. Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    background: var(--text);
    color: #fff;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    max-width: calc(100% - 32px);
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- 20. Watermark ---------- */
.watermark-container {
    position: relative;
    text-align: center;
    padding: 10px 0;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    user-select: none;
    min-height: 120px;
    width: 100%;
}

.watermark-text {
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 800;
    color: var(--border-2);
    opacity: 0.15;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-family: inherit;
    margin: 0;
}

/* ---------- 21. Utilities ---------- */
.text-center {
    text-align: center;
}

.img-wrapper {
    display: block;
    margin: 30px auto;
    text-align: center;
}


/* ============================================================
   22. FINAL MOBILE FIX (Link on Top, Buttons Below)
   ============================================================ */
@media (max-width: 600px) {

    /* Mobile Header top right icons */
    .menu-btn {
        display: none !important;
    }

    .nav {
        display: flex !important;
        position: static !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        gap: 8px !important;
    }

    .nav-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 500px) {

    /* Hero Layout */
    .hero {
        padding: 16px 0 20px !important;
    }

    .hero h1 {
        font-size: 20px !important;
        font-weight: 800 !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }

    .hero .lead,
    .hero p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        color: var(--text-2) !important;
    }

    /* Hide Redundant Text */
    .hero h2,
    .hero h3,
    .hero .sub-heading {
        display: none !important;
    }

    /* Form Card Reset */
    .downloader-card {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Stack Layout: Input on top, Buttons below */
    .dl-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* 1. Input Field (Top) */
    .dl-input-wrap {
        width: 100% !important;
        background: var(--panel) !important;
        border: 1.5px solid var(--border-2) !important;
        border-radius: 10px !important;
        padding: 4px 12px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        height: 50px !important;
    }

    .dl-input {
        font-size: 13px !important;
        /* Mobile pe thoda aur patla */
        font-weight: 400 !important;
        padding: 8px !important;
    }

    .dl-input-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* 2. Buttons Row (Bottom) */
    .dl-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Both Buttons 50% width */
    .dl-actions .paste-btn,
    .dl-actions .dl-btn {
        flex: 1 !important;
        width: 50% !important;
        border-radius: 10px !important;
        min-height: 46px !important;
        font-size: 14px !important;
        margin: 0 !important;
        padding: 10px !important;
    }

    /* Make sure text fits */
    .dl-btn-text strong {
        font-size: 14px !important;
    }

    .dl-btn-text span {
        font-size: 11px !important;
        display: block !important;
    }

    /* 3. Hint Text */
    .dl-hint {
        text-align: center !important;
        margin-top: 4px !important;
        font-size: 12px !important;
        color: var(--text-2) !important;
        min-height: auto !important;
    }

    /* Footer & other elements */
    .foot-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .preview-media {
        min-height: 150px !important;
        max-height: 380px !important;
    }

    .preview-media video,
    .preview-media img {
        max-height: 380px !important;
    }

    .formats {
        grid-template-columns: 1fr !important;
    }

    .form-submit {
        width: 100% !important;
    }
}