:root {
    --paper: white;
    --paper-raised: #FFFFFF;
    --ink-soft: #3c4f47;
    --ink: #14201C;
    --line: #DADCD4;
    --teal: #1E7F82;
    --teal-dark: #134F51;
    --teal-tint: #E4F1F1;
    --amber: #E2A33B;
    --amber-dark: #A9761F;
    --amber-tint: #FBF0DC;
    --danger: #C0432D;
    --danger-tint: #F8E7E3;
    --radius: 10px;
}
 
* {
    box-sizing: border-box;
}

.page-hero-title {
    font-weight: 800;
    display: block;
    /* background: linear-gradient(90deg, #6c5ce7, #a866ff); */
    background: linear-gradient(to right, #a3c43a, #a866ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    font-family: 'Bricolage Grotesque', 'DM Sans', sans-serif;

}

h1,
h2,
h3,
h4,
.display-font {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

a {
    color: var(--teal-dark);
}

/* ::selection {
    background: var(--amber-tint);
} */

 /* body{
    background:var(--paper);

  } */

/* ---------- Hero ---------- */
.hero {
    padding: 3.5rem 0 2.5rem;
    background-image: radial-gradient(var(--line) 1px, transparent 1px);
    background-size: 16px 16px;
    background-position: -8px -8px;
}

.hero-inner {
    background: var(--bg);
    border-radius: 10px;
}


.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    font-family: 'Bricolage Grotesque', 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1rem;
}

.hero p.lede {
    font-size: 1.08rem;
    max-width: 46ch;
    margin-bottom: 1.6rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .95rem;
}

.feature-list i {
    color: var(--teal-dark);
    margin-top: .2rem;
}

.btn-primary-app {
    background: var(--primary);
    border: 1px solid var(--ink);
    color: var(--paper);
    font-weight: 600;
    padding: .65rem 1.4rem;
    border-radius: 8px;
}

.btn-primary-app:hover {
    background: var(--hover);
    color: var(--paper);
}

/* Hero visual: format conversion chips */
.convert-visual {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    min-height: 220px;
}

.format-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.3rem 1.4rem;
    border-radius: 12px;
    min-width: 110px;
    animation: chip-in .5s ease both;
}

.format-chip.source {
    background: var(--teal-tint);
    border: 1px solid #C7E2E2;
    color: var(--text);
}

.format-chip.target {
    background: var(--amber-tint);
    border: 1px solid #EFD9AC;
    animation-delay: .12s;
    color: var(--text);
}

.format-chip small {
    color: var(--text);
}

.format-chip .ext {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.format-chip.source .ext {
    color: var(--teal-dark);
}

.format-chip.target .ext {
    color: var(--amber-dark);
}

.format-chip small {
    color: black;
    font-weight: bold;
    font-size: .72rem;
}

.convert-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    color: var(--ink-soft);
    animation: arrow-in .6s ease .25s both;
}

.convert-arrow i {
    font-size: 1.4rem;
    color: var(--text);
}

.toast-body {
color: var(--primary);
}

.toast-body i {
color: var(--primary);
}

@keyframes chip-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrow-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .format-chip,
    .convert-arrow {
        animation: none;
    }
}

/* ---------- Converter app ---------- */
/* .converter-app {
    padding-bottom: 4rem;
} */

.upload-card {
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius);
    padding: 2.75rem 1.5rem;
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
    cursor: pointer;
}
.upload-msg {
    color: var(--text);
}

.upload-card.dragover {
    border-color: var(--teal);
    background: var(--teal-tint);
}

.upload-card .upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.upload-card h2 {
    font-size: 1.25rem;
    margin-bottom: .35rem;
}

.upload-card .hint {
    color: var(--ink-soft);
    font-size: .88rem;
    margin-top: .75rem;
}

.section-label {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin: 2.5rem 0 .85rem;
}

