/* Zen Care - Modern Dark 2026 Theme */

/* Design Tokens */
:root {
    --bg-dark: #030712;
    --bg-darker: #010308;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-hover: rgba(0, 240, 255, 0.3);
    
    --primary-color: #00F0FF; /* Neon Cyan */
    --accent-color: #3B82F6; /* Bright Blue */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;

    /* Department Colors - Neon variants */
    --opd: #3B82F6;
    --indoor-pharmacy: #10B981;
    --emergency: #EF4444;
    --ot: #8B5CF6;
    --mgmt: #EAB308;
    --btn-primary: #00F0FF;

    /* Shadows & Transitions */
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.2);
    --shadow-glow-hover: 0 0 30px rgba(0, 240, 255, 0.4);
    --transition: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

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

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-nav {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--bg-darker);
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-nav:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow-hover);
}

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

.btn-outline {
    border: 1px solid var(--surface-border);
    background: var(--surface);
    color: var(--text-main);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.1), 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* Premium Animated Download Button */
.btn-download-premium {
    position: relative;
    padding: 16px 32px;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-bounce);
    display: inline-flex;
    text-align: left;
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.btn-download-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 0;
}

.btn-download-premium .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.4) 0%, transparent 70%);
    opacity: 0.2;
    transition: var(--transition);
    z-index: 0;
    pointer-events: none;
}

.btn-download-premium .btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-download-premium i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    transition: var(--transition-bounce);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.btn-download-premium .text-group {
    display: flex;
    flex-direction: column;
}

.btn-download-premium .main-text {
    color: #E0FFFF;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    font-family: 'Sora', sans-serif;
    transition: var(--transition);
}

.btn-download-premium .sub-text {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

/* Hover Micro-Actions */
.btn-download-premium:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(0, 240, 255, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 240, 255, 0.2), 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-download-premium:hover::before {
    transform: translateX(100%);
}

.btn-download-premium:hover .btn-glow {
    opacity: 0.6;
    width: 150%;
    height: 150%;
}

.btn-download-premium:hover i {
    transform: translateY(3px) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.8));
    animation: bounce-icon 1s infinite alternate cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-download-premium:hover .main-text {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.btn-download-premium:hover .sub-text {
    color: var(--primary-color);
}

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

@keyframes bounce-icon {
    0% { transform: translateY(0px) scale(1.1); }
    100% { transform: translateY(4px) scale(1.1); }
}

/* Footer variant */
.footer-version {
    padding: 12px 24px;
}

.footer-version .main-text {
    font-size: 1rem;
}

/* Animations */
.fade-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent;
}

#navbar.nav-hidden {
    transform: translateY(-100%);
}

#navbar.scrolled {
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0;
    border-bottom: 1px solid var(--surface-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-color);
}

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

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

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
#hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
}

#hero-canvas, .section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1.0;
}

.relative-section {
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary-color), #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-frame {
    display: inline-block;
    max-width: 800px;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.1; filter: blur(70px); }
    100% { opacity: 0.3; filter: blur(100px); }
}

.phone-frame img {
    width: 100%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
    animation: floating-advanced 6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    transform-style: preserve-3d;
}

@keyframes floating-advanced {
    0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-2deg); }
    50% { transform: translateY(-20px) rotateX(-2deg) rotateY(2deg); }
}

/* Stats Bar */
#stats {
    background-color: transparent;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 30px 50px;
    box-shadow: var(--shadow-main);
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-bounce);
    padding: 24px 32px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
}

.stat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    border-radius: inherit;
    z-index: 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition), transform 800ms ease;
    transform: scale(0.5);
    z-index: 0;
    pointer-events: none;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 240, 255, 0.4);
    background: var(--surface-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.stat-box:hover::before, .stat-box:hover::after {
    opacity: 1;
}

.stat-box:hover::after {
    transform: scale(1);
}

.stat-box > * {
    position: relative;
    z-index: 1;
}

.stat-box i {
    width: 54px;
    height: 54px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
    transition: var(--transition-bounce);
    background: rgba(0, 240, 255, 0.05);
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.stat-box:hover i {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8));
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary-color);
}

