/* ==========================================================================
   QETTRA - Design System & Stylesheet
   ========================================================================== */

/* --- Custom Variables & Theme --- */
:root {
    --bg-dark: #020617;
    --bg-darker: #090514;
    --bg-card: rgba(15, 23, 42, 0.45);
    --bg-card-hover: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.2);
    
    /* Neon Colors */
    --accent-cyan: #00f0ff;
    --accent-blue: #3b82f6;
    --accent-blue-deep: #1d4ed8;
    --accent-orange: #ff7b00;
    --accent-yellow: #f59e0b;
    --accent-purple: #a855f7;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Constants */
    --header-height: 110px;
    --max-width: 1280px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

p strong {
    color: var(--text-primary);
}

/* --- Cosmic Starfield & Glow Orbs Background --- */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 100px 150px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 200px 80px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 300px 250px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 450px 300px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 600px 120px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 800px 350px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 950px 200px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 1000px 1000px;
    opacity: 0.15;
    z-index: -3;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, rgba(59, 130, 246, 0.05) 70%, transparent 100%);
    top: -150px;
    left: -100px;
    animation: float-orb 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(245, 158, 11, 0.03) 70%, transparent 100%);
    bottom: -200px;
    right: -100px;
    animation: float-orb 25s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(168, 85, 247, 0.05) 70%, transparent 100%);
    top: 50%;
    left: 60%;
    animation: float-orb 18s infinite alternate ease-in-out;
}

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.1); }
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-3-2 { grid-template-columns: 1.5fr 1fr; }
}

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

.align-center {
    align-items: center;
}

.text-center { text-align: center; }
.margin-top-2 { margin-top: 2rem; }
.margin-top-3 { margin-top: 3rem; }

/* Text Glow utilities */
.text-glow-blue {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.text-glow-orange {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.4);
}
.text-glow-yellow {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.text-cyan { color: var(--accent-cyan); }
.text-orange { color: var(--accent-orange); }
.text-green { color: var(--accent-green); }
.text-purple { color: var(--accent-purple); }
.text-red { color: var(--accent-red); }
.text-blue { color: var(--accent-blue); }
.text-yellow { color: var(--accent-yellow); }

.font-outfit { font-family: var(--font-display); }

/* --- Glassmorphic Card Styling --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 20px 40px -15px rgba(0, 240, 255, 0.08);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

/* --- Section Formatting --- */
section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4.5rem;
}

.section-pretitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    display: inline-block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 1.5rem auto 0 auto;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 2px;
    margin: 1rem 0;
}

.accent-line.center {
    margin: 1rem auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #020617;
}

.btn-primary:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #00f0ff, #1d4ed8);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* --- Sticky Header / Navbar --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.15));
    transition: var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
}

.main-header.scrolled {
    height: 75px;
    background: rgba(2, 6, 23, 0.85);
}

.main-header.scrolled .logo-img {
    height: 52px;
}

.nav-menu ul {
    display: none; /* JavaScript and media query control */
    list-style: none;
    gap: 1.75rem;
}

@media (min-width: 992px) {
    .nav-menu ul {
        display: flex;
    }
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}

/* Mobile Nav Toggle Icon */
.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 110;
}

@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile Menu Panel */
.nav-menu {
    transition: var(--transition-normal);
}

@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        padding: 6rem 3rem;
        z-index: 105;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 2.25rem;
    }
    
    .nav-menu ul li a {
        font-size: 1.15rem;
    }
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: 48%;
    max-width: 750px;
    z-index: -2;
    pointer-events: none;
}

.hero-globe-img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(0 0 50px rgba(0, 240, 255, 0.15));
    animation: globe-pulse 3.5s infinite alternate ease-in-out;
}

@keyframes globe-pulse {
    0% {
        transform: scale(0.96);
        filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.15));
        opacity: 0.55;
    }
    100% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 85px rgba(0, 240, 255, 0.5));
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 75% 50%, transparent 20%, var(--bg-dark) 75%);
}

