/* Homepage + register layout patterns from _docs/Dark theme website redesign */

@keyframes bft-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes bft-scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 6px; }
}

.section-kicker {
    font-family: var(--bft-font-pixel);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bft-torii);
    margin: 0 0 0.5rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.section-head__copy h2 {
    font-family: var(--bft-font-display);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    text-align: left;
}

.section-head__copy p {
    margin: 0;
    color: var(--bft-text-subtle);
    max-width: 36rem;
    font-size: 1rem;
    text-align: left;
}

.section-head__action .btn-outline {
    border-radius: 10px;
    border-color: var(--bft-accent-a30);
    color: var(--bft-accent);
    white-space: nowrap;
}

.section-head__action .btn-outline:hover {
    background: var(--bft-accent-a08);
    border-color: var(--bft-accent-a40);
    color: var(--bft-accent);
}

/* ─── Homepage section rhythm ─────────────────────────────────── */

:root {
    --bft-home-section-pad: clamp(2rem, 3.5vw, 3rem);
    --bft-home-hero-bottom: clamp(1.25rem, 2vw, 1.5rem);
    --bft-home-intro-gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* Inner section labels must not inherit block padding from layout rules */
.section-head,
.section-head__copy,
.section-head__action,
.section-kicker,
.section-more {
    padding-block: 0;
}

/* One padding seam between sections instead of doubled top + bottom */
.hero--split ~ section[class^="section-"],
section[class^="section-"] {
    padding-top: var(--bft-home-section-pad);
    padding-bottom: 0;
}

section.section-alive,
section.section-ai,
section.section-pricing,
section.section-trial--redesign {
    padding-bottom: var(--bft-home-section-pad);
}

section.section-trial.section-trial--redesign {
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head {
    margin-bottom: var(--bft-home-intro-gap);
}

.home-section-intro {
    margin-bottom: var(--bft-home-intro-gap);
}

.home-section-intro--center {
    text-align: center;
}

.home-section-intro--center .section-kicker,
.home-section-intro--center h2,
.home-section-intro--center .section-sub {
    text-align: center;
}

.home-section-intro--center .section-sub {
    margin-inline: auto;
    max-width: 42ch;
}

.home-section-intro--left h2,
.home-section-intro--left .section-sub,
.alive-header h2,
.alive-header .section-sub {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.home-section-intro--left .section-sub,
.alive-header .section-sub {
    margin-bottom: 0;
    max-width: 36rem;
}

.home-section-intro h2,
.alive-header h2 {
    font-family: var(--bft-font-display);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.home-section-intro .section-sub {
    margin-bottom: 0;
}

.alive-showcase {
    margin-top: 0;
}

.alive-callout {
    margin-top: clamp(1.25rem, 2.5vw, 1.5rem);
}

.section-more {
    margin: clamp(1rem, 2vw, 1.25rem) auto 0;
}

.portal-hint.portal-hint--redesign {
    margin-top: clamp(1rem, 2vw, 1.125rem);
}

.district-grid--redesign {
    gap: clamp(1rem, 2vw, 1.125rem);
}

.section-pricing {
    background: var(--bft-bg-elevated);
    border-top: 1px solid var(--bft-border);
}

.section-ai .section-more {
    margin-top: clamp(1.25rem, 2vw, 1.5rem);
}

/* ─── Hero split ─────────────────────────────────────────────── */

.hero.hero--split {
    padding-top: clamp(2rem, 4vw, 3.25rem);
    padding-bottom: var(--bft-home-hero-bottom);
    text-align: left;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 960px) {
    .hero-split {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3.25rem;
    }
}

.hero-copy h1 {
    font-family: var(--bft-font-display);
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 1.25rem 0 0;
    text-wrap: balance;
}

.hero-accent {
    color: var(--bft-accent);
}

.hero-copy .hero-sub {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--bft-text-muted);
    max-width: 32rem;
    margin: 1.25rem 0 0;
    text-align: left;
}

.hero-copy .hero-cta {
    justify-content: flex-start;
    margin-top: 1.75rem;
}

.hero-copy .hero-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    margin-top: 1.35rem;
    color: var(--bft-text-faint);
    font-size: 0.82rem;
}

.hero-note__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bft-torii);
    box-shadow: 0 0 0 3px var(--bft-torii-a20);
    flex: none;
    animation: bft-float 2.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-note__dot { animation: none; }
}

.hero-badge__dot {
    width: 6px;
    height: 6px;
    background: var(--bft-accent);
    display: inline-block;
    flex: none;
}

