:root {
    --bg-color: #050508;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --accent-glow: rgba(138, 43, 226, 0.5); /* Deep purple/space accent */
    --accent-color: #8A2BE2;
    --accent-light: #B882FF;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

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

/* --- Space Background Effects --- */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Generating a CSS-only starfield based on box-shadows is typically done via preprocessors, 
   but we'll use a radial gradient fallback for simplicity and performance */
#stars1 {
    background: radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 50px 160px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 130px 80px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(1px 1px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: drift 100s linear infinite;
    opacity: 0.3;
}

#stars2 {
    background: radial-gradient(2px 2px at 100px 150px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 200px 50px, #ffffff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 300px 300px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 400px 400px;
    animation: drift 150s linear infinite;
    opacity: 0.5;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-500px); }
}

/* --- Utilities --- */
.glassmorphism {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3, .terminal-title {
    font-family: 'Outfit', sans-serif;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-logo {
    height: 32px;
    width: auto;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-glow:hover {
    background: var(--accent-light);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 5% 2rem;
    position: relative;
}

/* Subtle underlying glow in hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    margin-bottom: 1rem;
}

.main-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 650px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- Features Section --- */
.features-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Quickstart Section --- */
.quickstart-section {
    padding: 6rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.terminal-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-24px); /* offset dots */
}

.terminal-body {
    padding: 1.5rem;
    overflow-x: auto;
}

pre {
    margin: 0;
}

code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

code .comment {
    color: #6B7280;
}

/* --- Footer --- */
footer {
    padding: 3rem 5%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4rem;
    border-top: 1px solid var(--card-border);
}

footer p {
    margin-bottom: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile handling */
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
