/* ==========================================================
   Signi Onboarding – Theme styles
   Brand: #6931D9 (purple), #2EE190 (green)
   ========================================================== */

:root {
    --color-primary:        #6931D9;
    --color-primary-dark:   #4E22A8;
    --color-primary-light:  #8A5BE5;
    --color-primary-50:     #F2ECFC;

    --color-accent:         #2EE190;
    --color-accent-dark:    #1FB56E;
    --color-accent-50:      #E3FBF0;

    --color-bg:             #FFFFFF;
    --color-surface:        #F7F6FB;
    --color-surface-2:      #EFECF8;
    --color-text:           #1A1230;
    --color-text-muted:     #6B6680;
    --color-border:         #E6E3EF;

    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(26, 18, 48, 0.06);
    --shadow-md: 0 4px 14px rgba(26, 18, 48, 0.08);
    --shadow-lg: 0 18px 40px rgba(26, 18, 48, 0.14);

    --max-width: 1200px;
    --nav-height: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4 { letter-spacing: -0.02em; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 760px; }

.section { padding: 88px 0; }
.section--muted { background: var(--color-surface); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
}
.section__lead {
    font-size: 18px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 24px;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img,
.site-logo svg,
.custom-logo {
    height: 40px;
    width: auto;
    max-width: 220px;
}
.site-nav__list {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}
.site-nav__list a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
}
.site-nav__list a:hover { color: var(--color-primary); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 104px 0 120px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(105, 49, 217, 0.14), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(46, 225, 144, 0.16), transparent 60%),
        var(--color-bg);
    overflow: hidden;
}
.hero__inner {
    max-width: 880px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero__badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-primary-50);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero__title {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    margin: 0 0 20px;
    font-weight: 800;
}
.hero__subtitle {
    font-size: 20px;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}
.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.2s ease,
                background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn--accent {
    background: var(--color-accent);
    color: #0A1F14;
}
.btn--accent:hover {
    background: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}
.btn--ghost:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-50);
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature {
    background: var(--color-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 16px;
}
.feature__icon--primary {
    background: var(--color-primary-50);
    color: var(--color-primary);
}
.feature__icon--accent {
    background: var(--color-accent-50);
    color: var(--color-accent-dark);
}
.feature__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}
.feature__desc {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 15px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 48px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1A1230 0%, #3E1E8F 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
}
.cta-banner__title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
}
.cta-banner__subtitle {
    margin: 0;
    color: #CFCADA;
    font-size: 16px;
}

/* ---------- Page / article ---------- */
.page__title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    margin: 0 0 24px;
}
.page__content { font-size: 17px; }
.page__content p { margin: 0 0 16px; }

/* ---------- 404 ---------- */
.error-404__code {
    display: inline-block;
    font-size: 96px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-text);
    color: #CFCADA;
    padding: 48px 0;
    margin-top: 96px;
}
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    height: 28px;
    width: auto;
}
.site-footer__tagline {
    color: #9E98B2;
    margin: 0;
    font-size: 14px;
}
.site-footer__copy {
    margin: 0;
    font-size: 14px;
    color: #9E98B2;
}

/* ---------- Utils ---------- */
.text-accent { color: var(--color-accent-dark); }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { padding: 72px 0 88px; }
    .site-nav__list { gap: 16px; }
    .cta-banner { padding: 32px 24px; }
}
