/* ══════════════════════════════════════════════════════════════
   NodeControl Website — style.css
   Design system from the app's Dark Hacker theme
   ══════════════════════════════════════════════════════════════ */

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

:root {
    --bg-primary: #0b0f14;
    --bg-secondary: #0f1620;
    --bg-card: #111b26;
    --bg-card-hover: #162230;
    --cyan: #00e5ff;
    --cyan-hover: #12f0ff;
    --cyan-glow: rgba(0, 229, 255, 0.15);
    --cyan-glow-strong: rgba(0, 229, 255, 0.3);
    --orange: #ff9800;
    --text-primary: #d7e1ea;
    --text-secondary: #a9b7c6;
    --text-muted: #6c7a88;
    --border: #1f2a36;
    --border-light: #111923;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--cyan-hover);
}

.cyan { color: var(--cyan); }

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

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.2s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

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

.hero-banner {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.2));
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-version {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--cyan);
    color: #001014;
}
.btn-primary:hover {
    background: var(--cyan-hover);
    color: #001014;
    box-shadow: 0 0 24px var(--cyan-glow-strong);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
}
.btn-outline:hover {
    background: var(--cyan-glow);
    color: var(--cyan-hover);
    transform: translateY(-1px);
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* ── Features Grid ─────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--cyan);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--cyan);
}
.feature-icon svg {
    width: 100%;
    height: 100%;
}

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

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

/* ── Screenshots ───────────────────────────────────────────── */
/* Screenshot category tabs */
.screenshot-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.screenshot-tab {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.screenshot-tab:hover {
    border-color: var(--accent);
    color: var(--text);
}
.screenshot-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

/* Screenshot category sections */
.screenshot-category {
    display: none;
    margin-bottom: 32px;
}
.screenshot-category.active {
    display: block;
}
.screenshot-category h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-align: center;
}

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

.screenshot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.screenshot-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 210, 211, 0.15);
}
.screenshot-card img {
    width: 100%;
    display: block;
}
.screenshot-card .caption {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 210, 211, 0.2);
}

/* ── Download ──────────────────────────────────────────────── */
.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s;
}
.download-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08);
}

.download-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
}
.download-icon svg {
    width: 100%;
    height: 100%;
}

.download-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.download-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.btn-download {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

.download-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08);
}

.pricing-featured {
    border-color: var(--cyan);
    box-shadow: 0 0 40px var(--cyan-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cyan);
    color: #001014;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 8px;
}
.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}
.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 24px;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ── Docs ──────────────────────────────────────────────────── */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.docs-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    transition: all 0.3s;
}
.docs-card:hover {
    border-color: var(--cyan);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.docs-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--cyan);
}
.docs-icon svg {
    width: 100%;
    height: 100%;
}

.docs-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.docs-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s;
}
.contact-card:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--cyan);
}
.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.contact-link {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    font-size: 1.15rem;
    font-weight: 600;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.download-card,
.pricing-card,
.docs-card,
.contact-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 60px) 24px 60px;
    }
    .hero-banner {
        max-width: 400px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.75rem;
    }

    .features-grid,
    .screenshots-grid,
    .pricing-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        max-width: 300px;
    }
    .pricing-price {
        font-size: 2rem;
    }
}
