:root {
    --bg: #0a0a0c;
    --bg-elev: #111114;
    --fg: #ededf0;
    --fg-muted: #9a9aa3;
    --fg-dim: #6b6b75;
    --accent: #ec6b28;
    --accent-2: #f9b531;
    --accent-glow: rgba(236, 107, 40, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --max-width: 1100px;
    --radius: 12px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

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

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

html {
    /* Reserve the scrollbar's space on every page, so the header and content
       don't shift sideways between a short page and one that scrolls. */
    scrollbar-gutter: stable;
}

body {
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* Background atmosphere */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 164, 255, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: drift 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: drift 25s ease-in-out infinite reverse;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

/* Header */
.site-header {
    position: relative;
    z-index: 10;
    padding: 28px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

.logo-text {
    font-size: 16px;
}

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

.nav-link {
    font-size: 14px;
    color: var(--fg-muted);
    transition: color 0.2s ease;
}

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

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--fg-muted);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    animation: pulse 2.5s ease-in-out infinite;
}

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

/* Hero */
.hero {
    position: relative;
    z-index: 5;
    padding: 120px 0 100px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 28px;
}

.headline {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    max-width: 900px;
}

.accent {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subhead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--fg-muted);
    max-width: 620px;
    margin-bottom: 48px;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--fg-muted);
    transform: translateY(-1px);
}

/* Home page: the products, right under the hero. Cards come from scripts/build-products.mjs
   and use products/products.css, so they match /products/ exactly. */
.home-products {
    position: relative;
    z-index: 5;
    padding: 0 0 100px;
}

.home-products-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.home-products-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.home-products-all-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.home-products-all-link:hover {
    color: var(--accent-2);
}

.cta-note {
    font-size: 14px;
    color: var(--fg-dim);
}

/* Principles */
.principles {
    position: relative;
    z-index: 5;
    padding: 80px 0 120px;
    border-top: 1px solid var(--border);
}

.principles .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-top: 80px;
}

.principle-num {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.principle h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.principle p {
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 5;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    color: var(--fg-dim);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-inner a:hover {
    color: var(--fg);
}

/* Responsive */
@media (max-width: 720px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .principles {
        padding: 60px 0 80px;
    }

    .principles .container {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 60px;
    }

    .subhead {
        font-size: 17px;
    }
}
