/* Orbsen site template — design tokens stamped at scaffold time.
   The agent customizes from here; keep the custom properties as the source
   of truth for brand colours and fonts. */

:root {
    --primary: #593196;
    --primary-dark: #3d2169;
    --primary-light: #7b52b8;
    --accent: #c4a8f0;
    --nav-bg: #3d2169;
    --ink: #1b0847;
    --ink-muted: #5a4a78;
    --bg: #f8f7fb;
    --surface: #ffffff;
    --border: #e6e0f0;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(27, 8, 71, 0.08);
    --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

/* --- nav ------------------------------------------------------------- */
header.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 28px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(27, 8, 71, 0.18);
}

header.nav .brand {
    font-weight: 700;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.01em;
}

header.nav .brand img { max-height: 38px; }
header.nav .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
header.nav .bt { font-weight: 700; font-size: 1.05rem; }
header.nav .bs { font-size: .7rem; opacity: .85; font-weight: 400; }

header.nav .links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
header.nav .item { position: relative; }

header.nav .item > a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    opacity: .88;
    font-size: .95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: opacity .15s ease, background .15s ease;
}

header.nav .item > a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

header.nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nav-bg);
    padding: 8px;
    border-radius: 0 0 8px 8px;
    min-width: 170px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
    z-index: 20;
}

header.nav .item:hover .sub,
header.nav .item:focus-within .sub { display: flex; }

header.nav .sub a {
    color: #fff;
    opacity: .85;
    text-decoration: none;
    font-size: .9rem;
    padding: 4px 6px;
}

header.nav .sub a:hover { opacity: 1; }

.nt { display: none; }

.hamb {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    user-select: none;
}

@media (max-width: 768px) {
    .hamb { display: block; }
    header.nav .links { display: none; flex-basis: 100%; flex-direction: column; gap: 6px; }
    .nt:checked ~ .links { display: flex; }
    header.nav .sub { position: static; display: flex; padding: 2px 0 2px 16px; box-shadow: none; background: transparent; }
}

/* --- hero + pages ----------------------------------------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 168, 240, 0.28), transparent 55%),
        linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 48%, var(--primary-light) 100%);
    color: #fff;
    padding: 112px 24px 96px;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 64px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0 0 1rem;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.hero p {
    opacity: 0.92;
    font-size: 1.2rem;
    margin: 0 auto;
    max-width: 36ch;
    font-weight: 400;
}

.page-head {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 56px 24px;
    text-align: center;
}

.page-head h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    letter-spacing: -0.02em;
}

/* --- content sections ------------------------------------------------- */
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 24px;
}

.section-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
}

.section-intro h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--ink);
}

.section-intro p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1.05rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 36px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.card p {
    margin: 0;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.7;
}

.card .lead {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary);
}

.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px;
}

.prose h2 { margin-top: 0; color: var(--ink); }
.prose p { color: var(--ink-muted); line-height: 1.7; }
.prose a { color: var(--primary); }

/* --- footer ------------------------------------------------------------ */
footer.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 28px 28px;
    margin-top: auto;
    font-size: 0.85rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-muted);
}

footer.foot .tag {
    opacity: 0.85;
}
