/* Homepage 2026 - premium trust-first redesign */

:root {
    --bg: #f4f6fa;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-strong: #f0f3fa;
    --ink: #0f172a;
    --ink-soft: #1f2a44;
    --text: #1e293b;
    --text-muted: #4a5a74;
    --line: rgba(15, 23, 42, 0.12);
    --line-strong: rgba(15, 23, 42, 0.2);
    --brand: #2643dd;
    --brand-dark: #1a31a6;
    --brand-soft: #e9eeff;
    --ok: #0f8a5f;
    --ok-soft: #d9f4e8;
    --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
    --font-display: "Source Serif 4", Georgia, serif;
    --container: min(1160px, calc(100% - 3rem));
    --section-space: clamp(4.5rem, 3.4rem + 4vw, 7rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.home {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 75% -20%, rgba(38, 67, 221, 0.1), transparent 55%),
        radial-gradient(1200px 500px at -10% -10%, rgba(15, 138, 95, 0.08), transparent 45%),
        var(--bg);
    line-height: 1.62;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-wrap {
    width: var(--container);
    margin-inline: auto;
}

.kicker {
    margin: 0 0 0.8rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--brand);
}

/* ---------- Header ---------- */

.home-header {
    position: sticky;
    top: 0;
    z-index: 220;
    background: rgba(244, 246, 250, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.home-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.home-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
}

.home-logo:hover {
    color: var(--ink);
}

.home-logo__mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ink) 0%, #243560 100%);
    position: relative;
    flex-shrink: 0;
}

.home-logo__mark::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: 8px;
    bottom: 8px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
    transform: rotate(-7deg);
}

.home-logo__text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.home-nav > a:not(.home-btn) {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.home-nav > a:not(.home-btn):hover {
    color: var(--ink);
}

.home-header__mobile {
    display: none;
    align-items: center;
    gap: 0.65rem;
}

.home-header__mobile > a:not(.home-btn) {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.62rem 1.2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-btn--lg {
    padding: 0.78rem 1.38rem;
    font-size: 0.95rem;
}

.home-btn--solid {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.home-btn--solid:hover {
    background: var(--ink-soft);
    border-color: var(--ink-soft);
    color: #fff;
    transform: translateY(-1px);
}

.home-btn--outline {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.home-btn--outline:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.home-btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text-muted);
}

.home-btn--ghost:hover {
    background: var(--surface);
    color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: clamp(2.5rem, 1.8rem + 3vw, 4rem) 0 clamp(3.5rem, 2.7rem + 3vw, 5rem);
}

.hero__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.065'/%3E%3C/svg%3E");
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.8rem, 1rem + 3vw, 3.8rem);
    align-items: center;
}

.hero h1 {
    margin: 0 0 1.05rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 2rem + 2.2vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 16ch;
}

.hero__lead {
    margin: 0 0 1.6rem;
    max-width: 56ch;
    font-size: clamp(1.05rem, 1rem + 0.22vw, 1.16rem);
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
}

