/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --warm-cream: #ffecd2;
    --steel-blue: #b8c8d8;
    --deep-navy: #1a2a3d;
    --abyss: #060e1a;
    --midnight: #0c1a2e;
    --teal-neon: #4ae8e0;
    --coral: #ff6b4a;
    --coral-light: #ff8f7a;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--abyss);
    color: var(--warm-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
.hero-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warm-cream);
}

.hero-title-accent {
    color: var(--teal-neon);
    text-shadow: 0 0 40px rgba(74, 232, 224, 0.3);
}

.section-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warm-cream);
    margin-bottom: 3rem;
}

.card-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal-neon);
    margin-bottom: 0.75rem;
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--steel-blue);
}

.mono-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: var(--steel-blue);
    max-width: 560px;
    margin-top: 1.5rem;
}

/* ===== PANELS (Full-viewport sections) ===== */
.panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-bg,
.panel-mid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.panel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
}

/* ===== PARALLAX BACKGROUNDS ===== */
.panel-hero .panel-bg {
    background: linear-gradient(160deg, var(--abyss) 0%, var(--midnight) 40%, var(--deep-navy) 100%);
}

.panel-hero .panel-bg::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(ellipse, rgba(74, 232, 224, 0.08) 0%, transparent 70%);
}

.panel-hero .panel-bg::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(ellipse, rgba(255, 107, 74, 0.06) 0%, transparent 70%);
}

.panel-philosophy .panel-bg {
    background: linear-gradient(180deg, var(--midnight) 0%, var(--abyss) 100%);
}

.panel-explore .panel-bg {
    background: linear-gradient(200deg, var(--deep-navy) 0%, var(--abyss) 60%, var(--midnight) 100%);
}

.panel-stats .panel-bg {
    background: linear-gradient(160deg, var(--abyss) 0%, var(--deep-navy) 100%);
}

.panel-community .panel-bg {
    background: linear-gradient(180deg, var(--deep-navy) 0%, var(--midnight) 100%);
}

.panel-footer .panel-bg {
    background: linear-gradient(180deg, var(--midnight) 0%, var(--abyss) 100%);
}

/* Grid overlay for hero */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 232, 224, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 232, 224, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.mid-svg {
    width: 100%;
    height: 100%;
}

/* ===== FLOATING GEO SHAPES ===== */
.geo-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.07;
    will-change: transform;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: var(--teal-neon);
    clip-path: polygon(50% 0%, 100% 80%, 0% 80%);
}

.shape-2 {
    top: 30%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: var(--coral);
    clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
}

.shape-3 {
    top: 60%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: var(--warm-cream);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-4 {
    top: 75%;
    right: 20%;
    width: 100px;
    height: 100px;
    background: var(--teal-neon);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.shape-5 {
    top: 15%;
    right: 30%;
    width: 50px;
    height: 50px;
    background: var(--coral);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.shape-6 {
    top: 85%;
    left: 40%;
    width: 70px;
    height: 70px;
    background: var(--warm-cream);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* ===== SLIDE-REVEAL ANIMATION ===== */
.slide-reveal {
    overflow: hidden;
}

.slide-reveal > * {
    transform: translateX(-105%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-reveal[data-reveal="right"] > * {
    transform: translateX(105%);
}

.slide-reveal[data-reveal="up"] > * {
    transform: translateY(105%);
}

.slide-reveal.revealed > * {
    transform: translate(0, 0);
}

/* ===== HERO ===== */
.panel-hero .panel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 6rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.btn-primary {
    display: inline-block;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--abyss);
    background: var(--teal-neon);
    padding: 1rem 2.5rem;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background: var(--coral);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1.25rem 3.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: scrollBounce 2s infinite;
}

.scroll-chevron {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--teal-neon);
    border-bottom: 2px solid var(--teal-neon);
    transform: rotate(45deg);
    opacity: 0.4;
}

.scroll-chevron:nth-child(1) { opacity: 0.2; }
.scroll-chevron:nth-child(2) { opacity: 0.4; }
.scroll-chevron:nth-child(3) { opacity: 0.6; }

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

/* ===== PHILOSOPHY CARDS ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.philosophy-card {
    background: rgba(26, 42, 61, 0.6);
    border: 1px solid rgba(74, 232, 224, 0.1);
    padding: 2.5rem 2rem;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    transition: border-color 0.3s, transform 0.3s;
}

.philosophy-card:hover {
    border-color: rgba(74, 232, 224, 0.3);
    transform: translateY(-4px);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, var(--coral), transparent);
}

.philosophy-card .mono-label {
    display: block;
    margin-top: 1.5rem;
}

/* ===== EXPLORE PATHS ===== */
.paths-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.path-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(26, 42, 61, 0.4);
    border: 1px solid rgba(184, 200, 216, 0.08);
    padding: 2rem;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: border-color 0.3s, background 0.3s;
}

.path-item:hover {
    border-color: rgba(74, 232, 224, 0.2);
    background: rgba(26, 42, 61, 0.6);
}

.path-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.path-icon svg {
    width: 100%;
    height: 100%;
}

.path-info {
    flex: 1;
}

.path-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--warm-cream);
    margin-bottom: 0.4rem;
}

.path-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--steel-blue);
    margin-bottom: 0.75rem;
}

.path-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.path-bar {
    flex: 1;
    height: 3px;
    background: rgba(184, 200, 216, 0.15);
    max-width: 200px;
}

.path-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--teal-neon), var(--coral));
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.stat-block {
    position: relative;
}

.stat-number {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--teal-neon);
    text-shadow: 0 0 30px rgba(74, 232, 224, 0.2);
    display: block;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--steel-blue);
    margin-top: 0.5rem;
    display: block;
}

.stat-line {
    width: 40px;
    height: 2px;
    background: var(--coral);
    margin: 1rem auto 0;
}

/* ===== COMMUNITY ===== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.community-card {
    background: rgba(12, 26, 46, 0.6);
    border: 1px solid rgba(255, 107, 74, 0.1);
    padding: 2.5rem 2rem;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: border-color 0.3s, transform 0.3s;
}

.community-card:hover {
    border-color: rgba(255, 107, 74, 0.3);
    transform: translateY(-4px);
}

.community-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.community-icon svg {
    width: 100%;
    height: 100%;
}

/* ===== FOOTER ===== */
.panel-footer .panel-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.footer-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warm-cream);
}

.accent-teal {
    color: var(--teal-neon);
    text-shadow: 0 0 40px rgba(74, 232, 224, 0.3);
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--steel-blue);
    margin: 1.5rem 0 2.5rem;
    max-width: 480px;
}

.footer-bottom {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom .mono-label {
    color: rgba(184, 200, 216, 0.4);
}

/* ===== HEX GRID (explore panel mid) ===== */
.hex-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(74, 232, 224, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 74, 0.03) 0%, transparent 50%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .panel-content {
        padding: 3rem 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .path-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }

    .geo-shape {
        display: none;
    }
}
