/* xanadu.science — blobitecture fluid layout
   Palette:
     #0a0e1a — Abyss (background)
     #00e5ff — Biolume Cyan
     #b388ff — Biolume Violet
     #ffe082 — Warm Glow
     #e0e8f0 — Soft Text
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0e1a;
    color: #e0e8f0;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(ellipse 1200px 800px at 15% 10%, rgba(0, 229, 255, 0.06), transparent 60%),
        radial-gradient(ellipse 900px 700px at 85% 60%, rgba(179, 136, 255, 0.07), transparent 60%),
        radial-gradient(ellipse 700px 500px at 50% 95%, rgba(255, 224, 130, 0.04), transparent 70%);
    background-attachment: fixed;
}

/* Bioluminescent dot field */
.bioluminescent-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.bio-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #00e5ff, transparent 70%);
    filter: blur(0.4px);
    animation: bioFloat 14s ease-in-out infinite;
}

.bio-dot.violet {
    background: radial-gradient(circle, #b388ff, transparent 70%);
}

.bio-dot.warm {
    background: radial-gradient(circle, #ffe082, transparent 70%);
    width: 4px;
    height: 4px;
}

@keyframes bioFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
    25%      { transform: translateY(-18px) translateX(8px); opacity: 0.85; }
    50%      { transform: translateY(-30px) translateX(-6px); opacity: 0.6; }
    75%      { transform: translateY(-12px) translateX(10px); opacity: 0.8; }
}

/* Header */
.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem clamp(1.5rem, 4vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.45));
    animation: brandPulse 6s ease-in-out infinite;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

@keyframes brandPulse {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35)); }
    50%      { filter: drop-shadow(0 0 22px rgba(179, 136, 255, 0.55)); }
}

.brand-text {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #e0e8f0;
}

.site-nav {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1.6rem);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: rgba(224, 232, 240, 0.7);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    padding: 0.35rem 0.75rem;
    border-radius: 40% 60% 50% 40% / 60% 40% 50% 50%;
    transition: color 0.5s ease, background 0.5s ease;
}

.site-nav a:hover {
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.07);
}

/* Main flow */
.flow {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    padding: 4rem 0 6rem;
    display: flex;
    align-items: center;
}

.hero-blob {
    position: absolute;
    inset: -10% -20% -10% -20%;
    z-index: 0;
    pointer-events: none;
}

.hero-blob svg {
    width: 100%;
    height: 100%;
}

.hero-blob .blob-shape {
    transform-origin: 50% 50%;
    animation: blobMorph 22s ease-in-out infinite;
}

.hero-blob .blob-warm {
    animation: blobMorph 28s ease-in-out infinite reverse;
}

