/* ==========================================================================
   LAYERENGINE DESIGN SYSTEM & THEME (PREMIUM DEEP TEAL THEME)
   ========================================================================== */

:root {
    /* Premium Immersive Deep Teal Theme */
    --bg-dark: hsl(178, 88%, 6%);
    --bg-card: rgba(8, 32, 31, 0.55);
    --bg-nav: rgba(6, 22, 21, 0.85);
    --text-primary: hsl(178, 40%, 96%);
    --text-muted: hsl(178, 22%, 72%);
    
    /* Signature Accents (Aligned perfectly with Plugin Rich Teal rgb(9, 136, 131)) */
    --accent-teal: hsl(178, 88%, 38%);
    --accent-teal-glow: rgba(9, 136, 131, 0.3);
    --accent-teal-bright: hsl(178, 100%, 45%);
    --accent-teal-dark: hsl(178, 88%, 20%);
    
    /* Secondary Layer Accents (High contrast, vibrant on dark teal backgrounds) */
    --accent-cyan: hsl(190, 100%, 48%);
    --accent-violet: hsl(270, 90%, 72%);
    --accent-green: hsl(145, 90%, 62%);
    
    /* System Colors */
    --white-alpha-08: rgba(9, 136, 131, 0.12);
    --white-alpha-15: rgba(9, 136, 131, 0.2);
    --white-alpha-20: rgba(9, 136, 131, 0.3);
    
    /* Transitions, Blurs & Shadows */
    --blur-glass: blur(20px);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(9, 136, 131, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-dark);
}

h1, h2, h3, h4 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.03em;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 200;
}

h3 {
    font-weight: 600;
}

h4 {
    font-weight: 700;
}

/* Ambient Subtle Deep Teal Background */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: 
        radial-gradient(circle at 10% 20%, hsla(178, 88%, 18%, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, hsla(190, 100%, 22%, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, hsl(178, 88%, 4%) 0%, var(--bg-dark) 100%);
    background-size: cover;
}

/* ==========================================================================
   REUSABLE UI COMPONENTS
   ========================================================================== */

/* Glass Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(9, 136, 131, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(9, 136, 131, 0.45);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(9, 136, 131, 0.15);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(9, 136, 131, 0.15);
    border: 1px solid rgba(9, 136, 131, 0.3);
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-bright) 100%);
    color: white;
    box-shadow: 0 10px 25px var(--accent-teal-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(9, 136, 131, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(9, 136, 131, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(9, 136, 131, 0.45);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* Hover Scaling Utility */
.hover-scale:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(9, 136, 131, 0.15);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.8rem;
}

.nav-logo {
    height: 38px;
    width: auto;
}

.logo-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.logo-text span {
    color: var(--accent-teal-bright);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 10rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-teal-bright) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.hero-visual {
    position: relative;
}

.frosted-frame {
    position: relative;
    border-radius: 20px;
    padding: 8px;
    background: rgba(8, 32, 31, 0.45);
    border: 1px solid rgba(9, 136, 131, 0.25);
    backdrop-filter: var(--blur-glass);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.product-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Ambient Subtle Glow Accents */
.glow-accent-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: hsla(178, 88%, 35%, 0.25);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.7;
}

.glow-accent-2 {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: hsla(190, 100%, 35%, 0.2);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
}

/* ==========================================================================
   FEATURE TABS
   ========================================================================== */
.features-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(9, 136, 131, 0.15);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(9, 136, 131, 0.12);
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--accent-teal);
    box-shadow: 0 5px 15px rgba(9, 136, 131, 0.25);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tab-pane > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-card {
    background: rgba(8, 32, 31, 0.3);
    border: 1px solid rgba(9, 136, 131, 0.15);
    border-radius: 14px;
    padding: 2rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--accent-cyan);
}

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

/* ==========================================================================
   DOWNLOADS CENTER
   ========================================================================== */
.downloads-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.download-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.platform-icon {
    font-size: 3rem;
}

.platform-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    min-height: 48px;
}

.install-folder {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--accent-cyan);
    background: rgba(9, 136, 131, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

/* ==========================================================================
   SPECIFICATIONS
   ========================================================================== */
.specs-section {
    padding: 4rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.specs-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-teal-bright);
}

.specs-column ul {
    list-style: none;
}

.specs-column li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.specs-column li strong {
    color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(9, 136, 131, 0.15);
    background: hsl(178, 88%, 4%);
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   MODAL POPUP (INSTALL INSTRUCTIONS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    background: rgba(4, 12, 12, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    position: relative;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header span {
    color: var(--accent-teal-bright);
}

.instruction-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-teal-bright);
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.step-details h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.code-box {
    background: hsl(178, 88%, 3%);
    border: 1px solid rgba(9, 136, 131, 0.25);
    font-family: monospace;
    font-size: 0.85rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: var(--accent-cyan);
    margin-top: 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE BREAKPOINTS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

/* Responsiveness */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .navbar .nav-links a:not(.btn) {
        display: none;
    }
}