.hero__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero__trust li {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.hero-panel {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.hero-panel__head {
    padding: 1rem 1.1rem 0.8rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
}

.hero-panel__label {
    margin: 0 0 0.18rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-panel__domain {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink);
}

.hero-panel__body {
    padding: 0.95rem 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.hero-kpi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.62rem 0.72rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.85rem;
}

.hero-kpi span {
    color: var(--text-muted);
    font-weight: 600;
}

.hero-kpi strong {
    color: var(--ink);
    font-weight: 700;
}

.hero-panel__foot {
    padding: 0.78rem 1.1rem 0.95rem;
    border-top: 1px solid var(--line);
    background: var(--ok-soft);
    color: #0d6d4c;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ---------- Proof band ---------- */

.proof-band {
    padding: 1rem 0 2.25rem;
}

.proof-band__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.proof-band__inner article {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1rem 1rem 0.95rem;
}

.proof-band__value {
    margin: 0 0 0.22rem;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.5rem + 0.8vw, 2.4rem);
    line-height: 1;
    color: var(--brand-dark);
}

.proof-band__label {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ---------- Shared sections ---------- */

.section {
    padding: var(--section-space) 0;
}

.section-head {
    max-width: 42rem;
    margin: 0 0 2.5rem;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head--light .kicker {
    color: #b7c4ea;
}

.section-head h2 {
    margin: 0 0 0.78rem;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.section-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.03rem;
}

.section--platform {
    padding-top: clamp(4rem, 3rem + 3vw, 6rem);
}

/* ---------- Value grid ---------- */

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.value-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 1rem + 1vw, 1.85rem);
    background: var(--surface);
}

.value-card--organizers {
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
}

.value-card--voters {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
}

.value-card__tag {
    margin: 0 0 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--brand);
}

.value-card h3 {
    margin: 0 0 0.95rem;
    font-family: var(--font-display);
    font-size: clamp(1.28rem, 1.2rem + 0.6vw, 1.7rem);
    line-height: 1.18;
    color: var(--ink);
}

.checklist {
    list-style: none;
    margin: 0 0 0.8rem;
    padding: 0;
    display: grid;
    gap: 0.58rem;
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid rgba(38, 67, 221, 0.24);
}

.checklist li::after {
    content: "";
    position: absolute;
    left: 0.3rem;
    top: 0.59rem;
    width: 0.35rem;
    height: 0.2rem;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86em;
    padding: 0.12rem 0.3rem;
    border-radius: 5px;
    background: #eef2ff;
    color: #1e3a8a;
}

.text-link {
    font-weight: 700;
    font-size: 0.88rem;
}

/* ---------- Assurance ---------- */

.section--assurance {
    background: linear-gradient(180deg, #0f1a34 0%, #122246 100%);
    color: #d8e0f8;
}

.section--assurance .section-head h2 {
    color: #fff;
}

.section--assurance .section-head p {
    color: rgba(216, 224, 248, 0.82);
}

.assurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.assurance-grid article {
    border: 1px solid rgba(216, 224, 248, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.assurance-grid h3 {
    margin: 0 0 0.5rem;
    font-size: 0.96rem;
    line-height: 1.3;
    color: #fff;
}

.assurance-grid p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(216, 224, 248, 0.82);
}

/* ---------- Process ---------- */

.section--process {
    background: var(--bg-soft);
}

.process-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.process-grid--6 {
    grid-template-columns: repeat(3, 1fr);
}

.process-grid li {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 1rem 1rem 1.05rem;
}

.process-grid__num {
    display: inline-block;
    margin-bottom: 0.62rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.process-grid h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--ink);
}

.process-grid p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ---------- Pricing ---------- */

.section--pricing {
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--bg) 100%);
}

.pricing-included {
    max-width: 760px;
    margin: 0 auto 1.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 1rem 1.2rem;
}

.pricing-included__title {
    margin: 0 0 0.58rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pricing-included__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.pricing-included__list li {
    position: relative;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-strong);
    padding: 0.55rem 0.72rem 0.55rem 2rem;
    text-align: left;
}

.pricing-included__list li::before {
    content: "";
    position: absolute;
    left: 0.72rem;
    top: 0.58rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--ok-soft);
    border: 1px solid rgba(15, 138, 95, 0.25);
}

.pricing-included__list li::after {
    content: "";
    position: absolute;
    left: 1.02rem;
    top: 0.92rem;
    width: 0.34rem;
    height: 0.18rem;
    border-left: 2px solid var(--ok);
    border-bottom: 2px solid var(--ok);
    transform: rotate(-45deg);
}

.pricing-included__note {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.83rem;
    color: var(--ok);
    font-weight: 700;
}

.pricing-duration {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.6rem;
    padding: 3px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    width: fit-content;
}

