/* Reset & Base */
:root {
    --bg-primary: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-surface: rgba(255, 255, 255, 0.03);
    --status-green: #2ecc71;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Background Effects */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #000000 120%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.brand-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--status-green);
    background: rgba(46, 204, 113, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--status-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--status-green);
}

/* Main Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    width: 100%;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px; /* Reduced from 60px */
}

/* Logo Treatment */
.logo-wrapper {
    position: relative;
    width: 640px; /* Default desktop width */
    max-width: 90vw; /* Safety cap: never wider than 90% of screen */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
    position: relative;
    z-index: 2;
}

.logo-spotlight {
    position: absolute;
    inset: 0; /* Match container dimensions for correct coordinate tracking */
    z-index: 3;
    /* Gradient follows mouse */
    background: radial-gradient(
        180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 1),
        rgba(200, 230, 255, 0.5) 40%,
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    
    /* Masking: The magic trick. */
    -webkit-mask-image: url('assets/images/logo-full-transparent.png');
    mask-image: url('assets/images/logo-full-transparent.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    /* Blend mode: Color Dodge makes it glow intensely */
    mix-blend-mode: color-dodge;
    /* If color-dodge is too subtle on white, try 'normal' or 'screen' */
    
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px rgba(255,255,255,0.5)); }
    50% { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255,255,255,0.8)); }
}

.logo-glow-static {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    z-index: 1;
    filter: blur(50px);
    pointer-events: none;
}

/* Typography */
.content-wrapper {
    max-width: 600px;
    width: 100%;
    animation: fadeIn 5s ease-out;
}

.headline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.subheadline {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 60px;
}

/* Products Section */
.products-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: #444;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 24px 28px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before {
    transform: translateX(100%);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        45deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 40px -20px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.product-card:hover::after {
    opacity: 1;
    background: linear-gradient(
        45deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.product-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 300;
}

.card-action {
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.product-card:hover .card-action {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Footer */
.footer {
    width: 100%;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.text-white {
    color: #888;
    font-weight: 500;
    transition: color 0.2s;
}

.creator-tag:hover .text-white {
    color: #fff;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        display: none; /* Hide top bar completely on mobile for cleaner look */
    }
    
    .hero-section {
        /* Adjusted: Since navbar is gone, we don't need huge top padding. */
        /* Just enough to center the logo nicely in the viewport. */
        padding-top: 40px; 
        padding-bottom: 20px;
        /* Reduce side padding on mobile to maximize logo size while preventing overflow */
        padding-left: 15px;
        padding-right: 15px;
        
        min-height: 100vh; /* Ensure full height */
        display: flex;
        flex-direction: column;
        justify-content: center; /* True vertical centering */
    }
    
    .logo-wrapper {
        /* Fluid sizing: 100% of parent width (which is screen - padding) */
        /* This prevents horizontal scroll/overflow caused by vw > available space */
        width: 100%; 
        max-width: 480px; /* Cap for larger phones/tablets */
        height: auto;
        
        /* Reduced bottom margin to bring "Secure by Design" closer */
        margin: 0 auto 20px auto; 
    }
    
    .headline {
        font-size: 1.25rem;
    }
    
    .subheadline {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
