@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Mono:wght@400;700&display=swap');

:root {
    --black: #0D0D0D;
    --white: #FAFAFA;
    --gray: #1A1A1A;
    --accent: #00FF88;
    --accent-dim: #00CC6E;
    --red: #FF0055;

    --font-display: 'Archivo Black', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --transition-smooth: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: var(--font-mono);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Geometric Background */
#geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10002;
    padding: 30px 0;
    background: linear-gradient(180deg, var(--black) 0%, transparent 100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.05em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    animation: iconRotate 20s linear infinite;
}

@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link span {
    color: var(--accent);
    font-size: 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--transition-smooth);
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 60px 60px;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 2px solid var(--accent);
    opacity: 0.2;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: shapeFloat 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: shapeFloat 18s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(0, -40px) rotate(180deg); }
    75% { transform: translate(-20px, -20px) rotate(270deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 0.3s forwards;
}

.label-line {
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.hero-label span {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 15vw, 160px);
    line-height: 0.85;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-word {
    display: inline-block;
    position: relative;
    overflow: hidden;
    animation: wordSlideIn 1s var(--transition-smooth) forwards;
    opacity: 0;
}

.title-word:nth-child(1) {
    animation-delay: 0.5s;
}

.title-word:nth-child(2) {
    animation-delay: 0.7s;
    color: var(--accent);
}

.title-word::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent);
    transform: translateY(100%);
    animation: textGlitch 3s ease-in-out infinite;
}

@keyframes wordSlideIn {
    to {
        opacity: 1;
    }
}

@keyframes textGlitch {
    0%, 90%, 100% { transform: translateY(100%); opacity: 0; }
    92%, 98% { transform: translateY(0); opacity: 0.3; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 0.9s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--accent);
    opacity: 0.3;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    text-decoration: none;
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 1.1s forwards;
    transition: transform 0.3s ease;
}

.hero-btn:hover {
    transform: scale(1.05);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.hero-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Manifesto */
.manifesto {
    padding: 200px 0;
    position: relative;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 100px;
    align-items: start;
}

.manifesto-number {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}

.manifesto-content h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.manifesto-content p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: 60px;
    opacity: 0.8;
}

