/**
 * misenous Frontend Styles
 * Shared styles for welcome page and documentation
 */

/* ==========================================================================
   Reset & Variables
   ========================================================================== */

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

:root {
    --color-bg: #0a0a0f;
    --color-bg-subtle: #12121a;
    --color-surface: #1a1a24;
    --color-text: #e8e6e3;
    --color-text-muted: #8a8a8a;
    --color-accent: #7c6aff;
    --color-accent-glow: rgba(124, 106, 255, 0.4);
    --color-gold: #d4a574;
    --color-pink: #ff6b9d;
    --color-chaos: linear-gradient(135deg, #7c6aff 0%, #d4a574 50%, #ff6b9d 100%);
}

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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   Animated Background
   ========================================================================== */

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 106, 255, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(212, 165, 116, 0.08), transparent),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(255, 107, 157, 0.06), transparent);
}

/* Floating particles (welcome page) */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -2s; }
.particle:nth-child(3) { left: 35%; top: 40%; animation-delay: -4s; }
.particle:nth-child(4) { left: 50%; top: 60%; animation-delay: -6s; }
.particle:nth-child(5) { left: 65%; top: 25%; animation-delay: -8s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: -10s; }
.particle:nth-child(7) { left: 90%; top: 45%; animation-delay: -12s; }
.particle:nth-child(8) { left: 15%; top: 55%; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-30px) translateX(15px); opacity: 0.5; }
    50% { transform: translateY(-15px) translateX(-10px); opacity: 0.3; }
    75% { transform: translateY(-40px) translateX(5px); opacity: 0.4; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--color-bg), transparent);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: var(--color-chaos);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-text-muted);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-link.primary {
    background: var(--color-surface);
    border: 1px solid rgba(124, 106, 255, 0.3);
    color: var(--color-text);
}

.nav-link.primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Welcome Page - Main Content
   ========================================================================== */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   Welcome Page - Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-width: 100vw;
    padding: 6rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

/* Hero video background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.7);
    z-index: -1;
}

/* Hide video for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

.hero {
    max-width: 800px;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero-title em {
    font-style: italic;
    background: var(--color-chaos);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #b8b8b8;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.pronunciation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.45s forwards;
}

.pronunciation span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--color-gold);
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

/* ==========================================================================
   Welcome Page - Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--color-accent-glow);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    background: rgba(124, 106, 255, 0.1);
}

/* ==========================================================================
   Welcome Page - Sections
   ========================================================================== */

section {
    width: 100%;
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ==========================================================================
   Welcome Page - Features Section
   ========================================================================== */

.features-section {
    background: linear-gradient(180deg, transparent, var(--color-bg-subtle) 20%, var(--color-bg-subtle) 80%, transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(124, 106, 255, 0.3);
    transform: translateY(-4px);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 106, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 1.5;
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Welcome Page - Audience Section
   ========================================================================== */

.audience-section {
    text-align: center;
}

.audience-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.audience-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
}

.audience-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 2;
}

/* ==========================================================================
   Welcome Page - Roadmap Section
   ========================================================================== */

.roadmap-section {
    background: linear-gradient(180deg, transparent, var(--color-bg-subtle) 20%, var(--color-bg-subtle) 80%, transparent);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.roadmap-item {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.roadmap-item.completed {
    border-color: rgba(34, 197, 94, 0.3);
}

.roadmap-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 106, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.roadmap-item.completed .roadmap-icon {
    background: rgba(34, 197, 94, 0.1);
}

.roadmap-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 2;
}

.roadmap-item.completed .roadmap-icon svg {
    stroke: #22c55e;
}

.roadmap-content h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.roadmap-content p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.roadmap-status {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: inline-block;
}

.roadmap-item.completed .roadmap-status {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.roadmap-item:not(.completed) .roadmap-status {
    background: rgba(124, 106, 255, 0.1);
    color: var(--color-accent);
}

/* ==========================================================================
   Welcome Page - Privacy Section
   ========================================================================== */

.privacy-section {
    text-align: center;
}

.privacy-promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.privacy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
}

.privacy-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.privacy-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 1.5;
}

.privacy-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

.privacy-item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Welcome Page - Philosophy Section
   ========================================================================== */

.philosophy {
    padding: 4rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.philosophy-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.8;
    position: relative;
    padding: 0 2rem;
}

.philosophy-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.5;
    font-family: 'Cormorant Garamond', serif;
}

.philosophy-source {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
}

.philosophy-source strong {
    color: var(--color-gold);
    font-weight: 500;
}

/* ==========================================================================
   Welcome Page - CTA Section
   ========================================================================== */

.cta-section {
    text-align: center;
    padding: 6rem 2rem 8rem;
}

.cta-section .section-title {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

/* ==========================================================================
   Documentation - Layout
   ========================================================================== */

.docs-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 5rem;
}

/* Documentation - Sidebar */
.docs-sidebar {
    width: 280px;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 5rem;
    height: calc(100vh - 5rem);
    overflow-y: auto;
}

.docs-sidebar h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.docs-nav a {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.docs-nav a:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.docs-nav a.active {
    color: var(--color-accent);
    background: rgba(124, 106, 255, 0.1);
}

/* Documentation - Main content */
.docs-content {
    flex: 1;
    max-width: 900px;
    padding: 2rem 3rem 4rem;
}

.docs-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.docs-content .lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.docs-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.docs-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.docs-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: var(--color-surface);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    color: var(--color-gold);
}

.docs-content a {
    color: var(--color-accent);
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

/* Documentation - Video container */
.video-container {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Documentation - Info boxes */
.info-box {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box.tip {
    border-color: rgba(124, 106, 255, 0.3);
    background: rgba(124, 106, 255, 0.05);
}

.info-box.warning {
    border-color: rgba(212, 165, 116, 0.3);
    background: rgba(212, 165, 116, 0.05);
}

.info-box h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-box.tip h4 {
    color: var(--color-accent);
}

.info-box.warning h4 {
    color: var(--color-gold);
}

/* Documentation - Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.video-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: rgba(124, 106, 255, 0.3);
    transform: translateY(-4px);
}

.video-card img,
.video-card video {
    width: 100%;
    height: auto;
    display: block;
}

.video-card-content {
    padding: 1rem 1.25rem;
}

.video-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.video-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 900px) {
    .docs-sidebar {
        display: none;
    }

    .docs-content {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-section {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

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

    .philosophy {
        padding: 2rem 1rem;
    }

    .philosophy-quote {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .docs-content h1 {
        font-size: 2rem;
    }
}