@media (max-width: 767px) {
    .hero-bg-wrapper {
        top: 40%;
        right: -30%;
        width: 150%;
        opacity: 0.4;
        transform: none;
    }
    .hero-overlay {
        background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-dark) 70%);
    }
}

.hero-content {
    max-width: 680px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--text-primary) 30%, rgba(248, 250, 252, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

@media (min-width: 768px) {
    .hero-title { font-size: 5.8rem; }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.38em;
    color: var(--accent-cyan);
    margin-top: 1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-orange));
    border-radius: 2px;
    margin: 2rem 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

.scroll-arrow {
    font-size: 1rem;
    animation: bounce 1.8s infinite ease-in-out;
    color: var(--accent-cyan);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --- The Problem Section --- */
.problem-section {
    background: radial-gradient(circle at 10% 50%, rgba(239, 68, 68, 0.03) 0%, transparent 50%);
}

.highlight-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 1.5rem 0;
    font-weight: 600;
}

.problem-glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.problem-quote-box {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.quote-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.3rem;
    color: var(--accent-cyan);
    opacity: 0.6;
}

.problem-quote-box h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
}

.problem-bullets {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.bullet-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.bullet-icon-wrapper.red {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.bullet-icon-wrapper.orange {
    background: rgba(255, 123, 0, 0.1);
    border: 1px solid rgba(255, 123, 0, 0.2);
    color: var(--accent-orange);
}

.bullet-icon-wrapper.yellow {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--accent-yellow);
}

.bullet-icon-wrapper.glow-blue {
    background: rgba(0, 240, 255, 0.15);
    border: 1.5px solid var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.logo-font {
    font-family: var(--font-display);
    font-weight: 800;
}

.bullet-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.highlight-bullet .bullet-text {
    color: var(--text-primary);
    font-size: 1rem;
}

.bullet-footer {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    margin-bottom: 0;
}

/* --- The Core Idea Section --- */
.core-idea-section {
    background: radial-gradient(circle at 90% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

.core-idea-interactive {
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.interactive-glow-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.7;
}

.core-idea-hero-box {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.core-statement {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .core-statement { font-size: 2.25rem; }
}

.core-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.idea-card {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

.idea-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    background: rgba(15, 23, 42, 0.85);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.idea-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.use-cases-box {
    margin-top: 3.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.use-cases-box h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.use-cases-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    max-width: 850px;
    margin: 0 auto;
}

.use-cases-pills span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.use-cases-pills span:hover {
    color: var(--text-primary);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.04);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* --- The Personal Lab Section --- */
.lab-space-showcase {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(3, 7, 18, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
}

.space-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.space-tagline {
    font-size: 1.15rem;
    color: var(--accent-yellow);
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.image-glow {
    position: relative;
}

.image-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.space-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.space-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.space-card p {
    flex-grow: 1;
}

.card-visual-element {
    margin-top: 2rem;
    width: 100%;
    min-height: 120px;
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-embedded-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.mock-folders {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.folder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.network-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.network-indicator .node {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.network-indicator .connector {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-yellow));
    position: relative;
}

.network-indicator .connector::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px #fff;
}

.observatory-glow-sphere {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    border: 1.5px dashed var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate-dashed 10s linear infinite;
}

@keyframes rotate-dashed {
    100% { transform: rotate(360deg); }
}

.eye-glow {
    font-size: 1.5rem;
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    animation: unrotate 10s linear infinite;
}

@keyframes unrotate {
    100% { transform: rotate(-360deg); }
}

/* --- The Core Unit: Experiments Section --- */
.experiments-section {
    background: radial-gradient(circle at 10% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
}

.highlight-lead {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.experiment-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.ex-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.ex-pill i {
    font-size: 1rem;
    color: var(--accent-cyan);
}

.ex-pill:hover {
    color: var(--text-primary);
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.04);
}

/* Branching Simulator Widget */
.experiments-widget {
    perspective: 1000px;
}

.widget-glass-card {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.widget-header {
    background: rgba(2, 6, 23, 0.5);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-dots {
    display: flex;
    gap: 6px;
}

.widget-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.widget-dots span:nth-child(1) { background-color: #ef4444; }
.widget-dots span:nth-child(2) { background-color: #eab308; }
.widget-dots span:nth-child(3) { background-color: #22c55e; }

.widget-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 1rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.widget-body {
    padding: 1.5rem;
}

.simulator-canvas {
    width: 100%;
    height: 250px;
    background: rgba(3, 7, 18, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.simulation-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.sim-node {
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    position: absolute;
    z-index: 5;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    min-width: 130px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition-normal);
    opacity: 0;
    transform: scale(0.8);
    animation: node-spawn 0.4s forwards ease-out;
}

@keyframes node-spawn {
    to { opacity: 1; transform: scale(1); }
}

.sim-node .node-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.sim-node .node-label {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-node.root-node {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    animation: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.sim-node.child-node {
    border-color: var(--accent-orange);
}

.sim-node.grandchild-node {
    border-color: var(--accent-yellow);
}

.simulator-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.simulator-logs {
    margin-top: 1.25rem;
    background: rgba(2, 6, 23, 0.8);
    border-radius: 8px;
    padding: 0.75rem;
    height: 85px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.03);
}

.log-entry {
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.log-entry.system { color: var(--accent-cyan); }
.log-entry.fork { color: var(--accent-orange); }

/* --- Thinking Has Multiple Modes Section --- */
.thinking-tabs-container {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.thinking-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(2, 6, 23, 0.4);
}

.tab-nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1.5rem 1rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-bottom: 2px solid transparent;
}

.tab-nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.02);
}

.tab-nav-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.04);
}

.thinking-tab-content {
    padding: 3.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: tab-fade 0.5s ease-out;
}

@keyframes tab-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.panel-list {
    list-style: none;
    margin-top: 1.5rem;
}

.panel-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.glowing-orb-visual {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(255,255,255,0.1);
}

.mode-main-icon {
    font-size: 3.5rem;
    z-index: 2;
}

.type-exploration {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(59, 130, 246, 0.05) 70%);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
}

.sparkles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sparkles-container i {
    position: absolute;
    font-size: 0.8rem;
    animation: sparkle-glow 2s infinite ease-in-out;
}

.spark-1 { top: 20%; left: 20%; animation-delay: 0.3s !important; }
.spark-2 { top: 70%; left: 80%; animation-delay: 0.8s !important; }
.spark-3 { top: 30%; right: 15%; animation-delay: 1.2s !important; }

@keyframes sparkle-glow {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.type-construction {
    background: radial-gradient(circle, rgba(255, 123, 0, 0.15) 0%, rgba(245, 158, 11, 0.05) 70%);
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 30px rgba(255, 123, 0, 0.25);
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.shape-square {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 1px dashed rgba(255, 123, 0, 0.3);
    top: 20px;
    left: 20px;
}

.type-translation {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(168, 85, 247, 0.05) 70%);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
}

.bridges-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bridges-lines span {
    position: absolute;
    height: 2px;
    background: rgba(34, 197, 94, 0.3);
}

.bridges-lines .line-1 { width: 140px; top: 50%; left: 20px; transform: rotate(45deg); }
.bridges-lines .line-2 { width: 140px; top: 50%; left: 20px; transform: rotate(-45deg); }

/* --- A Different Kind of Social Platform --- */
.social-platform-section {
    background: radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}

.platform-net-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.social-connections-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 2rem 0;
}

.social-pair {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    max-width: 450px;
}

.social-pair .role {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 42%;
}

.social-pair .role i {
    color: var(--accent-cyan);
}

.social-pair .connects {
    width: 16%;
    text-align: center;
    color: var(--accent-orange);
    font-size: 0.8rem;
    animation: flash 2s infinite ease-in-out;
}

@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.social-pair .role:last-child {
    text-align: right;
    justify-content: flex-end;
}

.social-pair .role:last-child i {
    color: var(--accent-orange);
}

.social-quote-box {
    border-left: 3px solid var(--accent-cyan);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.social-quote-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Forking & Commons Section --- */
.commons-side-card {
    height: 100%;
}

.card-pretitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-text-box {
    background: rgba(255, 123, 0, 0.05);
    border-left: 3px solid var(--accent-orange);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.commons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.common-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.common-item i {
    font-size: 1rem;
}

.common-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

/* --- A Network for Builders --- */
.builders-section {
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.02) 0%, transparent 60%);
    padding-bottom: 5rem;
}

.builders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    max-width: 1000px;
    margin: 0 auto;
}

.builder-pill {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: var(--transition-normal);
}

.builder-pill i {
    color: var(--accent-orange);
    font-size: 0.95rem;
}

.builder-pill:hover {
    color: #020617;
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
}

.builder-pill:hover i {
    color: #020617;
}

.builders-footer {
    margin-top: 3.5rem;
}

.builders-conclusion {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.builders-conclusion strong {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* --- Long-Term Vision Section --- */
.vision-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.vision-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(3, 7, 18, 0.7) 100%);
    padding: 4rem;
}

.vision-lead {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

.vision-points {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.vision-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.vision-point i {
    font-size: 1.15rem;
    color: var(--accent-cyan);
    margin-top: 0.25rem;
}

.vision-point span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.vision-quote-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.glow-logo-mark {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 6rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.12;
    position: absolute;
    z-index: 1;
}

.final-manifesto {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 500;
    max-width: 400px;
}

.highlight-cyan {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    font-size: 1.45rem;
    font-weight: 700;
    display: block;
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .vision-card {
        padding: 2.5rem;
    }
    .vision-quote-side {
        margin-top: 3rem;
        border-top: 1px solid var(--border-color);
        padding-top: 3rem;
    }
}

/* --- Join / Beta Access Section --- */
.join-section {
    background: radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
    padding-bottom: 10rem;
}

.join-form-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.join-subtitle {
    margin-bottom: 3rem;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.form-row {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-normal);
    pointer-events: none;
    background: transparent;
}

/* Float Label Animation */
.form-group input:focus,
.form-group input:not(:placeholder-shown) {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    outline: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -0.6rem;
    left: 0.85rem;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    padding: 0 0.4rem;
    background: #0b1120;
    border-radius: 4px;
}

.form-group.full-width {
    grid-column: span 1;
}

.form-message {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition-normal);
}

.form-message.success {
    color: var(--accent-green);
    opacity: 1;
}

.form-message.error {
    color: var(--accent-red);
    opacity: 1;
}

/* --- Main Footer --- */
.main-footer {
    background: #02040a;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-container {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-left p {
    margin-top: 1.25rem;
    max-width: 380px;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links ul li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Reveal Animations on Scroll (via JS) --- */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up-load 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title.animate-on-load { animation-delay: 0.1s; }
.hero-tagline.animate-on-load { animation-delay: 0.2s; }
.hero-divider.animate-on-load { animation-delay: 0.3s; }
.hero-subtitle.animate-on-load { animation-delay: 0.4s; }
.hero-intro.animate-on-load { animation-delay: 0.5s; }
.hero-buttons.animate-on-load { animation-delay: 0.6s; }

@keyframes fade-in-up-load {
    to { opacity: 1; transform: translateY(0); }
}

/* Intersection Observer Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.animate-in.fade-in-up { opacity: 1; transform: translateY(0); }
.animate-in.fade-in-left { opacity: 1; transform: translateX(0); }
.animate-in.fade-in-right { opacity: 1; transform: translateX(0); }
