/* ───────────────────────────────────────────────
   FeelinIt — v3 Immersive Redesign
   Neural particle aesthetic, no fluff
   ─────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
    --bg:         #030612;
    --bg-card:    rgba(8, 10, 26, 0.55);
    --border:     rgba(120, 80, 200, 0.1);
    --border-active: rgba(160, 100, 240, 0.35);
    --text:       #8e95b4;
    --text-dim:   #555c78;
    --text-bright:#eaecf4;
    --accent:     #ae7eff;
    --accent-soft: rgba(174, 126, 255, 0.1);
    --accent-glow: rgba(174, 126, 255, 0.25);
    --pink:       #d946ef;
    --cyan:       #67e8f6;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: white; }

::selection { background: var(--accent); color: white; }

/* ── Canvas ───────────────────────────────────── */

#flow-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#neuron-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.page-content {
    position: relative;
    z-index: 2;
}

/* ── Navigation ───────────────────────────────── */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 48px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: all 0.5s;
}

.nav.scrolled {
    background: rgba(2, 1, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.5px;
}

.nav-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.25s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-bright);
}

/* ── Hero ─────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -4px;
    line-height: 0.95;
    margin-bottom: 24px;
    opacity: 0;
    animation: enter 1s 0.3s forwards;
}

.glow-text {
    background: linear-gradient(135deg, var(--accent), var(--pink), var(--cyan));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    animation: enter 1s 0.6s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
    transition: all 0.3s;
    opacity: 0;
    animation: enter 1s 0.8s forwards;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(139, 92, 246, 0.5);
    color: white;
}

@keyframes enter {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── App Badge ────────────────────────────────── */

.app-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    opacity: 0;
    animation: enter 1s 0.1s forwards;
}

.app-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.app-badge-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.3px;
}

/* ── Features — Dynamic Text Rotator ─────────── */

.features {
    padding: 40px 24px 120px;
    position: relative;
}

.features-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.features-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 48px;
    opacity: 0;
    animation: enter 1s 1s forwards;
}

.feature-showcase {
    position: relative;
    min-height: 200px;
}

/* Feature titles — stacked, only active shows */
.feature-title-rotator {
    position: relative;
    height: 70px;
    margin-bottom: 20px;
    overflow: hidden;
}

.feature-title {
    display: block;
    position: absolute;
    inset: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -2px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.feature-title.active {
    opacity: 1;
    transform: translateY(0);
}

/* Feature descriptions */
.feature-desc-container {
    position: relative;
    min-height: 80px;
    margin-bottom: 36px;
}

.feature-desc {
    position: absolute;
    inset: 0;
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.08s;
    pointer-events: none;
}

.feature-desc.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Clickable indicators */
.feature-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(160, 100, 240, 0.2);
    cursor: pointer;
    transition: all 0.4s;
    padding: 0;
}

.indicator:hover {
    background: rgba(160, 100, 240, 0.5);
    transform: scale(1.3);
}

.indicator.active {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.2);
}

/* ── CTA ──────────────────────────────────────── */

.cta {
    text-align: center;
    padding: 60px 24px 120px;
}

.cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.cta-sub {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 32px;
}

/* ── Footer ───────────────────────────────────── */

.footer {
    padding: 40px 48px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    font-size: 12px;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}
.footer-links a:hover { color: var(--text-bright); }

/* ── Legal Pages ──────────────────────────────── */

.legal-hero {
    padding: 130px 0 50px;
    text-align: center;
}

.legal-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -1px;
}

.legal-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-top: 8px;
}

.legal-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 44px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content p,
.legal-content li {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.7;
}

.legal-content ul { padding-left: 20px; margin-bottom: 14px; }

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin: 16px 0 24px;
    backdrop-filter: blur(12px);
}
.legal-card p { margin-bottom: 10px; }
.legal-card p:last-child { margin-bottom: 0; }

.legal-warning {
    background: rgba(217, 70, 239, 0.04);
    border: 1px solid rgba(217, 70, 239, 0.12);
    border-radius: 14px;
    padding: 24px;
    margin: 16px 0 24px;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .hero h1 { letter-spacing: -2px; }
    .feature-title-rotator { height: 50px; }
    .feature-title { font-size: clamp(26px, 6vw, 40px); letter-spacing: -1px; }
    .feature-desc-container { min-height: 100px; }
    .footer { flex-direction: column; text-align: center; padding: 32px 20px; }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .hero { padding: 0 16px; }
    .feature-title-rotator { height: 40px; }
}