/* ============================================================
   TEDKOLP — styles.css
   ============================================================ */

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

:root {
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --transition-theme: 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    --easing: cubic-bezier(0.4, 0, 0.2, 1);

    --accent:      #7B68EE;
    --accent-glow: rgba(123,104,238,0.35);

    --bg-page:  #06080f;
    --bg-card:  rgba(255,255,255,0.04);
    --border:   rgba(255,255,255,0.07);
    --text-dim: rgba(255,255,255,0.38);
    --text-mid: rgba(255,255,255,0.62);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background layers */
.bg-layer {
    position: absolute;
    inset: 0;
    transition: opacity var(--transition-theme);
    pointer-events: none;
}
#bg-layer-a {
    /* Default: storm theme on load */
    background:
        radial-gradient(ellipse 60% 70% at 20% 30%, rgba(20,10,80,0.6) 0%, transparent 65%),
        radial-gradient(ellipse 120% 100% at 50% -10%, #080830 0%, #03031a 55%, #010110 100%);
    opacity: 1;
    z-index: 0;
}
#bg-layer-b { opacity: 0; z-index: 0; }

/* Particle canvas */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: normal;
}

/* Grid */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    z-index: 3;
    pointer-events: none;
}

/* Gradient overlay */
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1)  0%,
        transparent      25%,
        transparent      60%,
        rgba(0,0,0,0.75) 100%
    );
    z-index: 4;
    pointer-events: none;
}

/* Lightning flash */
.flash-overlay {
    position: absolute;
    inset: 0;
    background: rgba(130,110,255,0.12);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.05s ease;
}
.flash-overlay.active {
    opacity: 1;
    transition: opacity 0s;
}

/* Header content wrapper */
.header-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.22em;
    color: #fff;
    user-select: none;
}

.logo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
    flex-shrink: 0;
    animation: pulse-dot 2.5s ease-in-out infinite;
    transition: background var(--transition-theme), box-shadow var(--transition-theme);
}
.logo-dot.small { width: 6px; height: 6px; }

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0   var(--accent-glow); }
    60%  { box-shadow: 0 0 0 8px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0   rgba(0,0,0,0); }
}

/* ============================================================
   HERO WORDMARK — centered
   ============================================================ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 4rem;
    gap: 1.25rem;
}

.hero-wordmark {
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 60px var(--accent-glow);
    transition: text-shadow var(--transition-theme);
    user-select: none;
}

.hero-rule {
    width: 60px;
    height: 1px;
    background: var(--accent);
    transition: background var(--transition-theme);
    opacity: 0.7;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.5s ease;
}

.hero-event-title {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.92);
    text-align: center;
    max-width: 700px;
    transition: color 0.5s ease;
}

.hero-event-body {
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-mid);
    text-align: center;
    max-width: 620px;
    transition: color 0.5s ease;
}

.hero-event-title:empty,
.hero-event-body:empty { display: none; }

/* ============================================================
   SCROLL CUE
   ============================================================ */
.scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    animation: cue-bob 2.2s ease-in-out infinite;
    transition: color 0.3s ease;
}
.scroll-cue:hover { color: rgba(255,255,255,0.6); }

@keyframes cue-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    55%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
    background: var(--bg-page);
}

.section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Section label */
.section-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: color var(--transition-theme);
}

/* Section title */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1.25rem;
}

/* Section body text */
.section-body {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 620px;
    font-weight: 300;
}

/* ---- Features ---- */
.section-features { background: #080d18; }

.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    transition: background 0.25s var(--easing), border-color 0.25s var(--easing), transform 0.25s var(--easing);
}
.feature-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.13);
    transform: translateY(-3px);
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 1.25rem;
    transition: color var(--transition-theme);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.6rem;
}

.feature-body {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.7;
    font-weight: 300;
}

/* ---- Statement ---- */
.section-statement {
    background: var(--bg-page);
    text-align: center;
}

.statement {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 300;
    line-height: 1.45;
    color: rgba(255,255,255,0.8);
    max-width: 820px;
    margin: 0 auto;
    letter-spacing: -0.01em;
    position: relative;
    padding: 0 1rem;
}
.statement::before {
    content: '\201C';
    position: absolute;
    top: -0.4em;
    left: -0.1em;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    font-family: Georgia, serif;
    transition: color var(--transition-theme);
}

/* ---- CTA ---- */
.section-cta { background: #080d18; }

.section-cta-inner { text-align: center; }
.section-cta-inner .section-body { margin: 0 auto 2.5rem; }

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.25s var(--easing);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transition: background var(--transition-theme), border-color var(--transition-theme),
                box-shadow var(--transition-theme), opacity 0.2s ease;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #040608;
    border-top: 1px solid var(--border);
    padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
}
.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.28);
}
.footer-text {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .header        { height: 50vh; min-height: 300px; }
    .hero-wordmark { letter-spacing: 0.06em; }
    .cta-buttons   { flex-direction: column; align-items: center; }
}
