/* =========================================
   APPLE-INSPIRED MINIMALIST DESIGN SYSTEM
   ========================================= */

/* Foundation Variables */
:root {
    --bg-main: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --border-color: #333336;
    --card-bg: #111111;
    --card-hover: #1c1c1e;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 16px;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography base: tight letter-spacing mimicking Apple SF Pro Display */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.04em;
    font-weight: 600;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    font-weight: 400;
}

.text-gradient {
    color: var(--text-secondary);
    /* Minimalist contrasting gray */
}

/* =========================================
   NAVIGATION (Glass effect navbar)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    color: #e5e5ea;
    opacity: 0.8;
    transition: opacity var(--transition);
}

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

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--text-primary);
    color: var(--bg-main);
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    transition: transform var(--transition), background-color var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.03);
    background-color: #ffffff;
}

.btn-nav {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.hero-content {
    z-index: 10;
    max-width: 900px;
    padding: 0 1.5rem;
}

.hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    max-width: 750px;
    margin: 1.5rem auto 3rem;
    line-height: 1.4;
}

/* Floating Pills (Background Visuals) */
.hero-visuals {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.pill {
    position: absolute;
    padding: 1rem 2rem;
    background: rgba(26, 26, 28, 0.4);
    /* Extremely subtle dark glass */
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    animation: float-around 25s infinite ease-in-out alternate;
    white-space: nowrap;
    opacity: 0.8;
}

/* Distribution */
.pill:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-duration: 28s;
}

.pill:nth-child(2) {
    top: 12%;
    right: 12%;
    animation-duration: 32s;
    animation-direction: alternate-reverse;
}

.pill:nth-child(3) {
    top: 60%;
    left: 5%;
    animation-duration: 24s;
}

.pill:nth-child(4) {
    top: 75%;
    right: 10%;
    animation-duration: 30s;
}

.pill:nth-child(5) {
    top: 40%;
    left: -2%;
    animation-duration: 35s;
    animation-direction: alternate-reverse;
}

.pill:nth-child(6) {
    top: 35%;
    right: 2%;
    animation-duration: 40s;
}

.pill:nth-child(7) {
    top: 85%;
    left: 20%;
    animation-duration: 22s;
}

.pill:nth-child(8) {
    top: 80%;
    right: 25%;
    animation-duration: 26s;
    animation-direction: alternate-reverse;
}

.pill:nth-child(9) {
    top: 5%;
    left: 40%;
    animation-duration: 33s;
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(25px, -15px) scale(1.03) rotate(3deg);
    }

    66% {
        transform: translate(-10px, -30px) scale(0.97) rotate(-2deg);
    }

    100% {
        transform: translate(30px, 20px) scale(1.05) rotate(5deg);
    }
}

/* =========================================
   SERVICES / BENTO GRID
   ========================================= */
.services {
    padding: 10rem 0;
    background-color: #000000;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    /* Fixed height for beautiful squares */
    gap: 1.5rem;
}

.bento-item {
    background-color: var(--card-bg);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), background-color var(--transition);
}

.bento-item:hover {
    transform: scale(1.01);
    background-color: var(--card-hover);
}

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

/* =========================================
   ECOSYSTEM / SOLANA
   ========================================= */
.ecosystem {
    padding: 10rem 0;
    background-color: #050505;
    /* Just slightly off-black for division */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ecosystem-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ecosystem-image {
    display: flex;
    justify-content: center;
}

.ecosystem-image img {
    width: 100%;
    max-width: 300px;
    filter: grayscale(100%) brightness(200%);
    /* Elegant white monotone */
    opacity: 0.9;
    transition: opacity var(--transition);
}

.ecosystem-image img:hover {
    opacity: 1;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 8rem 0 3rem;
    text-align: center;
    background-color: #000000;
}

.footer h2 {
    margin-bottom: 3rem;
}

.footer-bottom {
    margin-top: 8rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    letter-spacing: -0.01em;
}

/* =========================================
   ANIMATIONS (Scroll effects)
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minMax(280px, auto);
    }

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

    .ecosystem-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .nav-links {
        display: none;
    }

    .pill {
        font-size: 0.85rem;
        padding: 0.8rem 1.6rem;
    }

    .hero-content {
        padding-top: 2rem;
    }
}