/* North Eton Design System */

:root {
    /* Backgrounds */
    --bg-base: #08090a;
    --bg-surface: #0f1114;
    --bg-elevated: #161a1e;
    --bg-overlay: rgba(0, 0, 0, 0.8);

    /* Text */
    --text-primary: #ebebeb;
    --text-secondary: #888888;
    --text-muted: #555555;
    --text-placeholder: #444444;

    /* Status */
    --status-online: #22c55e;
    --status-degraded: #f59e0b;
    --status-offline: #555555;
    --status-not-started: #3b82f6;
    --danger: #ef4444;

    /* Borders */
    --border: #1a1a1a;
    --border-input: #2a2a2a;
    --border-focus: #3a3a3a;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── Top Bar ─────────────────────────────────────────────── */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.wordmark {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-decoration: none;
    user-select: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ─── Buttons ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-primary);
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
    border: none;
}

.btn-primary {
    background: rgba(34, 197, 94, 0.9);
    color: #000000;
    border: none;
}

.btn-primary:hover {
    background: #22c55e;
}

.btn-primary:disabled {
    background: rgba(34, 197, 94, 0.5);
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-input);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.btn-full {
    width: 100%;
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-input);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--status-online);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--text-primary);
}

.hero-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── Hero Visual / Status Panel ──────────────────────────── */

.hero-visual {
    flex-shrink: 0;
}

.status-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    padding: 24px;
    font-family: var(--font-mono);
    width: 300px;
}

.status-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.status-panel-dot {
    width: 7px;
    height: 7px;
    background: var(--status-online);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 3s ease-in-out infinite;
}

.status-panel-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--status-online);
}

.status-panel-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.status-panel-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.sp-key {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    flex-shrink: 0;
}

.sp-val {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.sp-clear {
    color: var(--status-online);
}

.status-panel-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}

.log-entry-line {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInLog 0.3s ease forwards;
}

@keyframes fadeInLog {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.log-entry-ts {
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 64px;
}

.log-entry-event {
    font-size: 11px;
    color: var(--text-muted);
}

/* ─── Closing Statement ───────────────────────────────────── */

.section-closing {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.closing-statement {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* ─── Sections (general) ──────────────────────────────────── */

section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.section-divider {
    width: 32px;
    height: 1px;
    background: var(--border-input);
    margin: 0 auto;
}

/* ─── Product Section / Steps ─────────────────────────────── */

.section-product {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.steps-list {
    display: flex;
    flex-direction: column;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

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

.step-number {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    width: 20px;
    padding-top: 3px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0;
}

/* ─── Capabilities ────────────────────────────────────────── */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.capability-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

.capability-item:hover {
    border-color: var(--border-input);
}

.capability-metric {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-mono);
    line-height: 1;
}

.capability-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.capability-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── About ───────────────────────────────────────────────── */

.section-about {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 48px;
}

.about-lead {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.founders-section {
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.founders-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: center;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.founder-card {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

.founder-card:hover {
    border-color: var(--border-input);
}

.founder-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.founder-role {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.research-link {
    text-align: center;
}

.research-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.15s ease;
}

.research-link a:hover {
    color: var(--text-secondary);
}

/* ─── Contact ─────────────────────────────────────────────── */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-lead {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.contact-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contact-value {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ─── Forms ───────────────────────────────────────────────── */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: border-color 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

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

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ─── Footer ──────────────────────────────────────────────── */

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-wordmark {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    user-select: none;
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ─── Scrollbar ───────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-input);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-focus);
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        gap: 56px;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        max-width: 680px;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .status-panel {
        width: 340px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 12px;
    }

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

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

    .container {
        padding: 0 20px;
    }

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* Collapse status panel to header line only on mobile */
    .status-panel {
        width: 100%;
        max-width: 340px;
        padding: 12px 16px;
    }

    .status-panel-header {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .status-panel-rows,
    .status-panel-log {
        display: none;
    }

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

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