.stat-info h2 {
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: -4px;
    transition: var(--transition-bounce);
}

.stat-box:hover .stat-info h2 {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    transform: scale(1.05);
    transform-origin: left;
}

.stat-info span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.stat-box:hover .stat-info span {
    color: #E2E8F0;
}

/* Departments Section */
#departments {
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #E0FFFF;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
    display: inline-block;
    position: relative;
    transition: var(--transition-bounce);
    cursor: default;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width var(--transition-bounce);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    border-radius: 2px;
}

.section-header:hover h2 {
    transform: translateY(-5px) scale(1.05);
    color: var(--white);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.section-header:hover h2::after {
    width: 60%;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.dept-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-main);
    transition: var(--transition-bounce);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--accent-color), transparent 70%);
    opacity: 0.05;
    transition: var(--transition);
    z-index: 0;
}

.dept-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%; width: 4px;
    background: var(--accent-color);
    transition: var(--transition);
    box-shadow: 0 0 15px var(--accent-color);
}

.dept-card > * {
    position: relative;
    z-index: 1;
}

.dept-card:hover {
    transform: translateY(-12px);
    border-color: var(--surface-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.1);
}

.dept-card:hover::before {
    opacity: 0.15;
}

.dept-card:hover::after {
    width: 6px;
}

.dept-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 24px;
    transition: var(--transition-bounce);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.dept-card:hover .dept-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-color);
    border-color: transparent;
}

.dept-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #E0FFFF;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.1);
    transition: var(--transition-bounce);
    position: relative;
    display: inline-block;
}

.dept-card:hover h3 {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transform: translateX(5px);
}

.dept-card .subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-list {
    list-style: none;
    margin-top: auto;
}

.feature-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.feature-list li:hover {
    color: var(--text-main);
    transform: translateX(4px);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transition: var(--transition);
}

.feature-list li:hover::before {
    transform: translateY(-50%) scale(1.5);
}

/* Steps Section */
#how-it-works {
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--surface-border-hover), transparent);
    z-index: 0;
}

.step {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 50px 30px 40px;
    position: relative;
    z-index: 1;
    transition: var(--transition-bounce);
}

.step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.step-num {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transition: var(--transition);
}

.step:hover .step-num {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--primary-color);
}

.step i {
    width: 56px;
    height: 56px;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: var(--transition-bounce);
}

.step:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.step h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    transition: var(--transition-bounce);
    color: #E0FFFF;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.1);
}

.step:hover h3 {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.step p {
    color: var(--text-muted);
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.highlight {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    padding: 32px;
    border-radius: 20px;
    display: flex;
    gap: 24px;
    box-shadow: var(--shadow-main);
    transition: var(--transition-bounce);
    overflow: hidden;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 100px; height: 100px;
    background: var(--primary-color);
    filter: blur(60px);
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
    pointer-events: none;
}

.highlight:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.2);
}

.highlight:hover::after {
    opacity: 0.15;
}

.highlight i {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    background: rgba(0, 240, 255, 0.1);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: var(--transition-bounce);
}

.highlight:hover i {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.highlight .content h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: #E0FFFF;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.1);
    transition: var(--transition-bounce);
}

.highlight:hover .content h3 {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transform: translateX(5px);
}

.highlight .content p {
    color: var(--text-muted);
}

/* CTA Overlay */
#cta {
    background: transparent;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-box {
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border-hover);
    padding: 80px 40px;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 240, 255, 0.05);
    transition: var(--transition-bounce);
}

/* Standard SVG Tracing Border for Cards */
.card-border-svg, .cta-border-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
    overflow: visible;
}

