/* ============================================
   Orpheus — A Fulcrum Product
   Warm brown + monospace body, serif brand
   ============================================ */

:root {
    --bg: #1e1a17;
    --bg-card: rgba(200, 180, 150, 0.05);
    --bg-card-hover: rgba(200, 180, 150, 0.08);
    --bg-terminal: #15120f;
    --text: #c8b99a;
    --text-secondary: #8a7d6e;
    --text-terminal: #c8b99a;
    --text-terminal-dim: #6b5f50;
    --text-terminal-bright: #e8e0d4;
    --border: rgba(200, 180, 150, 0.12);
    --border-light: rgba(200, 180, 150, 0.06);
    --site-width: 960px;
    --section-pad: 0.75rem;
    --side-pad: clamp(1.5rem, 5vw, 3rem);
    --mono:
        "Berkeley Mono", "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
}

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

body {
    font-family: var(--mono);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: clamp(0.82rem, 2vw, 0.88rem);
    font-weight: 400;
    line-height: 1.7;
    padding-top: 3.5rem;
}

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

a:hover {
    opacity: 0.65;
}

/* ---- Navigation ---- */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem
        max(
            var(--side-pad),
            calc((100vw - var(--site-width)) / 2 + var(--side-pad))
        );
    font-size: clamp(0.72rem, 1.6vw, 0.8rem);
    background: var(--bg);
}

.top-nav::after {
    display: none;
}

.top-nav a {
    border: none;
}

.top-nav a:hover {
    opacity: 0.6;
}

.nav-brand {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand img {
    height: 1.8rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-cta {
    background: var(--text);
    color: var(--bg);
    padding: 0.4rem 1.1rem;
    font-family: var(--mono);
    font-size: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    opacity: 0.8;
}

/* ---- Shared container ---- */

.container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding-left: var(--side-pad);
    padding-right: var(--side-pad);
}

/* ---- Hero showcase (painting bg + overlay text + animation) ---- */

.hero-showcase {
    height: 100vh;
    padding: clamp(3rem, 8vw, 5rem) var(--side-pad) clamp(2rem, 5vw, 4rem);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("bg3.jpg");
    background-size: cover;
    background-position: 10px -220px;
    background-repeat: no-repeat;
    transform: scale(1.1);
    z-index: 0;
}

.hero-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 26, 23, 0.3);
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    max-width: 720px;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    padding-left: 1.5rem;
}

