@font-face {
    font-family: '7Segment';
    src: url('/fonts/7segment.woff') format('woff'); /* absolute path — site always serves from root */
    font-weight: normal;
    font-style: normal;
}

/* ============================================================
   Design tokens
   ============================================================ */
:root {
    --background:   oklch(0.1 0 0);
    --foreground:   oklch(0.62 0.18 30);
    --muted:        oklch(0.5 0.1 25);
    --subtle:       oklch(0.85 0.05 25);
    --border:       oklch(0.62 0.18 30 / 0.3);
    --card:         oklch(0.12 0 0);
    --terminal-glow:       0 0 20px oklch(0.62 0.18 30 / 0.4);
    --terminal-glow-hover: 0 0 25px oklch(0.62 0.18 30 / 0.6);

    --font-mono: 'Courier New', Courier, monospace;
    --font-digital: '7Segment', monospace;

    --container-width: 1100px;
    --section-padding: 5rem 1.5rem;
}

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

/* ============================================================
   Base
   ============================================================ */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-mono);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--foreground);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    opacity: 0.75;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: bold;
}

/* ============================================================
   Layout utilities
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section--alt {
    background-color: var(--card);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.site-logo {
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 0.05em;
}

.site-header nav {
    display: flex;
    gap: 2rem;
}

.site-header nav a {
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    font-size: 0.875rem;
}

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


/* ============================================================
   Typography helpers
   ============================================================ */
.font-digital {
    font-family: var(--font-digital);
}

.muted {
    color: var(--muted);
}

.subtle {
    color: var(--subtle);
}

/* ============================================================
   Glow utilities
   ============================================================ */
.glow-red {
    box-shadow: var(--terminal-glow);
    transition: box-shadow 300ms ease;
}

.glow-red:hover {
    box-shadow: var(--terminal-glow-hover);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 1px solid var(--foreground);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 150ms ease;
}

.btn:hover {
    box-shadow: var(--terminal-glow-hover);
    text-decoration: none;
    opacity: 1;
}

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

.btn--primary:hover {
    background-color: var(--foreground);
    color: var(--background);
}

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

.btn--outline:hover {
    color: var(--foreground);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding-block: 7.25rem;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__tagline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__sub {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 42ch;
    margin-bottom: 2.5rem;
}

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

.hero__screenshot {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__visual {
        order: -1;
    }
}

/* ============================================================
   Section shared
   ============================================================ */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

/* ============================================================
   Features
   ============================================================ */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature__icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.feature__label {
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.feature__desc {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
    display: flex;
    flex-direction: column;
    max-width: 720px;
}

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

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

.faq__item summary {
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__q {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq__q::after {
    content: '+';
    font-size: 1.25rem;
    transition: opacity 150ms ease;
}

details[open] .faq__q::after {
    content: '\2212'; /* U+2212 MINUS SIGN */
}

.faq__a {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    padding-top: 0.75rem;
}

/* ============================================================
   Self-hosted
   ============================================================ */
.selfhosted__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.selfhosted__statement h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.selfhosted__points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selfhosted__points li {
    color: var(--muted);
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9375rem;
}

.selfhosted__points li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--foreground);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .selfhosted__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============================================================
   How it works
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step__number {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.55;
}

.step__label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.step__desc {
    color: var(--muted);
    font-size: 0.9375rem;
}

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