/* ===== CSS Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #0a0e17;
    --foreground: #e8edf5;
    --card: #0f1422;
    --card-foreground: #e8edf5;
    --primary: #1b62d2;
    --primary-light: #3b82f6;
    --primary-dark: #1550a8;
    --secondary: #151c2c;
    --muted: #151c2c;
    --muted-foreground: #8293a8;
    --border: #1c2640;
    --radius: 0.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Animations ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(27, 98, 210, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(27, 98, 210, 0.6);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(28, 38, 64, 0.5);
    padding: 0 2rem;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
}

.navbar-brand img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--primary-light);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 10rem 0 5rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(27, 98, 210, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(27, 98, 210, 0.3);
    background: rgba(27, 98, 210, 0.08);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero h1 span {
    color: var(--primary-light);
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--primary-light);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: rgba(27, 98, 210, 0.5);
    background: rgba(27, 98, 210, 0.05);
}

/* ===== Version Badge ===== */
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.version-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ===== Hero Video ===== */
.hero-video-wrapper {
    max-width: 800px;
    margin: 3rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(28, 38, 64, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(27, 98, 210, 0.1);
}

.hero-video-wrapper video {
    width: 100%;
    display: block;
}

/* ===== Feature Sections ===== */
.features-section {
    padding: 6rem 0;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 0;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse>* {
    direction: ltr;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.feature-tag.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-tag.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.feature-tag.green {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.feature-tag.red {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.feature-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.feature-content h2 span {
    color: var(--primary-light);
}

.feature-content p {
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-content p strong {
    color: var(--foreground);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.feature-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    margin-top: 0.45rem;
}

.feature-image {
    position: relative;
}

.feature-image img {
    border-radius: 12px;
    border: 1px solid rgba(28, 38, 64, 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: perspective(1000px) rotateY(-10deg) scale(1.02);
}

.feature-block.reverse .feature-image img {
    transform: perspective(1000px) rotateY(5deg);
}

.feature-block.reverse .feature-image:hover img {
    transform: perspective(1000px) rotateY(10deg) scale(1.02);
}

/* ===== Why Choose Section ===== */
.why-section {
    padding: 6rem 0;
    text-align: center;
}

.why-section .section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.why-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.why-section h2 span {
    color: var(--primary-light);
}

.why-section .section-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--muted-foreground);
    font-size: 1.05rem;
    line-height: 1.7;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: rgba(27, 98, 210, 0.3);
    transform: translateY(-2px);
}

.why-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(27, 98, 210, 0.05) 50%, transparent);
}

.cta-section .section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.cta-section h2 span {
    color: var(--primary-light);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--muted-foreground);
    font-size: 1.05rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.free-badge {
    text-align: center;
}

.free-badge .title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ef4444;
    font-style: italic;
    letter-spacing: 0.05em;
}

.free-badge .subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-brand img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

/* ===== SVG Icons ===== */
.icon {
    display: inline-block;
    vertical-align: middle;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .feature-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .feature-image img {
        transform: none !important;
    }

    .feature-image:hover img {
        transform: scale(1.02) !important;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar-links {
        gap: 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .feature-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ===== Download Page ===== */
.download-page {
    padding: 8rem 0 4rem;
    text-align: center;
    min-height: 100vh;
}

.download-page h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.download-page h1 span {
    color: var(--primary-light);
}

.download-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--muted-foreground);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Platform Cards Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.platform-card {
    background: var(--card);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 30px rgba(27, 98, 210, 0.15);
}

.platform-card-disabled {
    border-color: var(--border);
    opacity: 0.65;
}

.platform-card-disabled:hover {
    border-color: var(--border);
    box-shadow: none;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-icon {
    color: var(--primary-light);
    flex-shrink: 0;
}

.platform-card-disabled .platform-icon {
    color: var(--muted-foreground);
}

.platform-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.platform-info p {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

.detected-badge {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(27, 98, 210, 0.15);
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(27, 98, 210, 0.3);
}

/* Platform Features */
.platform-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.platform-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.platform-features li svg {
    flex-shrink: 0;
}

/* Download Button in Card */
.platform-download-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
}

.btn-disabled {
    background: var(--secondary);
    color: var(--muted-foreground);
    cursor: not-allowed;
    border: 1px solid var(--border);
}

.btn-disabled:hover {
    background: var(--secondary);
    transform: none;
}

/* Help Card */
.help-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

.help-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.help-card p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.help-card .btn {
    margin: 0 auto;
}

/* ===== Download Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #ffffff;
    color: #1a1a2e;
    border-radius: 12px;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1a1a2e;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.25rem;
}

.modal-os {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-os strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.modal-os p {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Discord Promo inside Modal */
.modal-discord {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.modal-discord-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.modal-discord-header strong {
    font-size: 0.9rem;
}

.modal-discord p {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-discord {
    background: #5865F2;
    color: white;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.btn-discord:hover {
    background: #4752C4;
}

/* Modal Download Button */
.modal-download-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

/* ===== Download Page Responsive ===== */
@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .download-page {
        padding: 7rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 1.5rem;
    }

    .platform-card {
        padding: 1.5rem;
    }
}

/* ===== Splash / Opening Screen ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e17 0%, #0d1526 40%, #111d3a 70%, #0f1830 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-text {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: -0.025em;
    opacity: 0;
    transform: scale(0.9);
    animation: splashFadeIn 1s ease-out 0.2s forwards;
}

@keyframes splashFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}