.hero-tagline {
    font-family: var(--mono);
    font-size: clamp(0.88rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 520px;
}

.hero-headline {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
    font-size: clamp(1.8rem, 4.5vw, 1.9rem);
    color: rgba(240, 235, 228, 0.92);
    line-height: 1;
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: 0em;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-actions a:not(.btn-primary) {
    color: rgba(240, 235, 228, 0.7);
    border-bottom-color: rgba(240, 235, 228, 0.3);
}

.hero-showcase-inner {
    width: 100%;
    max-width: 720px;
    position: relative;
    z-index: 2;
    min-height: 360px;
}

.showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(30, 26, 23, 0.5);
    border: 1px solid rgba(200, 180, 150, 0.15);
    color: var(--text);
    font-family: var(--mono);
    font-size: 1.1rem;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.showcase-arrow:hover {
    opacity: 1;
}

.showcase-prev {
    left: -2.5rem;
}

.showcase-next {
    right: -2.5rem;
}

.showcase-scene {
    opacity: 0;
    position: absolute;
    inset: 0;
    transition: opacity 1s ease;
}

.showcase-scene:first-child {
    position: relative;
}

.showcase-scene.active {
    opacity: 1;
}

.mock-window {
    background: rgba(18, 15, 12, 0.92);
    border: 1px solid rgba(200, 180, 150, 0.1);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.mock-titlebar {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(200, 180, 150, 0.06);
}

.mock-dots {
    display: flex;
    gap: 6px;
}

.mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(200, 180, 150, 0.15);
}

.mock-title {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(200, 180, 150, 0.4);
    letter-spacing: 0.02em;
}

.mock-body {
    padding: clamp(1rem, 3vw, 1.5rem);
    font-family: var(--mono);
    font-size: clamp(0.68rem, 1.4vw, 0.76rem);
    line-height: 1.75;
}

.mock-terminal {
    color: var(--text-terminal);
}

.agent-line {
    margin-bottom: 0.3rem;
}

.agent-thought {
    color: rgba(200, 180, 150, 0.5);
    font-style: italic;
    margin-bottom: 0.6rem;
}

.agent-tool {
    background: rgba(200, 180, 150, 0.06);
    border: 1px solid rgba(200, 180, 150, 0.08);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.agent-tool-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(200, 180, 150, 0.35);
    flex-shrink: 0;
}

.agent-tool-cmd {
    color: var(--text-terminal-bright);
}
.agent-output {
    color: var(--text-terminal);
}
.agent-dim {
    color: var(--text-terminal-dim);
}

/* GitHub PR scene */

.mock-github {
    color: #c9d1d9;
    font-size: clamp(0.68rem, 1.4vw, 0.76rem);
}

.gh-pr-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(200, 180, 150, 0.08);
}

.gh-pr-title {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    font-weight: 600;
    color: var(--text-terminal-bright);
    margin-bottom: 0.4rem;
}

.gh-pr-number {
    color: var(--text-terminal-dim);
    font-weight: 400;
}

.gh-pr-meta {
    font-size: 0.68rem;
    color: var(--text-terminal-dim);
}

.gh-pr-open {
    display: inline-block;
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.62rem;
    margin-right: 0.3rem;
}

.gh-pr-author {
    color: var(--text-terminal);
    font-weight: 600;
}

.gh-pr-branch {
    background: rgba(200, 180, 150, 0.08);
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
    font-size: 0.65rem;
    color: var(--text-terminal);
}

.gh-comment {
    border: 1px solid rgba(200, 180, 150, 0.08);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.gh-comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(200, 180, 150, 0.04);
    border-bottom: 1px solid rgba(200, 180, 150, 0.06);
    font-size: 0.68rem;
}

.gh-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(200, 180, 150, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: var(--text-terminal-dim);
    flex-shrink: 0;
}

.gh-comment-author {
    font-weight: 600;
    color: var(--text-terminal);
}
.gh-comment-time {
    color: var(--text-terminal-dim);
}

.gh-comment-meta-label {
    color: var(--text-terminal-dim);
}

.gh-comment-body {
    padding: 0.75rem;
    color: var(--text-terminal);
    line-height: 1.65;
}

.gh-comment-body p {
    margin: 0 0 0.5rem;
}

.gh-comment-body code {
    background: rgba(200, 180, 150, 0.08);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.gh-review-heading {
    font-weight: 600;
    margin-top: 0.75rem;
}

.gh-review-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0.5rem;
}

.gh-review-list li {
    margin-bottom: 0.25rem;
}

.gh-result-pass {
    color: #3fb950;
}

.gh-result-fail {
    color: #f85149;
}

.gh-review-detail {
    color: var(--text-terminal-dim);
    font-size: 0.85em;
    margin-bottom: 0;
}

.gh-comment-reactions {
    padding: 0 0.75rem 0.5rem;
}

.gh-reaction {
    display: inline-block;
    border: 1px solid rgba(200, 180, 150, 0.1);
    border-radius: 10px;
    padding: 0.05rem 0.5rem;
    font-size: 0.6rem;
    color: var(--text-terminal-dim);
}

.gh-checks {
    font-size: 0.7rem;
    color: var(--text-terminal-dim);
    padding: 0.5rem 0;
}
.gh-check-pass {
    color: #3fb950;
}

/* ---- Buttons ---- */

.btn-primary {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    padding: 0.7rem 1.8rem;
    border: none;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-bottom: none;
}

.btn-primary:hover {
    opacity: 0.8;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text);
    padding: 0.7rem 1.8rem;
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.btn-secondary:hover {
    opacity: 0.7;
}

/* ---- Sections ---- */

.section {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem) var(--side-pad);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 520px;
}

