/* PrivateClaw */
:root {
    --bg: #09090b;
    --bg-card: #111113;
    --fg: #fafafa;
    --fg-muted: #a1a1aa;
    --accent: #3fb950;
    --border: #27272a;
    --font-sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
}

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

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Landing-only: make the full page fit in exactly 100vh */
body:has(.landing) {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Global link styling */
a {
    color: var(--accent);
}
a:visited {
    color: var(--accent);
}
a:hover {
    color: #6bd76b;
}

/* Landing page - centered hero, full viewport */
.landing {
    max-width: none;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0;
}

.hero-centered {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-centered h1 {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 5vw, 2.75rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero-centered .prompt {
    color: var(--fg-muted);
    margin-right: 0.3em;
}

.hero-centered .cursor {
    animation: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    pointer-events: none;
}

.tagline {
    color: var(--fg-muted);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.landing-footer {
    text-align: center;
    padding: 2rem;
    border-top: none;
    font-size: 0.85rem;
    color: var(--fg-muted);
}

.landing-footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

.landing-footer a:visited {
    color: var(--accent);
}

.landing-footer a:hover {
    color: #6bd76b;
}

/* SSH command clickable row button */
.ssh-cmd-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    cursor: pointer;
    color: inherit;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    border-radius: 6px;
    transition: background 0.15s;
    text-align: left;
    white-space: nowrap;
}

.ssh-cmd-btn:hover {
    background: rgba(63, 185, 80, 0.08);
}

.ssh-cmd-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Copy icon wrapper */
.copy-icon-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    color: var(--fg-muted);
    line-height: 0;
    transition: color 0.2s;
}

.ssh-cmd-btn:hover .copy-icon-wrap {
    color: var(--accent);
}

/* Idle state: show copy icon, hide check + label */
.ssh-cmd-btn[data-state="idle"] .icon-copy {
    display: inline-block;
    animation: pulse-copy 1.5s ease-in-out infinite;
}

.ssh-cmd-btn[data-state="idle"] .icon-check {
    display: none;
}

.ssh-cmd-btn[data-state="idle"] .copied-label {
    display: none;
}

/* Copied state: hide copy icon, show check + label */
.ssh-cmd-btn[data-state="copied"] .icon-copy {
    display: none;
}

.ssh-cmd-btn[data-state="copied"] .icon-check {
    display: inline-block;
}

.ssh-cmd-btn[data-state="copied"] .copied-label {
    display: inline;
    font-family: var(--font-sans);
    font-size: 0.75em;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ssh-cmd-btn[data-state="copied"] .copy-icon-wrap {
    color: var(--accent);
}

/* Pause pulse on hover */
.ssh-cmd-btn:hover .icon-copy {
    animation-play-state: paused;
}

@keyframes pulse-copy {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(63, 185, 80, 0));
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
        filter: drop-shadow(0 0 6px rgba(63, 185, 80, 0.8));
    }
}

/* Nav */
nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

nav .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav .nav-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

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

/* Main content */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    main {
        padding: 4rem 2.5rem 5rem;
    }
}

/* Prose / article */
article {
    max-width: 680px;
}

article h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

article h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

article p {
    color: var(--fg-muted);
    margin-bottom: 1rem;
}

article ul,
article ol {
    padding-left: 1.5rem;
    color: var(--fg-muted);
    margin-bottom: 1rem;
}

article li {
    margin-bottom: 0.35rem;
}

article strong {
    color: var(--fg);
    font-weight: 600;
}

article a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

article a:visited {
    color: var(--accent);
}

article a:hover {
    color: #6bd76b;
}

article code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.15rem 0.4rem;
    font-size: 0.875em;
    border-radius: 4px;
}

/* Diagram */
article .diagram {
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--fg-muted);
    margin: 1rem 0;
    border-radius: 4px;
}