/* Queue toolbar */
.queue-toolbar {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.stat .lbl {
    font-size: .75rem;
    color: var(--ink-soft);
}

.quality-control {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex: 1 1 220px;
    min-width: 200px;
}

.quality-control label {
    font-size: .82rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.quality-control output {
    font-size: .82rem;
    font-weight: 600;
    min-width: 2.6em;
}

.form-range::-webkit-slider-thumb {
    background: var(--teal-dark);
}

.form-range::-moz-range-thumb {
    background: var(--teal-dark);
}

.toolbar-actions {
    display: flex;
    gap: .6rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.btn-outline-app {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper-raised);
    font-size: .88rem;
    font-weight: 500;
    border-radius: 8px;
}

.btn-outline-app:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--ink-soft);
}

.btn-convert {
    background: var(--teal-dark);
    border: 1px solid var(--teal-dark);
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    border-radius: 8px;
}

.btn-convert:hover {
    background: #0E3E40;
    color: #fff;
}

.btn-convert:disabled {
    opacity: .55;
}

.btn-download-all {
    background: var(--primary);
    border: 1px solid var(--hover);
    color: var(--text);
    font-weight: 600;
    font-size: .88rem;
    border-radius: 8px;
}

.btn-download-all:hover {
    background: var(--hover);
    border-color: var(--hover);
}

.btn-download-all:disabled {
    opacity: .5;
}

/* File rows */
.file-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--line);
}

.file-row:last-child {
    border-bottom: none;
}

.file-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--paper);
}

.file-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.file-name {
    font-size: .9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.file-sub {
    font-size: .78rem;
    color: var(--ink-soft);
}

.file-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
    margin-top: .35rem;
    width: 100%;
}

.file-progress>div {
    height: 100%;
    width: 0%;
    background: var(--teal-dark);
    transition: width .2s ease;
}

.status-badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .55rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-pending {
    background: #EDEDE7;
    color: var(--ink-soft);
}

.status-converting {
    background: var(--teal-tint);
    color: var(--teal-dark);
}

.status-done {
    background: #E1F1E4;
    color: #1F7A3D;
}

.status-error {
    background: var(--danger-tint);
    color: var(--danger);
}

.file-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    background: var(--paper-raised);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-size: .9rem;
}

.icon-btn:hover {
    background: var(--paper);
    color: var(--ink);
}

.icon-btn.download {
    color: var(--teal-dark);
    border-color: #BFDEDD;
}

.icon-btn.remove:hover {
    color: var(--danger);
    border-color: #EBC3BA;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ink-soft);
}

footer.app-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: .82rem;
}

@media (max-width: 767.98px) {
    .convert-visual {
        margin-top: 2rem;
    }

    .toolbar-actions {
        margin-left: 0;
        width: 100%;
    }

    .toolbar-actions .btn {
        flex: 1 1 auto;
    }

    .file-row {
        flex-wrap: wrap;
    }

    .file-actions {
        margin-left: auto;
    }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--teal-dark);
    outline-offset: 2px;
}



/* ================================
   Section Heading
================================ */

.section-heading {
    max-width: 700px;

    margin: 100px auto 45px;
}

.section-tag {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1px;
}

.section-heading h2 {
    margin-bottom: 12px;

    font-size: clamp(26px, 4vw, 34px);
    font-weight: 750;
    letter-spacing: -0.8px;
}

.section-heading p {
    margin: 0;

    color: var(--muted);
}


/* ================================
   Feature Cards
================================ */

.feature-card {
    height: 100%;

    padding: 26px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 12px;

    background: rgba(108, 92, 231, 0.10);

    color: var(--primary);

    font-size: 22px;
}

.feature-card h4 {
    margin-bottom: 10px;

    font-size: 17px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


/* ================================
   How To Section
================================ */

.how-section {
    padding-bottom: 20px;
}

.steps-container {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    max-width: 1100px;

    margin: 0 auto;
    margin-bottom: 50px;
}

.step {
    flex: 1;

    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: var(--primary);

    color: var(--dark);

    font-weight: 750;
}

.step h4 {
    margin-bottom: 8px;

    font-size: 16px;
    font-weight: 700;
}

.step p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}

.step-line {
    width: 70px;
    height: 1px;

    margin-top: 24px;

    background: var(--primary);
}

