/* 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;
    --nav-bg: #3d2169;
    --ink: #1b0847;
    --ink-muted: #5a4a7a;
    --bg: #f8f7fb;
    --surface: #ffffff;
    --accent: #c4a8f0;
    --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: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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.02em;
}

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; }
header.nav .item { position: relative; }

header.nav .item > a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    opacity: .85;
    font-size: .95rem;
    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.35), transparent 55%),
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(123, 82, 184, 0.4), transparent 50%),
        linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: #fff;
    padding: 112px 24px 100px;
    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;
    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.4rem, 5vw, 3.4rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero p {
    opacity: 0.92;
    font-size: 1.25rem;
    margin: 0 auto;
    max-width: 32ch;
    line-height: 1.5;
    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: 2rem;
    letter-spacing: -0.02em;
}

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

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

.welcome-card .mark {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(89, 49, 150, 0.3);
}

.welcome-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.welcome-card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1.1rem;
}

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

.prose h2 { margin-top: 0; }
.prose a { color: var(--primary); }

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

footer.foot .tag {
    opacity: 0.9;
}
