:root {
    color-scheme: dark;
    --bg-base: #050505;
    --bg-surface: #0a0a0a;
    --text-primary: #F9FAFB;
    --text-secondary: #A1A1AA;
    --accent: #2b00ff;
    --accent-glow: rgba(43, 0, 255, 0.35);
    --accent-green: #05E07A;

    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --inner-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);

    --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

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

/* Navigation Island */
.nav-island {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    box-shadow: var(--inner-shadow), 0 20px 40px rgba(0, 0, 0, 0.4);
    will-change: transform, opacity;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    height: 20px;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s var(--spring);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Primary Magnetic Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--text-primary);
    color: var(--bg-base);
    border: none;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
    will-change: transform;
}

.btn-primary:active {
    transform: scale(0.96) !important;
}

.btn-primary .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    transition: transform 0.4s var(--spring);
}

.btn-primary:hover .btn-icon {
    transform: translateX(2px) translateY(-1px) scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.4;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.eyebrow-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid var(--glass-border);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
}

.hero-title {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.text-accent {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(110deg, #333333 0%, var(--text-secondary) 100%);
}

.text-solid-gray {
    color: rgba(152, 152, 157, 0.834);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 85%;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Double Bezel Architecture (Anti-AI Cliché) */
.double-bezel-outer {
    background: var(--glass-bg);
    padding: 0.5rem;
    border-radius: 2.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    isolation: isolate;
}

.double-bezel-inner {
    background: var(--bg-surface);
    border-radius: calc(2.5rem - 0.5rem);
    box-shadow: var(--inner-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    overflow: hidden;
    position: relative;
}

.visual-card {
    height: 600px;
    width: 100%;
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.8s var(--spring);
    will-change: transform;
}

.visual-card:hover {
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.hero-abstract-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    border-radius: calc(2.5rem - 0.5rem);
}

.glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Bento Grid */
.bento-section {
    padding: 4rem 0 6rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 24rem;
    gap: 1.5rem;
}

.span-2 {
    grid-column: span 2;
}

.span-1 {
    grid-column: span 1;
}

.span-3 {
    grid-column: span 3;
    grid-auto-rows: 18rem;
    height: 18rem;
}

.bento-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(120% 120% at top left, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01) 80%);
}

.horizontal-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.bento-title {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.bento-value {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
    margin-bottom: 1.5rem;
    font-family: 'Space Mono', monospace;
    color: var(--text-primary);
}

.node-function {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.bento-unit {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 85%;
    line-height: 1.7;
}

.bento-title-small {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
    font-weight: 500;
}

.bento-desc-small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.accent-icon {
    font-size: 3rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.wide-text {
    width: 45%;
}

.wide-visual {
    width: 45%;
    height: 60%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 2rem;
}

.abstract-bar {
    flex: 1;
    min-width: 4px;
    background: var(--text-primary);
    border-radius: 999px;
    min-height: 10%;
    transition: height 0.8s var(--spring);
}

/* Footer */
.site-footer {
    padding: 0 0 4rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 4rem;
}



.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.back-to-top {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s var(--spring);
    margin-bottom: 1.5rem;
}

.back-to-top:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Scroll Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(6rem);
    filter: blur(12px);
    transition: opacity 1.2s var(--spring), transform 1.2s var(--spring), filter 1.2s var(--spring);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(24px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--spring);
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    color: var(--text-primary);
    font-size: 2rem;
    text-decoration: none;
    font-weight: 500;
}

/* Subscribe Form */
.subscribe-form {
    margin-top: 1.5rem;
    max-width: 550px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 0.25rem 0.25rem 0.25rem 1.25rem;
    box-shadow: var(--inner-shadow), 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    transition: border-color 0.3s var(--spring), box-shadow 0.3s var(--spring);
}

.input-group:focus-within {
    border-color: rgba(5, 224, 122, 0.6);
    box-shadow: var(--inner-shadow), 0 0 0 4px rgba(5, 224, 122, 0.15);
}

.input-icon {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.premium-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    text-overflow: ellipsis;
}

.premium-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s var(--spring);
}

.form-message i {
    font-size: 1.1rem;
}

.form-message.success {
    padding: 0.75rem 1rem;
    background: rgba(5, 224, 122, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(5, 224, 122, 0.2);
    opacity: 1;
    transform: translateY(0);
}

.form-message.warning {
    padding: 0.75rem 1rem;
    background: rgba(234, 179, 8, 0.08);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
    opacity: 1;
    transform: translateY(0);
}

.form-message.error {
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Overrides (Strict single column) */
@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }

    .bento-section {
        padding: 4rem 0 6rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 1rem;
        gap: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    #subscribe-btn span {
        display: none;
    }
    
    #subscribe-btn {
        padding: 0.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .span-2,
    .span-1,
    .span-3 {
        grid-column: span 1;
    }

    .horizontal-flex {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .wide-text,
    .wide-visual {
        width: 100%;
        padding-right: 0;
    }

    .wide-visual {
        height: 120px;
    }

    .bento-content {
        min-height: 20rem;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .visual-card {
        height: 400px;
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
}

@media (max-width: 900px) {
    .bento-value {
        font-size: 2.5rem;
    }

    .bento-title {
        font-size: 1.5rem;
    }
}