/* ========================================
   SPS Homepage - Dark + Geo Theme
   ======================================== */

:root {
    --color-bg-primary: #0B1426;
    --color-bg-secondary: #0F1C32;
    --color-accent: #33B5E5;
    --color-accent-light: #5CC8F0;
    --color-accent-glow: rgba(51, 181, 229, 0.3);
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-card-bg: rgba(15, 28, 50, 0.8);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
    /* Container width system */
    --container-max: 1200px;
}

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

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

body {
    font-family: var(--font-family);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    min-height: 100vh;
    position: relative;
}

/* Single page scrolling body */
body.single-page {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ========================================
   World Map Background
   ======================================== */

.world-map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
}

.world-map-bg {
    display: block;
    width: 100%;
}

/* Style the world map SVG */
.world-map-bg svg {
    fill: rgba(51, 181, 229, 0.12);
}

/* Random geo pins container */
.geo-pins-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Geo location marker icon */
.geo-pin {
    position: absolute;
    width: 24px;
    height: 32px;
    transform: translate(-50%, -100%);
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: geoPinFade 3.5s ease-in-out forwards;
}

.geo-pin svg {
    width: 100%;
    height: 100%;
}

.geo-pin path {
    fill: #33B5E5;
}

.geo-pin circle {
    fill: #0B1426;
}

/* Pulse ring effect */
.geo-pin-pulse {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(51, 181, 229, 0.4);
    border-radius: 50%;
    transform: translate(-50%, 50%);
    animation: geoPulse 1.5s ease-out infinite;
}

@keyframes geoPinFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0.3) translateY(10px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1.1) translateY(0);
    }
    25% {
        transform: translate(-50%, -100%) scale(1) translateY(0);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0.3) translateY(10px);
    }
}

@keyframes geoPulse {
    0% {
        transform: translate(-50%, 50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, 50%) scale(3);
        opacity: 0;
    }
}

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

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(51, 181, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 181, 229, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(51, 181, 229, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: glowPulse 8s ease-in-out infinite;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(51, 181, 229, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* Scrolled state - solid background */
.navbar.is-scrolled {
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Navbar always visible - no hide on scroll */

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

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

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

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

.nav-login {
    padding: 0.6rem 1.25rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

/* Navigation Search Toggle */
.nav-search-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-search-toggle:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(51, 181, 229, 0.05);
}

.nav-search-toggle svg {
    width: 18px;
    height: 18px;
}

/* Search Overlay */
.nav-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 25vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 200;
}

.nav-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.nav-search-overlay.active .nav-search-container {
    transform: translateY(0);
    opacity: 1;
}

.nav-search-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(51, 181, 229, 0.3);
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.nav-search-box:focus-within {
    border-color: var(--color-accent);
    background: rgba(51, 181, 229, 0.05);
    box-shadow: 0 0 30px rgba(51, 181, 229, 0.15);
}

.nav-search-container .search-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.nav-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 500;
    outline: none;
}

.nav-search-input::placeholder {
    color: var(--color-text-muted);
}

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

.nav-search-hint kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 0.75rem;
    margin: 0 0.25rem;
}

.nav-search-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.nav-search-close:hover {
    background: rgba(51, 181, 229, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.05);
}

.nav-search-close svg {
    width: 20px;
    height: 20px;
}

/* Language Selector */
.nav-lang {
    position: relative;
}

.nav-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-lang-toggle:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.nav-lang.active .nav-lang-toggle {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.lang-current {
    letter-spacing: 0.05em;
}

.lang-arrow {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.nav-lang.active .lang-arrow {
    transform: rotate(180deg);
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 70px;
    background: linear-gradient(145deg, rgba(15, 28, 50, 0.98) 0%, rgba(11, 20, 38, 0.99) 100%);
    border: 1px solid rgba(51, 181, 229, 0.2);
    border-radius: 10px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-lang.active .nav-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background: rgba(51, 181, 229, 0.1);
    color: var(--color-text-primary);
}

.lang-option.active {
    color: var(--color-accent);
    background: rgba(51, 181, 229, 0.1);
}

/* Hamburger Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-hamburger:hover {
    border-color: var(--color-accent);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-secondary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

.nav-hamburger:hover .hamburger-line {
    background: var(--color-accent);
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(11, 20, 38, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-medium);
    z-index: 99;
    overflow-y: auto;
}

.nav-mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-links a {
    display: block;
    padding: 1rem 0.5rem;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.mobile-menu-links a:hover,
.mobile-menu-links a:active {
    color: var(--color-accent);
    padding-left: 1rem;
}

.mobile-menu-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-actions .btn {
    justify-content: center;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 2rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.hero-text {
    max-width: 540px;
    flex-shrink: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(51, 181, 229, 0.1);
    border: 1px solid rgba(51, 181, 229, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.title-line:first-child {
    animation-delay: 0.3s;
}

.title-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 550px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.5s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

/* ========================================
   Hero Platform Preview Placeholder
   ======================================== */

.hero-preview {
    flex: 1;
    max-width: 580px;
    min-width: 400px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.8s;
}

.preview-window {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 100%;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.preview-dots span:nth-child(1) {
    background: rgba(255, 99, 99, 0.6);
}

.preview-dots span:nth-child(2) {
    background: rgba(255, 199, 99, 0.6);
}

.preview-dots span:nth-child(3) {
    background: rgba(99, 255, 132, 0.6);
}

.preview-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.preview-content {
    padding: 2.5rem;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
}

.preview-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.4;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #2AA3D0 100%);
    color: var(--color-bg-primary);
    border: none;
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

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

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

.btn-secondary:hover {
    border-color: var(--color-accent);
    background: rgba(51, 181, 229, 0.1);
    color: var(--color-accent);
}

.btn-tertiary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

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

/* ========================================
   Hero Bridge Section (Stats + Social Proof)
   ======================================== */

.hero-bridge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.7s;
}

/* Key Metrics Row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1.25rem 2.5rem;
    background: rgba(51, 181, 229, 0.03);
    border: 1px solid rgba(51, 181, 229, 0.12);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(51, 181, 229, 0.2);
}


/* ========================================
   Feature Cards
   ======================================== */

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
    padding-bottom: 2rem;
}

.feature-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 28, 50, 0.9) 0%, rgba(11, 20, 38, 0.95) 100%);
    border: 1px solid rgba(51, 181, 229, 0.15);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    transition: all var(--transition-medium);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 160px;
}

