/* ========================================
   Spectrix — Promotional Site Styles
   Apple-inspired dark mode design
   ======================================== */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1420;
    --bg-card: #141a28;
    --bg-card-hover: #1a2234;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f5f5f7;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --accent: #2ede6b;
    --accent-dim: rgba(46, 222, 107, 0.15);
    --accent-glow: rgba(46, 222, 107, 0.25);
    --warning: #ff4f40;
    --caution: #ffa11f;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}
.nav-brand:hover { opacity: 1; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); opacity: 1; }

.nav-cta {
    background: var(--accent-dim);
    color: var(--accent) !important;
    padding: 6px 16px;
    border-radius: 980px;
    font-weight: 500;
    border: 1px solid rgba(46, 222, 107, 0.2);
}
.nav-cta:hover { background: var(--accent-glow); }

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover {
    opacity: 1;
    background: #3ceb7a;
    box-shadow: 0 0 32px var(--accent-glow);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

/* ---- Hero ---- */

.hero {
    padding: 140px 32px 80px;
    text-align: center;
    max-width: 1080px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 20px auto 36px;
    line-height: 1.5;
}

.hero-requires {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 16px;
}

.hero-image {
    margin-top: 64px;
}

.hero-image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 120px var(--accent-glow);
}

.hero-image-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Sections ---- */

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

.features {
    padding: 120px 0;
}

.features h2,
.details h2,
.download h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin-top: 16px;
    line-height: 1.5;
}

/* ---- Feature Grid ---- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 64px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ---- Details ---- */

.details {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.details-col h2 {
    margin-bottom: 16px;
}

.details-col > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.details-list {
    list-style: none;
}

.details-list li {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.details-list li strong {
    font-size: 15px;
    font-weight: 600;
}

.details-list li span {
    font-size: 14px;
    color: var(--text-secondary);
}

.spec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
}

.spec-card h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.spec-card ul {
    list-style: none;
}

.spec-card ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-top: 1px solid var(--border);
}

.spec-card ul li:first-child {
    border-top: none;
    padding-top: 0;
}

/* ---- Download CTA ---- */

.download {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.download-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 16px 0 40px;
}

/* ---- Footer ---- */

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-left: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-tertiary);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); opacity: 1; }

/* ---- Legal pages ---- */

.legal {
    padding: 120px 32px 80px;
    max-width: 720px;
    margin: 0 auto;
}

.legal h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal .legal-updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

.legal h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal p, .legal li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal ul, .legal ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal li {
    margin-bottom: 6px;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-col:first-child {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .footer-copy { margin-left: 0; }
    .nav-links { gap: 16px; }
    .hero { padding-top: 100px; }
}

@media (max-width: 480px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .hero-sub { font-size: 17px; }
    .btn { padding: 10px 24px; font-size: 15px; }
    .btn-lg { padding: 14px 28px; font-size: 16px; }
}
