/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #242430;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #4a9eff;
    --accent-hover: #5baaff;
    --success: #10b981;
    --border: #2a2a3a;
    --grid-pattern: rgba(255, 255, 255, 0.03);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    cursor: default;
}

body.loaded {
    opacity: 1;
}

body:not(.loaded) {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Grid Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-pattern) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-pattern) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.logo-bars .bar {
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

.logo-bars .bar:nth-child(1) {
    height: 12px;
    animation-delay: 0s;
}

.logo-bars .bar:nth-child(2) {
    height: 18px;
    animation-delay: 0.2s;
}

.logo-bars .bar:nth-child(3) {
    height: 14px;
    animation-delay: 0.4s;
}

.logo-bars .bar:nth-child(4) {
    height: 16px;
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.6;
        transform: scaleY(0.8);
    }
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.logo-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: lowercase;
    opacity: 0.8;
}

.logo-text:hover .logo-main {
    color: var(--accent);
}

.logo-text:hover .logo-sub {
    opacity: 1;
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.header-cta-text {
    display: inline;
}

@media (max-width: 1024px) {
    .header-nav {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
    
    .header-cta-text {
        display: none;
    }
    
    .header-cta-btn {
        padding: 0.625rem;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .header-cta-btn {
        display: none;
    }
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.menu-dropdown.active {
    display: block;
}

.menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.menu-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Subscription Section */
.subscription-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.subscription-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.subscription-id {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.subscription-expiry {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.expand-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.expand-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 0 8rem;
    margin-bottom: 4rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-title-main {
    font-size: 7rem;
    font-weight: 900;
    letter-spacing: -5px;
    background: linear-gradient(135deg, #4a9eff 0%, #7bb3ff 30%, #a8d0ff 60%, #4a9eff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out, gradientShift 3s ease infinite;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 40px rgba(74, 158, 255, 0.3);
    filter: drop-shadow(0 4px 20px rgba(74, 158, 255, 0.2));
    transition: all 0.3s ease;
}

.hero-title-main::after {
    content: 'VPN';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(123, 179, 255, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
}

.hero-title-sub {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: lowercase;
    opacity: 0.85;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    margin-left: 0.5rem;
    position: relative;
    top: -0.5rem;
}

.hero-slogan {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    opacity: 0.9;
}

.hero-features {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3.5rem;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-feature.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%);
    border: 2px solid rgba(74, 158, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.hero-feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(74, 158, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-feature:hover .hero-feature-icon::before {
    width: 100px;
    height: 100px;
}

.hero-feature:hover .hero-feature-icon {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.25) 0%, rgba(74, 158, 255, 0.15) 100%);
    border-color: var(--accent);
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 12px 30px rgba(74, 158, 255, 0.3), 0 0 20px rgba(74, 158, 255, 0.2);
}

.hero-feature:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.4), 0 0 0 0 rgba(74, 158, 255, 0.4);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.hero-cta-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 50px rgba(74, 158, 255, 0.6), 0 0 30px rgba(74, 158, 255, 0.4);
}

.hero-cta-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.hero-cta-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

body.loaded .hero-section {
    opacity: 1;
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.1s both;
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-section {
    overflow: hidden;
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(74, 158, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Installation Section */
.installation-section {
    margin-bottom: 4rem;
}

.app-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.app-btn:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    color: var(--text-primary);
}

.app-btn.active {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}

.app-icon {
    font-size: 1.25rem;
}

.os-selector {
    margin-left: auto;
}

.os-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.os-btn:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    color: var(--text-primary);
}

.installation-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(74, 158, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.download-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.add-subscription-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-subscription-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

/* Advantages Section */
.advantages-section {
    margin-bottom: 4rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    margin-bottom: 4rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr !important;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section:first-child {
    max-width: 350px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.contact-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.contact-link svg {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

.link-container {
    display: flex;
    gap: 0.5rem;
}

.link-container input {
    flex: 1;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.copy-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.copy-btn:hover {
    background: var(--accent-hover);
}

/* ============================================
   MODERN EFFECTS STYLES
   ============================================ */

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(74, 158, 255, 0.4);
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.2s, transform 0.2s;
    transform: translate(-50%, -50%);
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Button Improvements */
.hero-cta-btn,
.header-cta-btn {
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .main-content {
        padding: 1rem;
    }
    
    /* Disable cursor trail on mobile */
    .cursor-trail {
        display: none;
    }
    
    /* Adjust hero section for mobile */
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    /* Better spacing on mobile */
    .hero-title-main {
        font-size: 4rem;
        letter-spacing: -3px;
    }
    
    .hero-title-sub {
        font-size: 1.25rem;
        top: -0.2rem;
    }
    
    .hero-slogan {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 2rem;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .hero-feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .hero-cta-btn {
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
    
    /* Reduce particle count on mobile */
    .particle-canvas {
        opacity: 0.3;
    }
    
    /* Footer mobile styles */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 0;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section h4 {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }
    
    .contact-link {
        font-size: 0.8125rem;
        padding: 0.5rem 0;
    }
    
    .footer-links a {
        font-size: 0.8125rem;
        padding: 0.5rem 0;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title-main {
        font-size: 5.5rem;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .hero-features {
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
}

/* Medium screens - ensure footer looks good */
@media (min-width: 1025px) and (max-width: 1399px) {
    .footer-content {
        grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr !important;
        gap: 2.5rem;
    }
    
    .footer-container {
        padding: 0 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-link {
        font-size: 0.875rem;
        padding: 0;
    }
    
    .footer-links a {
        font-size: 0.875rem;
        padding: 0;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 1400px;
    }
    
    .hero-features {
        gap: 4rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr !important;
        gap: 4rem;
    }
    
    .footer-container {
        padding: 0 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-link {
        font-size: 0.875rem;
        padding: 0;
    }
    
    .footer-links a {
        font-size: 0.875rem;
        padding: 0;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .hero-title-main:hover {
        transform: none !important;
    }
    
    .hero-feature:hover .hero-feature-icon {
        transform: translateY(-4px) scale(1.05);
    }
}

    .section-title {
        font-size: 1.5rem;
    }

    .app-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .os-selector {
        margin-left: 0;
    }

    .os-btn {
        width: 100%;
        justify-content: center;
    }

    .step-card {
        padding: 1.5rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   MODERN EFFECTS STYLES
   ============================================ */

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(74, 158, 255, 0.4);
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.2s, transform 0.2s;
    transform: translate(-50%, -50%);
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
    width: 0;
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Button Improvements */
.hero-cta-btn,
.header-cta-btn {
    position: relative;
    overflow: hidden;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Disable cursor trail on mobile */
    .cursor-trail {
        display: none;
    }
    
    /* Adjust hero section for mobile */
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    /* Better spacing on mobile */
    .hero-title-main {
        font-size: 4rem;
        letter-spacing: -3px;
    }
    
    .hero-title-sub {
        font-size: 1.25rem;
        top: -0.2rem;
    }
    
    .hero-slogan {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 2rem;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .hero-feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .hero-cta-btn {
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
    
    /* Reduce particle count on mobile */
    .particle-canvas {
        opacity: 0.3;
    }
    
    /* Fix header on mobile */
    .header-nav {
        display: none;
    }
    
    .header-cta-btn {
        display: none;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title-main {
        font-size: 5.5rem;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .header-nav {
        gap: 1.5rem;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 1400px;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .hero-title-main:hover {
        transform: none !important;
    }
    
    .hero-feature:hover .hero-feature-icon {
        transform: translateY(-4px) scale(1.05);
    }
}

/* Prevent layout shift */
.hero-badge,
.hero-title,
.hero-slogan,
.hero-subtitle,
.hero-feature,
.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded .hero-badge,
body.loaded .hero-title,
body.loaded .hero-slogan,
body.loaded .hero-subtitle,
body.loaded .hero-feature,
body.loaded .hero-cta {
    opacity: 1;
    transform: translateY(0);
}

