:root {
    --bg: #000000;
    --fg: #ededed;
    --muted: #888888;
    --border: #222222;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-heading);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

.top-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 100%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 50;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    z-index: 10;
}

.logo-icon {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--muted);
    align-items: center;
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: color 0.2s;
}

.dropbtn:hover {
    color: #fff;
}

.dropdown-icon {
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background-color: #0a0a0a;
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(10px);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.15s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-item-title {
    color: #fff;
    font-weight: 500;
    margin-bottom: 2px;
}

.dropdown-item-desc {
    color: var(--muted);
    font-size: 0.75rem;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.github-link {
    color: var(--muted);
}
.github-link:hover {
    color: #fff;
}

/* Hero */
.hero {
    max-width: 800px;
    margin: 180px auto 100px;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #eaeaea;
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Terminal / Setup block */
.terminal-showcase {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 1.5rem;
}

.terminal-wrapper {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.terminal-header {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    background: #050505;
}

.terminal-tab {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
}

.prompt { color: #eb34a1; } /* Astral's pink */
.cmd { color: #4b9ced; } /* Blue */
.dim { color: #555555; }
.output { color: #a1a1aa; }

.app-showcase {
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    padding: 0;
    background: #000;
}

.app-showcase img {
    max-width: 100%;
    display: block;
    opacity: 0.85; /* slight fade to match aesthetic */
}

/* Features */
.features {
    max-width: 1100px;
    margin: 120px auto 120px;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 5rem;
}

.feature-block h2 {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.75rem;
}

.feature-block p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: 8rem;
    text-align: center;
}

.footer-bottom {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 100;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: #000;
    z-index: 40;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-nav.active {
    display: flex;
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    .nav-actions {
        margin-right: 1.25rem;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 0;
    }    
    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

.logo {
    flex: 1;
}

.nav-actions {
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    justify-content: center;
}

.github-link {
    display: flex;
    align-items: center;
    line-height: 0;
}
