/* OpenSpry Website — Startup Product Aesthetic */
:root {
    --bg: #06060a;
    --bg-card: #0c0c14;
    --bg-code: #0e0e18;
    --bg-elevated: #12121e;
    --border: #1a1a2e;
    --border-glow: #2a2a4a;
    --text: #e8e8f0;
    --text-dim: #7a7a9a;
    --text-muted: #4a4a6a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --green: #34d399;
    --green-dim: rgba(52, 211, 153, 0.12);
    --purple: #a78bfa;
    --orange: #fb923c;
    --cyan: #22d3ee;
    --pink: #f472b6;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    --max-width: 1080px;
    --radius: 12px;
    --radius-sm: 8px;
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 32px;
    position: relative;
    z-index: 10;
}
.nav-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(52, 211, 153, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 6px rgba(52, 211, 153, 0.2); }
}
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 32px 60px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-glow);
    background: var(--accent-glow);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 32px;
    position: relative;
}
.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 24px;
    position: relative;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--purple) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border-glow);
}
.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.03);
}

/* ── Install Block ───────────────────────────────────── */
.install-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px 80px;
}
.install-section h2 {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.install-block {
    max-width: 600px;
    margin: 0 auto;
}
.install-tabs {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
}
.install-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-family: var(--font-mono);
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
}
.install-tab.active { background: var(--bg-code); color: var(--green); border-color: var(--border-glow); }
.install-code {
    background: var(--bg-code);
    border: 1px solid var(--border-glow);
    border-radius: 0 8px 8px 8px;
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--green);
    overflow-x: auto;
    position: relative;
}
.install-code .cmd { display: none; }
.install-code .cmd.active { display: block; }
.copy-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    background: var(--border);
    border: 1px solid var(--border-glow);
    color: var(--text-dim);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover { color: var(--text); background: var(--bg-elevated); }

/* ── Terminal Mockup ─────────────────────────────────── */
.terminal-mockup {
    max-width: 680px;
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--accent-glow);
}
.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-right: 44px;
}
.terminal-body {
    padding: 20px 24px;
    background: var(--bg-code);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-dim);
}
.terminal-body .prompt { color: var(--green); }
.terminal-body .cmd-text { color: var(--text); }
.terminal-body .output { color: var(--text-dim); }
.terminal-body .accent { color: var(--accent-light); }
.terminal-body .highlight { color: var(--green); }

/* ── Section Layout ──────────────────────────────────── */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 32px;
}
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 16px;
}
.section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.15;
}
.section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text);
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.7;
}
.section p, .section li {
    color: var(--text-dim);
    margin-bottom: 12px;
}
.section ul { padding-left: 20px; }
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Feature Grid ────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
    background: var(--accent-glow);
    border: 1px solid var(--border-glow);
}
.feature-icon.green { background: var(--green-dim); }
.feature-icon.purple { background: rgba(167, 139, 250, 0.12); }
.feature-icon.orange { background: rgba(251, 146, 60, 0.12); }
.feature-icon.cyan { background: rgba(34, 211, 238, 0.12); }
.feature-icon.pink { background: rgba(244, 114, 182, 0.12); }
.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

/* ── Timeline / Steps ────────────────────────────────── */
.timeline {
    max-width: 640px;
    position: relative;
    padding-left: 48px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--purple), var(--border));
}
.timeline-step {
    position: relative;
    padding-bottom: 36px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-num {
    position: absolute;
    left: -48px;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-light);
    z-index: 1;
}
.timeline-step h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.timeline-step p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

/* ── LLM Provider Cards ─────────────────────────────── */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.provider-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}
.provider-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}
.provider-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.provider-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.provider-cmd {
    display: block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
    background: var(--bg-code);
    padding: 4px 10px;
    border-radius: 4px;
}

/* ── Code Blocks ─────────────────────────────────────── */
pre {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
    margin: 16px 0;
    line-height: 1.7;
}
code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-code);
    padding: 2px 7px;
    border-radius: 4px;
}
pre code { background: none; padding: 0; }
.kw { color: var(--purple); }
.str { color: var(--green); }
.cm { color: var(--text-muted); }
.fn { color: var(--accent-light); }

/* ── Build Tools Teaser ──────────────────────────────── */
.tools-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.tools-teaser-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.tools-teaser-text p {
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.7;
}
.tools-teaser-code pre {
    margin: 0;
    font-size: 12px;
    border-color: var(--border-glow);
}

/* ── Docs Sidebar Nav ────────────────────────────────── */
.docs-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px 80px;
}
.docs-nav {
    position: sticky;
    top: 20px;
    align-self: start;
}
.docs-nav a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}
.docs-nav a:hover { color: var(--text); }
.docs-nav a.active { color: var(--accent-light); }
.docs-content { min-width: 0; }

/* ── Footer ──────────────────────────────────────────── */
footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 32px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}
.footer-brand .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}
.footer-links {
    display: flex;
    gap: 32px;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-dim);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ── Fade-in Animation ───────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Divider ─────────────────────────────────────────── */
.divider {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}
.divider hr {
    border: none;
    border-top: 1px solid var(--border);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .provider-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-teaser { grid-template-columns: 1fr; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-nav { display: none; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 36px; letter-spacing: -1px; }
    .hero p { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .features-grid { grid-template-columns: 1fr; }
    .provider-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { flex-direction: column; gap: 24px; }
    .section { padding: 60px 20px; }
    nav { padding: 16px 20px; }
}
