:root {
    --bg: #080b14;
    --bg2: #0f1320;
    --surface: #151a2e;
    --surface2: #1c2240;
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.12);
    --text: #eef0f6;
    --text2: #8b92a8;
    --text3: #5c6380;
    --accent: #3b82f6;
    --accent2: #7c3aed;
    --accent-g: linear-gradient(135deg, #3b82f6, #7c3aed);
    --green: #10b981;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #60a5fa; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--accent-g);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
}

h3 { font-size: 1.25rem; }

p { color: var(--text2); }

kbd {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--mono);
    font-size: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 5px;
    color: var(--text);
}

/* ---- Nav ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 11, 20, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo { width: 28px; height: 28px; }

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

.nav-links a {
    color: var(--text2);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-gh {
    padding: 6px 14px;
    border: 1px solid var(--border2);
    border-radius: var(--r-sm);
    font-size: 0.85rem !important;
    transition: border-color 0.2s, background 0.2s !important;
}

.nav-gh:hover {
    border-color: var(--accent) !important;
    background: rgba(59, 130, 246, 0.08);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--r-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-primary {
    background: var(--accent-g);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    color: #fff;
}

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

.btn-ghost:hover {
    border-color: var(--text3);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.btn-full { width: 100%; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, rgba(124, 58, 237, 0.06) 40%, transparent 70%);
    pointer-events: none;
}

.hero > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 20px 0 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-g);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- App Window Mock ---- */
.hero-visual { perspective: 1000px; }

.app-window {
    background: #12121a;
    border: 1px solid var(--border2);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(59, 130, 246, 0.06);
    transform: rotateY(-3deg) rotateX(1deg);
    transition: transform 0.4s;
}

.app-window:hover { transform: rotateY(0) rotateX(0); }

.app-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: #1c1c28;
    border-bottom: 1px solid var(--border);
}

.app-title {
    font-size: 0.7rem;
    color: var(--text3);
    font-weight: 500;
}

.app-winbtns { display: flex; gap: 0; }
.wb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    font-size: 0.65rem;
    color: var(--text3);
}
.wb.close:hover { background: #e81123; color: #fff; }

.app-body { padding: 10px; font-size: 0.72rem; }

.app-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.topbar-lbl {
    color: var(--text3);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.topbar-path {
    flex: 1;
    padding: 4px 8px;
    background: #282838;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text2);
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-btn {
    padding: 4px 10px;
    background: #282838;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text2);
    font-size: 0.65rem;
    flex-shrink: 0;
    cursor: default;
}

.topbar-btn.gear { padding: 4px 7px; font-size: 0.8rem; }

.app-preview {
    width: 100%;
    height: 140px;
    background: #08080e;
    border-radius: 3px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder { opacity: 0.5; }

.app-timeline { padding: 4px 0 6px; }

.tl-track {
    position: relative;
    height: 4px;
    background: #32324a;
    border-radius: 2px;
}

.tl-range {
    position: absolute;
    left: 10%;
    right: 15%;
    top: 0;
    bottom: 0;
    background: var(--accent);
    opacity: 0.5;
    border-radius: 2px;
}

.tl-in, .tl-out {
    position: absolute;
    top: -5px;
    width: 3px;
    height: 14px;
    background: var(--accent);
    border-radius: 1px;
}

.tl-in { left: 10%; }
.tl-out { right: 15%; }

.tl-head {
    position: absolute;
    top: -7px;
    left: 45%;
    width: 2px;
    height: 18px;
    background: #fff;
    border-radius: 1px;
    animation: playhead 5s ease-in-out infinite;
}

@keyframes playhead {
    0%, 100% { left: 10%; }
    50% { left: 80%; }
}

.app-frameinfo {
    display: flex;
    justify-content: space-between;
    color: var(--text2);
    font-size: 0.65rem;
    padding: 2px 2px 4px;
}

.app-seqinfo {
    color: var(--text3);
    font-size: 0.62rem;
    padding: 0 2px 6px;
}

.app-sep {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.app-settings {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 0;
}

.set-row {
    display: grid;
    grid-template-columns: 70px 1fr 70px 1fr;
    gap: 4px;
    align-items: center;
}

.set-lbl {
    color: var(--text3);
    font-size: 0.6rem;
}

.set-val {
    padding: 3px 7px;
    background: #282838;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-size: 0.62rem;
    font-weight: 500;
}

.set-val.range em {
    color: var(--text3);
    font-style: normal;
    margin: 0 2px;
}

.app-bottom { padding: 4px 0 0; }

.app-progress {
    height: 4px;
    background: #282838;
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.app-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--green);
    border-radius: 2px;
}

.app-statusrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-status {
    color: var(--text3);
    font-size: 0.62rem;
}

.app-export {
    padding: 7px 20px;
    background: var(--accent-g);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.72rem;
    color: #fff;
    letter-spacing: 0.02em;
}

/* ---- Section Heads ---- */
.section-head {
    text-align: center;
    margin-bottom: 56px;
}

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

.section-head h2 { color: var(--text); }

/* ---- Features ---- */
.features { padding: 100px 0; }

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

.card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    border-color: var(--border2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--r-md);
    margin-bottom: 16px;
    color: var(--accent);
}

.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9rem; margin: 0; }

/* ---- Workflow ---- */
.workflow { padding: 100px 0; }

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color 0.25s;
}

.step:hover { border-color: var(--border2); }

.step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-g);
    border-radius: var(--r-md);
    font-weight: 800;
    font-size: 1.1rem;
}

