/* AetherRelay & WireGuard Aether Design System - Red Crystal Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');

:root {
    --bg-color: #08090d;
    --bg-surface: #12141f;
    --card-bg: rgba(22, 24, 36, 0.75);
    --card-border: rgba(255, 60, 75, 0.18);
    --card-hover-border: rgba(255, 60, 75, 0.5);
    --primary-gradient: linear-gradient(135deg, #ff3b47 0%, #e51b24 50%, #990012 100%);
    --accent-red: #ff3b47;
    --accent-red-bright: #ff6871;
    --accent-red-dark: #8b080f;
    --red-glow: rgba(255, 59, 71, 0.35);
    --red-glow-strong: rgba(255, 59, 71, 0.65);
    --text-primary: #ffffff;
    --text-secondary: #a4aab9;
    --text-muted: #6e7485;
    --nav-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-glow: 0 0 40px rgba(229, 27, 36, 0.3);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body.no-scroll {
    overflow: hidden;
}

/* Background Ambient Lighting */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 800px;
    background: radial-gradient(circle, rgba(229, 27, 36, 0.18) 0%, rgba(139, 8, 15, 0.08) 45%, rgba(8, 9, 13, 0) 75%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    height: var(--nav-height);
    width: 100%;
    position: sticky;
    top: 0;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 60, 75, 0.12);
}

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

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

.logo img, .logo svg {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 59, 71, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover img, .logo:hover svg {
    transform: scale(1.05) rotate(3deg);
}

.logo span {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 59, 71, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red-bright);
    -webkit-text-fill-color: var(--accent-red-bright);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 59, 71, 0.4);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent-red);
}

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

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-red);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    padding: 40px;
}

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

.mobile-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--accent-red);
}

.mobile-menu .btn {
    font-size: 18px;
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 90px 0 60px;
    text-align: center;
    position: relative;
    width: 100%;
}

.hero-brand-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand-icon img, .hero-brand-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 59, 71, 0.65));
    animation: floatGlow 4s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 59, 71, 0.5));
    }
    100% {
        transform: translateY(-10px) scale(1.03);
        filter: drop-shadow(0 0 35px rgba(255, 59, 71, 0.85));
    }
}

.hero h1 {
    font-size: clamp(38px, 6.5vw, 68px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero span.gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(229, 27, 36, 0.3));
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(229, 27, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(229, 27, 36, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
    color: white;
}

/* TV Frame & Hero Mockup */
.hero-mockup-wrapper {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
}

.tv-frame {
    background: #000;
    border-radius: 28px;
    padding: 18px 18px 24px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(229, 27, 36, 0.25);
    position: relative;
    overflow: hidden;
}

.tv-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 26px;
    border: 1px solid rgba(255, 60, 75, 0.3);
    pointer-events: none;
    z-index: 2;
}

.tv-screen {
    border-radius: 16px;
    overflow: hidden;
    background: #0d0f17;
    position: relative;
}

.tv-screen img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tv-screen:hover img {
    transform: scale(1.02);
}

.tv-stand {
    width: 220px;
    height: 12px;
    background: linear-gradient(180deg, #2a2d3b 0%, #151722 100%);
    margin: -2px auto 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
}

/* Gallery Section */
.gallery-section {
    padding: 90px 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(8, 9, 13, 0) 0%, rgba(18, 20, 31, 0.6) 50%, rgba(8, 9, 13, 0) 100%);
}

.section-tag {
    color: var(--accent-red);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 14px;
    text-align: center;
}

.section-title {
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto 50px;
}

/* Screenshots Showcase Grid */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.screenshot-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.screenshot-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: #000;
    margin-bottom: 20px;
    position: relative;
}

.screenshot-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.screenshot-card:hover .screenshot-img-wrapper img {
    transform: scale(1.03);
}

.screenshot-info {
    padding: 8px 4px 4px;
}

.screenshot-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshot-info h3 svg {
    color: var(--accent-red);
    width: 24px;
    height: 24px;
}

.screenshot-info p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* Features Grid Section */
.features {
    padding: 80px 0 100px;
    width: 100%;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-glow);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 59, 71, 0.12);
    border: 1px solid rgba(255, 59, 71, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg, .feature-icon img {
    width: 34px;
    height: 34px;
    color: var(--accent-red);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Call to Action Banner */
.cta-banner {
    margin: 40px 0 90px;
    padding: 60px 40px;
    background: radial-gradient(circle at center, rgba(229, 27, 36, 0.25) 0%, rgba(18, 20, 31, 0.9) 100%);
    border-radius: 32px;
    border: 1px solid var(--card-hover-border);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 580px;
    margin: 0 auto 32px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 60, 75, 0.15);
    width: 100%;
    background: rgba(8, 9, 13, 0.95);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.6;
}

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

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-red);
    font-weight: 800;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s, transform 0.2s;
}

.footer-column a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 50px 0 30px;
    }
    
    .hero-brand-icon {
        width: 100px;
        height: 100px;
    }
    
    .hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;
        padding: 0 10px;
    }

    .tv-frame {
        padding: 10px 10px 14px;
        border-radius: 18px;
    }

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

    .feature-card {
        padding: 28px 24px;
    }
    
    .cta-banner {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
        gap: 40px;
        width: 100%;
    }

    .footer-column {
        align-items: center;
    }
}
