/* ============================================
   turingtest.club — Holographic Minimal
   ============================================ */

:root {
    --bg-deep: #080810;
    --surface: #12122A;
    --primary: #7B61FF;
    --secondary: #00D4FF;
    --accent-pink: #FF61DC;
    --vintage-gold: #D4A96A;
    --white: #F0F0F5;
    --font-display: 'Fraunces', serif;
    --font-body: 'Epilogue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Typography ---- */

.section-heading {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' var(--opsz, 48);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.body-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    color: rgba(240, 240, 245, 0.8);
    line-height: 1.8;
}

.accent-cyan { color: var(--secondary); }
.accent-pink { color: var(--accent-pink); }
.text-gold { color: var(--vintage-gold); }

/* ---- Perspective & Layered Depth ---- */

.perspective-container {
    perspective: 1200px;
    position: relative;
    overflow: hidden;
}

/* ---- Holographic Surface ---- */

.holo-surface,
.holo-panel {
    background: conic-gradient(
        from var(--holo-angle, 0deg),
        var(--primary),
        var(--secondary),
        var(--accent-pink),
        var(--vintage-gold),
        var(--primary)
    );
    background-size: 100% 100%;
}

/* ---- Hero Section ---- */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.holo-panel--back {
    position: absolute;
    inset: -20%;
    opacity: 0.15;
    filter: blur(80px);
    animation: holoRotate 12s linear infinite;
    z-index: 0;
}

.holo-panel--mid {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    opacity: 0.08;
    filter: blur(40px);
    animation: holoRotate 8s linear infinite reverse;
    border-radius: 24px;
    z-index: 1;
}

.holo-panel--front {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144;
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-title .accent-cyan {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .accent-pink {
    background: linear-gradient(135deg, var(--accent-pink), var(--vintage-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(240, 240, 245, 0.6);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ---- CTA Pulse Button ---- */

.cta-pulse {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: var(--white);
    cursor: pointer;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    transition: transform 0.2s;
}

.cta-pulse:hover {
    transform: scale(1.05);
}

.cta-large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(123, 97, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(123, 97, 255, 0.2);
        transform: scale(1.02);
    }
}

@keyframes holoRotate {
    from { --holo-angle: 0deg; }
    to { --holo-angle: 360deg; }
}

@property --holo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ---- About Section ---- */

#about {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
}

.panel-surface {
    background: var(--surface);
    border: 1px solid rgba(123, 97, 255, 0.2);
    border-radius: 20px;
    padding: 4rem;
    max-width: 700px;
    position: relative;
    transform: translateZ(0);
    transition: transform 0.4s;
}

.panel-surface::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: conic-gradient(from var(--holo-angle, 0deg), var(--primary), var(--secondary), var(--accent-pink), var(--primary));
    z-index: -1;
    opacity: 0.3;
    animation: holoRotate 10s linear infinite;
    filter: blur(1px);
}

/* ---- Generative Art Section ---- */

#generative {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gen-art-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(123, 97, 255, 0.3), transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 212, 255, 0.3), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 97, 220, 0.2), transparent 50%);
    animation: genShift 15s ease-in-out infinite alternate;
}

.gen-art-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg 2deg,
            rgba(123, 97, 255, 0.03) 2deg 4deg
        );
    animation: genSpin 60s linear infinite;
}

.panel-floating {
    position: relative;
    z-index: 2;
    background: rgba(8, 8, 16, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 3rem;
    max-width: 550px;
    backdrop-filter: blur(20px);
}

@keyframes genShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg); }
}

@keyframes genSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- Vintage Typewriter Section ---- */

#vintage {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.typewriter-box {
    position: relative;
    max-width: 650px;
    width: 100%;
}

.typewriter-border {
    position: absolute;
    inset: 0;
    border: 2px solid var(--vintage-gold);
    border-radius: 4px;
    opacity: 0.5;
}

.typewriter-border::before,
.typewriter-border::after {
    content: '✦';
    position: absolute;
    color: var(--vintage-gold);
    font-size: 0.8rem;
}

.typewriter-border::before {
    top: -0.5rem;
    left: 1rem;
    background: var(--bg-deep);
    padding: 0 0.5rem;
}

.typewriter-border::after {
    bottom: -0.5rem;
    right: 1rem;
    background: var(--bg-deep);
    padding: 0 0.5rem;
}

.typewriter-content {
    padding: 2.5rem 3rem;
}

.typewriter-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--vintage-gold);
    min-height: 6em;
}

.typewriter-cursor {
    color: var(--vintage-gold);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ---- Features Section ---- */

#features {
    padding: 6rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border: 1px solid rgba(123, 97, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 97, 255, 0.5);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 24;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(240, 240, 245, 0.6);
    line-height: 1.6;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg-deep);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ---- Join Section ---- */

#join {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
}

.join-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ---- Footer ---- */

#footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(123, 97, 255, 0.1);
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(240, 240, 245, 0.4);
}

/* ---- Scroll Reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
