/* Base Design System & Ethereal Glass Vibe */
:root {
    --bg-deep: #050505;
    --text-primary: #f8fafc;
    --text-muted: #8b96a5;
    --accent: #38bdf8;
    
    --shell-bg: rgba(255, 255, 255, 0.02);
    --shell-border: rgba(255, 255, 255, 0.05);
    
    --core-bg: rgba(10, 10, 10, 0.6);
    --core-border: rgba(255, 255, 255, 0.08);
    --core-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.15);
    
    --cubic-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------------- */
/* Ethereal Glass Background Mesh        */
/* ------------------------------------- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-deep);
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    will-change: transform;
}

.mesh-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    top: -200px;
    right: -200px;
}

.mesh-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #10b981, transparent 70%);
    bottom: -100px;
    left: -200px;
}

/* Noise overlay for texture */
.noise {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

/* ------------------------------------- */
/* Layout & Whitespace                   */
/* ------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 10rem 0; /* Massive whitespace */
}

/* ------------------------------------- */
/* Typography                            */
/* ------------------------------------- */
.eyebrow {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    background: var(--shell-bg);
    border: 1px solid var(--shell-border);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    font-weight: 400;
}

/* ------------------------------------- */
/* Double-Bezel Architecture             */
/* ------------------------------------- */
.bezel-shell {
    background: var(--shell-bg);
    border: 1px solid var(--shell-border);
    padding: 0.5rem;
    border-radius: 2rem;
    height: 100%;
}

.bezel-core {
    background: var(--core-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--core-highlight);
    border: 1px solid var(--core-border);
    border-radius: calc(2rem - 0.5rem);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------- */
/* Asymmetrical Bento Grid               */
/* ------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-span-8 { grid-column: span 8; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }

@media (max-width: 992px) {
    .bento-span-8, .bento-span-6, .bento-span-4 {
        grid-column: span 12;
    }
}

/* ------------------------------------- */
/* Card Content Styling                  */
/* ------------------------------------- */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
    color: var(--text-primary);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 2.5rem;
}

.port-tag {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* ------------------------------------- */
/* Nested CTA Button (Button-in-Button)  */
/* ------------------------------------- */
.island-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 700ms var(--cubic-spring);
    cursor: pointer;
    align-self: flex-start;
}

.island-btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1.25rem;
    transition: all 700ms var(--cubic-spring);
}

.island-btn-icon svg {
    width: 16px;
    height: 16px;
}

.island-btn:hover {
    background: rgba(255,255,255,0.06);
    transform: scale(0.98);
}

.island-btn:hover .island-btn-icon {
    background: #fff;
    color: #000;
    transform: translate(4px, -2px) scale(1.05);
}

.static-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: auto;
}

/* ------------------------------------- */
/* Fluid Island Nav                      */
/* ------------------------------------- */
nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,10,0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.nav-logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite var(--cubic-spring);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* ------------------------------------- */
/* Scroll Interpolation                  */
/* ------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(4rem);
    filter: blur(12px);
    transition: all 1s var(--cubic-spring);
}

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

/* Add slight delays for bento grid children based on standard nth-child */
.bento-grid > :nth-child(1) { transition-delay: 100ms; }
.bento-grid > :nth-child(2) { transition-delay: 200ms; }
.bento-grid > :nth-child(3) { transition-delay: 300ms; }
.bento-grid > :nth-child(4) { transition-delay: 400ms; }
.bento-grid > :nth-child(5) { transition-delay: 500ms; }
.bento-grid > :nth-child(6) { transition-delay: 600ms; }

/* ------------------------------------- */
/* Footer                                */
/* ------------------------------------- */
footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
