.hero {
    text-align: center;
    padding: clamp(40px, 8vw, 80px) 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero--landing {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: clamp(64px, 9vw, 112px);
    padding-bottom: clamp(64px, 9vw, 104px);
}

.hero--landing > :not(.hero-ambient) {
    position: relative;
    z-index: 1;
}

.hero-ambient {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(6px);
    opacity: .58;
}

.hero-ambient-primary {
    width: min(52vw, 620px);
    aspect-ratio: 1;
    top: -34%;
    left: 11%;
    background: radial-gradient(circle, rgba(124, 58, 237, .27) 0%, rgba(124, 58, 237, 0) 68%);
}

.hero-ambient-secondary {
    width: min(46vw, 540px);
    aspect-ratio: 1;
    right: 7%;
    bottom: -62%;
    background: radial-gradient(circle, rgba(37, 99, 235, .21) 0%, rgba(37, 99, 235, 0) 70%);
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--accent-soft);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-kicker {
    padding: 8px 12px;
    border: 1px solid rgba(167, 139, 250, .28);
    border-radius: 999px;
    background: rgba(76, 29, 149, .16);
}

.hero-kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, .14), 0 0 14px rgba(167, 139, 250, .9);
}

.hero h1 {
    font-size: clamp(34px, 8vw, 64px);
    font-weight: 900;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(16px, 4.5vw, 20px);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 32px;
    max-width: 690px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 194px;
    padding: 17px 32px;
    font-size: 17px;
}

.hero-signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(680px, 100%);
    margin: 42px auto 0;
    padding: 1px;
    overflow: hidden;
    list-style: none;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 15px;
    background: rgba(148, 163, 184, .14);
    box-shadow: 0 20px 55px rgba(2, 6, 23, .2);
}

.hero-signals li {
    display: grid;
    gap: 3px;
    padding: 14px 12px;
    background: rgba(13, 19, 37, .72);
}

.hero-signals strong {
    color: #e9e3ff;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .07em;
}

.hero-signals span {
    color: rgba(226, 232, 240, .65);
    font-size: 12px;
    line-height: 1.35;
}

html.logged-in .hero-buttons {
    justify-content: center;
}

html.logged-in .get-started-btn {
    display: none;
}

.how-it-works,
.features,
.roles-section,
.first-game-cta {
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works {
    padding: 24px;
}

.section-heading {
    max-width: 690px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading h2,
.features h2,
.roles-section h2,
.first-game-cta h2 {
    color: #f8fafc;
    text-wrap: balance;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 42px);
}

.section-heading > p:last-child {
    margin: 0;
    color: rgba(226, 232, 240, .62);
    font-size: 16px;
    line-height: 1.65;
}

.game-journey {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.journey-card {
    position: relative;
    min-height: 196px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, .22);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(30, 41, 68, .72), rgba(15, 20, 38, .78));
}

.journey-card::after {
    position: absolute;
    right: -22px;
    bottom: -44px;
    width: 138px;
    height: 138px;
    border: 1px solid rgba(167, 139, 250, .14);
    border-radius: 50%;
    content: '';
}

.journey-card:nth-child(2)::after { border-color: rgba(96, 165, 250, .18); }
.journey-card:nth-child(3)::after { border-color: rgba(248, 113, 113, .18); }

.journey-number {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--accent-light);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
}

.journey-card h3 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 22px;
}

.journey-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(226, 232, 240, .62);
    font-size: 14px;
    line-height: 1.6;
}

.features {
    padding: 72px 24px 40px;
}

.features h2 {
    text-align: center;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 800;
    margin: 0 0 28px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 28px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(30, 37, 62, .88), rgba(17, 22, 41, .88));
    text-align: left;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.feature-card:hover {
    border-color: rgba(167, 139, 250, .72);
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(49, 29, 112, .28);
}

.feature-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    place-items: center;
    border: 1px solid rgba(167, 139, 250, .32);
    border-radius: 16px;
    color: var(--accent-soft);
    background: rgba(109, 40, 217, .12);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ede9fe;
}

.feature-card p {
    color: rgba(226, 232, 240, .66);
    line-height: 1.6;
}

.roles-section {
    padding: 64px 24px 40px;
}

.roles-section h2 {
    text-align: center;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 800;
    margin: 0 0 30px 0;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.role-card {
    min-height: 286px;
    padding: 26px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(28, 34, 57, .9), rgba(15, 20, 38, .9));
    text-align: center;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.role-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, .72);
    box-shadow: 0 16px 42px rgba(49, 29, 112, .24);
}



.role-emoji {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 20px;
    padding: 8px;
    background: rgba(15, 23, 42, .68);
    border: 1px solid rgba(148, 163, 184, .26);
}

.role-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.role-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 12px 0;
}

.role-team {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 10px;
    border: 1px solid rgba(226, 232, 240, .38);
    border-radius: 999px;
    font-size: 13px;
    color: #f8fafc;
    background: #080d18;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.role-card--red .role-team {
    color: #fecdd3;
    background: rgba(127, 29, 29, .48);
    border-color: rgba(251, 113, 133, .55);
}

.role-card p {
    color: rgba(226, 232, 240, .66);
    font-size: 14px;
    line-height: 1.6;
}

.first-game-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 72px;
    padding: 30px 32px;
    border: 1px solid rgba(167, 139, 250, .3);
    border-radius: 20px;
    background: linear-gradient(105deg, rgba(76, 29, 149, .24), rgba(30, 58, 138, .16));
    box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
}

.first-game-cta .section-eyebrow { margin-bottom: 8px; }

.first-game-cta h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 34px);
}

.first-game-cta p:last-of-type {
    max-width: 620px;
    margin: 0;
    color: rgba(226, 232, 240, .72);
    line-height: 1.6;
}

.first-game-cta .btn {
    flex: 0 0 auto;
    min-width: 168px;
}

@media (max-width: 760px) {
    .hero--landing { padding-top: 58px; }
    .hero-signals { margin-top: 30px; }
    .game-journey { grid-template-columns: 1fr; }
    .journey-card { min-height: 0; }
    .features { padding-top: 56px; }
    .first-game-cta { align-items: flex-start; flex-direction: column; margin-bottom: 48px; }
}

@media (max-width: 520px) {
    .hero { padding-left: 16px; padding-right: 16px; }
    .hero-kicker { font-size: 11px; }
    .hero-buttons { display: grid; gap: 12px; width: min(280px, 100%); margin: 0 auto; }
    .hero-buttons .btn { width: 100%; min-width: 0; }
    .hero-signals li { padding: 12px 8px; }
    .hero-signals strong { font-size: 16px; }
    .hero-signals span { font-size: 11px; }
    .how-it-works, .features, .roles-section { padding-left: 16px; padding-right: 16px; }
    .journey-card, .feature-card, .role-card { padding: 22px; }
    .feature-card, .role-card { min-height: 0; }
    .first-game-cta { margin: 24px 16px 48px; padding: 24px; }
    .first-game-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card, .role-card { transition: none; }
    .feature-card:hover, .role-card:hover { transform: none; }
}
