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

:root {
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --cyan-border: rgba(0, 212, 255, 0.25);
    --bg: #080c10;
    --bg-surface: #0d1117;
    --bg-card: rgba(255,255,255,0.04);
    --text: #e2e8f0;
    --text-muted: #8b9ab0;
    --text-dim: #5a6a7e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── LINKS ── */
a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Inline prose links get an underline for readability */
p a, li a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 212, 255, 0.4);
}

p a:hover, li a:hover {
    text-decoration-color: var(--cyan);
    opacity: 1;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 12, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cyan-border);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    color: var(--cyan) !important;
    border: 1px solid var(--cyan-border);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--cyan-dim);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 70%),
        linear-gradient(180deg, #080c10 0%, #0d1117 100%);
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid var(--cyan-border);
    background: var(--cyan-dim);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero h1 span {
    background: linear-gradient(90deg, #00d4ff, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--cyan);
    color: #000;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ── SECTIONS ── */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 3rem;
}

hr.divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── HOW IT WORKS ── */
#how-it-works {
    background: var(--bg-surface);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stack-card {
    background: var(--bg-card);
    border: 1px solid var(--cyan-border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: border-color 0.2s, background 0.2s;
}

.stack-card:hover {
    border-color: rgba(0,212,255,0.5);
    background: rgba(0,212,255,0.04);
}

.stack-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.stack-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.stack-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── TIERS ── */
#tiers {
    background: var(--bg);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
}

.tier-card.featured {
    border-color: var(--cyan);
    background: rgba(0,212,255,0.04);
}

.tier-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.tier-badge.managed {
    background: rgba(0,212,255,0.15);
    color: var(--cyan);
}

.tier-badge.onprem {
    background: rgba(99,102,241,0.15);
    color: #a5b4fc;
}

.tier-badge.advisory {
    background: rgba(255,255,255,0.07);
    color: var(--text-muted);
}

.tier-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.tier-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.tier-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.4rem;
    position: relative;
}

.tier-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.85rem;
}

/* ── MISSION CALLOUT ── */
.mission-callout {
    padding: 0 2rem 5rem;
}

.mission-box {
    background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(99,102,241,0.06) 100%);
    border: 1px solid var(--cyan-border);
    border-radius: 14px;
    padding: 2.5rem 3rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.mission-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.mission-box h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
}

.mission-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.7;
}

/* ── WHO IT'S FOR ── */
#who {
    background: var(--bg-surface);
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.persona-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.75rem;
}

.persona-icon {
    width: 40px;
    height: 40px;
    background: var(--cyan-dim);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.persona-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.persona-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── OPEN SOURCE ── */
#open-source {
    background: var(--bg);
}

.oss-box {
    background: var(--bg-card);
    border: 1px solid var(--cyan-border);
    border-radius: 14px;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.oss-content {
    flex: 1;
    min-width: 260px;
}

.oss-content h2 {
    margin-bottom: 1rem;
}

.oss-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.oss-components {
    flex: 1;
    min-width: 260px;
}

.oss-components h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.oss-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.oss-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.4rem;
    position: relative;
}

.oss-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.85rem;
}

.gitlab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--cyan-border);
    padding: 0.6rem 1.2rem;
    border-radius: 7px;
    transition: background 0.2s;
}

.gitlab-link:hover {
    background: var(--cyan-dim);
}

.gitlab-link svg {
    width: 18px;
    height: 18px;
}

/* ── ABOUT ── */
#about {
    background: var(--bg-surface);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-sidebar {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
}

.about-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.about-role {
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.credential-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.credential-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.credential-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 1.2rem;
    line-height: 1;
    top: 2px;
}

.about-body h2 {
    margin-bottom: 1rem;
}

.about-body p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* ── CONTACT ── */
#contact {
    background: var(--bg);
}

.contact-box {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h2 {
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
}

.form-group select option {
    background: #0d1117;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 0.5rem;
}

/* ── FOOTER ── */
footer {
    background: #050709;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00d4ff, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .oss-box { padding: 2rem; }
    .mission-box { padding: 2rem; }
}

@media (max-width: 700px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
}
