/* 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: #3f2170;
    --primary-light: #7a4fc0;
    --accent: #c9a8f5;
    --nav-bg: #2a1550;
    --ink: #1b0847;
    --muted: #6b6180;
    --bg: #f8f7fb;
    --surface: #ffffff;
    --border: #e7e2f0;
    --shadow: 0 12px 40px rgba(43, 21, 80, .12);
    --shadow-sm: 0 4px 16px rgba(43, 21, 80, .08);
    --radius: 16px;
    --maxw: 1080px;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-head: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.01em; }

/* --- nav ------------------------------------------------------------- */
header.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    flex-wrap: wrap;
}

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

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; }
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: 6px 8px;
}

header.nav .item > a:hover { opacity: 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 -------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 20% -10%, var(--primary-light) 0%, transparent 55%),
                linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2a1550 100%);
    color: #fff;
    padding: 120px 24px 128px;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}

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

.hero .eyebrow {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    margin-bottom: 22px;
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    margin: 0 0 .5rem;
    font-weight: 800;
}

.hero p { opacity: .92; font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0 auto; max-width: 560px; }

.hero .cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 999px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }

.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

/* --- page heading ------------------------------------------------------ */
.page-head {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 56px 24px;
    text-align: center;
}

.page-head h1 { margin: 0; font-size: 2rem; }

/* --- sections & cards -------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 .6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }

.card .ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    margin-bottom: 18px;
}

.card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

/* --- prose ------------------------------------------------------------- */
.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 24px;
    font-size: 1.08rem;
}

.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--primary); }

/* --- footer ------------------------------------------------------------ */
footer.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 32px 24px;
    color: var(--muted);
    font-size: .85rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

footer.foot .tag { font-weight: 600; color: var(--primary); }
