:root {
    --bg: #1e1e1e;
    --bg-card: rgba(20, 20, 20, 0.95);
    --border: #333;
    --border-hover: #444;
    --text: #ffffff;
    --text-muted: #888;
    --text-dim: #555;
    --green: rgb(59, 219, 107);
    --yellow: #ffbd2e;
    --grey-btn: #3a3a3a;
    --mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
}

.logo {
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.logo span { color: var(--green); }

.nav-link {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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


.hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,219,107,0.15) 0%, rgba(20,20,20,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.hero h1 span { color: var(--green); }

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    font-family: var(--mono);
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--grey-btn);
    color: #fff;
}

.btn-primary:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: #222;
}


.showcase {
    padding: 40px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.screenshot-img {
    width: 100%;
    max-width: 900px;
    display: block;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.screenshot-img:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 24px;
    overflow: hidden;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.2s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox img.dragging {
    transition: none;
    cursor: grabbing;
}

.lightbox img.zoomed {
    cursor: grab;
}

.close-lightbox {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    line-height: 1;
    z-index: 1001;
}

.close-lightbox:hover {
    color: #bbb;
}

.zoom-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active .zoom-hint {
    opacity: 1;
}


.features {
    padding: 40px 0 100px;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    transition: border-color 0.3s ease;
}

.feature-card:hover { border-color: var(--border-hover); }

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-icon {
    font-family: var(--mono);
    color: var(--green);
    background: rgba(59, 219, 107, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.code-tag {
    font-family: var(--mono);
    color: var(--yellow);
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}


footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover { color: var(--green); }


@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.6rem; margin-bottom: 40px; }
    .close-lightbox { top: 10px; right: 15px; font-size: 30px; }
    .btn { padding: 12px 20px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 40px 0 40px; }
    .features { padding: 40px 0 60px; }
    .feature-card { padding: 20px; }
    .showcase { gap: 24px; padding: 20px 0 40px; }
}