/* ═══════════════════════════════════════════════════
   Mindset AI Academy - Design System
   Night Blue #202239 + Lavender/Indigo | AI YOUR MIND
   מבוסס על ערכת מותג Mindset AI Systems (tokens.css)
   ═══════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    /* Core Colors - Mindset Night Blue (official dark brand) */
    --navy-darkest: #16172A;
    --navy-dark: #202239;   /* כחול לילה - רקע ראשי */
    --navy-mid: #2A2A4A;    /* כרטיס / משטח */
    --navy-light: #343659;  /* משטח משני */
    --navy-lighter: #3F4170;

    /* Accent - Lavender (Mindset dark-mode accent, replaces gold) */
    --gold: #B4A8E4;        /* לבנדר בהיר - אקצנט על כהה */
    --gold-light: #C5BBEC;
    --gold-dark: #896EC0;   /* סגול לבנדר */
    --gold-glow: rgba(180, 168, 228, 0.3);
    --gold-subtle: rgba(180, 168, 228, 0.1);

    /* Indigo - deep brand accent */
    --academic-blue: #4A3B7A;       /* אינדיגו עמוק */
    --academic-blue-light: #896EC0; /* סגול לבנדר */
    --academic-blue-subtle: rgba(74, 59, 122, 0.3);

    /* Text */
    --text-primary: #F4F1FC;   /* לבנדר עדין */
    --text-secondary: #B4A8E4; /* לבנדר בהיר */
    --text-muted: #8C86B0;

    /* Accents */
    --accent-blue: #896EC0;
    --accent-green: #22C55E;
    --accent-red: #EF4444;

    /* Surfaces - glass + 3D depth */
    --surface-card: rgba(42, 42, 74, 0.7);
    --surface-card-hover: rgba(52, 54, 89, 0.8);
    --surface-glass: rgba(32, 34, 57, 0.85);
    --border-subtle: rgba(180, 168, 228, 0.16);
    --border-active: rgba(180, 168, 228, 0.4);

    /* Spacing - generous academic whitespace */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --space-4xl: 6.5rem;

    /* Typography - modern readable sans-serif only */
    --font-primary: 'Heebo', 'Inter', sans-serif;
    --font-display: 'Heebo', 'Inter', sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;

    /* Borders & Shadows - 3D depth */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 24px rgba(180, 168, 228, 0.15);
    --shadow-3d: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(74, 59, 122, 0.25);
    --shadow-glow-gold: 0 0 20px rgba(180, 168, 228, 0.18), 0 0 60px rgba(180, 168, 228, 0.06);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ─── Breathing & Glow Animations ─── */
@keyframes breathe {
    0%, 100% { box-shadow: 0 0 8px rgba(180, 168, 228, 0.15), 0 2px 12px rgba(180, 168, 228, 0.1); }
    50% { box-shadow: 0 0 20px rgba(180, 168, 228, 0.3), 0 4px 24px rgba(180, 168, 228, 0.15); }
}

@keyframes breathe-subtle {
    0%, 100% { box-shadow: 0 0 6px rgba(180, 168, 228, 0.08); }
    50% { box-shadow: 0 0 16px rgba(180, 168, 228, 0.18); }
}

@keyframes float-3d {
    0%, 100% { transform: translateY(0) perspective(800px) rotateX(0deg); }
    50% { transform: translateY(-4px) perspective(800px) rotateX(0.5deg); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--navy-darkest);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

.hidden {
    display: none !important;
}

/* ═══════════════ HEADER ═══════════════ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo - AI Tech Gradient */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    position: relative;
}

.logo-monogram {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--navy-darkest);
    position: relative;
    box-shadow: 0 0 12px rgba(180, 168, 228, 0.2);
    animation: breathe-subtle 4s ease-in-out infinite;
}

.logo-monogram::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    border: 1px solid rgba(180, 168, 228, 0.2);
    pointer-events: none;
}

.logo-monogram.small {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.logo-monogram.small::after {
    border-radius: 11px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: 'Sora', var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    color: rgba(180, 168, 228, 0.55);
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--gold-subtle);
}

