/* ==========================================================================
   Meris Project - Premium Glassmorphic Styling Sheet
   ========================================================================== */

/* --- CSS variables & Design Tokens --- */
:root {
    --bg-color: #05060b;
    --bg-card: rgba(13, 16, 27, 0.45);
    --bg-card-hover: rgba(18, 22, 38, 0.65);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Tailored HSL Neon Accents */
    --accent-indigo: hsl(263, 90%, 65%);
    --accent-cyan: hsl(190, 95%, 50%);
    --accent-crimson: hsl(346, 85%, 55%);
    --accent-gold: hsl(45, 95%, 55%);

    --accent-indigo-glow: rgba(140, 82, 255, 0.15);
    --accent-cyan-glow: rgba(0, 240, 255, 0.15);
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Syne', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- Base Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Custom Webkit Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(140, 82, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Selection color */
::selection {
    background: rgba(0, 240, 255, 0.25);
    color: #fff;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Interactive Particle Canvas styling */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* --- Typography Helper Classes --- */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-funeral {
    background: linear-gradient(135deg, var(--accent-crimson) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Button Component Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-full {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, hsl(263, 90%, 55%) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(140, 82, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(140, 82, 255, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-indigo);
    transform: translateY(-1px);
}

.btn-elite {
    background: linear-gradient(135deg, #1e1115 0%, #0c080e 100%);
    color: var(--accent-gold);
    border: 1px solid rgba(229, 184, 11, 0.4);
    box-shadow: 0 4px 20px rgba(229, 184, 11, 0.1);
}

.btn-elite:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(229, 184, 11, 0.25);
}

/* --- Header / Navigation Styles --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 6, 11, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
    transition: var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-indigo);
    color: #fff;
    box-shadow: 0 2px 10px rgba(140, 82, 255, 0.3);
}

/* --- Hero Section Styles --- */
.hero {
    position: relative;
    padding: 10rem 0 7rem;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-container {
    margin-bottom: 2rem;
    display: inline-flex;
}

.hero-badge {
    background: rgba(140, 82, 255, 0.08);
    border: 1px solid rgba(140, 82, 255, 0.2);
    color: #c084fc;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(140, 82, 255, 0.05);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 5.5rem;
}

/* Stats Section within Hero */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    border-top: 1px solid var(--border-color);
    padding-top: 3.5rem;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-number-simple {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 48px;
}

.hero-separator .shape-fill {
    fill: #05060b;
}

/* --- Common Section Styles --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- Features Section Styles --- */
.features {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
    z-index: -1;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* GitHub Card Specifics */
.github-card {
    border-color: rgba(140, 82, 255, 0.15);
}

.github-card .feature-icon {
    background: rgba(140, 82, 255, 0.06);
    border-color: rgba(140, 82, 255, 0.15);
    color: var(--accent-indigo);
}

.github-card:hover .feature-icon {
    background: var(--accent-indigo);
    color: #fff;
    box-shadow: 0 0 20px rgba(140, 82, 255, 0.4);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--accent-indigo);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.github-link svg {
    transition: transform 0.3s ease;
}

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

.github-link:hover svg {
    transform: translate(2px, -2px);
}

/* --- Pricing/Subscriptions Section Styles --- */
.pricing {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
}

.pricing-header {
    margin-bottom: 2rem;
}

.card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.tier-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.tier-price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-bottom: 1rem;
}

.price-value {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    white-space: nowrap;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.15rem;
}

.price-period {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-left: 0.25rem;
}

.tier-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-divider {
    height: 1px;
    background: var(--border-color);
    width: 100%;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.pricing-features li span {
    align-self: center;
}

.feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Card Specific Aesthetics */

/* Drive (Popular) Card */
.pricing-card.popular {
    border-color: rgba(140, 82, 255, 0.4);
    box-shadow: 0 10px 30px rgba(140, 82, 255, 0.06);
}

.pricing-card.popular::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
}

.popular-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
    color: var(--bg-color);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.pricing-card.popular .card-badge {
    background: rgba(140, 82, 255, 0.15);
    color: #c084fc;
}

.pricing-card.popular .feature-check {
    background: rgba(140, 82, 255, 0.1);
    border-color: rgba(140, 82, 255, 0.2);
    color: var(--accent-indigo);
}

/* Funeral Card */
.pricing-card.elite {
    background: rgba(10, 8, 14, 0.65);
    border: 1px solid rgba(229, 184, 11, 0.2);
    box-shadow: 0 10px 40px rgba(229, 184, 11, 0.03);
}

.pricing-card.elite:hover {
    border-color: rgba(229, 184, 11, 0.6);
    box-shadow: 0 15px 45px rgba(229, 184, 11, 0.08);
}

.elite-glow-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(229, 184, 11, 0.1) 40%, transparent 60%);
    animation: rotate-glow 12s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    100% {
        transform: rotate(360deg);
    }
}

.elite-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-crimson) 0%, var(--accent-gold) 100%);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.pricing-card.elite .tier-name {
    background: linear-gradient(135deg, var(--accent-crimson) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-right: 8px; /* Prevents letter cutoff in Webkit/Chrome clip-text rendering */
}

.pricing-card.elite .card-badge {
    background: rgba(229, 184, 11, 0.12);
    color: var(--accent-gold);
}

.pricing-card.elite .feature-check {
    background: rgba(229, 184, 11, 0.08);
    border-color: rgba(229, 184, 11, 0.2);
    color: var(--accent-gold);
}

/* --- Reviews Section Styles --- */
.reviews-section {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #05060b 0%, #080a13 100%);
}

.reviews-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.06) 0%, rgba(0,0,0,0) 75%);
    z-index: -1;
    pointer-events: none;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-color);
    font-size: 1.05rem;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.reviews-cta {
    display: flex;
    justify-content: center;
    margin-bottom: 7rem;
}