.feature-card[data-delay="0"] { animation-delay: 0.7s; }
.feature-card[data-delay="100"] { animation-delay: 0.8s; }
.feature-card[data-delay="200"] { animation-delay: 0.9s; }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(51, 181, 229, 0.4);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(51, 181, 229, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card:hover .card-glow {
    opacity: 1;
}

.feature-card:hover .card-icon-glow {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card:hover .card-icon svg {
    transform: scale(1.05);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(51, 181, 229, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

/* Icon wrapper - left column, full height */
.card-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(145deg, rgba(51, 181, 229, 0.08) 0%, rgba(51, 181, 229, 0.03) 100%);
    border-right: 1px solid rgba(51, 181, 229, 0.1);
    min-width: 140px;
}

.card-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(51, 181, 229, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all var(--transition-medium);
    pointer-events: none;
    filter: blur(12px);
}

.card-icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 16px;
    color: var(--color-accent);
    transition: all var(--transition-medium);
}

.card-icon svg {
    width: 56px;
    height: 56px;
    transition: transform var(--transition-medium);
}

/* Card content section - right column */
.card-content {
    flex: 1;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--color-accent);
    letter-spacing: -0.01em;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Legacy support for cards without wrapper */
.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--color-accent);
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ========================================
   Hero Routes Animation
   ======================================== */

.hero-routes {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.route {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    opacity: 0.15;
}

.route-1 {
    animation: drawRoute 3s ease forwards 1s;
}

.route-2 {
    animation: drawRoute 3.5s ease forwards 1.2s;
    stroke-width: 1.5;
}

.route-3 {
    animation: drawRoute 4s ease forwards 1.4s;
    stroke-width: 1;
}

@keyframes drawRoute {
    to {
        stroke-dashoffset: 0;
    }
}

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

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

/* ========================================
   Page Header (Unified for all sub-pages)
   ======================================== */

.page-header {
    position: relative;
    padding: 140px 2rem 60px;
    text-align: center;
}

.page-header__content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(51, 181, 229, 0.1);
    border: 1px solid rgba(51, 181, 229, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(51, 181, 229, 0.08);
}

.page-header__badge svg {
    width: 16px;
    height: 16px;
}

.page-header__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: transparent;
    background: linear-gradient(135deg, #ffffff 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1.25rem;
}

.page-header__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 2px;
}

.page-header__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 1rem;
}

