:root {
    --purple: #5a35dc;
    --purple-dark: #2b166f;
    --pink: #ff5c93;
    --lime: #dfff45;
    --ink: #18122b;
    --muted: #6f6980;
    --line: #ddd8ee;
    --paper: #f8f7ff;
    --white: #fff;
    --shadow: 0 22px 55px rgba(48, 30, 104, .12);
    --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
main { overflow: hidden; }

.site-header {
    min-height: 82px;
    padding: 14px clamp(20px, 5vw, 76px);
    display: flex;
    align-items: center;
    gap: 34px;
    background: rgba(248, 247, 255, .94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; line-height: .9; }
.site-brand b {
    display: grid;
    place-items: center;
    min-width: 58px;
    height: 40px;
    padding: 0 8px;
    background: var(--purple);
    color: #fff;
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--ink);
    font: 700 19px "Space Grotesk";
}
.site-brand span { font-size: 11px; letter-spacing: .03em; }
.site-brand strong { color: var(--purple); font-size: 13px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a, .site-actions > a:first-child { font-weight: 700; font-size: 14px; }
.site-nav a:hover, .site-actions > a:first-child:hover { color: var(--purple); }
.site-actions { display: flex; align-items: center; gap: 18px; }
.site-menu-button { display: none; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: .18s transform, .18s box-shadow;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button.primary { background: var(--purple); color: #fff; }
.button.ghost { background: #fff; }
.button.small { padding: 10px 16px; border-radius: 11px; box-shadow: 3px 3px 0 var(--ink); }
.button.full { width: 100%; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 800; font-size: 12px; letter-spacing: .13em; }
.eyebrow::before { content: "✦"; color: var(--pink); }
.hero {
    max-width: 1440px;
    margin: auto;
    min-height: 680px;
    padding: 90px clamp(24px, 7vw, 104px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
}
.hero h1 { font: 700 clamp(48px, 6vw, 84px)/.96 "Space Grotesk"; letter-spacing: -.055em; margin: 22px 0; }
.hero h1 em, .section-title em, .auth-side h1 em { font-family: Georgia, serif; font-weight: 600; color: var(--purple); }
.hero p { font-size: 19px; max-width: 610px; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; font-size: 13px; color: var(--muted); }
.hero-board {
    position: relative;
    min-height: 520px;
    border: 2px solid var(--ink);
    border-radius: 38px;
    background: var(--purple);
    box-shadow: 12px 12px 0 var(--ink);
    overflow: hidden;
    padding: 42px;
}
.hero-board::before { content: ""; position: absolute; width: 310px; height: 310px; border: 50px solid var(--pink); border-radius: 50%; right: -150px; top: -110px; }
.hero-board::after { content: ""; position: absolute; width: 180px; height: 180px; background: var(--lime); border-radius: 46% 54% 60% 40%; left: -65px; bottom: -55px; transform: rotate(20deg); }
.floating-card { position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); z-index: 2; }
.floating-card.profile { left: 44px; top: 62px; width: 58%; padding: 24px; }
.floating-card.profile small, .floating-card.result small { font-weight: 800; color: var(--purple); letter-spacing: .12em; }
.floating-card.profile strong { display: block; font: 700 30px "Space Grotesk"; margin: 8px 0; }
.floating-card.reference { right: 35px; top: 190px; width: 58%; min-height: 170px; padding: 26px; background: var(--pink); transform: rotate(3deg); }
.floating-card.reference b { display: block; font: 700 43px/.9 "Space Grotesk"; }
.floating-card.reference span { display: block; margin-top: 18px; font-size: 13px; font-weight: 700; }
.floating-card.result { left: 72px; bottom: 52px; width: 65%; padding: 22px; background: var(--lime); transform: rotate(-2deg); }
.floating-card.result strong { display: block; font: 700 24px "Space Grotesk"; }

.section { padding: 100px clamp(24px, 7vw, 104px); }
.section.white { background: #fff; }
.section.purple { background: var(--purple); color: #fff; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-title { font: 700 clamp(36px, 4.6vw, 62px)/1 "Space Grotesk"; letter-spacing: -.045em; margin: 14px 0 18px; }
.section-heading > p { font-size: 18px; color: var(--muted); }
.purple .section-heading > p { color: #ded6ff; }
.feature-grid, .step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card, .step-card { border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); padding: 30px; box-shadow: 6px 6px 0 var(--ink); }
.feature-card i, .step-card i { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 14px; background: var(--lime); font-style: normal; font-weight: 800; }
.feature-card:nth-child(2n) i, .step-card:nth-child(2n) i { background: var(--pink); }
.feature-card h3, .step-card h3 { font: 700 24px "Space Grotesk"; margin: 22px 0 10px; }
.feature-card p, .step-card p { color: var(--muted); margin-bottom: 0; }
.library-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-direction { aspect-ratio: 4/5; border: 2px solid var(--ink); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.mini-direction small { font-weight: 800; letter-spacing: .12em; }
.mini-direction b { font: 700 clamp(24px, 3vw, 42px)/.9 "Space Grotesk"; }
.mini-direction:nth-child(1) { background: var(--pink); }
.mini-direction:nth-child(2) { background: var(--lime); }
.mini-direction:nth-child(3) { background: #e8e3ff; }
.mini-direction:nth-child(4) { background: var(--ink); color: #fff; }
.callout { max-width: 1200px; margin: auto; border: 2px solid var(--ink); border-radius: 32px; padding: 50px; background: var(--lime); box-shadow: 10px 10px 0 var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.callout h2 { font: 700 clamp(32px, 4vw, 52px)/1 "Space Grotesk"; letter-spacing: -.04em; max-width: 720px; margin: 0; }

.site-footer { padding: 62px clamp(24px, 7vw, 104px); background: var(--ink); color: #fff; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 52px; }
.site-footer > div { display: flex; flex-direction: column; gap: 10px; }
.site-footer p { color: #aaa2bc; max-width: 360px; }
.site-footer strong { margin-bottom: 8px; }
.site-footer a:not(.site-brand) { color: #c9c3d6; font-size: 14px; }
.site-footer a:hover { color: var(--lime); }
.site-brand.inverse b { background: var(--lime); color: var(--ink); }
.site-brand.inverse strong { color: var(--lime); }
.footer-note { background: var(--ink); color: #8e879f; border-top: 1px solid #312a42; padding: 20px; text-align: center; font-size: 12px; }

.auth-page { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--purple); color: #fff; padding: 70px clamp(28px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 260px; height: 260px; border: 45px solid var(--pink); border-radius: 50%; right: -130px; bottom: -80px; }
.auth-side h1 { font: 700 clamp(42px, 5vw, 68px)/.98 "Space Grotesk"; letter-spacing: -.05em; margin: 24px 0; }
.auth-side h1 em { color: var(--lime); }
.auth-side p { color: #ded7ff; font-size: 18px; max-width: 540px; }
.auth-points { display: grid; gap: 14px; margin-top: 32px; }
.auth-points span { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.auth-points span::before { content: "✓"; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--lime); color: var(--ink); border: 1px solid var(--ink); }
.auth-form-wrap { display: grid; place-items: center; padding: 50px 24px; background: #fff; }
.auth-card { width: min(480px, 100%); }
.auth-card h2 { font: 700 42px "Space Grotesk"; letter-spacing: -.04em; margin: 10px 0; }
.auth-card > p { color: var(--muted); }
.form-grid { display: grid; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 800; font-size: 14px; }
.field small { color: var(--muted); }
.field input { width: 100%; padding: 14px 15px; border: 1.5px solid #cfc8e3; border-radius: 13px; background: #fbfaff; color: var(--ink); outline: none; }
.field input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(90, 53, 220, .1); }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle { position: absolute; right: 9px; bottom: 8px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--purple); cursor: pointer; font-weight: 800; }
.text-link { color: var(--purple); font-size: 14px; font-weight: 800; justify-self: end; }
.form-alert { padding: 13px 15px; border: 1.5px solid; border-radius: 12px; margin: 18px 0; font-weight: 700; font-size: 14px; }
.form-alert.error { background: #fff0f2; color: #a11235; border-color: #efa4b5; }
.form-alert.success { background: #effbd2; color: #395900; border-color: #a5cc43; }
.auth-switch { margin-top: 22px !important; font-size: 14px !important; }
.auth-switch a { color: var(--purple); font-weight: 800; }
.legal-copy { margin-top: 24px; color: var(--muted); font-size: 12px; text-align: center; }
.legal-copy a { color: var(--purple); font-weight: 700; }

@media (max-width: 920px) {
    .site-header { height: auto; min-height: 72px; flex-wrap: wrap; padding: 15px 20px; }
    .site-menu-button { display: block; margin-left: auto; border: 0; background: transparent; font-weight: 800; }
    .site-nav, .site-actions { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 15px; padding: 15px 0; }
    .site-header.open .site-nav, .site-header.open .site-actions { display: flex; }
    .hero { grid-template-columns: 1fr; padding-top: 60px; }
    .hero-board { min-height: 480px; }
    .feature-grid, .step-grid { grid-template-columns: 1fr 1fr; }
    .library-strip { grid-template-columns: 1fr 1fr; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-side { min-height: 420px; }
}

@media (max-width: 620px) {
    .hero { padding: 46px 20px 70px; }
    .hero h1 { font-size: 48px; }
    .hero-board { min-height: 410px; padding: 20px; }
    .floating-card.profile { left: 20px; top: 30px; width: 72%; }
    .floating-card.reference { right: 18px; top: 160px; width: 70%; }
    .floating-card.result { left: 28px; bottom: 35px; width: 76%; }
    .feature-grid, .step-grid, .library-strip, .site-footer { grid-template-columns: 1fr; }
    .section { padding: 70px 20px; }
    .callout { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
    .auth-side { padding: 50px 24px; }
    .auth-form-wrap { padding: 42px 20px; }
    .site-footer { gap: 34px; }
}