@keyframes blobMorph {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33%      { transform: scale(1.05) translate(-12px, 8px); }
    66%      { transform: scale(0.97) translate(10px, -10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: #00e5ff;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    opacity: 0.85;
}

.display-1 {
    font-family: "Sora", sans-serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 5.2vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #e0e8f0;
    margin-bottom: 1.5rem;
}

.display-1 em {
    font-style: italic;
    background: linear-gradient(120deg, #00e5ff 0%, #b388ff 50%, #ffe082 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.65;
    color: rgba(224, 232, 240, 0.88);
    max-width: 620px;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.data-tag {
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    color: rgba(224, 232, 240, 0.85);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.18);
    padding: 0.45rem 0.95rem;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    letter-spacing: 0.05em;
}

/* Wave dividers */
.wave-divider {
    width: 100%;
    height: clamp(60px, 9vw, 110px);
    margin: 1rem 0;
    pointer-events: none;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-flip svg {
    transform: scaleY(-1);
}

/* Flow sections (S-curve) */
.flow-section {
    position: relative;
    max-width: 640px;
    padding: 3rem 0;
}

.flow-section.align-left {
    margin-right: auto;
    margin-left: clamp(0px, 1vw, 20px);
    text-align: left;
}

.flow-section.align-right {
    margin-left: auto;
    margin-right: clamp(0px, 1vw, 20px);
    text-align: left;
}

.section-mark {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: rgba(0, 229, 255, 0.7);
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
}

.display-2 {
    font-family: "Sora", sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #e0e8f0;
    margin-bottom: 1.3rem;
}

.flow-section p {
    margin-bottom: 1.2rem;
    color: rgba(224, 232, 240, 0.86);
}

.flow-section em {
    color: #ffe082;
    font-style: italic;
}

.kicker {
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
    color: rgba(0, 229, 255, 0.85);
    margin-top: 1.5rem !important;
    line-height: 1.4;
}

/* Blob cards (organic border-radius) */
.blob-card {
    position: relative;
    background: rgba(0, 229, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 2rem;
    margin: 1.6rem 0;
    transition: transform 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

.blob-card-a {
    border-radius: 30% 70% 60% 40% / 50% 30% 70% 50%;
}

.blob-card-b {
    border-radius: 60% 40% 30% 70% / 40% 60% 50% 50%;
    border-color: rgba(179, 136, 255, 0.18);
    background: rgba(179, 136, 255, 0.05);
}

.blob-card-c {
    border-radius: 50% 50% 60% 40% / 70% 30% 50% 50%;
    border-color: rgba(255, 224, 130, 0.18);
    background: rgba(255, 224, 130, 0.04);
}

.blob-card.feature {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 229, 255, 0.08); }
    50%      { box-shadow: 0 0 55px rgba(179, 136, 255, 0.2); }
}

.blob-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.15);
}

.blob-card-b:hover {
    border-color: rgba(179, 136, 255, 0.4);
    box-shadow: 0 0 50px rgba(179, 136, 255, 0.18);
}

.blob-card-c:hover {
    border-color: rgba(255, 224, 130, 0.4);
    box-shadow: 0 0 50px rgba(255, 224, 130, 0.15);
}

.data-line {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: rgba(0, 229, 255, 0.85);
    letter-spacing: 0.08em;
    text-transform: lowercase;
    margin-bottom: 0.9rem !important;
}

.blob-card-b .data-line {
    color: rgba(179, 136, 255, 0.9);
}

.blob-card-c .data-line {
    color: rgba(255, 224, 130, 0.9);
}

.cite {
    font-family: "Space Mono", monospace;
    font-size: 0.78rem;
    color: rgba(224, 232, 240, 0.6);
    margin-top: 0.6rem !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.02em;
}

/* Data list */
.data-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.data-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 1.2rem;
    background: rgba(255, 224, 130, 0.04);
    border-left: 2px solid rgba(255, 224, 130, 0.4);
    border-radius: 30% 60% 40% 50% / 50% 50% 50% 50%;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.data-key {
    font-family: "Space Mono", monospace;
    font-size: 0.8rem;
    color: rgba(224, 232, 240, 0.75);
    letter-spacing: 0.04em;
}

.data-value {
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
    color: #ffe082;
    letter-spacing: 0.02em;
}

/* Footer */
.site-footer {
    position: relative;
    margin-top: 4rem;
    padding: 4rem 0 3rem;
    border-radius: 50% 50% 0 0 / 12% 12% 0 0;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.04), rgba(179, 136, 255, 0.06));
    overflow: hidden;
}

.footer-blob {
    position: absolute;
    width: 60%;
    height: 60%;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-cols {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 0 clamp(1rem, 3vw, 2rem);
    max-width: 900px;
    margin: 0 auto;
}

.footer-cols > div {
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.1);
    padding: 1.5rem;
    border-radius: 50% 30% 60% 40% / 40% 60% 30% 50%;
}

.footer-cols p {
    color: rgba(224, 232, 240, 0.78);
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-cols .data-line {
    margin-bottom: 0.7rem !important;
}

.footer-line {
    text-align: center;
    margin-top: 3rem;
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    color: rgba(224, 232, 240, 0.45);
    letter-spacing: 0.06em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .blob-card.feature {
        animation: none;
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
    }
    .brand-mark {
        animation: none;
    }
    .bio-dot {
        animation: none;
        opacity: 0.5;
    }
    .hero-blob .blob-shape {
        animation: none;
    }
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 0 4rem;
    }

    .flow-section {
        max-width: 100%;
    }

    .flow-section.align-left,
    .flow-section.align-right {
        margin-left: 0;
        margin-right: 0;
    }

    .blob-card {
        padding: 1.4rem;
    }

    .data-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}
