/* Name Drop — design tokens are the source of truth for brand colours & fonts. */

:root {
    --primary: #593196;
    --primary-deep: #3d1f6e;
    --primary-soft: #7b52c0;
    --accent: #e8a0bf;
    --nav-bg: #1b0847;
    --ink: #1b0847;
    --ink-muted: #5a4a78;
    --bg: #f8f7fb;
    --surface: #ffffff;
    --border: rgba(89, 49, 150, 0.12);
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(27, 8, 71, 0.12);
    --max: 1080px;
}

* { 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;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
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 12px;
    border-radius: 999px;
    transition: opacity .15s ease, background .15s ease;
}

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

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(ellipse 80% 60% at 20% 20%, rgba(232, 160, 191, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(123, 82, 192, 0.45), transparent 50%),
        linear-gradient(145deg, var(--primary-deep) 0%, var(--primary) 48%, var(--primary-soft) 100%);
    color: #fff;
    padding: 112px 24px 100px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

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

.hero-kicker {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(232, 160, 191, 0.35);
    border-radius: 999px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 3.75rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.hero p {
    opacity: .92;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    margin: 0 auto;
    max-width: 28ch;
    font-weight: 400;
    line-height: 1.5;
}

.hero-rule {
    width: 56px;
    height: 3px;
    margin: 1.75rem auto 0;
    border: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

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

.page-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.25rem);
    font-weight: 400;
}

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

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

.welcome-card h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    margin: 0 0 0.75rem;
    color: var(--ink);
}

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

.welcome-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary), var(--primary-soft));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(89, 49, 150, 0.28);
}

.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;
    margin-top: 48px;
    font-size: .85rem;
    flex-wrap: wrap;
    color: var(--ink-muted);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

footer.foot .tag {
    opacity: 0.85;
}

@media (max-width: 560px) {
    .welcome-card {
        margin-top: -32px;
        padding: 36px 24px;
    }

    .hero {
        padding: 80px 20px 72px;
    }
}