.trace-rect {
    stroke: var(--primary-color);
    stroke-width: 2.5px;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.stat-box:hover .trace-rect,
.highlight:hover .trace-rect,
.cta-box:has(.btn-download-premium:hover) .trace-rect {
    stroke-dashoffset: 0;
    opacity: 1;
}

.cta-box:has(.btn-download-premium:hover) {
    background: rgba(0, 240, 255, 0.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), inset 0 0 50px rgba(0, 240, 255, 0.1);
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #E0FFFF;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transition: var(--transition-bounce);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.cta-box:has(.btn-download-premium:hover) h2 {
    transform: scale(1.08);
    color: var(--white);
    text-shadow: 0 0 40px rgba(0, 240, 255, 1), 0 0 20px rgba(0, 240, 255, 0.6);
}

.cta-box p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.pulse-line {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    z-index: -1;
    opacity: 0.3;
    animation: cta-pulse 3s infinite;
}

@keyframes cta-pulse {
    0% { transform: scaleY(1); opacity: 0.1; }
    50% { transform: scaleY(20); opacity: 0.05; filter: blur(10px); }
    100% { transform: scaleY(1); opacity: 0.1; }
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 0;
    position: relative;
    border-top: 1px solid var(--surface-border);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 60px;
}

.footer-brand p {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.footer-bottom {
    padding: 24px 0;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--surface-border);
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Grid/Flex adjustments */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.2rem; }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .nav-links, .btn-nav { display: none !important; }
    .menu-btn { display: flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--primary-color); }
    .stats-bar { flex-wrap: wrap; gap: 32px; justify-content: center; }
    .steps-grid, .highlights-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .cta-box h2 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.5rem; }
    .stat-box { width: 100%; justify-content: flex-start; padding-left: 10%; }
    .footer-content { flex-direction: column; gap: 40px; text-align: center; }
    .footer-links { flex-direction: column; gap: 20px; }
    .footer-bottom .container { flex-direction: column; gap: 10px; }
    .cta-box { padding: 40px 20px; }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

.logo-svg {
    width: 150px;
    height: auto;
    overflow: visible;
}

.z-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    stroke: var(--primary-color);
    animation: drawZ 1.5s ease forwards;
}

.pulse-container {
    opacity: 0;
    animation: showPulse 0.5s ease 1.2s forwards;
}

.pulse-line {
    stroke: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--primary-color));
    animation: travelPulse 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1.5s infinite;
}

.loader-text {
    margin-top: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
}

.loader-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: revealLetter 0.5s ease forwards;
}

.loader-text .letter:nth-child(1) { animation-delay: 2.5s; }
.loader-text .letter:nth-child(2) { animation-delay: 2.6s; }
.loader-text .letter:nth-child(3) { animation-delay: 2.7s; }
.loader-text .letter:nth-child(4) { animation-delay: 2.8s; }
.loader-text .letter:nth-child(5) { animation-delay: 2.9s; }
.loader-text .letter:nth-child(6) { animation-delay: 3.0s; }
.loader-text .letter:nth-child(7) { animation-delay: 3.1s; }

@keyframes drawZ {
    0% { stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 0; filter: drop-shadow(0 0 10px var(--primary-color)); }
}

@keyframes showPulse {
    to { opacity: 1; }
}

@keyframes travelPulse {
    0% { transform: translate(17.5px, 20px); opacity: 0; }
    10% { opacity: 1; }
    20% { transform: translate(17.5px, 30px); opacity: 1; } /* Exact match with Z start point */
    80% { transform: translate(17.5px, 90px); opacity: 1; } /* Exact match with Z end point */
    100% { transform: translate(17.5px, 100px); opacity: 0; }
}

@keyframes revealLetter {
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Drawer Styles */
@media (max-width: 960px) {
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-dark);
        z-index: 2005;
        padding: 40px 30px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
        flex-direction: column;
    }

    .mobile-menu.active {
        right: 0;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(8px);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease;
    }

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

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 60px;
    }

    .close-btn {
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--surface-border);
        color: var(--text-main);
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-links li {
        margin-bottom: 30px;
        opacity: 0;
        transform: translateX(30px);
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-menu.active .mobile-nav-links li {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }

    .mobile-nav-links a {
        text-decoration: none;
        color: var(--text-main);
        font-size: 1.8rem;
        font-family: 'Outfit', sans-serif;
        font-weight: 600;
    }

    .mobile-menu-footer {
        margin-top: auto;
    }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 961px) {
    .mobile-menu, .menu-overlay {
        display: none !important;
    }
}
