:root {
    --bg: #ffffff;
    --text: #000000;
    --text-muted: #52525b;
    --border: #e4e4e7;
    --accent: #09090b;
    --status-red: #ef4444;
    --status-green: #10b981;
    --container-max: 1100px;
    --font-serif: "Instrument Serif", serif;
    --font-sans: "Inter", -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center;
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 400;
}

.label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 400;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--text);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: var(--text);
    color: var(--bg);
}

/* Hero */
.hero {
    padding: 10rem 0 8rem;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-title span {
    display: block;
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Services */
.services {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-card {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.service-card .icon-wrapper {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.service-card .icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Feature */
.product-feature {
    background: #f9f9f9;
    padding: 6rem 3rem;
    margin-top: 4rem;
    border-radius: 8px;
    text-align: center;
}

.product-feature h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.product-feature p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.link-arrow {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.link-arrow span {
    margin-left: 0.5rem;
    transition: transform 0.2s;
    display: inline-block;
}

.link-arrow:hover span {
    transform: translateX(4px);
}

/* Contact */
.status-paused {
    background: #fee2e2;
    color: var(--status-red);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.link-disabled {
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: not-allowed;
    text-decoration: none;
}

/* Terminal */
.terminal-section {
    padding: 6rem 0;
}

.terminal-container {
    background: #000;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
}

.terminal-title {
    margin-left: 1.5rem;
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.terminal-body {
    padding: 1.5rem;
    height: 350px;
    overflow-y: auto;
}

.term-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInTerm 0.3s forwards;
}

.term-success {
    color: #10b981;
}

.term-warn {
    color: #f59e0b;
}

.term-meta {
    color: #6366f1;
}

@keyframes fadeInTerm {
    to {
        opacity: 1;
    }
}

/* Infrastructure / Control Center */
.infrastructure {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.status-dashboard {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.status-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cluster-status {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ping-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.ping-dot.active {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

.ping-dot.idle {
    background: #94a3b8;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cluster-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.uptime {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.metric-card {
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.metric-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin: 1rem 0;
}

.metric-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-graph-container {
    height: 60px;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.graph-bar {
    flex: 1;
    background: var(--border);
    min-height: 4px;
    transition: height 0.3s ease;
}

.graph-bar.active {
    background: var(--accent);
}

@media (max-width: 900px) {
    .status-dashboard {
        grid-template-columns: 1fr;
    }
}

.contact {
    padding: 8rem 0;
}

.contact-box {
    text-align: center;
}

.contact-box h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-methods a {
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 300px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .grid-services {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu can be added later if needed */
    }
}