/* ============================================
   SevenCorn — Bold Modern Style
   ============================================ */

:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-bg-dark: #0f0f0f;
    --color-text: #0f0f0f;
    --color-text-light: #ffffff;
    --color-text-muted: #666666;
    --color-accent: #5b4cff;
    --color-accent-light: #8b7fff;
    --color-lime: #c8ff00;
    --color-border: #e5e5e5;
    
    /* Typography */
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;
    
    /* Layout */
    --max-width: 1200px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-lg) var(--space-xl);
    mix-blend-mode: difference;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.nav-contact {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 100px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.nav-contact:hover {
    background: var(--color-lime);
    color: var(--color-bg-dark);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    background: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* Diagonal grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(200, 255, 0, 0.02) 60px,
            rgba(200, 255, 0, 0.02) 61px
        );
    pointer-events: none;
}

/* Large corner bracket - top left */
.hero::after {
    content: '';
    position: absolute;
    top: 145px;
    left: 20px;
    width: 120px;
    height: 120px;
    border-left: 2px solid rgba(200, 255, 0, 0.3);
    border-top: 2px solid rgba(200, 255, 0, 0.3);
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Bottom right corner bracket */
.hero-content::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 0;
    width: 120px;
    height: 120px;
    border-right: 2px solid rgba(200, 255, 0, 0.3);
    border-bottom: 2px solid rgba(200, 255, 0, 0.3);
    pointer-events: none;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-lime);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 0.1s;
}

.hero-title .highlight {
    color: var(--color-lime);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 0.2s;
}

/* Hero decoration - geometric accent line */
.hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-bg);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 10;
}

.deco-ring {
    display: none;
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: var(--space-2xl) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    position: relative;
    display: inline-block;
}

/* Geometric underline accent */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

/* ============================================
   Products Section
   ============================================ */

.products {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    position: relative;
}

/* Subtle dot grid background */
.products::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(91, 76, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-md);
}

.product-card {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Corner geometric accents */
.product-card::before,
.product-card::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.product-card::before {
    top: 12px;
    left: 12px;
    border-left: 2px solid var(--color-accent);
    border-top: 2px solid var(--color-accent);
    transform: translate(-4px, -4px);
}

.product-card::after {
    bottom: 12px;
    right: 12px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: translate(4px, 4px);
}

.product-card-featured {
    cursor: pointer;
}

.product-card-featured:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 16px 16px 0 var(--color-bg-dark);
}

.product-card-featured:hover::before,
.product-card-featured:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.product-card-featured:hover .product-arrow {
    transform: translate(4px, -4px);
    color: var(--color-accent);
}

.product-card-soon {
    opacity: 0.4;
    border-style: dashed;
}

.product-card-inner {
    padding: var(--space-lg);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.product-badge {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.625rem 1rem;
    background: var(--color-bg-dark);
    color: var(--color-lime);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

/* Diagonal stripe accent */
.product-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(200, 255, 0, 0.1) 4px,
        rgba(200, 255, 0, 0.1) 8px
    );
    transition: transform 0.4s ease;
}

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

.product-badge.badge-soon {
    background: var(--color-border);
    color: var(--color-text-muted);
}

.product-arrow {
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.product-icon {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.swatch-1 { background: #ff4444; }
.swatch-2 { background: #00d4aa; }
.swatch-3 { background: #ffcc00; }

.icon-placeholder {
    width: 144px;
    height: 48px;
    background: var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.5rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.product-url {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.product-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */

.about {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    max-width: 100%;
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Angled top edge */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color-bg);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
    z-index: 1;
}

/* Vertical accent line */
.about::after {
    content: '';
    position: absolute;
    top: 100px;
    left: 10%;
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, var(--color-lime), transparent);
    opacity: 0.4;
}

.about .section-label {
    color: var(--color-lime);
}

.about-label {
    display: none;
}

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
    line-height: 1;
    position: relative;
    display: inline-block;
}

/* Angled bracket accent */
.about-title::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -20px;
    width: 40px;
    height: 40px;
    border-left: 3px solid var(--color-lime);
    border-top: 3px solid var(--color-lime);
    opacity: 0.5;
}

.about-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    max-width: 600px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--space-xl) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Geometric corner detail */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 60px;
    width: 60px;
    height: 60px;
    background: var(--color-lime);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    opacity: 0.15;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.footer-brand .logo-icon {
    color: var(--color-lime);
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

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

.footer-copyright {
    width: 100%;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--space-lg);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Scroll Effects
   ============================================ */

/* Progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-lime);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s linear;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered reveals for product cards - use wrapper approach */
.product-card.reveal {
    transition-delay: 0s;
}

.product-card.reveal:nth-child(2) {
    transition-delay: 0.12s;
}

/* Restore hover animation after reveal completes */
.product-card.reveal.visible {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.product-card-featured.reveal.visible:hover {
    transform: translateY(-8px) rotate(-1deg);
}

/* Color swatches spin in */
.color-swatch {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    transition: opacity 0.5s ease,
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-swatch.swatch-1 { transition-delay: 0s; }
.color-swatch.swatch-2 { transition-delay: 0.1s; }
.color-swatch.swatch-3 { transition-delay: 0.2s; }

.swatches-visible .color-swatch {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Hero parallax bracket movement */
.hero::after {
    transform: translate(
        calc(var(--bracket-offset, 0px) * -1),
        calc(var(--bracket-offset, 0px) * -1)
    );
    transition: transform 0.15s ease-out;
}

.hero-content::after {
    transform: translate(
        var(--bracket-offset, 0px),
        var(--bracket-offset, 0px)
    );
    transition: transform 0.15s ease-out;
}

/* About vertical line grows on scroll */
.about::after {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about.in-view::after {
    transform: scaleY(1);
}

/* Section title underline slides in */
.section-title::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.section-title.visible::after {
    transform: scaleX(1);
}

/* About title bracket fades in */
.about-title::before {
    opacity: 0;
    transform: translate(-10px, -10px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}

.about.in-view .about-title::before {
    opacity: 0.5;
    transform: translate(0, 0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 3rem;
        --space-2xl: 5rem;
    }
    
    .nav {
        padding: var(--space-md) var(--space-xl);
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Scale down geometric elements */
    .hero::after {
        width: 60px;
        height: 60px;
        top: 60px;
        left: 20px;
    }
    
    .hero-content::after {
        width: 60px;
        height: 60px;
        bottom: -30px;
    }
    
    .hero-decoration {
        height: 50px;
    }
    
    .about::before {
        height: 40px;
    }
    
    .about::after {
        left: 5%;
        height: 120px;
    }
    
    .about-title::before {
        width: 24px;
        height: 24px;
        left: -12px;
        top: -6px;
    }
    
    .footer::before {
        width: 40px;
        height: 40px;
        right: 30px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .nav-contact {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .color-swatch {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .scroll-progress {
        display: none;
    }
    
    .hero::after,
    .hero-content::after {
        transform: none !important;
    }
}