.page-header__desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .hero {
        padding: 90px 2rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .hero-bridge {
        padding: 0.5rem 0;
    }

    .hero-stats {
        gap: 2rem;
        padding: 0.875rem 1.75rem;
    }

    .stat-value {
        font-size: 1.35rem;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .nav-login {
        font-size: 0.8rem;
    }

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

    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .feature-card h3,
    .card-content h3 {
        font-size: 1.1rem;
    }

    .feature-card p,
    .card-content p {
        font-size: 0.8rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon svg {
        width: 44px;
        height: 44px;
    }

    .card-icon-wrapper {
        min-width: 100px;
        padding: 1.25rem 1.5rem;
    }

    .hero-preview {
        max-width: 420px;
        min-width: 320px;
    }

    .preview-content {
        min-height: 260px;
        padding: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
        padding: 0.75rem 1.5rem;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-divider {
        height: 28px;
    }
}

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

    .navbar {
        padding: 0.75rem 0;
        background: rgba(11, 20, 38, 0.95);
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 28px;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-search-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-lang-toggle {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .lang-arrow {
        width: 12px;
        height: 12px;
    }

    .nav-login,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

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

    /* Mobile Search Overlay */
    .nav-search-overlay {
        padding-top: 15vh;
        align-items: flex-start;
    }

    .nav-search-close {
        top: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    .nav-search-container {
        padding: 0 1.25rem;
        gap: 1.25rem;
    }

    .nav-search-box {
        padding: 1rem 1.25rem;
        border-radius: 14px;
    }

    .nav-search-input {
        font-size: 1.1rem;
    }

    .nav-search-hint {
        font-size: 0.8rem;
    }

    .nav-search-hint kbd {
        padding: 0.15rem 0.4rem;
        font-size: 0.7rem;
    }

    /* =============================================
       MOBILE HERO - PLG Optimized Layout
       ============================================= */

    .hero {
        padding: 75px 1.25rem 1rem;
        justify-content: flex-start;
        gap: 0;
    }

    .hero-content {
        flex-direction: column;
        margin-bottom: 1.25rem;
        text-align: center;
        max-width: 100%;
        flex-shrink: 0;
        gap: 0;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-badge {
        margin: 0 auto 0.625rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 11vw, 3rem);
        margin-bottom: 0.5rem;
        line-height: 1.05;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        max-width: 100%;
        padding: 0;
        color: var(--color-text-secondary);
    }

    /* PLG: Stack CTAs - primary action prominent */
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    /* Hide platform preview on mobile */
    .hero-preview {
        display: none;
    }

    /* Hero Bridge - Stats row */
    .hero-bridge {
        padding: 0;
        margin-bottom: 1rem;
    }

    .hero-stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
        padding: 1.125rem 1.5rem;
        border-radius: 16px;
        width: 100%;
        background: rgba(51, 181, 229, 0.04);
        border: 1px solid rgba(51, 181, 229, 0.12);
    }

    .stat-item {
        flex: 1;
        min-width: 0;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }

    .stat-divider {
        display: none;
    }

    /* PLG: Thumb-friendly buttons */
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        border-radius: 14px;
        min-height: 56px;
        font-weight: 600;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }

    .hero-cta .btn-primary {
        background: linear-gradient(135deg, var(--color-accent) 0%, #2AA3D0 100%);
        color: var(--color-bg-primary);
        border: none;
        box-shadow: 0 4px 20px var(--color-accent-glow);
    }

    .hero-cta .btn-secondary {
        background: rgba(255, 255, 255, 0.06);
        color: var(--color-text-primary);
        border: 1px solid var(--color-border);
        box-shadow: none;
        min-height: 52px;
    }

    /* Feature cards - taller, more readable */
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 0.625rem;
        margin-top: 0;
        padding-bottom: 1rem;
        display: flex;
        flex-direction: column;
    }

    .feature-card {
        padding: 0;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        border-radius: 16px;
        min-height: 90px;
    }

    .card-icon-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
        padding: 1.25rem 1.5rem;
        min-width: auto;
        border-right: 1px solid rgba(51, 181, 229, 0.1);
    }

    .card-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .card-icon svg {
        width: 32px;
        height: 32px;
    }

    .card-icon-glow {
        display: none;
    }

    .card-content {
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem 1.25rem;
    }

    .feature-card h3,
    .card-content h3 {
        margin-bottom: 0.25rem;
        font-size: 1.15rem;
        font-weight: 600;
    }

    .feature-card p,
    .card-content p {
        font-size: 0.925rem;
        line-height: 1.4;
        color: var(--color-text-secondary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Background adjustments */
    .world-map-container {
        opacity: 0.15;
    }

    .bg-glow-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -50px;
    }

    .bg-glow-2 {
        width: 200px;
        height: 200px;
        bottom: -50px;
        left: -50px;
    }

    .bg-grid {
        background-size: 40px 40px;
    }

    .hero-routes {
        display: none;
    }

    /* Page Header responsive */
    .page-header {
        padding: 110px 1.25rem 40px;
    }

    .page-header__badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.85rem;
    }

    .page-header__title {
        font-size: 1.75rem;
        padding-bottom: 0.75rem;
    }

    .page-header__title::after {
        width: 40px;
        height: 2px;
    }
}

/* Extra small devices (iPhone SE, small Android) */
@media (max-width: 480px) {
    .nav-search-overlay {
        padding-top: 12vh;
    }

    .nav-search-container {
        padding: 0 1rem;
    }

    .nav-search-box {
        padding: 0.875rem 1rem;
    }

    .nav-search-input {
        font-size: 1rem;
    }

    .nav-search-close {
        width: 44px;
        height: 44px;
    }

    .hero {
        padding: 70px 1rem 1rem;
    }

    .hero-content {
        margin-bottom: 1rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 2.75rem);
        margin-bottom: 0.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.45;
    }

    .hero-cta {
        gap: 0.4rem;
    }

    .btn {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 52px;
    }

    .hero-cta .btn-secondary {
        min-height: 48px;
    }

    .hero-bridge {
        margin-bottom: 0.875rem;
    }

    .hero-stats {
        padding: 1rem 1.25rem;
        border-radius: 14px;
    }

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

    .stat-label {
        font-size: 0.65rem;
    }

    .feature-cards {
        gap: 0.5rem;
    }

    .feature-card {
        min-height: 82px;
    }

    .card-icon-wrapper {
        padding: 1rem 1.25rem;
    }

    .card-icon {
        width: 44px;
        height: 44px;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }

    .card-content {
        padding: 0.875rem 1rem;
    }

    .feature-card h3,
    .card-content h3 {
        font-size: 1.05rem;
    }

    .feature-card p,
    .card-content p {
        font-size: 0.85rem;
        line-height: 1.35;
    }

    /* Page Header responsive */
    .page-header {
        padding: 100px 1rem 30px;
    }

    .page-header__title {
        font-size: 1.5rem;
    }
}

/* Landscape mobile - two-column layout */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        padding: 60px 1.5rem 1rem;
        gap: 1rem;
    }

    .hero-content {
        flex: 1;
        text-align: left;
        margin-bottom: 0;
        max-width: 48%;
    }

    .hero-badge {
        margin: 0 0 0.4rem 0;
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 1.75rem);
        margin-bottom: 0.35rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        line-height: 1.35;
        padding: 0;
    }

    .hero-cta {
        flex-direction: row;
        gap: 0.4rem;
    }

    .btn {
        width: auto;
        min-height: 36px;
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn-icon {
        width: 14px;
        height: 14px;
    }

    .hero-cta .btn-secondary {
        min-height: 34px;
    }

    /* Stats + Cards in right column */
    .hero-bridge {
        flex: 1;
        max-width: 48%;
        margin-bottom: 0;
    }

    .hero-stats {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
        border-radius: 10px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .feature-cards {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-bottom: 0;
    }

    .feature-card {
        flex: 1;
        flex-direction: column;
        min-height: auto;
        border-radius: 10px;
    }

    .card-icon-wrapper {
        padding: 0.5rem;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid rgba(51, 181, 229, 0.08);
    }

    .card-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .card-icon svg {
        width: 18px;
        height: 18px;
    }

    .card-content {
        padding: 0.5rem;
        text-align: center;
    }

    .feature-card h3,
    .card-content h3 {
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .feature-card p,
    .card-content p {
        display: none;
    }

    /* Search in landscape */
    .nav-search-overlay {
        padding-top: 10vh;
    }

    .nav-search-container {
        gap: 1rem;
    }

    .nav-search-box {
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }

    .nav-search-input {
        font-size: 1rem;
    }

    .nav-search-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }

    .nav-search-hint {
        font-size: 0.75rem;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .nav-container {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }

        .hero {
            padding-left: max(1.25rem, env(safe-area-inset-left));
            padding-right: max(1.25rem, env(safe-area-inset-right));
            padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        }
    }
}

/* ========================================
   Touch & Mobile Interactions
   ======================================== */

/* Active states for touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .btn-primary:active,
    .hero-cta .btn-secondary:active {
        box-shadow: 0 2px 10px var(--color-accent-glow);
    }

    .feature-card:active {
        transform: scale(0.99);
        border-color: rgba(51, 181, 229, 0.3);
    }

    .nav-cta:active {
        background: var(--color-accent);
        color: var(--color-bg-primary);
    }

    /* Disable hover effects on touch */
    .btn:hover {
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }
}