.manifesto-pattern {
    width: 100%;
    height: 200px;
    background-image:
        repeating-linear-gradient(45deg, var(--accent) 0, var(--accent) 2px, transparent 2px, transparent 10px),
        repeating-linear-gradient(-45deg, var(--accent) 0, var(--accent) 2px, transparent 2px, transparent 10px);
    opacity: 0.1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

/* Featured */
.featured {
    padding: 200px 0;
    background: var(--gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -0.02em;
}

.title-line:nth-child(2) {
    color: var(--accent);
}

.section-number {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--white);
    opacity: 0.05;
    line-height: 1;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.featured-item {
    opacity: 0;
    transform: translateY(80px) rotate(5deg);
    animation: itemReveal 1s var(--transition-bounce) forwards;
    animation-delay: calc(var(--index) * 0.2s);
}

@keyframes itemReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

.item-image {
    aspect-ratio: 3/4;
    background: var(--black);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
    margin-bottom: 25px;
}

.image-pattern {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, var(--accent) 40%, var(--accent) 60%, transparent 60%);
    background-size: 20px 20px;
    opacity: 0.1;
    transition: transform 0.6s var(--transition-smooth);
}

.featured-item:hover .image-pattern {
    transform: scale(1.2) rotate(45deg);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 136, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-item:hover .image-overlay {
    opacity: 1;
}

.overlay-number {
    font-family: var(--font-display);
    font-size: 72px;
    color: var(--black);
}

.item-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.item-info p {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 15px;
}

.item-tags {
    display: flex;
    gap: 10px;
}

.tag {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* Quote */
.quote-section {
    padding: 200px 0;
    text-align: center;
}

.quote {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}

.quote-attr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Footer */
.footer {
    padding: 100px 60px 40px;
    background: var(--gray);
    border-top: 1px solid var(--accent);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-section a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(5px);
}

.footer-copy {
    font-size: 11px;
    opacity: 0.5;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .nav-container {
        padding: 0 40px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   HAMBURGER BUTTON
   ============================================= */
.hamburger {
    display: none;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--accent);
    cursor: pointer;
    position: relative;
    z-index: 10001;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
}

.hamburger-line {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s var(--transition-smooth);
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

/* Hamburger -> X animation */
.hamburger.is-active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* =============================================
   MOBILE MENU OVERLAY
   ============================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Geometric accent lines in the overlay */
.mobile-menu-overlay::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent);
    opacity: 0.1;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    pointer-events: none;
    z-index: 0;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Glitch-style clip-path animation on open */
@keyframes menuGlitchIn {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    15% {
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 40%);
    }
    30% {
        clip-path: polygon(0 0, 100% 0, 100% 20%, 0 25%);
    }
    50% {
        clip-path: polygon(0 0, 100% 0, 100% 75%, 0 70%);
    }
    70% {
        clip-path: polygon(0 0, 100% 0, 100% 55%, 0 60%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes menuGlitchOut {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    30% {
        clip-path: polygon(0 60%, 100% 55%, 100% 100%, 0 100%);
    }
    60% {
        clip-path: polygon(0 85%, 100% 80%, 100% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    }
}

.mobile-menu-overlay.is-open {
    animation: menuGlitchIn 0.4s steps(4) forwards;
}

.mobile-menu-overlay.is-closing {
    animation: menuGlitchOut 0.3s steps(3) forwards;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.mobile-menu-link {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    padding: 16px 32px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-link span {
    font-size: 11px;
    opacity: 0.5;
    font-weight: 400;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--transition-smooth);
}

.mobile-menu-link:hover::before,
.mobile-menu-link.active::before {
    width: 100%;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: var(--white);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Staggered link appearance */
.mobile-menu-overlay.is-open .mobile-menu-link {
    opacity: 0;
    transform: translateX(-30px);
    animation: mobileLinkIn 0.3s ease forwards;
}

.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(1) { animation-delay: 0.15s; }
.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(3) { animation-delay: 0.25s; }
.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(4) { animation-delay: 0.3s; }
.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(5) { animation-delay: 0.35s; }

@keyframes mobileLinkIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =============================================
   RESPONSIVE - 768px
   ============================================= */
@media (max-width: 768px) {
    /* Safety net: prevent horizontal scroll on both html and body */
    html, body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 24px;
    }

    .nav-container {
        padding: 0 24px;
    }

    .hero {
        padding: 100px 24px 40px;
    }

    /* Hide desktop nav, show hamburger */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Typography adjustments */
    .hero-title {
        font-size: clamp(40px, 12vw, 80px);
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-value {
        font-size: 24px;
    }

    .hero-btn {
        padding: 16px 30px;
    }

    /* Hero label: prevent fixed-width lines from pushing content too wide */
    .hero-label {
        gap: 12px;
    }

    .label-line {
        width: 30px;
    }

    /* Manifesto */
    .manifesto {
        padding: 100px 0;
        overflow: hidden;
    }

    .manifesto-number span {
        font-size: 72px;
    }

    .manifesto-content h2 {
        font-size: clamp(24px, 6vw, 36px);
    }

    .manifesto-content p {
        word-break: break-word;
    }

    .manifesto-pattern {
        height: 100px;
    }

    /* Featured: contain rotated animation items */
    .featured {
        padding: 100px 0;
        overflow: hidden;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 50px;
    }

    .section-number {
        font-size: 60px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Prevent featured items from causing overflow during rotate animation */
    .featured-item {
        transform: translateY(80px);
    }

    @keyframes itemReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Ensure tags wrap on narrow screens */
    .item-tags {
        flex-wrap: wrap;
    }

    /* Quote */
    .quote-section {
        padding: 100px 0;
        overflow: hidden;
    }

    .quote {
        word-break: break-word;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        padding: 60px 24px 24px;
        overflow: hidden;
    }

    /* Hide canvas on mobile for performance */
    #geometric-bg {
        display: none;
    }

    /* Hero shapes simplified */
    .hero-shapes .shape {
        display: none;
    }

    /* Nav adjustments */
    .nav {
        padding: 16px 0;
    }

    .logo {
        font-size: 20px;
    }

    .logo-icon {
        width: 26px;
        height: 26px;
    }

    /* Grain overlay: ensure it cannot contribute to overflow */
    .grain-overlay {
        overflow: hidden;
    }
}