@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-dim: #888888;
    --accent: #ffffff;
    --grid-line: rgba(255, 255, 255, 0.08);
    --font-primary: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-serif: 'Instrument Serif', serif;
    /* Point 2 */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    /* Point 1: Optimized Background (Radial Gradient only, removed noise) */
    background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Point 1: Removed body::before noise overlay */

/* Point 5: Premium Sans-Serif Text (Inter) */
.premium-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    /* Point 6: Removed text-transform uppercase for NBP */
}

/* Point 2: Serif Italic (Instrument Serif) */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    /* Instrument Serif is usually 400 */
}

/* Point 15: Diffuse Light Fill Hover Effect */
.btn-premium {
    position: relative;
    display: inline-block;
    padding: 1.2rem 3rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.1em;
    background: transparent;
    /* No fill default */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    /* Sharp edges */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    font-weight: 600;
    min-width: 180px;
    /* Point 14: Prevent excessive width */
    text-align: center;

    /* Gradient Fill Setup */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-size 0.5s ease, border-color 0.3s ease;
}

.btn-premium:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-size: 100% 100%;
    /* Fills L -> R */
}

/* Remove old pseudo-element hover */
.btn-premium::before {
    display: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: normal;
    background: transparent;
    /* Default transparent */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 3rem;
    /* Further reduce on scroll */
}

.logo img {
    height: 45px !important;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    z-index: 1;
    max-width: 1000px;
}

.hero-title {
    font-size: 9vw;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.diffuse-text {
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.7) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: flowLight 6s linear infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    filter: blur(0.3px);
}