/* ---- Card grid ---- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
}

.card {
    background: var(--bg-card);
    padding: clamp(1.5rem, 3vw, 2rem);
}

.card:hover {
    background: var(--bg-card);
}

.card h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0;
}

/* 2-column variant */
.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ---- Feature rows (alternating text + box) ---- */

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-text h3 {
    font-size: clamp(0.92rem, 2vw, 1rem);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

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

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: clamp(2rem, 4vw, 3rem);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* ---- Two pillars (infra + verification) ---- */

.pillars-heading {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: normal;
    font-size: clamp(0.92rem, 2.5vw, 1rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.two-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
}

.pillar {
    background: var(--bg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.pillar h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pillar p {
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.7;
}

@media (max-width: 720px) {
    .two-pillars {
        grid-template-columns: 1fr;
    }
}

/* ---- CTA section ---- */

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
    border-top: 1px solid var(--border-light);
}

.cta-section h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Page content (features, about) ---- */

.page-content {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.5rem) var(--side-pad);
}

.hero-showcase + .page-content {
    padding-top: clamp(2rem, 5vw, 3rem);
}

.page-content .content {
    max-width: 640px;
}

.page-content h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.9rem, 5vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
}

.page-content h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: normal;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.page-content h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.page-content p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.page-content > .content > p:first-of-type {
    color: var(--text);
}

/* ---- Pricing tiers (card-based) ---- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    margin-top: 2rem;
}

.tier {
    background: var(--bg-card);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.tier-name {
    font-size: clamp(0.88rem, 2vw, 0.95rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tier-price {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
}

.tier-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.tier ul {
    list-style: none;
}

.tier ul li {
    padding: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-light);
}

.tier ul li:last-child {
    border-bottom: none;
}

/* ---- Pricing comparison table ---- */

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 0.82rem;
}

.pricing-table thead {
    position: sticky;
    top: 3.5rem;
    z-index: 10;
}

.pricing-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.pricing-table th:first-child {
    text-align: left;
}

.pricing-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.pricing-table td:first-child {
    color: var(--text);
}

.pricing-table td:not(:first-child) {
    text-align: center;
}

.pricing-table td.check {
    color: var(--text);
}

.pricing-table td.dash {
    color: var(--text-secondary);
    opacity: 0.5;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---- Sign in form ---- */

.signin-wrapper {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: var(--section-pad) var(--side-pad);
    display: flex;
    justify-content: center;
}

.signin-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: clamp(2rem, 5vw, 3rem);
}

.signin-card h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.form-field input {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text);
    outline: none;
}

.form-field input:focus {
    border-color: var(--text);
}

.signin-card .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.signin-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.signin-alt {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ---- Contact block ---- */

.contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    opacity: 0.8;
}

/* ---- Footer ---- */

.footer {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 2.5rem) var(--side-pad);
    border-top: 1px solid var(--border-light);
    margin-top: var(--section-pad);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.footer-brand {
    font-family: "Source Serif 4", Georgia, serif;
    font-style: italic;
}

.footer-sep {
    margin: 0 0.5rem;
    opacity: 0.4;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

.footer-links a {
    color: var(--text-secondary);
    border: none;
}

/* ---- Nav toggle (hidden on desktop) ---- */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        padding: 1rem var(--side-pad) 1.5rem;
        gap: 0.75rem;
        border-bottom: 1px solid var(--border-light);
    }

    .top-nav.open .nav-links {
        display: flex;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .pricing-table {
        font-size: 0.75rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.5rem;
    }

    .showcase-prev {
        left: 0;
    }

    .showcase-next {
        right: 0;
    }

    .card-grid-2 {
        grid-template-columns: 1fr;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-showcase-inner {
        min-height: 280px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
