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

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --gray-dark: #2a2a2a;
    --gray: #555555;
    --gray-light: #888888;
    --white: #ffffff;
    --white-muted: #cccccc;
    --accent: #ffffff;
    --glow: rgba(255, 255, 255, 0.06);
    --font-heading: 'Newsreader', Georgia, serif;
    --font-body: 'Newsreader', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-light);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

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

.nav-cta {
    padding: 8px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: border-color 0.2s ease, color 0.2s ease !important;
}

.nav-cta:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-toggle.active span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-mobile-toggle.active span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.mobile-menu a {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 500;
    color: var(--white-muted);
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--white);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-logo {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-logo-svg {
    width: 120px;
    height: 120px;
    animation: slowRotate 60s linear infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-title-snova {
    display: block;
}

.hero-title-labs {
    display: block;
    font-weight: 300;
    font-style: italic;
    color: var(--gray-light);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(14px, 2vw, 16px);
    color: var(--gray-light);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-rotating-text {
    display: inline-block;
    position: relative;
    height: 1.4em;
    overflow: hidden;
    vertical-align: bottom;
}

.rotating-word {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(-50%) translateY(20px);
    color: var(--white);
    font-weight: 500;
    font-style: italic;
}

.rotating-word.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-mono);
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease 1.2s both;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* ===== Sections ===== */
.section {
    padding: 120px 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 48px;
}

/* ===== About / Radial Visual ===== */
.about {
    border-top: 1px solid var(--gray-dark);
    overflow: hidden;
}

.radial-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radial-intro {
    text-align: center;
    max-width: 540px;
    margin-bottom: 80px;
}

.radial-intro h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 16px;
}

.radial-intro p {
    font-size: 17px;
    color: var(--gray-light);
    line-height: 1.7;
    font-weight: 300;
}

/* Diagram */
.radial-diagram {
    position: relative;
    width: 100%;
    max-width: 960px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Core starburst + pulse rings */
.radial-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.radial-pulse {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.radial-pulse-1 {
    width: 100%;
    height: 100%;
    animation: radialBreath 6s ease-in-out infinite;
}

.radial-pulse-2 {
    width: 180%;
    height: 180%;
    animation: radialBreath 6s ease-in-out 1.5s infinite;
}

.radial-pulse-3 {
    width: 280%;
    height: 280%;
    animation: radialBreath 6s ease-in-out 3s infinite;
}

@keyframes radialBreath {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.radial-logo {
    width: 64px;
    height: 64px;
    z-index: 3;
}

/* Arms */
.radial-arm {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 4;
}

.radial-line {
    flex-shrink: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
}

.radial-node {
    max-width: 230px;
}

.radial-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 6px;
}

.radial-node h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.2;
}

.radial-node p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.65;
    font-weight: 300;
}

/* Arm positions — radiating outward */
.radial-arm-1 {
    top: 8%;
    left: 0;
}

.radial-arm-1 .radial-line {
    background: linear-gradient(to left, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
}

.radial-arm-2 {
    top: 14%;
    right: 0;
    flex-direction: row;
}

.radial-arm-3 {
    bottom: 10%;
    right: 4%;
    flex-direction: row;
}

/* Responsive */
@media (max-width: 900px) {
    .radial-diagram {
        flex-direction: column;
        gap: 48px;
        min-height: auto;
        padding: 40px 0;
    }

    .radial-core {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 180px;
        height: 180px;
    }

    .radial-arm {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .radial-line {
        display: none;
    }

    .radial-node {
        max-width: 100%;
    }
}

/* ===== Focus ===== */
.focus {
    border-top: 1px solid var(--gray-dark);
}

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

.focus-card {
    background: var(--dark-2);
    padding: 48px 36px;
    transition: background 0.3s ease;
    position: relative;
}

.focus-card:hover {
    background: var(--dark-3);
}

.focus-card-number {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.focus-card h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.focus-card p {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 28px;
    font-weight: 300;
}

.focus-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.focus-card-tags span {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 12px;
    border: 1px solid var(--gray-dark);
    border-radius: 100px;
    color: var(--gray-light);
    letter-spacing: 0.02em;
}

/* ===== Research ===== */
.research {
    border-top: 1px solid var(--gray-dark);
}

.research-heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 48px;
}

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

.research-card {
    background: var(--dark-2);
    padding: 40px 32px;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    background: var(--dark-3);
}

.research-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.research-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border: 1px solid var(--gray-dark);
    border-radius: 100px;
    color: var(--gray-light);
}

.research-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray);
}

.research-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 14px;
}

.research-card p {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.8;
    margin-top: auto;
    font-weight: 300;
}

/* ===== Contact ===== */
.contact {
    border-top: 1px solid var(--gray-dark);
}

.contact-inner {
    max-width: 600px;
}

.contact-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 20px;
}

.contact-inner p {
    font-size: 17px;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 36px;
    font-weight: 300;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--gray-dark);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-light);
    transition: color 0.2s ease;
}

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

.footer-copy {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-stats {
        flex-direction: row;
        gap: 60px;
    }

    .focus-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero-logo-svg {
        width: 80px;
        height: 80px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 32px;
    }

    .focus-card,
    .research-card {
        padding: 32px 24px;
    }
}