/* Improve tap highlight */
@media (max-width: 768px) {
    .btn,
    .nav-cta,
    .nav-search-toggle,
    .nav-search-close,
    .nav-hamburger,
    .feature-card {
        -webkit-tap-highlight-color: rgba(51, 181, 229, 0.1);
    }

    /* Prevent text selection on buttons */
    .btn,
    .nav-search-toggle,
    .nav-hamburger {
        -webkit-user-select: none;
        user-select: none;
    }

    /* Touch active states for nav elements */
    .nav-search-toggle:active,
    .nav-search-close:active,
    .nav-hamburger:active {
        transform: scale(0.95);
        border-color: var(--color-accent);
    }
}

/* ========================================
   Smooth Scroll & Performance
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize for mobile performance */
@media (max-width: 768px) {
    .bg-glow {
        filter: blur(80px); /* Less blur = better performance */
    }

    .feature-card {
        backdrop-filter: blur(10px);
    }
}

/* ========================================
   Demo Modal
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 20, 38, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(15, 28, 50, 0.95) 0%, rgba(11, 20, 38, 0.98) 100%);
    border: 1px solid rgba(51, 181, 229, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(51, 181, 229, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-medium);
}

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

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

.modal-close:hover {
    background: rgba(51, 181, 229, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(51, 181, 229, 0.15) 0%, rgba(51, 181, 229, 0.05) 100%);
    border: 1px solid rgba(51, 181, 229, 0.3);
    border-radius: 16px;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(51, 181, 229, 0.05);
    box-shadow: 0 0 0 3px rgba(51, 181, 229, 0.1);
}

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

.modal-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
}

.modal-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
        align-items: flex-end;
    }

    .modal {
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

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

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .modal-header {
        margin-bottom: 1.5rem;
    }

    .modal-icon {
        width: 52px;
        height: 52px;
    }

    .modal-icon svg {
        width: 26px;
        height: 26px;
    }

    .modal-title {
        font-size: 1.35rem;
    }

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

    .modal-form {
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 14px;
    }

    .modal-submit {
        min-height: 54px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 1.75rem 1.25rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-subtitle {
        font-size: 0.85rem;
    }
}

/* Landscape mobile modal */
@media (max-width: 896px) and (orientation: landscape) {
    .modal-overlay {
        align-items: center;
        padding: 0.75rem;
    }

    .modal {
        max-height: 95vh;
        padding: 1.5rem;
        border-radius: 20px;
        overflow-y: auto;
    }

    .modal-header {
        margin-bottom: 1rem;
    }

    .modal-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.75rem;
    }

    .modal-icon svg {
        width: 22px;
        height: 22px;
    }

    .modal-title {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .modal-subtitle {
        font-size: 0.8rem;
    }

    .modal-form {
        gap: 0.75rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .form-group textarea {
        min-height: 60px;
    }

    .modal-submit {
        padding: 0.75rem 1rem;
        min-height: 46px;
        font-size: 0.9rem;
    }

    .modal-footer {
        margin-top: 1rem;
        font-size: 0.75rem;
    }
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ========================================
   RTL (Hebrew) Support
   ======================================== */

body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Navigation RTL - keep visual order left-to-right but content reads right-to-left */
body.rtl .nav-container {
    flex-direction: row;
}

body.rtl .nav-links {
    flex-direction: row;
}

body.rtl .nav-links a::after {
    left: auto;
    right: 0;
}

body.rtl .nav-actions {
    flex-direction: row;
}

body.rtl .nav-lang-dropdown {
    right: auto;
    left: 0;
}

body.rtl .nav-search-close {
    right: auto;
    left: 1.5rem;
}

body.rtl .nav-search-box {
    flex-direction: row;
}

body.rtl .nav-search-input {
    text-align: right;
}

/* Hero RTL */
body.rtl .hero-content {
    text-align: right;
}

body.rtl .hero-badge {
    flex-direction: row;
}

body.rtl .hero-cta {
    flex-direction: row;
}

body.rtl .btn {
    flex-direction: row;
}

/* Feature Cards RTL - icon on right, content on left */
body.rtl .feature-card {
    flex-direction: row-reverse;
}

body.rtl .card-icon-wrapper {
    border-right: none;
    border-left: 1px solid rgba(51, 181, 229, 0.1);
}

body.rtl .card-content {
    text-align: right;
}

/* Mobile Menu RTL */
body.rtl .mobile-menu-links a {
    text-align: right;
}

body.rtl .mobile-menu-links a:hover,
body.rtl .mobile-menu-links a:active {
    padding-left: 0.5rem;
    padding-right: 1rem;
}

/* Modal RTL */
body.rtl .modal {
    text-align: right;
}

body.rtl .modal-close {
    right: auto;
    left: 1.25rem;
}

body.rtl .modal-header {
    text-align: center;
}

body.rtl .form-group {
    text-align: right;
}

body.rtl .form-group input,
body.rtl .form-group textarea {
    text-align: right;
}

body.rtl .modal-submit {
    flex-direction: row;
}

body.rtl .modal-footer {
    text-align: center;
}

/* Background elements - flip glows */
body.rtl .bg-glow-1 {
    right: auto;
    left: -100px;
}

body.rtl .bg-glow-2 {
    left: auto;
    right: -100px;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    body.rtl .nav-container {
        flex-direction: row;
    }

    body.rtl .hero-content {
        text-align: center;
    }

    body.rtl .hero-badge {
        flex-direction: row;
        margin: 0 auto 1rem;
    }

    body.rtl .hero-cta {
        flex-direction: column;
    }

    body.rtl .feature-card {
        flex-direction: row-reverse;
    }

    body.rtl .nav-search-close {
        left: 1rem;
    }

    body.rtl .modal {
        text-align: right;
    }

    body.rtl .modal-close {
        left: 1rem;
    }

    body.rtl .modal-header {
        text-align: center;
    }
}

/* Landscape mobile RTL */
@media (max-width: 896px) and (orientation: landscape) {
    body.rtl .hero {
        flex-direction: row;
    }

    body.rtl .hero-content {
        text-align: right;
    }

    body.rtl .hero-badge {
        margin: 0 auto 0.5rem 0;
    }

    body.rtl .hero-cta {
        flex-direction: row;
    }

    body.rtl .nav-search-close {
        left: 0.75rem;
    }
}
