/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #08080d;
    --bg2: #0e0e18;
    --bg3: #161628;
    --card: #12121f;
    --card-border: #1e1e36;
    --accent: #6c63ff;
    --accent2: #a78bfa;
    --green: #34d399;
    --orange: #fb923c;
    --cyan: #22d3ee;
    --yellow: #fbbf24;
    --red: #f87171;
    --text: #e8e8f4;
    --text-dim: #6a6a88;
    --text-muted: #3d3d5c;
    --radius: 12px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg3);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.85em;
    color: var(--accent2);
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 30, 54, 0.5);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
}

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

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-cta:hover { background: #5b52ee; transform: translateY(-1px); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.2s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 32px 24px;
    gap: 12px;
    font-weight: 500;
    color: var(--text-dim);
    border-top: 1px solid var(--card-border);
}

.mobile-menu.open { display: flex; }
.mobile-menu a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background: #5b52ee;
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(108, 99, 255, 0.4);
}

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

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-xl { padding: 18px 40px; font-size: 1.1rem; border-radius: 14px; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
    top: 0;
    left: -100px;
    pointer-events: none;
}

.hero-glow-2 {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    top: 200px;
    left: auto;
    right: -100px;
}

.hero-content { flex: 1; max-width: 560px; position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg3);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-visual {
    flex: 1;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

/* App window mockup */
.app-window {
    background: var(--bg2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(108, 99, 255, 0.08);
}

.app-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--card-border);
}

.app-dots { display: flex; gap: 6px; }
.app-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.app-dots span:nth-child(1) { background: #ef4444; }
.app-dots span:nth-child(2) { background: #fbbf24; }
.app-dots span:nth-child(3) { background: #22c55e; }
.app-title { font-size: 0.8rem; color: var(--text-dim); }

.app-body { padding: 16px; }

.app-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.app-logo-text { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.1rem; }

.app-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.app-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.app-tab {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--bg3);
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.app-tab.active { background: var(--accent); color: white; }

.app-list { display: flex; flex-direction: column; gap: 3px; }
.app-item {
    padding: 8px 12px;
    background: var(--bg3);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-item.dim { color: var(--text-dim); }
.app-item.pinned { border-left: 2px solid var(--accent); }
.pin-badge { color: var(--accent2); font-weight: 600; }

/* ── Stats Bar ── */
.stats-bar {
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: var(--bg2);
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* ── Sections ── */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 32px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
}

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

.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent, #6c63ff);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ── Transforms ── */
.transforms { background: var(--bg2); }

.transforms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
}

.transform-chip {
    padding: 10px 20px;
    background: var(--bg3);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
    cursor: default;
}

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

.transform-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.demo-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px 28px;
    min-width: 280px;
}

.demo-card.result { border-color: var(--green); }

.demo-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

.demo-card.result .demo-label { color: var(--green); }

.demo-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text);
}

.demo-arrow { color: var(--text-muted); }

/* ── Hotkeys ── */
.hotkeys-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hotkey-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s;
}

.hotkey-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 99, 255, 0.3);
}

.key-combo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.key-combo span { color: var(--text-muted); font-size: 0.9rem; }

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    background: var(--bg3);
    border: 1px solid var(--card-border);
    border-bottom-width: 3px;
    border-radius: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.hotkey-desc h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.hotkey-desc p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

/* ── Snippets Showcase ── */
.snippets-showcase { background: var(--bg2); }

.snippets-demo {
    max-width: 640px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.snippet-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px 24px;
    transition: all 0.2s;
}

.snippet-row:hover { border-color: var(--green); }

.snippet-trigger {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--green);
    background: rgba(52, 211, 153, 0.08);
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.snippet-arrow { color: var(--text-muted); flex-shrink: 0; }

.snippet-result {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.variables-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 28px;
}

.variables-box h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 14px;
}

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

.var-grid code {
    background: var(--bg3);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
}

/* ── Download ── */
.download { padding: 60px 0; }

.download-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.download-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
}

.download-card > p {
    color: var(--text-dim);
    margin-bottom: 28px;
    font-size: 1.05rem;
    position: relative;
}

.download-card .btn { position: relative; }

.download-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    position: relative;
}

.download-note {
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

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

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p { color: var(--text-dim); font-size: 0.85rem; margin-top: 8px; }
.footer-right { text-align: right; }
.footer-right p { font-size: 0.85rem; color: var(--text-dim); }
.copyright { margin-top: 4px; font-size: 0.78rem; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero { flex-direction: column; padding-top: 100px; gap: 40px; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-visual { max-width: 500px; width: 100%; }
    .hero-actions { justify-content: center; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hotkeys-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero h1 { font-size: 2.4rem; }
    .section-header h2 { font-size: 2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .transform-demo { flex-direction: column; }
    .demo-arrow { transform: rotate(90deg); }
    .hotkey-card { flex-direction: column; }
    .download-card { padding: 40px 24px; }
    .download-card h2 { font-size: 1.7rem; }
    .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
    .footer-right { text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px 20px; }
    .stat-num { font-size: 1.8rem; }
    .snippet-row { flex-direction: column; gap: 8px; align-items: flex-start; }
    .snippet-arrow { display: none; }
    .key-combo { flex-wrap: wrap; }
}
