/* talegrapher.com - Avant-garde Futurist Timeline */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    position: relative;
}

/* Noise Canvas Overlay */
#noise-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.06;
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.aurora-layer-1 {
    top: -60%;
    left: -30%;
    background: radial-gradient(ellipse at center, #7b2ff7 0%, transparent 70%);
    animation: auroraFloat1 12s ease-in-out infinite;
}

.aurora-layer-2 {
    top: -40%;
    right: -50%;
    background: radial-gradient(ellipse at center, #2ff7a7 0%, transparent 70%);
    animation: auroraFloat2 15s ease-in-out infinite;
}

.aurora-layer-3 {
    bottom: -70%;
    left: -20%;
    background: radial-gradient(ellipse at center, #4a90d9 0%, transparent 70%);
    animation: auroraFloat3 18s ease-in-out infinite;
}

@keyframes auroraFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 8%) scale(1.1); }
    66% { transform: translate(-3%, -5%) scale(0.95); }
}

@keyframes auroraFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-8%, 3%) scale(1.05); }
    66% { transform: translate(4%, -6%) scale(1.1); }
}

@keyframes auroraFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6%, -4%) scale(1.08); }
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

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

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8b84b 50%, #4a90d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.15); }
}

.hero-subtitle {
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #4a90d9;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid #e8b84b;
    color: #e8b84b;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #e8b84b;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: #1a1a2e;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-large {
    padding: 1.2rem 3.5rem;
    font-size: 1rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(10px); opacity: 1; }
}

/* Stats Section */
.stats-section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(26,26,46,0.95) 20%, rgba(26,26,46,0.95) 80%, transparent 100%);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    display: block;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #e8b84b;
    line-height: 1;
    margin-bottom: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6c757d;
}

/* Section Heading */
.section-heading {
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 5rem;
    color: #f5f0e8;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e8b84b;
    margin: 1.5rem auto 0;
}

/* Timeline Section */
.timeline-section {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, #4a90d9 10%, #4a90d9 90%, transparent 100%);
    transform: translateX(-50%);
}

.timeline-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-node-left {
    flex-direction: row-reverse;
}

.timeline-node-left .node-content {
    text-align: right;
    padding-right: 4rem;
    padding-left: 0;
    margin-right: auto;
    width: calc(50% - 30px);
}

.timeline-node-right .node-content {
    text-align: left;
    padding-left: 4rem;
    padding-right: 0;
    margin-left: auto;
    width: calc(50% - 30px);
}

.node-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.node-dot {
    width: 20px;
    height: 20px;
    background: #1a1a2e;
    border: 3px solid #e8b84b;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.timeline-node.visible .node-dot {
    background: #e8b84b;
    box-shadow: 0 0 20px rgba(232, 184, 75, 0.5);
}

.node-aurora {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,47,247,0.3) 0%, rgba(47,247,167,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.timeline-node.visible .node-aurora {
    opacity: 1;
    animation: nodeAuroraPulse 3s ease-in-out infinite;
}

@keyframes nodeAuroraPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.node-year {
    display: inline-block;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #4a90d9;
    margin-bottom: 0.5rem;
}

.node-title {
    font-weight: 900;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: #f5f0e8;
    line-height: 1.1;
}

.node-description {
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6c757d;
}

/* Features Section */
.features-section {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(26,26,46,0.98) 15%, rgba(26,26,46,0.98) 85%, transparent 100%);
}

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

.feature-card {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.08);
    padding: 3rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4a90d9, #e8b84b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    background: rgba(245, 240, 232, 0.06);
    border-color: rgba(74, 144, 217, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-title {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #f5f0e8;
}

.feature-desc {
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6c757d;
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 10rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-aurora .aurora-layer-1 {
    top: -30%;
    left: 10%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(123,47,247,0.2) 0%, transparent 60%);
    animation: auroraFloat1 10s ease-in-out infinite;
}

.cta-aurora .aurora-layer-2 {
    top: -20%;
    right: 0;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(47,247,167,0.15) 0%, transparent 60%);
    animation: auroraFloat2 13s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: #f5f0e8;
}

.cta-text {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    text-align: center;
}

.footer-brand {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: #f5f0e8;
    margin-bottom: 0.75rem;
}

.footer-copy {
    font-weight: 300;
    font-size: 0.8rem;
    color: #6c757d;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .node-marker {
        left: 20px;
    }

    .timeline-node-left,
    .timeline-node-right {
        flex-direction: row;
    }

    .timeline-node-left .node-content,
    .timeline-node-right .node-content {
        text-align: left;
        padding-left: 4rem;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 2rem;
    }
}