.hero-viewport-wrap {
    position: relative;
}

.hero-viewport {
    position: relative;
    border: 1px solid rgba(220, 228, 245, 0.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.hero-viewport__chrome {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    background: var(--bft-bg-panel);
    border-bottom: 1px solid rgba(220, 228, 245, 0.08);
}

.hero-viewport__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: none;
}

.hero-viewport__dot--red { background: var(--bft-torii); }
.hero-viewport__dot--blue { background: var(--bft-accent); }
.hero-viewport__dot--green { background: var(--bft-green); }

.hero-viewport__label {
    font-family: var(--bft-font-pixel);
    font-size: 0.68rem;
    color: var(--bft-text-faint);
    letter-spacing: 0.1em;
    margin-left: 0.35rem;
    text-transform: lowercase;
}

.hero-viewport .hero-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border: none;
    border-radius: 0;
    background: #1a1e2d;
}

.hero-viewport__corner {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.hero-viewport__corner--tl {
    top: -6px;
    left: -6px;
    border-top: 2px solid var(--bft-accent);
    border-left: 2px solid var(--bft-accent);
}

.hero-viewport__corner--br {
    bottom: -6px;
    right: -6px;
    border-bottom: 2px solid var(--bft-accent);
    border-right: 2px solid var(--bft-accent);
}

.btn-primary,
.btn-ghost.btn-lg {
    border-radius: 11px;
}

/* ─── District cards (redesign) ──────────────────────────────── */

.district-grid--redesign {
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .district-grid--redesign {
        grid-template-columns: repeat(2, 1fr);
    }
}

.district-card--redesign {
    padding: 0;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.district-card--redesign:hover {
    border-color: var(--bft-accent-a40);
}

.district-card__media {
    position: relative;
    aspect-ratio: 16 / 7;
    background: repeating-linear-gradient(135deg, #1a1e2d 0 10px, #1e2437 10px 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.district-card__media-icon {
    font-size: 2rem;
    opacity: 0.85;
}

.district-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-family: var(--bft-font-pixel);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
}

.district-card__badge--launch {
    background: var(--bft-accent-a10);
    color: var(--bft-accent);
}

.district-card__badge--soon {
    background: rgba(220, 228, 245, 0.08);
    color: var(--bft-text-subtle);
}

.district-card__badge--unlock {
    background: var(--bft-torii-a12);
    color: #f08a72;
}

.district-card__body {
    padding: 1.35rem 1.4rem 1.5rem;
}

.district-card--redesign h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.55rem;
}

.district-card--redesign p {
    font-size: 0.92rem;
    color: var(--bft-text-subtle);
    line-height: 1.6;
}

.portal-hint--redesign h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.portal-hint__glyph {
    font-family: var(--bft-font-pixel);
    font-size: 2rem;
    color: var(--bft-accent);
    animation: bft-float 3s ease-in-out infinite;
    flex: none;
}

.portal-hint__roadmap {
    font-family: var(--bft-font-pixel);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--bft-text-faint);
    border: 1px solid var(--bft-border);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* ─── Alive / trust pixel tags ───────────────────────────────── */

.alive-panel__tag,
.trust-card__tag {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: var(--bft-accent-a10);
    border: 1px solid var(--bft-accent-a28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bft-font-pixel);
    font-size: 0.72rem;
    color: var(--bft-accent);
    margin-bottom: 1rem;
    flex: none;
}

.trust-card__tag {
    background: var(--bft-torii-a12);
    border-color: rgba(221, 83, 66, 0.32);
    color: #f08a72;
}

/* ─── How steps (redesign) ───────────────────────────────────── */

.steps--redesign {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .steps--redesign {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step--redesign {
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.75rem 0 0;
}

.step--redesign .step-rail {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.step--redesign .step-num {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: none;
    color: var(--bft-accent);
    font-family: var(--bft-font-pixel);
    font-size: 2.25rem;
    line-height: 1;
}

.step--redesign .step-line {
    flex: 1;
    height: 1px;
    background: rgba(220, 228, 245, 0.12);
}

/* ─── AI stats (redesign rows) ───────────────────────────────── */

.ai-stats--rows {
    display: grid;
    gap: 0.85rem;
}

.ai-stats--rows .stat {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    text-align: left;
    padding: 1.15rem 1.35rem;
    background: rgba(24, 28, 40, 0.6);
}

.ai-stats--rows .stat-num {
    font-family: var(--bft-font-pixel);
    font-size: 2rem;
    min-width: 4rem;
    color: var(--bft-accent);
}

.ai-stats--rows .stat-label {
    font-size: 0.95rem;
    color: var(--bft-text-muted);
}

.ai-text .ai-strong {
    font-size: 1.15rem;
    color: var(--bft-accent);
}

/* ─── Final trial CTA ────────────────────────────────────────── */

.section-trial--redesign {
    background: linear-gradient(180deg, #12151f, #1a2130);
}

.trial-torii {
    position: relative;
    width: 60px;
    height: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.trial-torii::before,
.trial-torii::after {
    content: "";
    position: absolute;
    background: var(--bft-torii);
}

.trial-torii::before {
    top: 0;
    left: -4px;
    width: 68px;
    height: 9px;
}

.trial-torii::after {
    top: 15px;
    left: 2px;
    width: 56px;
    height: 7px;
}

.trial-torii span {
    position: absolute;
    top: 2px;
    width: 7px;
    height: 48px;
    background: var(--bft-torii);
}

.trial-torii span:first-child { left: 9px; }
.trial-torii span:last-child { right: 9px; }

.trial-footnote {
    font-family: var(--bft-font-pixel);
    font-size: 0.72rem;
    color: var(--bft-text-faint);
    margin-top: 1.15rem !important;
}

/* ─── Register split ─────────────────────────────────────────── */

.auth-wrap--center {
    display: flex;
    justify-content: center;
}

.auth-wrap--split {
    display: block;
    max-width: 1080px;
}

.auth-main--split {
    align-items: flex-start;
    padding-top: 2rem;
}

.register-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .register-split {
        grid-template-columns: 0.92fr 1.08fr;
        gap: 3.25rem;
    }
}

.register-intro__torii {
    position: relative;
    width: 52px;
    height: 44px;
    display: inline-block;
    margin-bottom: 1.35rem;
    animation: bft-float 3.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .register-intro__torii { animation: none; }
}

.register-intro__torii::before,
.register-intro__torii::after {
    content: "";
    position: absolute;
    background: var(--bft-torii);
}

.register-intro__torii::before {
    top: 0;
    left: -4px;
    width: 60px;
    height: 8px;
}

.register-intro__torii::after {
    top: 13px;
    left: 2px;
    width: 48px;
    height: 6px;
}

.register-intro__torii span {
    position: absolute;
    top: 2px;
    width: 6px;
    height: 42px;
    background: var(--bft-torii);
}

.register-intro__torii span:first-child { left: 8px; }
.register-intro__torii span:last-child { right: 8px; }

.register-intro h1 {
    font-family: var(--bft-font-display);
    font-size: clamp(1.85rem, 4vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 0.85rem;
}

.register-intro__lede {
    font-size: 1rem;
    line-height: 1.62;
    color: var(--bft-text-subtle);
    margin: 0 0 1.75rem;
    max-width: 26rem;
}

.register-trust {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.register-trust__tag {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 8px;
    background: var(--bft-accent-a10);
    border: 1px solid var(--bft-accent-a30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bft-font-pixel);
    font-size: 0.68rem;
    color: var(--bft-accent);
}

.register-trust__title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
}

.register-trust__desc {
    font-size: 0.82rem;
    color: #8b93a8;
    line-height: 1.5;
    margin: 0;
}

.register-dev-note {
    margin-top: 1.75rem;
    border: 1px dashed var(--bft-accent-a28);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: var(--bft-accent-a06);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--bft-text-subtle);
    line-height: 1.5;
}

.register-dev-note__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bft-torii);
    flex: none;
    margin-top: 0.35rem;
}

.auth-card--register {
    max-width: none;
    width: 100%;
    border-radius: 18px;
    padding: 2rem 2rem 1.75rem;
}

.register-form__meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.register-form__badge {
    font-family: var(--bft-font-pixel);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--bft-accent);
}

.register-form__line {
    flex: 1;
    height: 1px;
    background: rgba(220, 228, 245, 0.1);
}

.register-form__coppa {
    font-family: var(--bft-font-pixel);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--bft-text-faint);
}

.register-form__heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1.35rem;
}

.register-form__step {
    font-family: var(--bft-font-pixel);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--bft-text-faint);
    margin-bottom: 0.85rem;
}

.register-form__footer {
    text-align: center;
    font-family: var(--bft-font-pixel);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--bft-text-faint);
    margin-top: 0.85rem;
}

.register-form__login {
    margin-top: 1.25rem;
    font-size: 0.92rem;
    color: var(--bft-text-muted);
    text-align: center;
}
