/* Monochrome Precision — pure black, white accent, solid flat cards */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #000;
    --surface: #111;
    --surface-hover: #161616;
    --border: #222;
    --text-primary: #fff;
    --text-secondary: #888;
    --text-muted: #444;
    --max-width: 1200px;
    --radius: 6px;
}

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

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

/* ─── Typography ─── */
h1, h2, h3, h4 {
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin: 4rem 0 2rem;
}

h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: color 0.15s, border-color 0.15s;
}

a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

pre {
    background: #111;
    padding: 1.125rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow-x: auto;
    font-size: 0.8125rem;
    color: #999;
    margin-bottom: 1rem;
    line-height: 1.65;
}

code {
    font-size: 0.875em;
    color: #999;
}

.command {
    color: #fff;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

/* ─── Layout ─── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Hero ─── */
.hero {
    text-align: center;
    padding: 10vh 0 5rem;
}

.logo-container {
    margin-bottom: 2.5rem;
    display: inline-block;
}

.logo-image {
    width: 80px;
    height: 80px;
    filter: grayscale(1) brightness(1.2);
    transition: filter 0.3s;
}

.logo-container:hover .logo-image {
    filter: grayscale(1) brightness(2);
}

.tagline {
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Install box ─── */
.install-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem 1.25rem;
    max-width: 540px;
    margin: 0 auto 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color 0.15s;
}

.install-box:hover {
    border-color: #444;
}

.install-box pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.install-box code {
    background: transparent;
    color: #aaa;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy {
    background: #000;
    border: 1px solid var(--border);
    color: #666;
    padding: 0.3rem 0.875rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
}

.btn-copy:hover {
    color: #fff;
    border-color: #fff;
}

/* ─── Code block copy button ─── */
.code-block {
    position: relative;
}

.btn-code-copy {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.75rem;
    background: #111;
    border: 1px solid #333;
    color: #555;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}

.code-block:hover .btn-code-copy {
    opacity: 1;
}

.btn-code-copy:hover {
    color: #fff;
    border-color: #fff;
}

/* ─── Terminal ─── */
.terminal-window {
    background: #0a0a0a;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 860px;
    margin: 3rem auto;
    overflow: hidden;
    text-align: left;
}

.terminal-header {
    background: var(--surface);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

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

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

.dot-red    { background: #2a2a2a; }
.dot-yellow { background: #2a2a2a; }
.dot-green  { background: #2a2a2a; }

.terminal-title {
    margin-left: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.04em;
}

.terminal-body {
    padding: 0;
}

.terminal-content {
    height: 320px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.65;
    color: #aaa;
    overflow-y: hidden;
    background: #0a0a0a;
}

.terminal-line {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.prompt {
    color: #fff;
    margin-right: 8px;
    font-weight: 700;
}

.demo-caption {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
}

/* ─── Grid ─── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.125rem;
    margin: 2rem 0;
}

/* ─── Cards ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.15s, background 0.15s;
    height: 100%;
    min-width: 0;
}

.card:hover {
    border-color: #fff;
    background: var(--surface-hover);
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

/* ─── Feature icon ─── */
.feature-icon {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: grayscale(1);
}

/* ─── Section ─── */
.usage-section {
    padding: 3rem 0;
    border-top: 1px solid #111;
}

.example-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ─── Requirements list ─── */
.requirements-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.requirements-list li {
    position: relative;
    padding-left: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.requirements-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #555;
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid #111;
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #555;
    border-bottom: none;
}

.footer-links a:hover {
    color: #fff;
    border-bottom: none;
}

footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    filter: grayscale(1);
    opacity: 0.35;
    transition: opacity 0.2s;
}

.badges:hover {
    opacity: 0.6;
}

.bmc-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.bmc-container a {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: #666 !important;
    border-radius: var(--radius);
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    height: 44px;
}

.bmc-container a:hover {
    border-color: #fff;
    color: #fff !important;
    text-shadow: none;
    border-bottom: 1px solid #fff;
}

/* ─── Page Nav (secondary pages) ─── */
.page-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid #111;
    backdrop-filter: blur(8px);
}

.page-nav .nav-logo {
    width: 28px;
    height: 28px;
    filter: grayscale(1);
}

.page-nav a {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border-bottom: none;
    letter-spacing: -0.02em;
}

/* ─── Manifesto ─── */
.manifesto-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}

.manifesto-hero {
    text-align: center;
    padding: 6rem 0 3rem;
}

.manifesto-hero h1 {
    margin-bottom: 1rem;
}

.manifesto-hero .subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

.manifesto-prose {
    margin-bottom: 4rem;
}

.manifesto-prose h2 {
    margin: 3rem 0 1.25rem;
    display: block;
    font-size: 1.125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #555;
}

.manifesto-prose p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.manifesto-prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

.manifesto-prose em {
    color: #aaa;
    font-style: italic;
}

.manifesto-prose blockquote {
    border-left: 2px solid #333;
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.manifesto-prose blockquote em {
    color: #aaa;
}

/* ─── Principles ─── */
.principles-list {
    list-style: none;
    counter-reset: principle;
    padding: 0;
    margin: 2rem 0 4rem;
}

.principle-item {
    counter-increment: principle;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1.25rem 4rem;
    margin-bottom: 0.625rem;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.principle-item::before {
    content: counter(principle, decimal-leading-zero);
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
    font-family: 'JetBrains Mono', monospace;
}

.principle-item:hover {
    border-color: #fff;
    background: var(--surface-hover);
}

.principle-item h3 {
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
}

.principle-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── Manifesto CTA ─── */
.manifesto-cta {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid #111;
    margin-top: 2rem;
}

.manifesto-cta h2 {
    margin: 0 0 1rem;
    display: block;
}

.manifesto-cta p {
    margin-bottom: 2rem;
}

.manifesto-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.5rem;
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: var(--radius);
    border: 1px solid #fff;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.9375rem;
    border-bottom: 1px solid #fff;
}

.btn-primary:hover {
    background: #e5e5e5;
    color: #000;
    border-color: #e5e5e5;
    text-shadow: none;
    border-bottom-color: #e5e5e5;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.5rem;
    background: #000;
    color: #888;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid #333;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    font-size: 0.9375rem;
    border-bottom: 1px solid #333;
}

.btn-secondary:hover {
    color: #fff;
    border-color: #fff;
    text-shadow: none;
    border-bottom-color: #fff;
}

/* ─── Entrance animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero > *:not(.logo-container),
.usage-section > * {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.hero h1             { animation-delay: 0.05s; }
.hero .tagline       { animation-delay: 0.1s; }
.hero .install-box   { animation-delay: 0.15s; }
.hero .terminal-demo { animation-delay: 0.2s; }
.hero .features      { animation-delay: 0.25s; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    h1 { font-size: 2.75rem; }

    h2 {
        margin: 2rem 0 1.25rem;
        font-size: 1.25rem;
    }

    .hero {
        padding: 6vh 0 2.5rem;
    }

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

    .logo-image {
        width: 64px;
        height: 64px;
    }

    .tagline {
        font-size: 1rem;
    }

    .install-box {
        flex-direction: column;
        text-align: center;
        margin-bottom: 3rem;
        gap: 0.75rem;
    }

    .install-box pre {
        width: 100%;
        overflow-x: auto;
    }

    .install-box code {
        white-space: nowrap;
    }

    .terminal-content {
        font-size: 11px;
        height: 260px;
    }

    .terminal-window {
        margin: 1.5rem auto;
        overflow-x: hidden;
    }

    .card {
        padding: 1.25rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        margin: 1.25rem 0;
    }

    .usage-section {
        padding: 2rem 0;
    }

    /* Always show copy buttons on touch devices */
    .btn-code-copy {
        opacity: 1;
    }

    .badges {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.875rem;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    .bmc-container a {
        font-size: 0.875rem;
    }

    .manifesto-hero { padding: 3.5rem 0 2rem; }

    .manifesto-page {
        padding: 0 1.25rem;
    }

    .principle-item { padding-left: 3.25rem; }

    .principle-item::before {
        font-size: 0.8125rem;
        left: 1rem;
    }

    .manifesto-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.corner-ribbon {
  position: fixed;
  top: 28px;
  right: -38px;
  width: 150px;
  padding: 7px 0;
  background: var(--text-primary);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transform: rotate(45deg);
  z-index: 1000;
  transition: background 0.15s, color 0.15s;
}

.corner-ribbon:hover {
  background: var(--text-secondary);
  color: var(--bg);
}
