/* style.css */
:root {
    --bg-dark: #07070a;
    --text-main: #f0f0f5;
    --text-muted: #8e8e9f;
    --accent-1: #00f0ff;
    --accent-2: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
}

body {
    overflow-x: hidden;
}

/* Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, #11111a 0%, #050508 100%);
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 10, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-1);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-1), #0073ff);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    gap: 0.5rem;
}

.btn-large .subtext {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-direction: row;
}

/* Features */
.features {
    padding: 8rem 4rem;
    background: linear-gradient(to bottom, transparent, rgba(7, 7, 10, 0.95) 20%);
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* Download Section */
.download {
    padding: 8rem 4rem;
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#download-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.download-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(7, 7, 10, 0.4);
    backdrop-filter: blur(75%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.download-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.download-container>* {
    position: relative;
    z-index: 1;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download .subtext {
    font-size: 0.85rem;
    color: var(--text-main);
}

.download p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 2rem 4rem;
    border-top: 1px solid var(--glass-border);
    background: #050508;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* How to Install */
.install-guide {
    padding: 8rem 4rem;
    background: linear-gradient(to top, transparent, rgba(7, 7, 10, 0.95) 20%);
}

.install-split {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.install-card {
    flex: 1;
    min-width: 300px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease;
    text-align: left;
}

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

.install-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-1);
}

.install-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.install-card ol {
    padding-left: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.install-card ol li {
    margin-bottom: 0.8rem;
}

.install-card ol li b {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .features, .install-guide, .download { padding: 6rem 2rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; gap: 1rem; }
    .navbar { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .install-split { flex-direction: column; }
    .download-buttons { flex-direction: column; }
    .btn-large { padding: 1rem 2rem; font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .section-heading h2 { font-size: 2rem; }
    .feature-card, .install-card { padding: 1.5rem; }
    .download-container { padding: 3rem 1.5rem; }
    .btn-primary, .btn-secondary, .btn-outline { font-size: 0.9rem; }
}

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

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 3s infinite linear;
}

.loader::before,
.loader::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader::before {
    border-top-color: var(--accent-1);
    border-bottom-color: var(--accent-2);
    transform: rotateY(70deg) rotateZ(0deg);
    animation: spinRing 2s infinite linear;
}

.loader::after {
    border-left-color: var(--accent-1);
    border-right-color: var(--accent-2);
    transform: rotateX(70deg) rotateZ(0deg);
    animation: spinRing reverse 2s infinite linear;
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes spinRing {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

/* Button Glow for Download button in header */
.btn-glow {
    position: relative;
    border-color: var(--accent-1);
    color: var(--accent-1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), inset 0 0 15px rgba(0, 240, 255, 0.3);
    text-shadow: 0 0 5px var(--accent-1);
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-1);
    color: var(--accent-1);
}

/* Mac Button Styles */
.btn-mac {
    background: linear-gradient(90deg, #b000ff, #ff007f);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(176, 0, 255, 0.2);
}

.btn-mac:hover {
    background: linear-gradient(90deg, #c433ff, #ff3399);
    box-shadow: 0 6px 30px rgba(255, 0, 127, 0.4);
    transform: translateY(-2px);
    color: #fff;
}