/* =============================================
   CPU X RAM — Main Stylesheet
   ============================================= */

:root {
    --bg:        #080C14;
    --bg2:       #0D1320;
    --bg3:       #111827;
    --surface:   #151D2E;
    --border:    rgba(0,229,255,0.12);
    --cyan:      #00E5FF;
    --cyan-dim:  rgba(0,229,255,0.15);
    --blue:      #0A5FD4;
    --blue-mid:  #1a6ef5;
    --text:      #E8EDF5;
    --text-muted:#7A8AA0;
    --text-dim:  #4A5568;
    --green:     #00FF9F;
    --orange:    #FF7A00;
    --mono:      'Space Mono', monospace;
    --sans:      'Outfit', sans-serif;
    --radius:    12px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; }
a { color: var(--cyan); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

/* ── Navbar ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8,12,20,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1180px; margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { display: flex; align-items: center; }
.logo-text {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
}
.logo-x { color: var(--cyan); }

.nav-links {
    display: flex; align-items: center; gap: 6px;
    list-style: none;
}
.nav-links a {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--surface);
    opacity: 1;
}
.nav-links a.active { color: var(--cyan); }

.btn-nav {
    background: var(--cyan) !important;
    color: var(--bg) !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
}
.btn-nav:hover { background: #00c8e0 !important; opacity: 1 !important; }

.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); border-radius: 2px;
    transition: all var(--transition);
}

/* ── Hero Section ── */
.hero {
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,229,255,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 50%, rgba(10,95,212,0.06) 0%, transparent 60%);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--cyan);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-family: var(--mono);
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero h1 .accent { color: var(--cyan); }
.hero p.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px; margin: 0 auto 40px;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--cyan);
    color: var(--bg);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: none; cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary:hover { background: #00d0ea; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,255,0.25); opacity: 1; }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); opacity: 1; transform: translateY(-2px); }

/* ── Stats Bar ── */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 900px; margin: 60px auto 0;
}
.stat-item {
    background: var(--bg2);
    padding: 28px 20px;
    text-align: center;
    transition: background var(--transition);
}
.stat-item:hover { background: var(--surface); }
.stat-value {
    font-family: var(--mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan);
    display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ── Section Layout ── */
.section { padding: 80px 24px; max-width: 1180px; margin: 0 auto; }
.section-sm { padding: 60px 24px; max-width: 900px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── Feature Cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 48px; height: 48px;
    background: var(--cyan-dim);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Download Section ── */
.download-section {
    background: linear-gradient(135deg, var(--bg2) 0%, #0a1628 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative; overflow: hidden;
    margin: 0 24px 80px;
    max-width: 1180px; margin-left: auto; margin-right: auto;
}
.download-section::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.download-section h2 { font-size: 2.2rem; margin-bottom: 12px; }
.download-section p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }
.store-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.store-badge {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 24px;
    transition: all var(--transition);
    color: var(--text); text-decoration: none;
}
.store-badge:hover { border-color: var(--cyan); transform: translateY(-2px); opacity: 1; }
.store-badge-icon { font-size: 1.8rem; }
.store-badge-text { text-align: left; }
.store-badge-text small { display: block; color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; }
.store-badge-text strong { font-size: 1rem; }

/* ── Legal Pages ── */
.page-hero {
    padding: 80px 24px 56px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0,229,255,0.03) 0%, transparent 100%);
}
.page-hero .eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.page-hero .meta { color: var(--text-muted); font-size: 0.9rem; font-family: var(--mono); }

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.legal-content h2 {
    font-size: 1.35rem;
    color: var(--text);
    margin: 44px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.97rem; }
.legal-content ul, .legal-content ol {
    color: var(--text-muted);
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-content li { margin-bottom: 8px; font-size: 0.97rem; }
.legal-content a { color: var(--cyan); }
.legal-content strong { color: var(--text); }
.legal-content .highlight-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ── Licenses Page ── */
.license-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.license-item:hover { border-color: rgba(0,229,255,0.25); }
.license-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    gap: 16px;
}
.license-name { font-weight: 600; font-size: 0.97rem; }
.license-version {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--cyan);
    background: var(--cyan-dim);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}
.license-type {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}
.license-toggle { color: var(--text-muted); font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.license-item.open .license-toggle { transform: rotate(180deg); }
.license-body {
    display: none;
    padding: 0 24px 20px;
    border-top: 1px solid var(--border);
}
.license-item.open .license-body { display: block; }
.license-body p { color: var(--text-muted); font-size: 0.88rem; margin-top: 16px; line-height: 1.7; }
.license-body a { color: var(--cyan); font-size: 0.88rem; }

/* ── Contact Page ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: 1.8rem; margin-bottom: 14px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.contact-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 40px; height: 40px;
    background: var(--cyan-dim);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-text small { display: block; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-item-text strong { font-size: 0.95rem; }
.contact-item-text a { color: var(--text); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 16px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
    appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Footer ── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 60px 24px;
}
.footer-container {
    max-width: 1180px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    align-items: start;
}
@media(max-width:768px){ .footer-container { grid-template-columns: 1fr; gap: 40px; } }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; margin: 10px 0 8px; }
.footer-copy { color: var(--text-dim); font-size: 0.82rem; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
@media(max-width:480px){ .footer-links { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 16px; font-family: var(--mono); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--cyan); opacity: 1; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── Responsive ── */
@media(max-width:768px){
    .nav-links {
        display: none;
        position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 32px 24px;
        gap: 4px;
        border-top: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.05rem; padding: 14px 16px; }
    .nav-toggle { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .download-section { padding: 48px 24px; }
    .hero { padding: 60px 24px 56px; }
}

@media(max-width:480px){
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }
