/* ============================================
   NEO TEAM - BESPOKE EDITORIAL DESIGN
   Concept: Brutalist Editorial / System Aesthetics
   ============================================ */

:root {
    /* Colors - High Contrast & Deep */
    --bg-root: #050505;
    --bg-surface: #0a0a0a;
    --bg-surface-2: #111111;

    --fg-primary: #f2f2f2;
    --fg-secondary: #a3a3a3;
    --fg-tertiary: #525252;

    --accent: #e8e8e3;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.15);

    /* Typography - Editorial Scale */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    /* System feel */

    --text-display-giant: clamp(4rem, 12vw, 10rem);
    --text-display-large: clamp(3rem, 8vw, 6rem);
    --text-display-medium: clamp(2rem, 5vw, 3.5rem);
    --text-body-large: clamp(1.125rem, 2vw, 1.5rem);
    --text-body: 1rem;
    --text-caption: 0.75rem;

    /* Spacing - Asymmetrical Rhythm */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;
    --gap-xl: 8rem;
    --gap-giant: 12rem;

    /* Layout */
    --grid-cols: 12;
    --container-padding: 2rem;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-root);
    color: var(--fg-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-root);
}

::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 5px;
    border: 2px solid var(--bg-root);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg-tertiary);
}

/* Texture Overlay */
body::after {
    content: "";
    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.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

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

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ============================================
   Typography System
   ============================================ */
.font-display {
    font-family: var(--font-display);
}

.font-mono {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.text-giant {
    font-size: var(--text-display-giant);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.text-large {
    font-size: var(--text-display-large);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.text-medium {
    font-size: var(--text-display-medium);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.text-body-lg {
    font-size: var(--text-body-large);
    font-weight: 300;
    line-height: 1.4;
    color: var(--fg-secondary);
}

.text-caption {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-tertiary);
}

/* Scramble Effect Class */
.scramble-text {
    display: inline-block;
    min-width: 1ch;
}

/* ============================================
   Layout System (Grid)
   ============================================ */
.grid-container {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: var(--gap-md);
    padding: 0 var(--container-padding);
    max-width: 1600px;
    margin: 0 auto;
}

.col-full {
    grid-column: 1 / -1;
}

.col-left {
    grid-column: 1 / 7;
}

.col-right {
    grid-column: 7 / -1;
}

.section-spacing {
    padding-top: var(--gap-xl);
    padding-bottom: var(--gap-xl);
}

/* Lines */
.separator {
    width: 100%;
    height: 1px;
    background: var(--line);
    margin: var(--gap-lg) 0;
}

.section-line {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* ============================================
   Navigation
   ============================================ */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--gap-sm) var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.nav-menu {
    display: flex;
    gap: var(--gap-md);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out-expo);
}

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

/* ============================================
   Hero Section - Broken Grid
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: 15vh;
    position: relative;
    overflow: hidden;
}

.hero-title-wrapper {
    grid-column: 1 / 10;
    z-index: 2;
}

.hero-meta-wrapper {
    grid-column: 9 / -1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 1rem;
    z-index: 2;
}

.hero-bg-kinetic {
    position: absolute;
    top: 20%;
    right: -10%;
    font-family: var(--font-display);
    font-size: 30vw;
    font-weight: 900;
    color: var(--bg-surface-2);
    opacity: 0.4;
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    animation: kineticMove 40s linear infinite;
}

@keyframes kineticMove {
    to {
        transform: translateX(-50%);
    }
}

.magnetic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    margin-top: var(--gap-lg);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.magnetic-btn:hover {
    background: var(--fg-primary);
    color: var(--bg-root);
    border-color: var(--fg-primary);
}

/* ============================================
   Services - System Files
   ============================================ */
.services-header {
    grid-column: 1 / 6;
    margin-bottom: var(--gap-lg);
}

.files-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-top: 1px solid var(--line);
}

.file-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: var(--gap-md);
    position: relative;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.file-card:hover {
    background: var(--bg-surface-2);
}

.file-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--gap-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-tertiary);
}

.file-icon {
    width: 24px;
    height: 24px;
    color: var(--fg-secondary);
}

.file-body h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--gap-sm);
    font-weight: 600;
}

.file-body p {
    color: var(--fg-secondary);
    font-size: 0.9375rem;
}

.file-footer {
    margin-top: var(--gap-lg);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-tertiary);
    display: flex;
    gap: var(--gap-xs);
}

.dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
}

/* ============================================
   Method Stack (Accordion List)
   ============================================ */
.method-stack {
    display: flex;
    flex-direction: column;
}

.method-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-lg) 0;
    border-bottom: 1px solid var(--line);
    transition: all 0.4s var(--ease-out-expo);
    cursor: default;
}

.method-row:first-child {
    border-top: 1px solid var(--line);
}

.method-row:hover {
    padding-left: var(--gap-md);
    background: linear-gradient(90deg, var(--bg-surface-2) 0%, transparent 100%);
}

.method-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--fg-tertiary);
}

.method-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    transition: transform 0.4s var(--ease-out-expo);
}

.method-row:hover .method-content h3 {
    transform: translateX(8px);
}

.method-content p {
    color: var(--fg-secondary);
    font-size: 0.9375rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.method-row:hover .method-content p {
    opacity: 1;
    max-height: 100px;
    margin-top: 0.5rem;
}

.method-arrow {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--fg-tertiary);
    justify-self: end;
    transition: transform 0.4s var(--ease-out-expo), color 0.3s;
}

.method-row:hover .method-arrow {
    transform: translateX(8px);
    color: var(--fg-primary);
}

/* ============================================
   CTA - Minimal
   ============================================ */
.cta-wrapper {
    grid-column: 3 / 11;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: var(--gap-xl) var(--gap-md);
}

.cta-buttons {
    display: flex;
    gap: var(--gap-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--gap-lg);
}

.cta-btn {
    padding: 1.25rem 2.5rem;
    font-size: 0.9375rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: var(--gap-lg) var(--container-padding);
    margin-top: var(--gap-xl);
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: var(--fg-tertiary);
}

.footer-links {
    display: flex;
    gap: var(--gap-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--fg-tertiary);
    transition: color 0.3s ease;
}

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

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 1024px) {

    .bento-large,
    .bento-tall,
    .bento-wide,
    .bento-small {
        grid-column: span 12;
        grid-row: auto;
    }

    .hero-title-wrapper {
        grid-column: 1 / -1;
    }

    .hero-meta-wrapper {
        grid-column: 1 / -1;
        margin-top: var(--gap-lg);
    }

    :root {
        --grid-cols: 4;
        --container-padding: 1.5rem;
    }

    .cta-wrapper {
        grid-column: 1 / -1;
    }
}

/* Cursor Custom */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: exclusion;
    transition: transform 0.1s;
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

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

/* Stagger delays */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Horizontal reveal */
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}