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

/* Font Faces */
@font-face {
    font-family: "Playfair Display";
    src: url("fonts/PlayfairDisplay-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Playfair Display";
    src: url("fonts/PlayfairDisplay-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: "Playfair Display";
    src: url("fonts/PlayfairDisplay-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: "Playfair Display";
    src: url("fonts/PlayfairDisplay-600italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-600.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IbmPlexMono-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg: #080808;
    --text: #e5e5e5;
    --text-muted: #888;
    --accent: #6ee7b7; /* Soft bright green */
    --accent-dim: #059669;
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-family: var(--mono);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.links {
    display: flex;
    align-items: center;
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.links a:hover {
    color: var(--text);
}

.links a.star-btn {
    color: var(--text);
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.03);
}

.links a.star-btn:hover {
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.08);
}

.star {
    color: var(--accent);
    font-size: 1.1em;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6rem; /* Account for nav */
    padding-bottom: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.08) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, rgba(0,0,0,0) 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.headline {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.italic-accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.sub-headline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-top: 0;
    margin-bottom: 3rem;
}

.tech-highlight {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 0.9em;
    letter-spacing: 0.5px;
    font-weight: bold;
}

/* Install Bar */
.install-section {
    margin-bottom: 0;
}

.install-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.install-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cmd-container {
    display: none;
    background: #1a1a1a;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid #333;
    position: relative;
}

.cmd-container.active {
    display: block;
}

.cmd-container:hover {
    background: #222;
    border-color: #444;
}

.prompt {
    color: var(--text-muted);
    margin-right: 0.5rem;
    user-select: none;
}

.copy-feedback {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.visible {
    opacity: 1;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-bottom: 8rem;
    border-top: 1px solid #222;
    padding-top: 4rem;
}

.feature-card h3 {
    font-family: var(--serif);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

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

/* Demo / Terminal */
.demo-section {
    margin-bottom: 8rem;
}

.section-title {
    font-family: var(--mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.terminal-window {
    background: #111;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid #333;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.95rem;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222;
    height: 44px;
}

.dots {
    display: flex;
    gap: 8px;
}

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

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

.terminal-tabs {
    display: flex;
    height: 100%;
}

.term-tab {
    background: transparent;
    border: none;
    color: #666;
    font-family: var(--mono);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0 1.5rem;
    height: 100%;
    border-left: 1px solid #222;
    transition: all 0.2s;
}

.term-tab:last-child {
    border-right: 1px solid #222;
}

.term-tab:hover {
    color: #aaa;
    background: #222;
}

.term-tab.active {
    color: var(--text);
    background: #111;
    border-bottom: 1px solid #111; /* Hide bottom border to blend with body */
    margin-bottom: -1px; /* Overlap border */
}

.terminal-body {
    display: none;
    padding: 2rem;
    color: #d4d4d4;
}

.terminal-body.active {
    display: block;
}

.line {
    margin-bottom: 0.5rem;
}

.cmd {
    color: #fff;
}

.output {
    color: #888;
}

.success {
    color: var(--accent);
}

/* Details */
.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
    border-top: 1px solid #222;
    padding-top: 4rem;
}

.detail-block h4 {
    font-family: var(--mono);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.detail-block p {
    color: var(--text-muted);
    max-width: 400px;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid #222;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
    }
    
    .headline {
        font-size: 3.5rem;
    }
    
    .details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
