:root {
    --bg: #0b0d0c;
    --surface: #131615;
    --surface-2: #191d1b;
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.05);
    --accent: #c9a961;
    --accent-hi: #ddc07f;
    --accent-soft: rgba(201, 169, 97, 0.1);
    --text: #eef1ef;
    --text-dim: #9aa19c;
    --text-faint: #667069;
    --green: #4ade80;
    --red: #f47174;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ---------- Hero ---------- */

.hero {
    padding: 96px 0 64px;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 64px;
}

.kicker {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.6em;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--text-dim);
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 36px;
}

.btn-hero {
    display: inline-flex;
    width: auto;
    padding: 14px 32px;
}

.badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 0.82em;
    margin-bottom: 28px;
}

/* ---------- Sections ---------- */

.section {
    margin-bottom: 72px;
}

.section-head {
    max-width: 560px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-kicker {
    display: block;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 12px;
}

.section-lead {
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Steps ---------- */

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

.step {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.step-num {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.step-title {
    font-size: 1.05em;
    font-weight: 700;
    margin: 0 0 8px;
}

.step-text {
    color: var(--text-dim);
    font-size: 0.92em;
    line-height: 1.5;
    margin: 0;
}

/* ---------- How-to list ---------- */

.howto-list {
    list-style: none;
    counter-reset: howto;
    margin: 0 auto;
    padding: 0;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.howto-list li {
    counter-increment: howto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 0.94em;
    line-height: 1.55;
}

.howto-list li::before {
    content: counter(howto);
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.howto-list li strong {
    color: var(--text);
}

.howto-note {
    max-width: 560px;
    margin: 16px auto 0;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.85em;
    line-height: 1.5;
}

/* ---------- Features ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    padding: 26px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 0.98em;
    font-weight: 700;
    margin: 0 0 8px;
}

.feature-text {
    color: var(--text-dim);
    font-size: 0.88em;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Browser frame (example preview) ---------- */

.browser-frame {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
}

.browser-url {
    margin-left: 10px;
    font-size: 0.78em;
    color: var(--text-faint);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 4px 12px;
}

.browser-body {
    position: relative;
}

.browser-img {
    display: block;
    width: 100%;
    height: auto;
}

.browser-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 13, 12, 0.75);
    color: var(--accent-hi);
    font-weight: 700;
    font-size: 0.95em;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.browser-frame:hover .browser-overlay {
    opacity: 1;
}

.example-caption {
    text-align: center;
    color: var(--text-faint);
    font-size: 0.85em;
    margin: 16px 0 0;
}

/* ---------- Upload card ---------- */

.upload-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px;
    max-width: 560px;
    margin: 0 auto;
}

.field-label {
    display: block;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.text-input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 1em;
    margin-bottom: 22px;
    transition: border-color 0.15s;
}

.text-input:focus {
    outline: none;
    border-color: var(--accent);
}

.dropzone {
    display: block;
    cursor: pointer;
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    background: var(--surface-2);
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 24px;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.dropzone-text {
    color: var(--text-dim);
    font-size: 0.92em;
    line-height: 1.6;
}

.file-list {
    margin-top: 14px;
    font-size: 0.85em;
    color: var(--accent-hi);
}

.file-list .file-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 7px;
}

/* ---------- Buttons ---------- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #17140a;
    font-weight: 700;
    font-family: inherit;
    font-size: 1em;
    padding: 14px 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hi);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--surface-2);
    color: var(--text-faint);
    cursor: default;
}

.btn-full {
    width: 100%;
}

/* ---------- Progress bar ---------- */

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* ---------- Status / spinner ---------- */

.status {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95em;
    color: var(--text-dim);
    min-height: 1.4em;
}

.status.error {
    color: var(--red);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-download {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    background: var(--green);
    color: #0c1f11;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.1s ease;
}

.btn-download:hover {
    transform: translateY(-1px);
}

.reset-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 0.85em;
    text-decoration: underline;
}

.reset-link:hover {
    color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
    text-align: center;
    margin-top: 48px;
    color: var(--text-faint);
    font-size: 0.8em;
    letter-spacing: 0.4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .hero { padding: 64px 0 48px; }
    .hero h1 { font-size: 1.9em; }
    .steps, .features { grid-template-columns: 1fr; }
    .upload-card { padding: 28px 22px; }
}
