:root {
    --home-red: var(--primary, #ed101d);
    --home-red-dark: #c90d18;
    --home-ink: #f5f4f5;
    --home-muted: #b4b2b7;
    --home-page: #0d0d0f;
    --home-panel: #171719;
    --home-line: rgba(255, 255, 255, .1);
    --home-max: 1280px;
}

.home-page-shell {
    overflow: hidden;
    background: var(--home-page);
    color: var(--home-ink);
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
}

.home-page-shell *,
.home-page-shell *::before,
.home-page-shell *::after { box-sizing: border-box; }

.home-page-shell h1,
.home-page-shell h2,
.home-page-shell h3,
.home-page-shell p { margin-top: 0; }

.home-page-shell h1,
.home-page-shell h2,
.home-page-shell h3 { color: var(--home-ink); font-weight: 700; letter-spacing: -.035em; }

.home-page-shell a:focus-visible,
.home-page-shell button:focus-visible,
.home-page-shell input:focus-visible,
.home-page-shell summary:focus-visible { outline: 2px solid #ff5660; outline-offset: 3px; }

.home-page-shell .home-container { width: min(100% - 3rem, var(--home-max)); max-width: var(--home-max); padding-right: 0; padding-left: 0; }

/* Keep the shared navigation component, but give the homepage the compact bar from the reference. */
.app-navbar-home {
    position: sticky !important;
    top: var(--ga-h, 0px) !important;
    z-index: 1030;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
    background: rgba(13, 13, 15, .96) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.app-navbar-home .app-navbar-inner { width: min(100% - 3rem, 1280px); min-height: 4.75rem; }
.app-navbar-home .navbar-brand { display: inline-flex; align-items: center; margin-right: auto; }
.app-navbar-home .navbar-brand img { display: block; width: auto; max-width: 190px; height: 42px; object-fit: contain; }
.app-navbar-home .navbar-nav { align-items: center; gap: .45rem; }
.app-navbar-home .nav-link { padding: .5rem .65rem !important; color: rgba(255,255,255,.83) !important; font-size: .875rem; font-weight: 600; }
.app-navbar-home .nav-link:hover,
.app-navbar-home .nav-link:focus { color: #fff !important; }
.app-navbar-home .home-register-button { min-height: 2.6rem; margin-left: .25rem !important; padding: .6rem 1.1rem !important; border-radius: .65rem !important; background: var(--home-red) !important; color: #fff !important; font-size: .875rem; font-weight: 700; }
.app-navbar-home .navbar-toggler { border: 1px solid rgba(255,255,255,.25); border-radius: .6rem; }
.app-navbar-home .navbar-toggler-icon { filter: invert(1); }
.app-navbar-home .mobile-user-menu-panel { border: 1px solid rgba(255,255,255,.12); border-radius: .85rem; background: #171719; }
.app-navbar-home .mobile-user-menu .dropdown-item { color: #f5f4f5; }
.app-navbar-home .mobile-user-menu .dropdown-item:hover { background: rgba(255,255,255,.07); }

.home-cursor-canvas { position: fixed; inset: 0; z-index: 30; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

.home-hero {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: grid;
    min-height: 30rem;
    align-items: center;
    overflow: visible;
    padding: 4rem 0 3rem;
    background: #0d0d0f;
    text-align: center;
}

.home-hero::after { position: absolute; z-index: 0; inset: 0; background: rgba(10,10,12,.35); content: ''; pointer-events: none; }
.home-hero-art { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; opacity: .68; }
.home-hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.home-hero-brand-mark { display: block; width: min(360px, 72vw); max-height: 6rem; margin: 0 0 2rem; object-fit: contain; transform: rotate(-3deg); filter: drop-shadow(0 8px 18px rgba(237,16,29,.14)); }
.home-eyebrow { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-bottom: 1rem; color: #ff202e; font-size: .75rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-align: center; text-transform: uppercase; }
.home-display-title { max-width: 1120px; margin-bottom: 1rem; font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.05; text-wrap: balance; }
.home-display-title span { display: block; color: var(--home-red); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem; }
.home-button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font-size: .875rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none !important; transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.home-button:hover { transform: translateY(-1px); }
.home-button-primary { background: var(--home-red); color: #fff !important; }
.home-button-primary:hover { background: var(--home-red-dark); color: #fff !important; }
.home-button-secondary { border-color: rgba(255,255,255,.37); background: rgba(13,13,15,.24); color: #f8f7f8 !important; }
.home-button-secondary:hover { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); color: #fff !important; }
.home-search-wrap { position: relative; z-index: 2; width: min(100%, 720px); margin-top: 2.5rem; }
.home-search-form { display: flex; width: 100%; min-height: 3.5rem; align-items: center; gap: .8rem; margin: 0; padding: .45rem .5rem .45rem 1.25rem; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(17,17,19,.75); text-align: left; }
.home-search-form > ion-icon { flex: 0 0 auto; color: #f0edf0; font-size: 1rem; }
.home-search-form input { width: 100%; min-width: 0; height: 2.25rem; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 1rem; }
.home-search-form input::placeholder { color: #aaa7ac; opacity: 1; }
.home-search-form input:focus-visible { outline: 0; }
.home-search-form:focus-within { border-color: rgba(237,16,29,.78); box-shadow: 0 0 0 2px rgba(237,16,29,.14); }
.home-search-form .home-button { min-height: 2.6rem; flex: 0 0 auto; padding: .6rem 1.35rem; border-radius: .65rem; }
.home-search-suggestions,
.home-search-status { position: absolute; z-index: 5; top: calc(100% + .6rem); right: 0; left: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: .9rem; background: #171719; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.38); text-align: left; }
.home-search-suggestions { max-height: min(22rem, 45vh); overflow-y: auto; }
.home-search-suggestions[hidden],
.home-search-status[hidden] { display: none; }
.home-search-suggestion { display: flex; min-height: 4.5rem; align-items: center; gap: .85rem; padding: .7rem 1rem; color: #f5f4f5 !important; text-decoration: none !important; }
.home-search-suggestion + .home-search-suggestion { border-top: 1px solid rgba(255,255,255,.08); }
.home-search-suggestion:hover,
.home-search-suggestion:focus-visible { background: rgba(255,255,255,.07); color: #fff !important; }
.home-search-suggestion-avatar { width: 2.8rem; height: 2.8rem; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.home-search-suggestion-copy { display: flex; min-width: 0; flex-direction: column; gap: .1rem; }
.home-search-suggestion-name,
.home-search-suggestion-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-search-suggestion-name { font-size: 1rem; font-weight: 700; }
.home-search-suggestion-username { color: #aaa7ac; font-size: .875rem; }
.home-search-status { margin: 0; padding: .95rem 1rem; color: #cbc8cd; font-size: .95rem; }

.home-section-rule { position: relative; margin: 0 2rem; border-top: 1px solid var(--home-line); }
#how-it-works,
#faq { scroll-margin-top: calc(var(--ga-h, 0px) + 4.5rem); }
.home-about-section { padding: 3rem 0 3.25rem; }
.home-section-heading { max-width: 800px; margin: 0 auto 1.8rem; text-align: center; }
.home-section-heading .home-eyebrow { margin-bottom: .45rem; }
.home-section-heading h2,
.home-next-step-content h2 { margin-bottom: .6rem; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
.home-section-heading > p:last-child,
.home-next-step-content > p:not(.home-eyebrow) { margin-bottom: 0; color: var(--home-muted); font-size: 1rem; line-height: 1.65; }
.home-feature-grid { display: grid; width: min(100%, 800px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 auto; }
.home-feature-card { display: grid; min-height: 8rem; grid-template-columns: 3rem minmax(0, 1fr); align-items: start; gap: 1.25rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.09); border-radius: .75rem; background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); }
.home-feature-card > ion-icon { margin-top: .05rem; color: #ff1726; font-size: 2.1rem; stroke-width: 1.1; }
.home-feature-card h3 { margin: 0 0 .4rem; font-size: 1.125rem; line-height: 1.35; letter-spacing: -.015em; }
.home-feature-card p { margin: 0; color: #aaa7ac; font-size: 1rem; line-height: 1.55; }

.home-steps-section { padding: 3rem 0 3.25rem; }
.home-steps-container { max-width: 680px !important; }
.home-steps-section .home-section-heading { margin-bottom: 1.25rem; }
.home-steps-list { margin: 0; padding: 0; list-style: none; }
.home-steps-list li { display: grid; min-height: 5.5rem; grid-template-columns: 3.5rem minmax(0, 1fr); align-items: center; gap: 1.1rem; padding: .9rem 0; border-bottom: 1px solid var(--home-line); }
.home-steps-list li:last-child { border-bottom: 0; }
.home-step-number { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1.5px solid #ff1726; border-radius: 50%; color: #ff1726; font-size: 1.125rem; font-weight: 700; }
.home-steps-list h3 { margin: 0 0 .3rem; font-size: 1.125rem; line-height: 1.35; }
.home-steps-list p { margin: 0; color: var(--home-muted); font-size: 1rem; line-height: 1.55; }

.home-next-step-section { position: relative; isolation: isolate; padding: 4.5rem 0; background: radial-gradient(ellipse 58% 72% at 50% 50%, rgba(237,16,29,.12), rgba(237,16,29,.035) 55%, transparent 100%); }
.home-next-step-section + .home-faq-section { border-top: 0; }
.home-next-step-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-next-step-content .home-eyebrow { margin-bottom: .75rem; }
.home-next-step-content h2 { margin-bottom: .6rem; }
.home-next-step-content > p:not(.home-eyebrow) { margin-bottom: 1.5rem; }
.home-next-step-content .home-actions { width: min(100%, 25rem); flex-direction: column; gap: 1rem; margin-top: .25rem; }
.home-next-step-content .home-actions .home-button { width: 100%; min-height: 3.5rem; font-size: 1rem; }

.home-faq-section { padding: 3rem 0 3.25rem; }
.home-faq-heading { margin-bottom: 1.25rem; }
.home-faq-list { width: min(100%, 860px); margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; background: rgba(255,255,255,.018); }
.home-faq-list details { border-bottom: 1px solid rgba(255,255,255,.09); }
.home-faq-list details:last-child { border-bottom: 0; }
.home-faq-list summary { position: relative; display: flex; min-height: 3.25rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; color: #f2f0f2; cursor: pointer; font-size: 1rem; font-weight: 700; line-height: 1.45; list-style: none; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { flex: 0 0 auto; color: #c4c0c5; content: '+'; font-size: 1.1rem; font-weight: 400; line-height: 1; }
.home-faq-list details[open] summary::after { color: #ff2734; content: '−'; }
.home-faq-list details p { max-width: 760px; margin: 0; padding: 0 1.25rem 1rem; color: #aaa7ac; font-size: 1rem; line-height: 1.6; }
.home-faq-list details ul { max-width: 760px; margin: 0; padding: 0 1.25rem 1rem 2.5rem; color: var(--home-muted); font-size: 1rem; line-height: 1.6; }
.home-faq-list a { color: #ff3844; text-decoration: underline; text-underline-offset: 2px; }
.home-faq-list details::details-content { height: 0; overflow: clip; opacity: 0; transition: height .28s ease, opacity .2s ease, content-visibility .28s allow-discrete; }
.home-faq-list details[open]::details-content { height: auto; opacity: 1; }

.home-theme-dark { --home-ink: #f5f4f5; --home-muted: #aaa7ac; --home-page: #0d0d0f; --home-panel: #171719; --home-line: rgba(255,255,255,.1); background: var(--home-page); color: var(--home-ink); }
.home-theme-light { --home-ink: #202024; --home-muted: #64616a; --home-page: #faf9fa; --home-panel: #fff; --home-line: rgba(20,18,22,.13); background: var(--home-page); color: var(--home-ink); }
.home-theme-light .home-hero { background: #141214; }
.home-theme-light .home-hero-content h1,
.home-theme-light .home-hero-content .home-eyebrow,
.home-theme-light .home-hero-content .home-button-secondary { color: #f5f4f5 !important; }
.home-theme-light .home-feature-card { border-color: var(--home-line); background: var(--home-panel); }
.home-theme-light .home-feature-card p,
.home-theme-light .home-steps-list p,
.home-theme-light .home-section-heading > p:last-child,
.home-theme-light .home-next-step-content > p:not(.home-eyebrow) { color: var(--home-muted); }
.home-theme-light .home-feature-card h3,
.home-theme-light .home-steps-list h3,
.home-theme-light .home-faq-list summary { color: var(--home-ink); }
.home-theme-light .home-faq-list { border-color: var(--home-line); background: #fff; }
.home-theme-light .home-faq-list details,
.home-theme-light .home-steps-list li { border-color: var(--home-line); }
.home-theme-light .home-faq-list details p { color: var(--home-muted); }

@media (max-width: 767.98px) {
    .app-navbar-home .app-navbar-inner { width: min(100% - 2rem, 1280px); min-height: 4.25rem; }
    .app-navbar-home .navbar-brand img { max-width: 145px; height: 32px; }
    .app-navbar-home .mobile-user-menu { top: calc(100% - .15rem); right: .75rem; width: min(17rem, calc(100vw - 1.5rem)); }
    .home-hero { min-height: 31rem; padding: 3rem 0 2.5rem; }
    .home-hero-brand-mark { width: min(300px, 72vw); margin-bottom: 1.5rem; }
    .home-hero-art { object-position: center center; opacity: .55; }
    .home-page-shell .home-container { width: min(100% - 2rem, var(--home-max)); max-width: var(--home-max); }
    .home-display-title { max-width: 620px; font-size: clamp(2rem, 8vw, 2.8rem); }
    .home-actions { gap: .75rem; }
    .home-button { min-height: 3rem; padding-right: 1.15rem; padding-left: 1.15rem; }
    .home-search-wrap { margin-top: 2rem; }
    .home-section-rule { margin-right: 1rem; margin-left: 1rem; }
    .home-about-section,
    .home-steps-section,
    .home-next-step-section,
    .home-faq-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .home-next-step-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .home-feature-grid { gap: .8rem; }
    .home-feature-card { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .8rem; padding: 1.2rem; }
    .home-feature-card > ion-icon { font-size: 1.9rem; }
    .home-feature-card h3 { font-size: 1rem; }
    .home-feature-card p { font-size: 1rem; }
    .home-steps-list li { grid-template-columns: 2.8rem minmax(0, 1fr); gap: .55rem; }
    .home-step-number { width: 2.4rem; height: 2.4rem; }
    .home-faq-list summary { padding-right: 1rem; padding-left: 1rem; }
    .home-faq-list details p { padding-right: 1rem; padding-left: 1rem; }
    .home-faq-list details ul { padding-right: 1rem; padding-left: 2.25rem; }
}

@media (max-width: 575.98px) {
    .home-search-form {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        border-radius: 1.5rem;
    }
    .home-search-form .home-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .home-hero { min-height: 30rem; }
    .home-display-title { font-size: clamp(2rem, 9vw, 2.5rem); }
    .home-actions { width: 100%; }
    .home-hero .home-actions .home-button { flex: 1 1 100%; }
    .home-search-form { min-height: 3.25rem; gap: .5rem; padding-left: .85rem; }
    .home-search-form input { font-size: 1rem; }
    .home-search-form .home-button { padding-right: .85rem; padding-left: .85rem; font-size: .875rem; }
    .home-feature-grid { grid-template-columns: 1fr; }
    .home-feature-card { min-height: 5rem; grid-template-columns: 2.4rem minmax(0, 1fr); padding: .85rem 1rem; }
    .home-feature-card > ion-icon { font-size: 1.7rem; }
    .home-next-step-content .home-actions .home-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .home-cursor-canvas { display: none; }
    .home-button { transition: none; }
    .home-faq-list details::details-content { transition: none; }
}