.tg-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.03);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.tg-channel-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Quick Connect Glow Box */
.connect-box {
    background: radial-gradient(circle at 100% 100%, rgba(140, 82, 255, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 0% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
                var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 5rem;
    border-radius: 32px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.connect-content {
    max-width: 600px;
}

.connect-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.brand-steam {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connect-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.connect-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* --- Footer Styles --- */
.footer {
    background: #020306;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info {
    max-width: 380px;
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.links-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.links-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.links-group a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 600px;
    text-align: right;
    line-height: 1.5;
}

/* --- Policy Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 3, 6, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 750px;
    max-height: 80vh;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    transform: rotate(90deg);
}

.modal-content {
    padding: 3.5rem 3rem 3rem;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.modal-content p {
    margin-bottom: 1rem;
}

.modal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
}

/* --- Responsive Adaptations (Media Queries) --- */

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

    .connect-box {
        flex-direction: column;
        text-align: center;
        padding: 3rem;
    }

    .connect-buttons {
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* --- Navigation & Header Breakpoint (1024px) --- */
@media (max-width: 1024px) {
    .header-container {
        padding: 0.9rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .header-right {
        gap: 0.6rem;
        flex-shrink: 0;
    }

    .lang-selector {
        padding: 1px;
    }

    .lang-btn {
        padding: 0.25rem 0.45rem;
        font-size: 0.65rem;
    }

    .nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /* Mobile Navigation Active Class */
    .nav-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(5, 6, 11, 0.99);
        backdrop-filter: blur(20px);
        padding: 6rem 2.5rem;
        z-index: 105;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        gap: 1.75rem;
    }

    .nav-active .nav-link {
        font-size: 1.25rem;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Common Tablet & Mobile Layout Adaptations (768px) --- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .feature-card {
        padding: 2.25rem 1.5rem;
    }

    .pricing-card {
        padding: 2.25rem 1.5rem;
    }

    .review-card {
        padding: 2rem 1.5rem;
    }

    .connect-box {
        padding: 2.5rem 1.5rem;
    }

    .modal-content {
        padding: 3rem 1.5rem 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

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

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .disclaimer {
        text-align: center;
    }
}

/* --- Fine-grained optimizations for small mobile screens (480px) --- */
@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .header-right {
        gap: 0.4rem;
    }

    .lang-btn {
        padding: 0.2rem 0.35rem;
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 2.15rem;
        letter-spacing: -1px;
    }

    .section-title {
        font-size: 1.85rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
        margin-bottom: 4rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .connect-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }

    .connect-buttons .btn {
        width: 100%;
    }
    
    .pricing-card.elite .elite-tag, 
    .pricing-card.popular .popular-tag {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
        width: fit-content;
    }
}

/* --- Extremely narrow mobile optimization (down to 320px) --- */
@media (max-width: 360px) {
    .logo {
        font-size: 0.95rem;
    }
    .lang-btn {
        padding: 0.15rem 0.25rem;
        font-size: 0.55rem;
    }
    .header-right {
        gap: 0.25rem;
    }
}

/* ==========================================================================
   Mirrors Page Premium Styles
   ========================================================================== */
.mirrors-hero {
    position: relative;
    padding: 10rem 0 7rem;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mirrors-content {
    text-align: center;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mirrors-main-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mirrors-main-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 4rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Beautiful Custom Grid for 5 items */
.mirrors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.mirrors-grid .mirror-card {
    grid-column: span 2;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.mirror-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.mirror-icon-wrapper.cyan {
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
}

.mirror-icon-wrapper.indigo {
    background: rgba(140, 82, 255, 0.06);
    border: 1px solid rgba(140, 82, 255, 0.15);
    color: var(--accent-indigo);
}

.mirror-icon-wrapper.gold {
    background: rgba(229, 184, 11, 0.06);
    border: 1px solid rgba(229, 184, 11, 0.15);
    color: var(--accent-gold);
}

/* Hover effects for SVG icons inside cards */
.mirror-card:hover .mirror-icon-wrapper.cyan {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.mirror-card:hover .mirror-icon-wrapper.indigo {
    background: var(--accent-indigo);
    color: #fff;
    box-shadow: 0 0 20px rgba(140, 82, 255, 0.4);
    transform: scale(1.05);
}

.mirror-card:hover .mirror-icon-wrapper.gold {
    background: var(--accent-gold);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(229, 184, 11, 0.4);
    transform: scale(1.05);
}

.mirror-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.mirror-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Centering Card 4 and 5 in the second row on desktop (3-column layout) */
@media (min-width: 969px) {
    .mirrors-grid .mirror-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .mirrors-grid .mirror-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* 2-column layout on tablets, centering the 5th card */
@media (max-width: 968px) {
    .mirrors-main-title {
        font-size: 3rem;
    }
    .mirrors-grid .mirror-card {
        grid-column: span 3;
    }
    .mirrors-grid .mirror-card:nth-child(5) {
        grid-column: 2 / span 3;
    }
}

/* 1-column layout on mobile */
@media (max-width: 768px) {
    .mirrors-hero {
        padding: 7rem 0 5rem;
    }
    .mirrors-main-title {
        font-size: 2.4rem;
    }
    .mirrors-main-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
    .mirrors-grid {
        grid-template-columns: 1fr;
    }
    .mirrors-grid .mirror-card,
    .mirrors-grid .mirror-card:nth-child(4),
    .mirrors-grid .mirror-card:nth-child(5) {
        grid-column: auto;
        min-height: auto;
        padding: 2.25rem 1.5rem;
    }
}