/* landing.css — shared brutalist design system for Agora, Ergon, Polis landing pages */

/* ── Reset + Variables ── */

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

:root {
    --bg: #080808;
    --surface: #111;
    --border: #222;
    --text: #eee;
    --text-dim: #666;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --red: #ff4444;
    --blue: #4488ff;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Nav ── */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
}

.wordmark::after {
    content: '_';
    color: var(--accent);
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

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

.nav-links a {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}

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

/* ── Hero ── */

.hero {
    padding: 6rem 0 5rem;
}

.hero h1 {
    font-family: var(--mono);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

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

.hero p {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--bg);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ── Sections + Container ── */

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4.5rem 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    width: 100%;
    margin: 0;
}

/* ── Section Labels ── */

.section-label {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* ── Terminal Demo ── */

.terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    max-width: 700px;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 5px;
}

.terminal-dots span {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: #2e2e2e;
}

.terminal-header span.terminal-filename {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.terminal-body {
    padding: 1.25rem;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.85;
}

.terminal-line {
    white-space: pre;
}

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

.terminal-output {
    color: var(--accent);
}

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

.terminal-cursor {
    display: inline-block;
    width: 0.55em;
    height: 1.1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1.1s step-end infinite;
}

/* ── Steps ── */

.steps {
    display: flex;
    gap: 4rem;
}

.step {
    flex: 1;
}

.step-num {
    font-family: var(--mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.55;
}

/* ── Services Grid ── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2rem;
}

.service-card:hover {
    border-color: #333;
}

.service-card .service-name {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.service-card .service-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card .service-price {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.service-card .service-link {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    transition: color 0.15s;
}

.service-card .service-link:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ── Endpoints Table ── */

.endpoints-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    font-family: var(--mono);
    font-size: 0.84rem;
}

.endpoints-table thead {
    border-bottom: 1px solid var(--border);
}

.endpoints-table th {
    text-align: left;
    padding: 0.85rem 1rem;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.endpoints-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.endpoints-table tbody tr {
    border-bottom: 1px solid var(--border);
}

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

.endpoints-table .method {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 255, 136, 0.08);
    color: var(--accent);
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.endpoints-table .path {
    font-weight: 600;
    color: var(--text);
}

.endpoints-table .desc {
    color: var(--text-dim);
    font-size: 0.84rem;
}

.endpoints-table .price {
    color: var(--accent);
    white-space: nowrap;
}

/* ── Features Grid ── */

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

.feature-block {
    padding: 1.5rem 0;
}

.feature-block .feature-title {
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-block .feature-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.55;
}

/* ── Code Block ── */

.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
}

.code-header .code-dot {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: #2e2e2e;
}

.code-header .code-filename {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.code-block pre {
    padding: 1.25rem;
    overflow-x: auto;
    margin: 0;
}

.code-block pre code {
    font-family: var(--mono);
    font-size: 0.84rem;
    line-height: 1.85;
    color: #ccc;
}

/* Syntax highlighting */
.kw { color: #c792ea; }
.fn { color: #82aaff; }
.str { color: #c3e88d; }
.op { color: #89ddff; }
.comment { color: #546e7a; }

/* ── Footer ── */

.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-family: var(--mono);
    transition: color 0.15s;
}

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

.footer-right {
    color: #555;
    font-size: 0.8rem;
}

.footer-right a {
    color: #555;
}

.footer-right a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-direction: column;
        gap: 2.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .endpoints-table {
        font-size: 0.78rem;
    }

    .endpoints-table th,
    .endpoints-table td {
        padding: 0.7rem 0.6rem;
    }
}

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

    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
