/* ═══════════════════════════════════════════════════════════
   CloudCraft Trade - Professional Trading Platform
   Clean, minimal, institutional design
   ═══════════════════════════════════════════════════════════ */

:root {
    /* CloudCraft Brand Colors */
    --primary: #009688;
    --primary-hover: #00796b;
    --accent: #D4A54B;

    /* Backgrounds - Deep Teal */
    --bg: #0f2020;
    --bg-elevated: #1a3a3a;
    --bg-card: rgba(255, 255, 255, 0.03);

    /* Text - Teal tones */
    --text: #FFFFFF;
    --text-secondary: #B8E0E8;
    --text-muted: #8ECAD6;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Trading Colors - Semantic */
    --success: #00d9a6;
    --danger: #ef5350;
    --warning: #D4A54B;
    --long: #26a69a;
    --short: #ef5350;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Background */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg);
}

/* Premium Hero Glow */
.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    animation: glowFloat 8s ease-in-out infinite;
}

.hero-glow-1 {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.hero-glow-2 {
    top: 100px;
    right: -200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -4s;
    opacity: 0.25;
}

.hero-glow-3 {
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, #00BCD4 0%, transparent 70%);
    animation-delay: -2s;
    opacity: 0.2;
}

@keyframes glowFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--primary-hover);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.2s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   WOW ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* Floating Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    animation: floatUp 12s ease-in-out infinite;
}

.particle:nth-child(odd) {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; width: 4px; height: 4px; }
.particle:nth-child(2) { left: 20%; animation-delay: 1.5s; }
.particle:nth-child(3) { left: 30%; animation-delay: 3s; width: 5px; height: 5px; }
.particle:nth-child(4) { left: 40%; animation-delay: 4.5s; }
.particle:nth-child(5) { left: 50%; animation-delay: 6s; width: 4px; height: 4px; }
.particle:nth-child(6) { left: 60%; animation-delay: 7.5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 9s; width: 5px; height: 5px; }
.particle:nth-child(8) { left: 80%; animation-delay: 10.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 0.75s; }
.particle:nth-child(10) { left: 15%; animation-delay: 2.25s; width: 4px; height: 4px; }
.particle:nth-child(11) { left: 35%; animation-delay: 3.75s; }
.particle:nth-child(12) { left: 55%; animation-delay: 5.25s; width: 5px; height: 5px; }
.particle:nth-child(13) { left: 75%; animation-delay: 6.75s; }
.particle:nth-child(14) { left: 85%; animation-delay: 8.25s; width: 4px; height: 4px; }
.particle:nth-child(15) { left: 25%; animation-delay: 9.75s; }

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Gold Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--text) 0%,
        var(--text) 40%,
        var(--accent) 50%,
        var(--text) 60%,
        var(--text) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.3s; }
.fade-delay-4 { animation-delay: 0.4s; }
.fade-delay-5 { animation-delay: 0.5s; }
.fade-delay-6 { animation-delay: 0.6s; }

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pulse Animation for Live Status */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-live {
    animation: pulse 2s ease-in-out infinite;
}

.pulse-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Glow Effect for Achievement Cards */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 165, 75, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 165, 75, 0.4);
    }
}

.achievement-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Counter Animation Class */
.counter {
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 165, 75, 0.1);
    border: 1px solid rgba(212, 165, 75, 0.3);
    border-radius: 100px;
    position: relative;
}

.hero-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 75, 0.5), transparent);
    border-radius: 100px;
    z-index: -1;
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.achievement-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    min-width: 180px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.1) 0%, rgba(212, 165, 75, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.achievement-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.achievement-card:hover::before {
    opacity: 1;
}

.achievement-card:hover::after {
    opacity: 0.5;
}

.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 150, 136, 0.2);
}

.achievement-featured {
    border-color: rgba(212, 165, 75, 0.5);
    background: rgba(212, 165, 75, 0.05);
}

.achievement-featured::after {
    opacity: 0.3;
}

