/* ==============================================================
   DYSTOPIAN WAVES - HOMEPAGE CORE DESIGN SYSTEM
   ============================================================== */

:root {
    --bg-base: #06070a;
    --bg-surface: #0c0f16;
    --bg-surface-elevated: #121722;
    --border-subtle: #192231;
    --border-bright: #2d3b55;
    
    --accent-cyan: #00e5ff;
    --accent-cyan-dim: rgba(0, 229, 255, 0.15);
    --accent-cyan-glow: rgba(0, 229, 255, 0.35);
    --accent-magenta: #ff2a6d;
    --accent-amber: #ffaa00;

    --text-main: #dbe4ef;
    --text-muted: #8092a7;
    --text-dim: #4b5869;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.accent {
    color: var(--accent-cyan);
}

/* 1. TOP HEADER */
.top-header {
    height: 52px;
    background: #090c12;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-badge {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #182232 0%, #0d121a 100%);
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-dim);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--text-dim);
}

/* Pro Deal Banner in Middle Reserve */
.header-middle-reserve {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-deal-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.header-deal-banner:hover {
    background: rgba(0, 229, 255, 0.14);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-dim);
}

.deal-pill {
    background: var(--accent-cyan);
    color: #06070a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 10px;
}

.deal-text {
    font-size: 11px;
    letter-spacing: 0.6px;
    color: var(--text-main);
}

.deal-text strong {
    color: var(--accent-cyan);
}

.deal-arrow {
    font-size: 10px;
    color: var(--accent-cyan);
    transition: transform 0.2s ease;
}

.header-deal-banner:hover .deal-arrow {
    transform: translateX(3px);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}

.social-icon:hover {
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

/* 2. SUB-NAVBAR */
.sub-navbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 28px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-item {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--accent-cyan);
}

.btn-lab-glow {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-lab-glow:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.lab-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* 3. SPLIT HERO SECTION */
.main-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 28px 80px 28px;
}

.split-hero-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    margin-bottom: 70px;
    align-items: stretch;
}

/* LEFT: FLAGSHIP CARD */
.hero-flagship-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.flagship-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-pill {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
}

.tag-flagship {
    background: rgba(255, 42, 109, 0.15);
    border: 1px solid var(--accent-magenta);
    color: #ff6699;
}

.tag-format {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.flagship-preview-viewport {
    height: 240px;
    background: linear-gradient(180deg, #101520 0%, #080a0f 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-glass {
    text-align: center;
}

.mockup-name {
    display: block;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.mockup-sub {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}

.flagship-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.flagship-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.flagship-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--bg-surface-elevated);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 28px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.spec-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
}

.flagship-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.btn-primary-action {
    background: var(--accent-cyan);
    color: #06070a;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn-primary-action:hover {
    background: #33ecff;
    box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.flagship-price {
    font-size: 20px;
    font-weight: 800;
}

.price-strike {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-left: 6px;
}

/* RIGHT: BRAND MANIFESTO */
.hero-brand-statement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
}

.section-micro-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    display: block;
}

.brand-manifesto-heading {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.brand-manifesto-body {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.brand-pillars {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pillar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pillar-num {
    font-size: 14px;
    font-weight: 900;
    color: var(--accent-cyan);
    opacity: 0.6;
}

.pillar-content h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pillar-content p {
    font-size: 12px;
    color: var(--text-muted);
}

/* 4. SECONDARY PLUGINS SLIDER */
.slider-section {
    margin-bottom: 80px;
}

.section-header-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-heading {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.slider-controls {
    display: flex;
    gap: 8px;
}

.btn-slider {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-slider:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.slider-track-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

.slider-track-container::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.plugin-card {
    flex: 0 0 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.plugin-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-bright);
}

.card-accent-border {
    border-color: rgba(0, 229, 255, 0.4);
}

.card-tag-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.card-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
}

.badge-free { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.badge-paid { background: var(--accent-magenta); color: #fff; }

.card-thumb {
    height: 120px;
    border-radius: 4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-cyan { background: linear-gradient(135deg, #091a24 0%, #0f2838 100%); }
.thumb-magenta { background: linear-gradient(135deg, #240916 0%, #380f25 100%); }
.thumb-amber { background: linear-gradient(135deg, #241c09 0%, #382c0f 100%); }
.thumb-lab { background: linear-gradient(135deg, #092024 0%, #07383a 100%); border: 1px solid var(--accent-cyan); }

.thumb-code {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0.7;
}

.card-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.btn-card-link {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
    display: inline-block;
    transition: color 0.2s;
}

.btn-card-link:hover {
    color: var(--accent-cyan);
}

.btn-card-accent {
    color: var(--accent-cyan);
}

/* 5. NEWSLETTER TERMINAL */
.newsletter-terminal {
    background: linear-gradient(180deg, #0d121c 0%, #080b11 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 44px 32px;
    text-align: center;
}

.terminal-content {
    max-width: 620px;
    margin: 0 auto;
}

.terminal-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.terminal-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.terminal-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.terminal-input {
    background: #040507;
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    width: 280px;
    outline: none;
    transition: border-color 0.2s;
}

.terminal-input:focus {
    border-color: var(--accent-cyan);
}

.terminal-btn {
    background: var(--accent-cyan);
    color: #06070a;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    padding: 10px 18px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.terminal-btn:hover {
    background: #33ecff;
}

.terminal-footnote {
    font-size: 10px;
    color: var(--text-dim);
}

/* 6. FOOTER - COMPACT HEIGHT */
.main-footer {
    background: #040508;
    border-top: 1px solid var(--border-subtle);
    padding: 24px 28px; /* Reduced from 50px to 24px */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligns brand and navigation vertically */
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 3px; /* Reduced gap between lines */
}

.footer-brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-meta {
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.8px;
}

.footer-links {
    display: flex;
    gap: 40px; /* Reduced column spacing from 60px to 40px */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Reduced spacing between links */
}

.footer-heading {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .split-hero-section {
        grid-template-columns: 1fr;
    }
    .hero-brand-statement {
        padding-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .sub-navbar {
        overflow-x: auto;
    }
    .terminal-form {
        flex-direction: column;
        align-items: center;
    }
    .terminal-input {
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* Card Thumbnail Images */
.card-thumb-img {
    background: #000;
    overflow: hidden;
    padding: 0;
}

.card-img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.plugin-card:hover .card-img-fit {
    transform: scale(1.04);
}

/* Hero Flagship Screenshot Styling */
.hero-screenshot-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Hero Carousel Dots */
.hero-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.h-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-bright);
    cursor: pointer;
    transition: all 0.2s;
}

.h-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transform: scale(1.25);
}

/* Active Navigation Class */
.nav-item.active-nav {
    color: var(--accent-cyan) !important;
    position: relative;
}

.nav-item.active-nav::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* Mobile Fallback for Deal Banner */
@media (max-width: 900px) {
    .header-middle-reserve {
        display: none;
    }
}
