:root {
    --bg-color: #0b0f14;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #3b82f6;
    /* Electric blueish */
    --accent-hover: #60a5fa;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.15);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --spacing-container: 1200px;
    --header-height: 80px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background & Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #131820 0%, #0b0f14 100%);
}

.site-wrapper {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Header */
.header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.nav a {
    margin-left: 32px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.hero h1,
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property for compatibility */
    -webkit-text-fill-color: transparent;
    animation: hero-title-pixel-reveal 1.2s steps(8, end) both,
        hero-title-settle 0.45s ease-out 1.2s both;
    transform-origin: center center;
    filter: blur(0);
    will-change: filter, transform, opacity;
    position: relative;
    display: inline-block;
}

.hero-logo {
    display: block;
    width: clamp(88px, 12vw, 140px);
    height: auto;
    margin: 0 auto 28px;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.hero-title::before {
    color: rgba(96, 165, 250, 0.9);
    text-shadow: 1px 0 0 rgba(96, 165, 250, 0.55);
    clip-path: inset(0 0 45% 0);
    animation: hero-title-glitch-top 0.45s steps(5, end) 0.08s both;
}

.hero-title::after {
    color: rgba(244, 114, 182, 0.75);
    text-shadow: -1px 0 0 rgba(244, 114, 182, 0.45);
    clip-path: inset(48% 0 0 0);
    animation: hero-title-glitch-bottom 0.45s steps(5, end) 0.08s both,
        hero-title-scanlines 0.7s linear 0.12s both;
}

.subheadline {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 16px;
    color: var(--text-primary);
    animation: hero-copy-fade 0.8s ease-out 0.45s both;
}

.tagline {
    font-size: 1rem;
    margin-bottom: 48px;
    opacity: 0.8;
    animation: hero-copy-fade 0.8s ease-out 0.62s both;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: hero-copy-fade 0.8s ease-out 0.78s both;
}

@keyframes hero-title-pixel-reveal {
    0% {
        opacity: 0;
        filter: blur(18px) contrast(1.8) brightness(1.15);
        transform: scale(1.08);
    }

    20% {
        opacity: 0.45;
        filter: blur(14px) contrast(1.7) brightness(1.12);
        transform: scale(1.06);
    }

    45% {
        opacity: 0.7;
        filter: blur(9px) contrast(1.55) brightness(1.08);
        transform: scale(1.04);
    }

    70% {
        opacity: 0.9;
        filter: blur(4px) contrast(1.25) brightness(1.04);
        transform: scale(1.015);
    }

    100% {
        opacity: 1;
        filter: blur(0) contrast(1) brightness(1);
        transform: scale(1);
    }
}

@keyframes hero-title-settle {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(0.992);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes hero-title-glitch-top {
    0% {
        opacity: 0;
        transform: translate(-10px, -4px);
    }

    25% {
        opacity: 0.85;
        transform: translate(8px, 2px);
    }

    50% {
        opacity: 0.6;
        transform: translate(-4px, 1px);
    }

    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

@keyframes hero-title-glitch-bottom {
    0% {
        opacity: 0;
        transform: translate(12px, 4px);
    }

    20% {
        opacity: 0.75;
        transform: translate(-8px, -2px);
    }

    55% {
        opacity: 0.45;
        transform: translate(5px, 1px);
    }

    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

@keyframes hero-title-scanlines {
    0% {
        opacity: 0;
        background:
            repeating-linear-gradient(180deg,
                rgba(255, 255, 255, 0.18) 0 2px,
                transparent 2px 6px);
        -webkit-background-clip: text;
        background-clip: text;
        transform: translateY(-8px);
    }

    35% {
        opacity: 0.6;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes hero-copy-fade {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-block;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Products Section */
.products {
    padding: 100px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 48px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.5;
}

.card-content h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.product-card .card-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.product-copy {
    min-width: 0;
}

.product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.product-media img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 6px;
}

.subtitle {
    display: block;
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    font-weight: 500;
}

.card-content p {
    margin-bottom: 32px;
    font-size: 1.05rem;
    max-width: 600px;
}

.btn-card {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-card:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.btn-card.disabled {
    opacity: 0.5;
    cursor: default;
}

/* About Section */
.about {
    padding: 80px 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.about p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding-bottom: 60px;
    flex: 1;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0.7;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content a {
    color: var(--accent-color);
    border-bottom: 1px solid transparent;
}

.legal-content a:hover {
    border-bottom-color: var(--accent-color);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
    /* Push to bottom */
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 400px;
    background: rgba(19, 24, 32, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    padding: 20px;
    border-radius: 12px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-banner a {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .products {
        grid-template-columns: 1fr;
    }

    .product-card .card-content {
        grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
        gap: 40px;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }

    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 32px;
    }

    .cookie-banner.hidden {
        transform: translate(-50%, 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero-logo,
    .subheadline,
    .tagline,
    .cta-group,
    .hero-title::before,
    .hero-title::after {
        animation: none;
    }
}