.achievement-featured:hover {
    box-shadow: 0 20px 40px rgba(212, 165, 75, 0.25);
}

.achievement-rank {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, #FFD700 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 40px rgba(212, 165, 75, 0.5);
}

.achievement-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1;
    position: relative;
}

.hero-title.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--text) 0%,
        var(--text) 35%,
        var(--accent) 50%,
        var(--text) 65%,
        var(--text) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-screenshots {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.screenshot-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    max-width: 280px;
}

.screenshot-item img {
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.screenshot-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #00BCD4 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 150, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 150, 136, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 150, 136, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
    padding: var(--section-padding) 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-elevated);
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-alt > * {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

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

/* ═══════════════════════════════════════════════════════════
   TERMINAL PREVIEW
   ═══════════════════════════════════════════════════════════ */
.terminal-preview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.terminal-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.terminal-feature {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.terminal-image-link {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.terminal-image-link:hover {
    border-color: var(--primary);
}

.terminal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.terminal-cta {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
}

.terminal-image-link:hover .terminal-cta {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   DATA CARDS
   ═══════════════════════════════════════════════════════════ */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.data-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.data-card:hover {
    border-color: var(--border-hover);
}

.data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.data-icon {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
}

.data-status {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.data-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.data-stats {
    display: flex;
    gap: 1.5rem;
}

.data-stat {
    display: flex;
    flex-direction: column;
}

.data-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.data-stat-value.success {
    color: var(--success);
}

.data-stat-value.danger {
    color: var(--danger);
}

.data-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   STATS HIGHLIGHT
   ═══════════════════════════════════════════════════════════ */
.stats-highlight {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.stats-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stats-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.product-featured {
    border-color: var(--primary);
    grid-column: span 2;
}

.product-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    background: var(--bg-elevated);
    border-radius: 4px;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-right: 4rem;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 1.5rem;
}

.product-features li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
    padding-left: 1rem;
    position: relative;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    transform: translateY(-50%);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   JOURNAL
   ═══════════════════════════════════════════════════════════ */
.journal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.journal-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.journal-features {
    margin-bottom: 2rem;
}

.journal-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.journal-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    transform: translateY(-50%);
}

.journal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.journal-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.journal-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.journal-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   TOOLS
   ═══════════════════════════════════════════════════════════ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tool-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: border-color 0.2s;
    position: relative;
}

.tool-card:hover {
    border-color: var(--border-hover);
}

.tool-featured {
    border-color: var(--accent);
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tool-cta {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.section-cta {
    text-align: center;
    padding: var(--section-padding) 1.5rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 150, 136, 0.3);
}

.social-link:nth-child(1):hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.social-link:nth-child(2):hover {
    background: #FF0000;
    border-color: #FF0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.social-link:nth-child(3):hover {
    background: #000;
    border-color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .product-featured {
        grid-column: span 1;
    }

    .journal-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .achievement-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .achievement-card {
        padding: 1.25rem 1.5rem;
        min-width: 120px;
        flex: 0 1 auto;
    }

    .achievement-rank {
        font-size: 2.5rem;
    }

    .achievement-label {
        font-size: 0.7rem;
    }

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

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

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-screenshots {
        flex-direction: column;
        align-items: center;
    }

    .screenshot-item {
        max-width: 100%;
    }

    .data-stats {
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journal-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .logo span {
        display: none;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }

    .achievement-row {
        gap: 0.75rem;
    }

    .achievement-card {
        padding: 1rem 1.25rem;
        min-width: 110px;
    }

    .achievement-rank {
        font-size: 2rem;
    }

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

    .hero-glow {
        width: 400px;
        height: 400px;
    }

    .products-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
    }

    .footer-logo-img {
        width: 40px;
        height: 40px;
    }

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

    .testimonial-form-container {
        padding: 24px 16px;
    }

    .form-row {
        flex-direction: column;
    }
}

/* ── Galaxy S24 Ultra (≤430px) ── */
@media (max-width: 430px) {
    .hero {
        padding: 4rem 1rem 2.5rem;
    }

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

    .tools-grid {
        gap: 12px;
    }

    .btn-large {
        width: 100%;
        max-width: none;
    }

    .product-card, .tool-card {
        padding: 20px 16px;
    }

    .section {
        padding: 2.5rem 1rem;
    }
}

/* ── iPhone 14/13/12 (≤390px) ── */
@media (max-width: 390px) {
    .hero-title {
        font-size: 1.6rem;
    }

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

    .section {
        padding: 2rem 0.75rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .achievement-card {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }

    .achievement-rank {
        font-size: 1.75rem;
    }

    .data-stats {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .product-card, .tool-card {
        padding: 16px 12px;
    }

    .testimonials-grid {
        gap: 16px;
    }

    .testimonial-card {
        padding: 16px;
    }

    /* Font-size floor: 12px minimum for small labels */
    .achievement-label,
    .section-tag,
    .hero-badge,
    .stat-label,
    .tool-tag,
    .product-tag {
        font-size: 12px;
    }
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 166, 0.3);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.testimonial-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 217, 166, 0.4);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9a6 0%, #00b388 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #0f2020;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin-bottom: 2px;
}

.testimonial-job {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.testimonial-stars {
    color: #ffd700;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.testimonial-loading,
.testimonial-error,
.no-testimonials {
    text-align: center;
    padding: 48px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

/* Testimonial Form */
.testimonial-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.form-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 0 0 28px 0;
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input[type="text"],
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: #fff;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d9a6;
    background: rgba(0, 217, 166, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    margin-top: -4px;
}

.form-group input[type="file"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #00d9a6;
}

.file-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 6px;
}

.star-rating .star {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.15s ease;
}

.star-rating .star.active {
    color: #ffd700;
}

.star-rating .star.hover {
    color: #ffec8b;
    transform: scale(1.15);
}

/* Submit Button */
.btn-submit {
    align-self: center;
    min-width: 180px;
    margin-top: 8px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    min-height: 20px;
}

.form-message.success {
    background: rgba(0, 217, 166, 0.15);
    color: #00d9a6;
    border: 1px solid rgba(0, 217, 166, 0.3);
}

.form-message.error {
    background: rgba(255, 77, 77, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   Testimonials Slider - Auto-scrolling marquee
   ═══════════════════════════════════════════════════════════ */

.testimonials-slider-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, rgba(0, 150, 136, 0.03) 0%, transparent 100%);
    overflow: visible;
    overflow-x: clip;
}

.testimonials-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-slider-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.testimonials-slider-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background: var(--primary);
    color: #fff;
}

.testimonials-track-wrapper {
    position: relative;
    width: 100%;
}

.testimonials-track-wrapper::before,
.testimonials-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-track-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.testimonials-track-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollTestimonials 30s linear infinite;
    width: max-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-slide {
    flex-shrink: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.testimonial-slide:hover {
    border-color: var(--primary);
    background: rgba(0, 150, 136, 0.08);
    transform: translateY(-4px);
    z-index: 10;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.testimonial-slide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.testimonial-slide-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-slide-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #00796b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-slide-info {
    flex: 1;
    min-width: 0;
}

.testimonial-slide-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
}

.testimonial-slide-job {
    font-size: 12px;
    color: var(--text-muted);
}

.testimonial-slide-stars {
    color: #ffd700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.testimonial-slide-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Hover expansion for testimonials */
.testimonial-slide:hover .testimonial-slide-text {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    white-space: normal;
}

/* Pause slider animation on hover */
.testimonials-track-wrapper:hover .testimonials-track {
    animation-play-state: paused;
}

.testimonials-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Mobile adjustments for testimonials */
@media (max-width: 768px) {
    .testimonials-slider-section {
        padding: 2rem 0 3rem;
    }

    .testimonials-slider-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .testimonials-slider-header h2 {
        font-size: 1.4rem;
    }

    .view-all-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    .testimonial-slide {
        width: calc(100vw - 60px);
        min-width: 260px;
        max-width: 320px;
        padding: 1.25rem;
    }

    .testimonials-track {
        gap: 1rem;
        padding: 0 1rem;
    }

    .testimonials-track-wrapper::before,
    .testimonials-track-wrapper::after {
        width: 30px;
    }

    .testimonial-slide-header {
        gap: 10px;
        margin-bottom: 0.75rem;
    }

    .testimonial-slide-photo,
    .testimonial-slide-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .testimonial-slide-name {
        font-size: 14px;
    }

    .testimonial-slide-job {
        font-size: 11px;
    }

    .testimonial-slide-stars {
        font-size: 13px;
        margin-bottom: 0.5rem;
    }

    .testimonial-slide-text {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }

    /* Disable hover effects on mobile */
    .testimonial-slide:hover {
        transform: none;
        box-shadow: none;
    }

    .testimonial-slide:hover .testimonial-slide-text {
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .testimonials-slider-section {
        padding: 1.5rem 0 2rem;
    }

    .testimonials-slider-header h2 {
        font-size: 1.25rem;
    }

    .testimonial-slide {
        width: calc(100vw - 40px);
        min-width: 240px;
        max-width: 300px;
        padding: 1rem;
        border-radius: 12px;
    }

    .testimonials-track {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .testimonials-track-wrapper::before,
    .testimonials-track-wrapper::after {
        width: 20px;
    }

    .testimonial-slide-photo,
    .testimonial-slide-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .testimonial-slide-name {
        font-size: 13px;
    }

    .testimonial-slide-text {
        font-size: 12px;
        -webkit-line-clamp: 4;
    }
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY - Focus Visible Styles
   ═══════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:active {
    transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════ */
.loading-skeleton {
    background: linear-gradient(90deg,
        var(--bg-card) 25%,
        var(--bg-elevated) 50%,
        var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.data-loading {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   ERROR STATES
   ═══════════════════════════════════════════════════════════ */
.error-message {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid var(--danger);
    border-left: 3px solid var(--danger);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-message-icon {
    color: var(--danger);
    font-size: 20px;
}

.error-retry-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: auto;
}

.error-retry-btn:hover {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE SWITCHER DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--bg-card);
}

.lang-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 4px;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.lang-menu.open {
    display: block;
    animation: langFadeIn 0.15s ease;
}

@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}

.lang-menu a:hover {
    background: var(--bg-card);
    color: var(--text);
}

.lang-menu a.active {
    color: #00d9a6;
    font-weight: 600;
    background: rgba(0, 217, 166, 0.08);
}

/* Mobile menu language switcher */
.mobile-menu .lang-dropdown {
    margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.mobile-menu .lang-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 6px);
    top: auto;
}

@media (max-width: 1024px) {
    .lang-btn span {
        display: none;
    }
    .lang-btn {
        padding: 5px 8px;
    }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* --- Fade Up (default reveal) --- */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Slide from Left --- */
.reveal-from-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Slide from Right --- */
.reveal-from-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Scale Pop --- */
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Stagger Cards --- */
.stagger-container .stagger-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-container.visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}
.stagger-container.visible .stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-container.visible .stagger-item:nth-child(2) { transition-delay: 0.12s; }
.stagger-container.visible .stagger-item:nth-child(3) { transition-delay: 0.24s; }
.stagger-container.visible .stagger-item:nth-child(4) { transition-delay: 0.36s; }
.stagger-container.visible .stagger-item:nth-child(5) { transition-delay: 0.48s; }
.stagger-container.visible .stagger-item:nth-child(6) { transition-delay: 0.60s; }

/* --- Clip Reveal (curtain) --- */
.reveal-clip {
    clip-path: inset(0 50% 0 50%);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-clip.visible {
    clip-path: inset(0 0% 0 0%);
}

/* --- Counter Ticker --- */
.counter-ticker {
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   PARALLAX & AMBIENT EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* --- Floating Glow Orbs --- */
.parallax-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    will-change: transform;
}
.parallax-orb--teal {
    width: 500px;
    height: 500px;
    top: 10%;
    left: -150px;
    background: radial-gradient(circle, rgba(0, 150, 136, 0.2) 0%, transparent 70%);
}
.parallax-orb--gold {
    width: 350px;
    height: 350px;
    top: 50%;
    right: -100px;
    background: radial-gradient(circle, rgba(212, 165, 75, 0.15) 0%, transparent 70%);
}
.parallax-orb--cyan {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 30%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
}

/* --- Section Dot Navigator --- */
.section-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
}
.section-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.section-nav__dot:hover {
    background: rgba(255, 255, 255, 0.4);
}
.section-nav__dot.active {
    background: #00d9a6;
    box-shadow: 0 0 8px rgba(0, 217, 166, 0.5);
    transform: scale(1.4);
}

/* --- Act Divider --- */
.act-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 150, 136, 0.3), rgba(212, 165, 75, 0.2), transparent);
    border: none;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   HERO SINEMATIK REVEAL
   ═══════════════════════════════════════════════════════════ */

/* Glow Burst */
.hero-glow-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}
.hero-glow-burst--teal {
    background: radial-gradient(circle, rgba(0, 150, 136, 0.8) 0%, transparent 70%);
    animation: glowBurstExpand 2s ease-out 0.5s forwards;
}
.hero-glow-burst--gold {
    background: radial-gradient(circle, rgba(212, 165, 75, 0.5) 0%, transparent 70%);
    animation: glowBurstExpand 2s ease-out 0.8s forwards;
}

@keyframes glowBurstExpand {
    0% { width: 10px; height: 10px; opacity: 0.8; }
    40% { width: 1000px; height: 1000px; opacity: 0.5; }
    100% { width: 1800px; height: 1800px; opacity: 0.35; }
}

/* Slide-up masked text */
.hero-line-mask {
    overflow: hidden;
    display: block;
}
.hero-line-mask > span {
    display: inline-block;
    transform: translateY(110%);
    animation: heroSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-line-mask:nth-child(1) > span { animation-delay: 2.3s; }
.hero-line-mask:nth-child(2) > span { animation-delay: 2.5s; }

@keyframes heroSlideUp {
    to { transform: translateY(0); }
}

/* Hero element stagger delays */
.hero-reveal-1 { opacity: 0; animation: heroFadeUp 0.8s ease-out 1.8s forwards; }
.hero-reveal-2 { opacity: 0; animation: heroFadeUp 0.8s ease-out 2.2s forwards; }
.hero-reveal-3 { opacity: 0; animation: heroFadeUp 0.8s ease-out 3.0s forwards; }
.hero-reveal-4 { opacity: 0; animation: heroFadeUp 0.8s ease-out 3.3s forwards; }
.hero-reveal-5 { opacity: 0; animation: heroFadeUp 0.8s ease-out 3.5s forwards; }

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

/* Terminal 3D perspective rise */
.hero-terminal-rise {
    opacity: 0;
    transform: perspective(800px) rotateX(8deg) translateY(60px);
    animation: terminalRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3.5s forwards;
}

@keyframes terminalRise {
    to {
        opacity: 1;
        transform: perspective(800px) rotateX(2deg) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY — REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .reveal-fade-up,
    .reveal-from-left,
    .reveal-from-right,
    .reveal-scale,
    .stagger-container .stagger-item,
    .reveal-clip,
    .hero-glow-burst--teal,
    .hero-glow-burst--gold,
    .hero-line-mask > span,
    .hero-reveal-1, .hero-reveal-2, .hero-reveal-3, .hero-reveal-4, .hero-reveal-5,
    .hero-terminal-rise {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        animation: none !important;
        transition: none !important;
    }
    .parallax-orb { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE ADJUSTMENTS — SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .parallax-orb { opacity: 0.5; }
    .section-nav { display: none; }
    .reveal-from-left { transform: translateX(-40px); }
    .reveal-from-right { transform: translateX(40px); }
}