.pricing-duration__btn {
    font: inherit;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 0.52rem 1.26rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

.pricing-duration__btn.is-active {
    color: #fff;
    background: var(--ink);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.95rem;
    max-width: 930px;
    margin: 0 auto;
}

.pricing-grid--year {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
}

.pricing-card {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 1.2rem 1.1rem;
    display: flex;
    flex-direction: column;
}

.pricing-card--featured {
    border-color: #0f255f;
    background: linear-gradient(180deg, #10265f 0%, #0f1f45 100%);
    color: #d8e2ff;
}

.pricing-card__badge {
    position: static;
    display: inline-flex;
    align-items: center;
    background: var(--warn);
    color: #fff;
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.pricing-card__badge[hidden] {
    display: none;
}

.pricing-card__badge-wrap {
    margin: 0 0 0.55rem;
}

.pricing-card h3 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
}

.pricing-card__price {
    margin: 0.62rem 0 0.1rem;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.6rem + 0.75vw, 2.45rem);
    line-height: 1;
    color: var(--brand-dark);
}

.pricing-card--featured .pricing-card__price {
    color: #fff;
}

.pricing-card__price-for {
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pricing-card--featured .pricing-card__price-for {
    color: rgba(216, 226, 255, 0.78);
}

.pricing-card__features {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    flex: 1;
}

.pricing-card__features li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.pricing-card--featured .pricing-card__features li {
    color: rgba(216, 226, 255, 0.84);
}

.pricing-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.56rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--brand);
}

.pricing-card--featured .pricing-card__features li::before {
    background: #a6b9ff;
}

.pricing-card .home-btn {
    width: 100%;
}

.pricing-card--featured .home-btn--solid {
    background: #fff;
    border-color: #fff;
    color: #0f1f45;
}

.pricing-card--featured .home-btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}

.pricing-card__features[hidden] {
    display: none;
}

.pricing-card.is-hidden,
.pricing-card[hidden] {
    display: none !important;
}

/* ---------- CTA ---------- */

.section--cta {
    padding-top: clamp(3rem, 2.4rem + 2vw, 4.5rem);
}

.cta-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
    padding: clamp(2rem, 1.5rem + 2vw, 2.9rem) clamp(1.3rem, 1rem + 1vw, 2rem);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.cta-card h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.5rem + 1vw, 2.5rem);
    line-height: 1.12;
}

.cta-card p {
    margin: 0 0 1.2rem;
    color: var(--text-muted);
}

.cta-card .hero__actions {
    justify-content: center;
    margin-bottom: 0;
}

/* ---------- Footer ---------- */

.home-footer {
    margin-top: var(--section-space);
    background: #0f172a;
    color: rgba(210, 220, 245, 0.72);
    padding: 2.7rem 0 1.5rem;
}

.home-footer__grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.home-footer__brand p {
    margin: 0.8rem 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    max-width: 19rem;
}

.home-logo--footer {
    color: #fff;
}

.home-logo--footer .home-logo__mark {
    background: rgba(255, 255, 255, 0.15);
}

.home-logo--footer .home-logo__mark::after {
    opacity: 0.82;
}

.home-footer nav {
    display: grid;
    gap: 0.2rem;
    align-content: start;
}

.home-footer__heading {
    margin: 0 0 0.42rem;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 800;
    color: #fff;
}

.home-footer nav a {
    color: rgba(210, 220, 245, 0.76);
    font-size: 0.86rem;
    font-weight: 600;
}

.home-footer nav a:hover {
    color: #fff;
}

.home-footer__copy {
    width: var(--container);
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(210, 220, 245, 0.18);
    text-align: center;
    font-size: 0.78rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .proof-band__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .assurance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .pricing-grid--year {
        max-width: 380px;
        grid-template-columns: 1fr;
    }

    .home-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .home-nav {
        display: none;
    }

    .home-header__mobile {
        display: inline-flex;
    }

    .hero__actions .home-btn {
        width: 100%;
    }

    .proof-band__inner {
        grid-template-columns: 1fr;
    }

    .assurance-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .home-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