.nav-link.active {
    color: var(--gold);
    background: var(--gold-subtle);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: var(--navy-mid);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.lang-btn {
    padding: 4px 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: var(--navy-light);
}

.lang-btn.active {
    color: var(--navy-darkest);
    background: var(--gold);
}

/* Buttons - Refined & Elegant */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-darkest);
    border: 1px solid var(--gold);
    animation: breathe 3s ease-in-out infinite;
    position: relative;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    z-index: -1;
    filter: blur(8px);
    opacity: 0.3;
    transition: var(--transition-normal);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(180, 168, 228, 0.35);
}

.btn-gold:hover::before {
    opacity: 0.5;
    filter: blur(12px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    color: var(--gold);
    border-color: rgba(180, 168, 228, 0.3);
    background: var(--gold-subtle);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold-subtle);
}

.btn-google {
    background: var(--navy-mid);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 0.85rem;
}

.btn-google:hover {
    background: var(--navy-light);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 10px 24px;
    font-size: 0.88rem;
    border-radius: 5px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Mobile Menu */
.nav-auth-mobile {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--space-xl) var(--space-3xl);
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background: none;
}

.hero-glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(74, 59, 122, 0.25) 0%, rgba(180, 168, 228, 0.08) 40%, transparent 70%);
    filter: blur(60px);
    opacity: 0.6;
    animation: glow-pulse 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid rgba(180, 168, 228, 0.25);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--gold);
    margin-bottom: var(--space-lg);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-badge i {
    font-size: 0.65rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.5px;
}

.hero-title-line {
    display: block;
}

.hero-title-gold {
    color: var(--gold);
    position: relative;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 560px;
    margin-inline: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 11;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Terminal Animation */
.hero-terminal {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, 90vw);
    background: var(--navy-mid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    direction: ltr;
    text-align: left;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 16px;
    background: var(--navy-dark);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 60px;
}

.terminal-line {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.terminal-prompt {
    color: var(--accent-green);
    font-weight: 700;
}

.terminal-text {
    color: var(--text-primary);
}

.terminal-cursor {
    color: var(--gold);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ═══════════════ SEARCH SECTION ═══════════════ */
.search-section {
    padding: var(--space-3xl) 0;
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 1;
}

[dir="rtl"] .search-icon { right: 20px; }
[dir="ltr"] .search-icon { left: 20px; }

.search-input {
    width: 100%;
    padding: 18px 24px;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    background: var(--navy-mid);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-normal);
}

[dir="rtl"] .search-input { padding-right: 52px; }
[dir="ltr"] .search-input { padding-left: 52px; }

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-subtle);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-tags {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.search-tag {
    padding: 6px 14px;
    background: var(--navy-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-mono);
}

.search-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-subtle);
}

/* ═══════════════ FEATURES GRID ═══════════════ */
.features {
    padding: var(--space-4xl) 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: var(--space-2xl);
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: var(--space-xl) var(--space-xl);
    transition: var(--transition-normal), opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
}

/* Card animation classes */
.card-hidden {
    opacity: 0;
    transform: translateY(18px);
}
.card-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: var(--surface-card-hover);
    border-color: var(--border-active);
    transform: translateY(-6px) perspective(800px) rotateX(1deg);
    box-shadow: var(--shadow-gold), var(--shadow-3d);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(180, 168, 228, 0.2);
    border-radius: 6px;
    margin-bottom: var(--space-md);
    font-size: 1rem;
    color: var(--gold);
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    font-weight: 300;
}

/* ═══════════════ HOW IT WORKS ═══════════════ */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent, var(--navy-dark), transparent);
}

.steps-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark), transparent);
}

[dir="rtl"] .steps-timeline::before { right: 28px; }
[dir="ltr"] .steps-timeline::before { left: 28px; }

.step-card {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-darkest);
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    z-index: 1;
    box-shadow: 0 0 12px rgba(180, 168, 228, 0.1);
}

.step-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 2px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 300;
}

/* ═══════════════ ROOMS ═══════════════ */
.rooms-section {
    padding: var(--space-3xl) 0;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.room-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: var(--transition-normal);
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--border-active);
}

.room-icon {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.room-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.room-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-size: 0.82rem;
    font-weight: 300;
}

.room-capacity {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: var(--gold-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gold);
}

/* ═══════════════ DAILY PROMPT ═══════════════ */
.daily-prompt {
    padding: var(--space-3xl) 0;
}

