:root {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    /* Base accent: SVG cyan */
    --accent: #0066FF;
    --accent-secondary: #0052cc;
    --accent-tertiary: #3b82f6;

    /* Product accents */
    --sonance: #d97706;
    --sonance-light: rgba(217, 119, 6, 0.08);
    --sonance-glow: rgba(217, 119, 6, 0.15);
    --serum: #0E7A6B;
    --serum-light: rgba(14, 122, 107, 0.08);
    --serum-glow: rgba(14, 122, 107, 0.15);
    --io: #0891b2;
    --io-light: rgba(8, 145, 178, 0.12);
    --io-glow: rgba(8, 145, 178, 0.22);

    /* Glass on light */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-border-hover: rgba(0, 102, 255, 0.35);
    --glow-cyan: rgba(0, 102, 255, 0.12);
    --glow-indigo: rgba(0, 82, 204, 0.1);
    --glow-violet: rgba(168, 85, 247, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Leyline canvas background */
#leyline-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    width: 90%;
    padding: 2rem 0 4rem;
    z-index: 1;
    position: relative;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    margin-bottom: 4rem;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.nav-brand svg {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    flex-shrink: 0;
    display: block;
    color: var(--nav-accent, var(--accent));
    filter: drop-shadow(0 0 8px var(--glow-cyan));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a[href="products.html"]::after {
    background: var(--serum);
}

.nav-links a[href="sonance.html"]::after {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.nav-links a[href="io.html"]::after {
    background: linear-gradient(90deg, #00e5ff, #00b4d8);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
    z-index: 1001;
    position: relative;
    touch-action: manipulation;
}

.nav-toggle:hover {
    background: var(--glass-bg-hover);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
header {
    text-align: center;
    margin-bottom: 6rem;
    animation: fadeInDown 1s ease-out;
}

header .logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px var(--glow-cyan)) brightness(1.05);
}

h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    margin: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
    filter: drop-shadow(0 0 20px var(--glow-cyan));
}

.tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subtagline {
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Section titles */
.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 2.5rem;
    display: block;
    font-weight: 700;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Glass cards */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 0 30px var(--glow-cyan);
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Product-themed cards */
.glass-card.sonance::before {
    background: linear-gradient(135deg, var(--sonance-light) 0%, transparent 60%);
}
.glass-card.sonance::after {
    background: radial-gradient(circle at 50% 50%, var(--sonance-glow) 0%, transparent 50%);
}
.glass-card.sonance:hover {
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 0 30px var(--sonance-glow);
}

.glass-card.serum::before {
    background: linear-gradient(135deg, var(--serum-light) 0%, transparent 60%);
}
.glass-card.serum::after {
    background: radial-gradient(circle at 50% 50%, var(--serum-glow) 0%, transparent 50%);
}
.glass-card.serum:hover {
    border-color: rgba(14, 122, 107, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 0 30px var(--serum-glow);
}
.glass-card.io::before {
    background: linear-gradient(135deg, var(--io-light) 0%, transparent 60%);
}
.glass-card.io::after {
    background: radial-gradient(circle at 50% 50%, var(--io-glow) 0%, transparent 50%);
}
.glass-card.io:hover {
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 0 30px var(--io-glow);
}

/* Status badges */
.status {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-live {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.status-beta {
    background: rgba(14, 122, 107, 0.1);
    color: var(--serum);
    border: 1px solid rgba(14, 122, 107, 0.15);
}

.status-flagship {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.08));
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Highlight text */
.highlight {
    color: var(--text);
    font-weight: 600;
}

.accent-text {
    color: var(--accent);
    font-weight: 600;
}

/* Content sections */
.content-section {
    margin-top: 6rem;
}

.content-block {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    line-height: 1.85;
}

.content-block p + p {
    margin-top: 1.25rem;
}

/* Feature list */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.feature-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.4rem 0;
}

.feature-list li::before {
    content: '— ';
    color: var(--accent);
    font-weight: 700;
}

/* CTA buttons */
.cta-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

/* Product-themed buttons */
.btn-sonance {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.2);
}
.btn-sonance:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.3);
}

.btn-serum {
    background: linear-gradient(135deg, #0E7A6B, #0f5e52);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 122, 107, 0.2);
}
.btn-serum:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 122, 107, 0.3);
}
.btn-io {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.2);
}
.btn-io:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.3);
}

/* App callouts */
.download-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.04));
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.download-callout:hover {
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.08);
}

.download-callout svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #d97706;
}

.download-callout a {
    color: #b45309;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.download-callout a:hover {
    color: #92400e;
}

.download-callout span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.discord-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.06), rgba(88, 101, 242, 0.02));
    border: 1px solid rgba(88, 101, 242, 0.15);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.discord-callout:hover {
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.06);
}

.discord-callout svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #5865f2;
}

.discord-callout a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.discord-callout a:hover {
    color: #4338ca;
}

.discord-callout span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    z-index: 1;
    position: relative;
}

footer a {
    transition: color 0.2s ease, border-color 0.2s ease;
}

footer a:hover {
    color: var(--text) !important;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 1rem 0 3rem; }
    nav { margin-bottom: 3rem; }
    header { margin-bottom: 4rem; }
    .glass-grid { gap: 1.25rem; }
    .glass-card { padding: 1.5rem 1.25rem; }
    .content-section { margin-top: 4rem; }

    .nav-brand-text { display: none; }
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 80vw);
        height: 100vh;
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        background: var(--glass-bg);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 1000;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-links li {
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--nav-accent, var(--accent));
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .nav-overlay.visible {
        display: block;
        opacity: 1;
    }
}
