@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-800: #1A1A1A;
    --gray-900: #0A0A0A;

    --font: 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
    cursor: none;
}

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

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
}

/* Layout */
.container-large {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002;
    mix-blend-mode: difference;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-square {
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 60px;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-menu a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    overflow: hidden;
    color: var(--white);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.5s var(--ease-out-expo);
    transform-origin: center;
}

/* Hamburger to X animation */
.menu-toggle.active span:first-child {
    transform: translateY(4.75px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-4.75px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s var(--ease-out-expo);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-overlay-nav li {
    overflow: hidden;
}

.mobile-overlay-nav a {
    display: block;
    font-family: var(--font);
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.02em;
    padding: 16px 0;
    cursor: pointer;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
}

.mobile-overlay.active .mobile-overlay-nav a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-overlay-nav li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-overlay-nav li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-overlay-nav li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-overlay-nav li:nth-child(4) a { transition-delay: 0.25s; }
.mobile-overlay-nav li:nth-child(5) a { transition-delay: 0.3s; }

.mobile-overlay.active .mobile-overlay-nav a:hover,
.mobile-overlay.active .mobile-overlay-nav a.active {
    opacity: 0.4;
}

/* Body scroll lock when menu open */
body.menu-open {
    overflow: hidden;
}

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

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

.hero-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gray-100) 0%, transparent 70%);
    animation: shapeFloat 20s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.1); }
}

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

.hero-title {
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    overflow: hidden;
}

.line-wrapper {
    display: block;
    overflow: hidden;
}

.line {
    display: block;
    animation: lineReveal 1.2s var(--ease-out-expo) forwards;
    transform: translateY(100%);
}

.line-wrapper:nth-child(1) .line {
    animation-delay: 0.2s;
}

.line-wrapper:nth-child(2) .line {
    animation-delay: 0.4s;
}

@keyframes lineReveal {
    to {
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

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

.hero-cta {
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 24px 48px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gray-800);
    transition: left 0.4s var(--ease-out-expo);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-arrow {
    font-size: 24px;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(10px);
}

.scroll-hint {
    position: absolute;
    bottom: 60px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-bar {
    width: 60px;
    height: 1px;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.scroll-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--black);
    animation: scrollBarMove 2s ease-in-out infinite;
}

@keyframes scrollBarMove {
    0%, 100% { left: -50%; }
    50% { left: 100%; }
}

/* Intro */
.intro {
    padding: 200px 0;
    background: var(--black);
    color: var(--white);
}

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

.intro-number {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.1;
}

.intro-text h2 {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.intro-text p {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    opacity: 0.8;
}

/* Featured */
.featured {
    padding: 200px 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 40px;
    margin-bottom: 100px;
}

.section-number {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.featured-card {
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    animation: cardReveal 0.8s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

.featured-card:nth-child(1) {
    --index: 0;
}

.featured-card:nth-child(2) {
    --index: 1;
}

.featured-card:nth-child(3) {
    --index: 2;
}

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

.card-image {
    aspect-ratio: 3/4;
    background: var(--gray-100);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.card-image::before {
    content: attr(data-index);
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.image-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.featured-card:hover .image-fill {
    transform: scale(1.05);
}

.card-info h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.card-info p {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-800);
    letter-spacing: 0.02em;
}

/* Statement */
.statement {
    padding: 200px 0;
    background: var(--gray-100);
}

.statement-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.statement-content blockquote {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}

.statement-content cite {
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Specs */
.specs {
    padding: 200px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 80px;
    align-items: center;
}

.spec-item {
    text-align: center;
}

.spec-value {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.spec-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

.spec-divider {
    width: 1px;
    height: 100px;
    background: var(--gray-300);
}

/* Footer */
.footer {
    padding: 100px 0 60px;
    background: var(--black);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-copy {
    text-align: right;
}

.footer-copy p {
    font-size: 12px;
    opacity: 0.4;
    letter-spacing: 0.05em;
}

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

    .nav {
        padding: 30px 40px;
    }

    .scroll-hint {
        left: 40px;
    }

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

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

    .intro-number {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

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

    .nav {
        padding: 24px;
    }

    .nav-menu {
        display: none;
    }

    /* Show hamburger on mobile */
    .menu-toggle {
        display: flex;
    }

    /* When overlay is open, disable blend mode so nav renders on white overlay properly */
    body.menu-open .nav {
        mix-blend-mode: normal;
    }

    /* Hamburger and logo color: black when overlay is open */
    body.menu-open .menu-toggle span {
        background: var(--black);
    }

    body.menu-open .logo {
        color: var(--black);
    }

    .hero-title {
        font-size: clamp(48px, 14vw, 80px);
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-cta {
        margin-top: 40px;
    }

    .btn-primary {
        padding: 18px 36px;
        font-size: 12px;
    }

    .scroll-hint {
        left: 24px;
        bottom: 40px;
    }

    /* Intro */
    .intro {
        padding: 100px 0;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .intro-text h2 {
        font-size: clamp(28px, 6vw, 40px);
    }

    .intro-text p {
        font-size: 16px;
    }

    /* Featured */
    .featured {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 60px;
        gap: 20px;
    }

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

    .card-info h3 {
        font-size: 20px;
    }

    /* Statement */
    .statement {
        padding: 100px 0;
    }

    .statement-content blockquote {
        font-size: clamp(24px, 5vw, 32px);
    }

    /* Specs */
    .specs {
        padding: 100px 0;
    }

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

    .spec-divider {
        display: none;
    }

    .spec-value {
        font-size: clamp(48px, 10vw, 72px);
    }

    /* Footer */
    .footer {
        padding: 60px 0 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 16px;
    }

    .footer-copy {
        text-align: center;
    }

    /* Page hero mobile */
    .page-hero {
        min-height: 40vh;
    }

    .page-title {
        font-size: clamp(40px, 10vw, 80px);
    }

    /* Mobile overlay interactive elements need pointer cursor */
    .mobile-overlay a,
    .mobile-overlay button,
    .menu-toggle {
        cursor: pointer;
    }

    /* Back button mobile adjustment */
    .back-btn {
        bottom: 1.5rem;
        left: 1.5rem;
        cursor: pointer;
    }
}

/* Touch device detection: disable custom cursor */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}