/*
 * Sirius ERP — marketing site.
 *
 * The palette, radii and type are lifted from the application itself
 * (resources/css/app.css and the ui components), so the site and the product
 * read as one thing. No framework, no build step, no JavaScript: the page is
 * three files and a handful of images, which is also what makes the content
 * security policy in nginx.conf as tight as it is.
 */

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/instrument-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/instrument-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/instrument-sans-600.woff2') format('woff2');
}

:root {
    /* Slate, matching the panel's surfaces exactly. */
    --bg: #020617;
    --bg-raised: #0b1222;
    --surface: rgba(15, 23, 42, 0.6);
    --surface-solid: #0f172a;
    --line: #1e293b;
    --line-soft: rgba(30, 41, 59, 0.7);

    --text: #e2e8f0;
    --text-strong: #f1f5f9;
    --text-muted: #94a3b8;
    --text-faint: #64748b;

    --indigo: #6366f1;
    --indigo-bright: #818cf8;
    --emerald: #34d399;
    --amber: #fbbf24;
    --rose: #fb7185;
    --sky: #38bdf8;

    --radius: 12px;
    --radius-lg: 16px;
    --maxw: 1180px;

    --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--indigo-bright);
    text-decoration: none;
}

a:hover {
    color: #a5b4fc;
}

:focus-visible {
    outline: 2px solid var(--indigo-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: var(--indigo);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

/* ---------------------------------------------------------------- header */

header.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 66px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text-strong);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand .mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(140deg, #6366f1, #4f46e5);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}

.brand small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-faint);
    letter-spacing: 0.02em;
}

nav.links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14.5px;
}

nav.links a {
    color: var(--text-muted);
}

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

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

/* The header CTA wraps to two lines and crowds the wordmark on a phone, and
   the same button is a thumb-scroll away in the hero anyway. */
@media (max-width: 520px) {
    .top .btn {
        display: none;
    }
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    padding: 11px 20px;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: #6366f1;
    color: #fff;
}

.btn-secondary {
    background: #1e293b;
    color: var(--text-strong);
    border-color: #334155;
}

.btn-secondary:hover {
    background: #293548;
    color: #fff;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    padding: 92px 0 64px;
    overflow: hidden;
}

/*
 * A single soft indigo wash behind the headline. Kept to one gradient and a
 * faint grid rather than the usual pile of blurred blobs.
 */
.hero::before {
    content: '';
    position: absolute;
    inset: -260px 0 auto 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 700px;
    background: radial-gradient(closest-side, rgba(79, 70, 229, 0.20), transparent 72%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 40%, transparent 100%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.7);
    padding: 6px 14px;
    border-radius: 999px;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--emerald);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.9rem);
    line-height: 1.06;
    letter-spacing: -0.033em;
    font-weight: 600;
    color: var(--text-strong);
    margin: 26px 0 0;
    max-width: 17ch;
}

h1 .accent {
    background: linear-gradient(100deg, #a5b4fc, #6366f1 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 62ch;
    margin: 24px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-note {
    margin-top: 16px;
    font-size: 13.5px;
    color: var(--text-faint);
}

/* ---------------------------------------------------------------- shots */

.shot {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-solid);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

.shot-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: #0d1526;
    border-bottom: 1px solid var(--line);
}

.shot-bar i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #263449;
    display: block;
}

.shot-bar span {
    margin-left: 10px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-faint);
}

.hero-shot {
    margin-top: 56px;
}

/* ---------------------------------------------------------------- sections */

section {
    padding: 84px 0;
}

section.tight {
    padding: 60px 0;
}

.section-head {
    max-width: 68ch;
}

h2 {
    font-size: clamp(1.7rem, 3.1vw, 2.3rem);
    line-height: 1.16;
    letter-spacing: -0.024em;
    font-weight: 600;
    color: var(--text-strong);
    margin: 12px 0 0;
}

h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-strong);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.kicker {
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--indigo-bright);
    font-weight: 500;
    margin: 0;
}

.section-head p {
    color: var(--text-muted);
    margin: 18px 0 0;
    font-size: 1.05rem;
}

.rule {
    border: 0;
    border-top: 1px solid var(--line-soft);
    margin: 0;
}

/* ---------------------------------------------------------------- pains */

.pains {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

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

.pain {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 26px;
}

.pain .q {
    font-size: 1.06rem;
    color: var(--text-strong);
    font-weight: 500;
    margin: 0 0 12px;
}

.pain p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.pain .then {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    color: var(--text);
    font-size: 15px;
}

.pain .then strong {
    color: var(--emerald);
    font-weight: 500;
}

/* ---------------------------------------------------------------- spine */

.spine {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 46px;
    counter-reset: step;
}

@media (max-width: 1000px) {
    .spine {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.step {
    position: relative;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px 16px;
}

.step b {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--indigo-bright);
    font-weight: 500;
    margin-bottom: 7px;
}

.step span {
    font-size: 14.5px;
    color: var(--text-muted);
    display: block;
}

.step .t {
    color: var(--text-strong);
    font-weight: 500;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------- feature rows */

/*
 * Copy above, screenshot full width below. Side-by-side looked tidier in the
 * abstract, but it left each screenshot rendering at about 550px — a whole
 * application screen shrunk to the point where none of its text could be
 * read, which defeats the purpose of showing it at all.
 */
.feature {
    padding: 72px 0;
    border-top: 1px solid var(--line-soft);
}

.feature .copy {
    max-width: 74ch;
}

.feature .shot {
    margin-top: 38px;
}

.feature h2 {
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

.feature .copy > p {
    color: var(--text-muted);
    margin: 16px 0 0;
}

.bullets {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 13px 44px;
}

@media (min-width: 900px) {
    .feature .bullets {
        grid-template-columns: 1fr 1fr;
        max-width: none;
    }
}

.bullets li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
    font-size: 15.5px;
}

.bullets li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--indigo);
}

.bullets li b {
    color: var(--text-strong);
    font-weight: 500;
}

/* ---------------------------------------------------------------- principles */

.principles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 46px;
}

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

.principle {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px 26px;
}

.principle h3 {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.principle p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ---------------------------------------------------------------- modules */

.modules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 44px;
}

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

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

.module {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 22px;
}

.module h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.module ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.module li {
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------- ops strip */

.ops {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 44px;
}

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

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

.op {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 22px;
}

.op h3 {
    font-size: 0.98rem;
}

.op p {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------- cta */

.cta {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 70% 130% at 50% 0%, rgba(79, 70, 229, 0.17), transparent 70%),
        var(--surface);
    padding: 60px 40px;
    text-align: center;
}

.cta h2 {
    margin: 0;
}

.cta p {
    color: var(--text-muted);
    max-width: 54ch;
    margin: 18px auto 0;
}

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

/* ---------------------------------------------------------------- footer */

footer {
    border-top: 1px solid var(--line-soft);
    padding: 36px 0 56px;
    color: var(--text-faint);
    font-size: 14px;
}

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

footer a {
    color: var(--text-muted);
}

.mono {
    font-family: var(--mono);
    font-size: 13px;
}