@keyframes flowLight {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-cta-wrapper {
    margin-top: 2rem;
}

.btn-text {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 0.2rem;
    transition: opacity 0.3s;
}

.btn-text:hover {
    opacity: 0.7;
}

/* Manifesto Section */
.manifesto-section {
    padding: 6rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifesto-container {
    width: 100%;
}

.manifesto-text {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.manifesto-text span {
    color: #333;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline;
}

.manifesto-text span.active {
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Section Titles & Layout */
.section-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

.left-align {
    text-align: left !important;
    align-items: flex-start !important;
}

.left-align .section-title,
.left-align .section-subtitle,
.left-align .section-text {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

/* Point 3: What is Ima Studio Section (Background Image) */
.info-section {
    padding: 10rem 3rem;
    border-bottom: 1px solid var(--grid-line);
    position: relative;
    /* Point 3: Use image as background */
    background-image: url('assets/images/Frame 3466034.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add overlay to ensure text readability on background */
.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darken background */
    z-index: 0;
}

.content-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: start;
}

.section-subtitle-large {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #888;
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 3rem;
}

/* Apple Liquid Glass Effect */
.apple-glass {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.apple-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.market-data-box {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.market-data-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.highlight-quote {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--text-color);
    font-style: normal;
    /* Remove italic */
    font-size: 1.1rem;
    color: #ddd;
}

.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.boss-text {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    display: block;
}

.highlight-text {
    color: #ffffff;
    text-shadow: none;
    font-weight: 600;
}

/* Models Section */
.models-section {
    padding: 2rem 0;
    border-top: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    overflow: hidden;
    position: relative;
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.marquee-row {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee-content {
    display: flex;
    animation: scrollLeft 40s linear infinite;
}

.marquee-content.reverse {
    animation: scrollRight 40s linear infinite;
}

.marquee-content span {
    font-size: 4rem;
    font-weight: 900;
    margin-right: 4rem;
    text-transform: uppercase;
    color: #444;
    transition: all 0.3s ease;
    cursor: default;
}

.marquee-content span:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Nano Banana Pro Updates */
.nano-section {
    padding: 10rem 3rem;
    border-bottom: 1px solid var(--grid-line);
    position: relative;
    overflow: hidden;
}

.nano-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.nano-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: screen;
}

.gradient-loop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.selling-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
    margin-top: 2rem;
}

.point-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.point-item p {
    color: #aaa;
    font-size: 1rem;
}

/* Daily Challenge Updates */
.daily-challenge-section {
    padding: 10rem 3rem;
    border-top: 1px solid var(--grid-line);
    overflow: hidden;
}

.daily-challenge-container {
    width: 100%;
    margin: 0 auto;
}

.daily-grid-fixed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.daily-item {
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    display: block;
}

.daily-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Point 7: Fix aliasing */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.daily-item:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    z-index: 10;
}

/* Discord Section */
.discord-section {
    padding: 10rem 3rem;
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.05) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

/* Purple Gradient Light for Join Section */
.join-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
    z-index: 0;
    /* Behind content */
}

/* Point 13: Discord Background Logo (Blurred) */
.discord-bg-logo {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background-image: url('assets/images/Discord-Logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    /* Darkened */
    pointer-events: none;
    z-index: 0;
    filter: blur(5px) brightness(0.5);
    /* Point 13 */
}

margin: 0 auto;
position: relative;
z-index: 1;
}

.discord-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.discord-features {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin: 4rem 0;
}

.feature-box {
    background: transparent;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-box p {
    color: #aaa;
    line-height: 1.5;
}

/* Why, MIT, How, FAQ */
.why-section,
.hackathon-section,
.join-section,
.faq-section {
    padding: 10rem 3rem;
    border-top: 1px solid var(--grid-line);
    position: relative;
}

/* Point 8: Emoji Blur */
.why-emoji-bg {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40rem;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    filter: blur(2px);
    /* Point 8 */
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.card-number,
.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.card h3,
.step-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1.1rem;
    color: #aaa;
}

/* MIT Winners Layout */
.winners-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.winner-large {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--grid-line);
    cursor: pointer;
}

.winner-large video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.winner-large:hover video {
    opacity: 1;
}

.winner-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.winner-info-overlay h4 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.winner-info-overlay p {
    color: #aaa;
}

/* Point 10: Prize Label */
.prize-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.winners-row-medium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.winner-medium {
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border: 1px solid var(--grid-line);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.winner-medium video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.winner-medium:hover video {
    opacity: 1;
}

.winners-grid-small {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.winner-small {
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    border: 1px solid var(--grid-line);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.winner-small video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.winner-small:hover video {
    opacity: 1;
}

.winner-small.scale-up video {
    transform: scale(1.5);
    transform-origin: center;
}

/* Removed .scale-up block as it's now handled specifically above */

/* Point 16: How to Join Updates */
.join-section {
    padding: 4rem 3rem;
    /* Reduced padding */
    border-top: 1px solid var(--grid-line);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.join-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: flex-start;
    /* Left align */
    gap: 4rem;
    /* Reduced gap */
    margin-top: 2rem;
    /* Reduced margin */
    position: relative;
    z-index: 1;
    width: 100%;
}

.step-item {
    flex: 0 0 auto;
    /* Don't stretch */
    background: transparent;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align */
    text-align: left;
    width: 300px;
    /* Fixed width for alignment */
}

.step-item .btn-premium {
    width: 100%;
    max-width: 100%;
    padding: 1rem 0;
    margin-top: 1.5rem;
}

/* Removed duplicate Join Section styles */

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 6rem;
    margin-top: 4rem;
}

.faq-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.faq-item p {
    font-size: 1.1rem;
    color: #aaa;
}

.footer-big {
    padding: 4rem 3rem 0;
    border-top: 1px solid var(--grid-line);
    overflow: hidden;
}

.footer-links {
    display: flex;
    gap: 3rem;
    margin-bottom: 6rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.big-text {
    font-size: 18vw;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.05em;
    text-align: center;
    color: var(--text-color);
    transform: translateY(10%);
}

@media (max-width: 1024px) {

    .grid-3,
    .selling-points,
    .discord-features,
    .winners-grid,
    .faq-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .winners-row-medium {
        grid-template-columns: 1fr;
    }

    .winners-grid-small {
        grid-template-columns: repeat(4, 1fr);
    }

    .step-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-title {
        font-size: 15vw;
    }
}