/* =============================================
   Just PSN Trophies — Coming Soon
   JPSNT design tokens, pure CSS
   ============================================= */

/* ---- Design tokens (from JPSNT3-REFERENCE) ---- */
:root {
    /* Trophy colours */
    --trophy-platinum: #7ab7e8;
    --trophy-gold: #ffd700;
    --trophy-silver: #c0c0c0;
    --trophy-bronze: #cd7f32;

    /* Functional */
    --color-success: #00e576;
    --color-danger: #ff3b5c;
    --color-warning: #ffb020;
    --color-info: #1b6ef5;

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Dark theme (JPSNT default) */
    --bg-void: #0a0a0a;
    --bg-surface: #141414;
    --bg-elevated: #1a1a1a;
    --bg-panel: rgba(20, 20, 20, 0.92);
    --color-primary: #3b82f6;
    --color-primary-hover: #60a5fa;
    --color-accent: #00d4ff;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.2);
    --hero-overlay-edge: var(--bg-void);
    --hero-overlay-mid: rgba(10, 10, 10, 0.55);
    --hero-text: #f4f4f5;
    --hero-text-sub: rgba(244, 244, 245, 0.7);
    --hero-text-muted: rgba(244, 244, 245, 0.45);
    --hero-text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    --section-bg: var(--bg-void);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-void);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}
@media (min-width: 768px) {
    .container { padding: 0 var(--space-lg); }
}

/* =============================================
   Hero
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--section-bg));
    z-index: 2;
    pointer-events: none;
}

.hero__background {
    position: absolute;
    inset: -2rem;
    z-index: 0;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}
.hero__slide.is-active { opacity: 1; }

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        var(--hero-overlay-edge) 0%,
        var(--hero-overlay-mid) 30%,
        var(--hero-overlay-mid) 70%,
        var(--hero-overlay-edge) 100%
    );
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
    width: 100%;
    max-width: min(800px, 100%);
}

@media (min-width: 576px) {
    .hero__content { gap: var(--space-xl); padding: var(--space-xl) var(--space-lg); }
}
@media (min-width: 768px) {
    .hero__content { padding: var(--space-xl) var(--space-lg); }
}

/* SML brand block */
.hero__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}
.hero__sml-logo {
    display: block;
    line-height: 0;
}
.hero__sml-logo img {
    height: 36px;
    width: auto;
    opacity: 0.95;
}
.hero__from {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hero-text-muted);
    text-shadow: var(--hero-text-shadow);
}
@media (min-width: 576px) {
    .hero__sml-logo img { height: 44px; }
}

.hero__logo-wrap { display: block; line-height: 0; }
.hero__logo {
    width: min(180px, 52vw);
    height: auto;
}
@media (min-width: 576px) {
    .hero__logo { width: 200px; }
}
@media (min-width: 768px) {
    .hero__logo { width: 280px; }
}

.hero__tagline {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--hero-text);
    text-shadow: var(--hero-text-shadow);
    margin: 0;
}
.hero__sub {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    color: var(--hero-text-sub);
    text-shadow: var(--hero-text-shadow);
    margin: 0;
    max-width: 420px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    text-transform: uppercase;
    box-shadow: var(--shadow-glow);
}

.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.6875rem;
    color: var(--hero-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero__scroll-icon {
    width: 20px;
    height: 20px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(6px); }
}

/* =============================================
   Features
   ============================================= */
.features {
    padding: var(--space-4xl) 0;
    background: var(--section-bg);
}

.features__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 var(--space-sm);
}
.features__intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 var(--space-3xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}
@media (min-width: 576px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .features__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-2xl); }
}

.feature-card {
    padding: var(--space-xl);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}
.feature-card__icon--platinum { background: rgba(122, 183, 232, 0.2); color: var(--trophy-platinum); }
.feature-card__icon--gold { background: rgba(255, 215, 0, 0.2); color: var(--trophy-gold); }
.feature-card__icon--silver { background: rgba(192, 192, 192, 0.2); color: var(--trophy-silver); }
.feature-card__icon--bronze { background: rgba(205, 127, 50, 0.2); color: var(--trophy-bronze); }

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm);
}
.feature-card__desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* =============================================
   Signup — Conversion-focused, generous space
   ============================================= */
.signup {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--bg-surface);
}

.signup__inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.signup__box {
    padding: var(--space-3xl) var(--space-2xl);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 48px rgba(0, 212, 255, 0.06);
    position: relative;
    transform-origin: center center;
}

@media (min-width: 768px) {
    .signup__box {
        padding: var(--space-4xl) var(--space-3xl);
    }
}

.signup__form-wrap,
.signup__thank-you {
    transition: opacity 0.3s ease;
}
.signup__thank-you { display: none; text-align: center; }
.signup__thank-you[aria-hidden="false"] { display: block; }
.signup__form-wrap[data-signup-state="thanks"] { display: none; }

.signup__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-md);
}
.signup__desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-2xl);
    line-height: 1.6;
}

.signup__form {
    width: 100%;
}

.signup__form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
@media (min-width: 480px) {
    .signup__form-row {
        flex-direction: row;
        align-items: stretch;
        gap: var(--space-lg);
    }
}

.signup__input {
    flex: 1;
    min-width: 0;
    padding: var(--space-lg) var(--space-xl);
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup__input::placeholder { color: var(--text-muted); }
.signup__input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.signup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    width: 100%;
    min-height: 52px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 480px) {
    .signup__btn {
        width: auto;
        min-width: 160px;
    }
}
.signup__btn:hover:not(:disabled) {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-glow);
}
.signup__btn:disabled { opacity: 0.7; cursor: not-allowed; }
.signup__btn-loading { display: none; }
.signup__btn.is-loading .signup__btn-text { display: none; }
.signup__btn.is-loading .signup__btn-loading { display: inline; }

.signup__thank-you-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 118, 0.2);
    border-radius: 50%;
    color: var(--color-success);
    font-size: 1.75rem;
}
.signup__thank-you-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm);
}
.signup__thank-you-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-lg);
}
.signup__social-inline {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}
.signup__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: color 0.2s ease, fill 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.signup__social-link:hover {
    color: var(--color-accent);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
    text-decoration: none;
}
.signup__social-link .fa-brands,
.signup__social-link .fa-solid {
    color: inherit;
}
.signup__bluesky-icon {
    width: 1.25em;
    height: 1.25em;
    fill: var(--text-muted);
    transition: fill 0.2s ease;
}
.signup__social-link:hover .signup__bluesky-icon {
    fill: var(--color-accent);
}

/* =============================================
   Footer — Redesigned
   ============================================= */
.footer {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--bg-void);
    border-top: 1px solid var(--border-color);
}

.footer__inner {
    max-width: 720px;
    margin: 0 auto;
}

.footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}
@media (min-width: 576px) {
    .footer__top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer__sml {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    transition: color 0.2s ease;
}
.footer__sml:hover { color: var(--text-primary); text-decoration: none; }
.footer__sml-logo { height: 36px; width: auto; opacity: 0.9; }
.footer__sml-text { font-size: 0.9375rem; font-weight: 500; }

.footer__social {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}
.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: color 0.2s ease, fill 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer__social-link:hover {
    color: var(--color-accent);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
    text-decoration: none;
}
.footer__social-link .fa-brands,
.footer__social-link .fa-solid {
    color: inherit;
}
.footer__bluesky-icon {
    width: 1.25em;
    height: 1.25em;
    fill: var(--text-muted);
    transition: fill 0.2s ease;
}
.footer__social-link:hover .footer__bluesky-icon {
    fill: var(--color-accent);
}

.footer__copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}
