/* =========================================================
   NOXCELL · 诺维克 — Brand Style
   Nighttime nutrition · Lifestyle · Premium
   ========================================================= */

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

:root {
    /* Colors */
    --color-bg-dark: #0a0e27;
    --color-bg-mid: #111638;
    --color-bg-section: #f8f5f0;
    --color-bg-card: #ffffff;
    --color-gold: #c9a84c;
    --color-gold-light: #e8d4a0;
    --color-gold-dark: #a88930;
    --color-text-dark: #1a1a2e;
    --color-text-mid: #4a4a5e;
    --color-text-light: #b8b8c8;
    --color-text-white: #f0eef6;
    --color-accent: #7c5cfc;
    --color-accent-soft: #a08cff;

    /* Typography */
    --font-serif: 'Noto Serif SC', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-py: 120px;
    --container-max: 1200px;
    --container-pad: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background: var(--color-bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-smooth),
                transform 0.8s var(--ease-smooth);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ==================================================
   NAVIGATION
   ================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.4s var(--ease-smooth),
                padding 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.nav__logo-text {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text-white);
}

.nav__logo-sub {
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--color-gold);
    opacity: 0.8;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-gold);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--color-text-white);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 8px 20px;
    border: 1px solid var(--color-gold);
    border-radius: 50px;
    color: var(--color-gold);
    transition: all 0.3s ease;
}

.nav__link--cta:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

.nav__link--cta::after { display: none; }

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero__stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(124, 92, 252, 0.08), transparent 60%),
                radial-gradient(ellipse at 30% 70%, rgba(201, 168, 76, 0.06), transparent 50%),
                linear-gradient(180deg, var(--color-bg-dark) 0%, #111638 50%, var(--color-bg-dark) 100%);
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero__content {
    flex: 1;
    max-width: 580px;
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.hero__brand {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -3px;
    color: var(--color-text-white);
    line-height: 1;
    margin-bottom: 8px;
}

.hero__brand-sub {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero__subtitle {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 400;
    color: var(--color-gold-light);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero__desc {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
}

.hero__visual {
    flex: 0 0 320px;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__moon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f5e6b8, #d4af37 40%, #a88930 70%, #7a5f20);
    box-shadow: 0 0 80px rgba(201, 168, 76, 0.3),
                0 0 160px rgba(201, 168, 76, 0.15),
                0 0 240px rgba(201, 168, 76, 0.08);
    position: relative;
    animation: moonPulse 6s ease-in-out infinite;
}

.hero__moon::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hero__moon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero__glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06), transparent 70%);
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes moonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 80px rgba(201, 168, 76, 0.3), 0 0 160px rgba(201, 168, 76, 0.15); }
    50% { transform: scale(1.02); box-shadow: 0 0 100px rgba(201, 168, 76, 0.4), 0 0 200px rgba(201, 168, 76, 0.2); }
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-light);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

.btn--primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

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

.btn--outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* ==================================================
   SECTIONS (Shared)
   ================================================== */
.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section--light {
    background: var(--color-bg-section);
}

.section--dark {
    background: var(--color-bg-dark);
}

.section--team {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #141a40 50%, #1a1040 100%);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section__label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.section__label--light {
    color: var(--color-gold-light);
}

.section__title {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.section__title--light {
    color: var(--color-text-white);
}

.section__desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-mid);
}

.section__desc--light {
    color: var(--color-text-light);
}

.hide-desktop {
    display: none;
}

/* ==================================================
   GRID (Cards)
   ================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.08);
    color: var(--color-gold);
    margin-bottom: 24px;
}

.card__title {
    font-size: 20px;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.card__text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-mid);
}

/* ==================================================
   SOURCE / INNOVATION SECTION (Dark cards)
   ================================================== */
.source__showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.source__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 32px;
    transition: transform 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out),
                background 0.4s var(--ease-out);
}

.source__card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 76, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.source__number {
    font-family: var(--font-sans);
    font-size: 42px;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.source__card h3 {
    font-size: 20px;
    color: var(--color-text-white);
    margin-bottom: 12px;
}

.source__card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ==================================================
   RESEARCH SECTION
   ================================================== */
.research__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.research__item {
    padding: 32px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: transform 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out);
}

.research__item:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.2);
}

.research__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.1);
    color: var(--color-gold);
    margin: 0 auto 20px;
}

.research__item h3 {
    font-size: 17px;
    color: var(--color-text-white);
    margin-bottom: 10px;
}

.research__item p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ==================================================
   TEAM SECTION
   ================================================== */
.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out);
}

.team__card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 76, 0.2);
}

.team__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team__initials {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.team__name {
    font-size: 19px;
    color: var(--color-text-white);
    margin-bottom: 4px;
}

.team__role {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gold-light);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.team__bio {
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ==================================================
   FOOTER
   ================================================== */
.footer {
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 80px 0 32px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    display: block;
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--color-text-white);
    margin-bottom: 4px;
}

.footer__logo-sub {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--color-gold);
    display: block;
    margin-bottom: 12px;
}

.footer__tagline {
    font-size: 13px;
    color: var(--color-text-light);
    letter-spacing: 2px;
}

.footer__links h4,
.footer__contact h4 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.footer__links ul li {
    margin-bottom: 8px;
}

.footer__links ul li a {
    font-size: 14px;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.footer__links ul li a:hover {
    color: var(--color-gold-light);
}

.footer__contact p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-text-light);
}

.footer__partner {
    color: var(--color-gold);
}

/* ==================================================
   RESPONSIVE
   ================================================== */

/* Tablet */
@media (max-width: 968px) {
    :root {
        --section-py: 80px;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__visual {
        flex: none;
        width: 240px;
        height: 240px;
    }

    .hero__moon {
        width: 160px;
        height: 160px;
    }

    .hero__glow {
        width: 280px;
        height: 280px;
    }

    .grid-3,
    .source__showcase {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --section-py: 60px;
        --container-pad: 20px;
    }

    .hide-desktop {
        display: inline;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s var(--ease-out);
        z-index: 1001;
    }

    .nav__links.open {
        right: 0;
    }

    .nav__link {
        font-size: 18px;
    }

    .nav__toggle {
        display: flex;
        z-index: 1002;
    }

    .grid-3,
    .source__showcase,
    .research__grid,
    .team__grid {
        grid-template-columns: 1fr;
    }

    .hero__inner {
        padding-top: 100px;
    }

    .hero__brand {
        font-size: clamp(42px, 12vw, 56px);
        letter-spacing: -2px;
    }

    .hero__brand-sub {
        font-size: clamp(32px, 9vw, 48px);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__scroll {
        display: none;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .team__card {
        max-width: 400px;
        margin: 0 auto;
    }
}
