:root {
    --bg-deep: #020617;
    --bg-mid: #0f172a;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #00e676;
    --accent-dark: #00c853;
    --accent-soft: rgba(0, 230, 118, 0.14);
    --danger: #fca5a5;
    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    --max: 920px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(0, 230, 118, 0.11), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.08), transparent 28%),
        linear-gradient(180deg, var(--bg-deep), var(--bg-mid) 40%, #111827);
    min-height: 100vh;
    line-height: 1.5;
}

.page {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 230, 118, 0.22);
}

.brand-text strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.brand-text span {
    font-size: 0.82rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--border);
}

.mobile-nav.show {
    display: flex;
}

.hero {
    text-align: center;
    margin-bottom: 24px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero p {
    color: var(--muted);
    max-width: 36rem;
    margin: 0 auto;
    font-size: 0.98rem;
}

.platform-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.platform-chip {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: #cbd5e1;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 880px) {
    .layout-grid {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: start;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 22px;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 6px;
}

.card-sub {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.app-card {
    display: grid;
    gap: 14px;
}

.app-card-inner {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--border);
}

.app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.app-meta h3 {
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.app-meta p {
    font-size: 0.82rem;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #052e16;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 230, 118, 0.28);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 14px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: rgba(0, 230, 118, 0.55);
    background: rgba(0, 230, 118, 0.05);
}

.input-group select {
    appearance: none;
    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 fill='%23cbd5e1' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #052e16;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    border: none;
}

.field-hint {
    font-size: 0.82rem;
    color: var(--muted);
    margin: -6px 0 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.format-picker {
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.format-picker.show {
    display: grid;
}

.format-option {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.format-option:hover {
    border-color: rgba(0, 230, 118, 0.35);
    transform: translateY(-1px);
}

.format-option.selected {
    border-color: rgba(0, 230, 118, 0.65);
    background: rgba(0, 230, 118, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 230, 118, 0.25);
}

.format-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.format-res {
    font-weight: 800;
    font-size: 0.98rem;
}

.format-size {
    font-weight: 700;
    color: #86efac;
    font-size: 0.9rem;
    white-space: nowrap;
}

.format-meta {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.format-option[hidden] {
    display: none;
}

.format-more-toggle {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(0, 230, 118, 0.35);
    background: rgba(0, 230, 118, 0.06);
    color: #86efac;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.format-more-toggle:hover:not(:disabled) {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.55);
}

.format-more-toggle:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary.is-busy {
    gap: 10px;
}

.btn-primary.is-busy::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(5, 46, 22, 0.25);
    border-top-color: #052e16;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

.preview-card {
    display: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
}

.preview-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.preview-info {
    padding: 12px 14px;
}

.preview-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.preview-meta {
    font-size: 0.82rem;
    color: #86efac;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 14px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.progress-wrap {
    margin-top: 14px;
}

.progress-bar {
    height: 8px;
    background: #334155;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    transition: width 0.3s ease;
}

.status-line {
    text-align: center;
    font-size: 0.84rem;
    margin-top: 8px;
    color: #cbd5e1;
    min-height: 1.25rem;
}

.loader {
    display: none;
    width: 28px;
    height: 28px;
    border: 3px solid #334155;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 12px auto;
}

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

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.step {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.step h3 {
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.step p {
    font-size: 0.82rem;
    color: var(--muted);
}

.info-sections {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.info-panel {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
}

.info-panel h2 {
    font-size: 1rem;
    color: #86efac;
    margin-bottom: 8px;
}

.info-panel p {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    margin-top: 28px;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

@media (max-width: 760px) {
    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }
}