.step-body h3 { margin-bottom: 6px; }
.step-body p { font-size: 0.9rem; margin: 0; }

/* ---- Formats ---- */
.formats { padding: 100px 0; }

.badge-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.badge-section h4 {
    text-align: center;
    color: var(--text3);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.badge {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    transition: border-color 0.2s, transform 0.2s;
}

.badge:hover {
    transform: translateY(-2px);
    border-color: var(--border2);
}

.badge.accent {
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--accent);
}

.badge.gpu {
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

/* ---- Shortcuts ---- */
.shortcuts { padding: 80px 0; }

.key-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.key-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.key-item kbd {
    min-width: 36px;
    text-align: center;
    padding: 4px 10px;
    font-size: 0.85rem;
}

.key-item span {
    font-size: 0.85rem;
    color: var(--text2);
}

/* ---- Download ---- */
.download { padding: 100px 0; }

.dl-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dl-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s;
}

.dl-card:hover {
    border-color: var(--border2);
    transform: translateY(-4px);
}

.dl-card h3 { font-size: 1.4rem; margin-bottom: 8px; }

.dl-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.dl-features {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.dl-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
}

.dl-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}
.dl-note a {
    color: var(--accent);
    text-decoration: underline;
}

.dl-req {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.dl-req h4 {
    margin-bottom: 16px;
    color: var(--text);
}

.req-list { display: flex; flex-direction: column; gap: 8px; }

.req {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg2);
    border-radius: var(--r-sm);
    font-size: 0.9rem;
}

.req span:first-child {
    font-weight: 600;
    color: var(--text);
}

.req span:last-child { color: var(--text2); }

/* ---- Footer ---- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    color: var(--text3);
    font-size: 0.85rem;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text3);
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text2);
    font-weight: 600;
    transition: color 0.2s, opacity 0.2s;
}

.footer-brand-link:hover {
    color: var(--text);
}

.footer-brand-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-brand-link:hover .footer-brand-logo {
    opacity: 1;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    color: var(--text3);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-right a:hover { color: var(--text); }

/* ---- Animations ---- */
.anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim.in {
    opacity: 1;
    transform: translateY(0);
}

.feature-grid .card:nth-child(2) { transition-delay: 0.06s; }
.feature-grid .card:nth-child(3) { transition-delay: 0.12s; }
.feature-grid .card:nth-child(4) { transition-delay: 0.18s; }
.feature-grid .card:nth-child(5) { transition-delay: 0.24s; }
.feature-grid .card:nth-child(6) { transition-delay: 0.30s; }

.steps .step:nth-child(2) { transition-delay: 0.1s; }
.steps .step:nth-child(3) { transition-delay: 0.2s; }

.key-grid .key-item { transition-delay: calc(var(--i, 0) * 0.05s); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero > .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-visual { order: -1; }
    .app-window { transform: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .badge-group { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .nav-links a:not(.nav-gh) { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .dl-cards { grid-template-columns: 1fr; }
    .key-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 24px; }
    .hero-actions { flex-direction: column; }
    .btn-full, .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    .key-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
}