.prompt-card-daily {
    background: var(--surface-card);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 700px;
    margin: 0 auto;
}

.prompt-daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.prompt-daily-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-darkest);
}

.prompt-daily-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.prompt-daily-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.prompt-daily-content {
    background: var(--navy-darkest);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    direction: ltr;
    text-align: left;
}

.prompt-daily-content code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-green);
    line-height: 1.6;
}

.prompt-daily-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ═══════════════ CTA SECTION ═══════════════ */
.cta-section {
    padding: var(--space-3xl) 0;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--navy-dark));
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

/* ═══════════════ FOOTER ═══════════════ */
.main-footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    background: var(--navy-darkest);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-md);
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ═══════════════ AUTH MODAL ═══════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-xl);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--navy-mid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

[dir="rtl"] .modal-close { left: 16px; }
[dir="ltr"] .modal-close { right: 16px; }

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h2 {
    font-size: 1.4rem;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--navy-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-subtle);
}

.auth-switch {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    font-weight: 600;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* Tablet */
@media (max-width: 768px) {
    .header-container {
        padding: 0 var(--space-md);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface-glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 1px solid var(--border-subtle);
        z-index: 999;
    }

    .main-nav.open {
        display: flex;
    }

    /* Nav links - full-width touch targets on mobile menu */
    .main-nav .nav-link {
        padding: 12px var(--space-md);
        min-height: 44px;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
        /* Larger tap target */
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .header-actions .btn-ghost,
    .header-actions .btn-gold {
        display: none;
    }

    .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        border-top: 1px solid var(--border-subtle);
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
    }

    .nav-register-mobile {
        color: var(--gold) !important;
        font-weight: 600 !important;
    }

    .hero {
        min-height: auto;
        padding: 100px var(--space-md) 220px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .hero-terminal {
        width: 95vw;
        bottom: 20px;
    }

    /* CTA buttons - min 44px touch target */
    .btn-lg {
        min-height: 44px;
        padding: 12px 24px;
    }

    /* All buttons get proper touch target on tablet/mobile */
    .btn {
        min-height: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .lang-switcher {
        order: -1;
    }

    /* Search section */
    .search-section {
        padding: var(--space-2xl) 0;
        margin-top: -20px;
    }

    .search-input {
        font-size: 1rem;
        padding: 14px 20px;
    }

    [dir="rtl"] .search-input { padding-right: 48px; }
    [dir="ltr"] .search-input { padding-left: 48px; }

    /* Search tags - scrollable row */
    .search-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 4px;
        gap: 6px;
    }

    .search-tags::-webkit-scrollbar { display: none; }

    /* Section spacing */
    .section-title {
        font-size: 1.4rem;
    }

    /* CTA section */
    .cta-section .btn-lg {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .hero {
        padding: 90px var(--space-md) 200px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .hero-actions .btn-lg {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .hero-stat-num {
        font-size: 1.3rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .hero-terminal {
        width: calc(100vw - 32px);
        bottom: 16px;
        font-size: 0.82rem;
    }

    .terminal-body {
        font-size: 0.82rem;
        padding: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Section paddings */
    .features,
    .how-it-works,
    .rooms-section,
    .daily-prompt,
    .cta-section {
        padding: var(--space-2xl) 0;
    }

    /* Modal compact on small screens */
    .modal-content {
        padding: var(--space-lg);
        border-radius: var(--radius-md);
    }

    /* Btn compact */
    .btn {
        padding: 10px 16px;
    }
}

/* Mobile - 375px */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 88px var(--space-sm) 190px;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .hero-desc {
        font-size: 0.88rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: var(--space-sm);
        justify-content: space-around;
    }

    .hero-stat-num {
        font-size: 1.2rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    .hero-terminal {
        width: calc(100vw - 16px);
        bottom: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .header-container {
        padding: 0 var(--space-sm);
    }

    /* Logo text - hide sub on very small */
    .logo-sub {
        display: none;
    }
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.step-card,
.room-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }
.step-card:nth-child(5) { animation-delay: 0.5s; }

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-darkest);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ═══════════════ SELECTION ═══════════════ */
::selection {
    background: var(--gold);
    color: var(--navy-darkest);
}