article pre:not(.diagram) {
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 0.8rem;
    margin: 0.5rem 0 1rem;
    overflow-x: auto;
    font-size: 0.875em;
    border-radius: 4px;
    color: var(--fg-muted);
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.back-link:visited {
    color: var(--accent);
}

.back-link:hover {
    color: #6bd76b;
}

/* Success page */
.success h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.success p {
    color: var(--fg-muted);
}

/* Footer */
footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--fg-muted);
    letter-spacing: 0.04em;
}

@media (min-width: 768px) {
    footer {
        padding: 2rem 2.5rem;
    }
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

footer a:visited {
    color: var(--accent);
}

footer a:hover {
    color: #6bd76b;
}

footer .social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

footer .social svg {
    width: 16px;
    height: 16px;
    fill: var(--fg-muted);
    transition: fill 0.15s;
}

footer .social a:hover svg {
    fill: var(--accent);
}

/* Pricing page */
.pricing-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.pricing-page h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--fg-muted);
    margin-bottom: 2.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--accent);
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
}

.tier-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    margin-bottom: 0.75rem;
}

.pricing-card.featured .tier-name {
    color: var(--accent);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price-period {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--fg-muted);
}

.features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    width: 100%;
    text-align: left;
    color: var(--fg-muted);
    font-size: 0.875rem;
}

.features li {
    padding: 0.4rem 0;
    border-top: 1px solid var(--border);
}

.features li:last-child {
    border-bottom: 1px solid var(--border);
}

.feature-value {
    color: var(--fg);
    font-weight: 600;
}

.feature-note {
    font-size: 0.78rem;
    color: var(--fg-muted);
}

.pricing-cta {
    display: inline-block;
    margin-top: auto;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--fg);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.15s, color 0.15s;
}

.pricing-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pricing-card.featured .pricing-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.pricing-card.featured .pricing-cta:hover {
    opacity: 0.9;
}

.pricing-model {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pricing-model a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

.pricing-model a:visited {
    color: var(--accent);
}

.pricing-model a:hover {
    color: #6bd76b;
}

.pricing-note {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.875rem;
}

.pricing-note code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.15rem 0.4rem;
    font-size: 0.875em;
    border-radius: 4px;
}

/* Model card */
.model-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0 2rem;
}

.model-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.model-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fg);
}

.model-badge {
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
}

.model-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.model-specs tr {
    border-top: 1px solid var(--border);
}

.model-specs td {
    padding: 0.5rem 0;
    color: var(--fg-muted);
}

.spec-label {
    color: var(--fg);
    font-weight: 500;
    width: 140px;
}

/* Tooltip */
.tooltip-trigger {
    position: relative;
    border-bottom: 1px dotted var(--fg-muted);
    cursor: help;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    color: var(--fg-muted);
    z-index: 10;
    pointer-events: none;
}

.tooltip-trigger:hover .tooltip {
    display: block;
}

/* Active nav link */
nav .nav-links a.nav-active {
    color: var(--accent);
}

/* Benchmark callout */
.benchmark-callout {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.benchmark-rank {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.benchmark-headline {
    font-size: 1.1rem;
    color: var(--fg);
    margin-bottom: 0.35rem;
}

.benchmark-subtitle {
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

.benchmark-subtitle a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.benchmark-subtitle a:visited {
    color: var(--accent);
}

.benchmark-subtitle a:hover {
    color: #6bd76b;
}

/* Model family note */
.model-family-note {
    font-size: 0.875rem;
    color: var(--fg-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.model-family-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.model-family-note a:visited {
    color: var(--accent);
}

.model-family-note a:hover {
    color: #6bd76b;
}

/* Coming soon grid */
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

@media (max-width: 768px) {
    .coming-soon-grid {
        grid-template-columns: 1fr;
    }
}

.coming-soon-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    border-style: dashed;
}

.coming-soon-icon {
    margin-bottom: 0.75rem;
}

.coming-soon-icon svg {
    width: 28px;
    height: 28px;
    color: var(--fg-muted);
    opacity: 0.5;
}

.coming-soon-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fg-muted);
    margin-bottom: 0.25rem;
}

.coming-soon-status {
    font-size: 0.75rem;
    color: var(--fg-muted);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.coming-soon-request {
    text-align: center;
    font-size: 0.875rem;
}
