/* Hypnoelp Website Styles
   Version: 1.0
   Based on Flutter App Theme
*/

/* ============================================
   CSS VARIABLES (from Flutter theme)
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #7B1FA2;
    --primary-dark: #4A148C;
    --accent: #CE93D8;
    --deep-purple: #221325;
    --medium-purple: #6b3c8a;
    
    /* Backgrounds */
    --bg-dark: #121220;
    --bg-light: #2C2C3E;
    --bg-card: rgba(44, 44, 62, 0.8);
    
    /* Text */
    --text-primary: #F5F5F5;
    --text-secondary: #D0D0D0;
    --text-muted: #9E9E9E;
    
    /* Status Colors */
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
    
    /* Gradients */
    --gradient-main: linear-gradient(160deg, #221325 0%, #3a2350 40%, #6b3c8a 70%, #d4899a 90%, #e8b4a8 100%);
    --gradient-card: linear-gradient(135deg, #4A148C, #7B1FA2);
    --gradient-accent: linear-gradient(135deg, #7B1FA2, #CE93D8);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 15px rgba(34, 19, 37, 0.3);
    --shadow-lg: 0 8px 30px rgba(107, 60, 138, 0.4);
    --shadow-glow: 0 0 20px rgba(123, 31, 162, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-main);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

strong, b {
    font-weight: 600;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--compact {
    padding: var(--space-xl) 0;
}

/* ============================================
   FLOATING DOTS BACKGROUND
   ============================================ */
.dots-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.dot {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite, shimmer 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(5px); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-normal);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav__logo img {
    height: 40px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav__link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
    color: var(--accent);
}

.nav__cta {
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
}

@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }
    
    .nav__links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(18, 18, 32, 0.98);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .nav__links--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero__logo {
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn--primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--deep-purple);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--deep-purple);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--accent {
    background: var(--gradient-accent);
    color: var(--text-primary);
}

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

.btn--large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

.btn--small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
}

.btn--block {
    width: 100%;
}

/* Store buttons */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 300px;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.95);
    color: var(--deep-purple);
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--deep-purple);
}

.store-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-btn__text small {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.store-btn__text span {
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: rgba(206, 147, 216, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.3), rgba(123, 31, 162, 0.2));
}

/* Course cards */
.course-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
}

.course-card__icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
}

.course-card__title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.course-card__description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.course-card__meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.course-card__price {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-accent);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
}

.course-card__price--free {
    background: linear-gradient(135deg, #4CAF50, #81C784);
}

/* ============================================
   PILLS / TAGS
   ============================================ */
.pill {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: rgba(34, 19, 37, 0.65);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.pill--accent {
    background: var(--gradient-accent);
    border: none;
}

.pills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

/* ============================================
   COURSE GRID
   ============================================ */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    padding: var(--space-xl);
    text-align: center;
}

.pricing-card__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.pricing-card__price {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: var(--space-xs);
}

.pricing-card__period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: var(--space-lg);
    text-align: left;
}

.pricing-card__features li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.pricing-card__features li::before {
    content: "✓ ";
    color: var(--success);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-lg) 0;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item__question::after {
    content: "+";
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.faq-item--open .faq-item__question::after {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item--open .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer p {
    padding-bottom: var(--space-lg);
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
    position: relative;
    z-index: 1;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto var(--space-xl);
}

.footer__section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
}

.legal-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-xl);
}

.legal-content h1 {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.legal-content .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: var(--space-xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(206, 147, 216, 0.3);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: var(--space-lg);
    color: var(--accent);
}

.legal-content ul, 
.legal-content ol {
    margin: var(--space-md) 0 var(--space-md) var(--space-xl);
}

.legal-content li {
    margin-bottom: var(--space-sm);
}

.legal-content .info-box {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid var(--info);
    padding: var(--space-md);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: var(--space-md) 0;
}

.legal-content .warning-box {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid var(--warning);
    padding: var(--space-md);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: var(--space-md) 0;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section {
        padding: var(--space-xl) 0;
    }
    
    .hero {
        min-height: auto;
        padding: 120px var(--space-md) var(--space-xl);
    }
    
    .hero__logo {
        width: 80px;
        height: 80px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .store-buttons {
        max-width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .nav, .footer, .dots-container {
        display: none;
    }
    
    .legal-content {
        background: white;
        border: 1px solid #ccc;
    }
}
