#home-page { padding-top: var(--header-h); }

.section {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
}

.section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Hero — centered, compact flow into products */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 24px 20px;
}

.hero-title {
    font-family: var(--font);
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
    margin: 0 auto 28px;
    color: var(--text);
    text-align: center;
    width: 100%;
    animation: fade-up 0.75s ease both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-up 0.75s 0.1s ease both;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product-grid-single {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
}

.products-section {
    padding-top: 12px;
    padding-bottom: 48px;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 164, 255, 0.3);
}

.product-media {
    aspect-ratio: 16 / 10;
    background: #0f0f0f;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.product-body {
    padding: 18px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-body h3 {
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.product-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-bright);
}

/* Footer */
.site-footer {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 48px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.site-footer .brand-text {
    font-weight: 700;
    color: var(--text);
}

/* Login — Storm-style card */
#login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 24px) 20px 40px;
}

.login-shell {
    width: min(400px, 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 36px 32px 28px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.login-brand {
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 4px;
}

.login-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 22px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.login-form input {
    background: #0f0f0f;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input::placeholder { color: var(--text-dim); }

.login-form input:focus {
    border-color: rgba(107, 140, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.12);
}

.login-form button {
    margin-top: 6px;
    cursor: pointer;
    font-weight: 650;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 13px 18px;
    border-radius: var(--radius-pill);
    border: 0;
    color: #fff;
    background: var(--accent);
    transition: background 0.2s, box-shadow 0.2s;
}

.login-form button:hover {
    background: var(--accent-bright);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.login-form button.login-cancel {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    box-shadow: none;
    margin-top: 0;
}

.login-form button.login-cancel:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    box-shadow: none;
}

.login-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: -4px 0 4px;
}

.totp-secret-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #111;
    margin-bottom: 8px;
}

.totp-qr {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 10px;
    background: #fff;
}

.totp-manual {
    font-size: 0.78rem;
    color: #9aa0a6;
    margin: 4px 0 0;
}

.totp-manual-key {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: #f5f5f5;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    user-select: all;
    word-break: break-all;
    min-height: 2.4em;
}

.login-discord {
    margin-top: 16px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
}

.login-discord:hover { color: var(--accent-bright); }

@media (max-width: 640px) {
    .section { width: calc(100% - 28px); }
    .hero-actions { flex-direction: column; width: min(280px, 100%); }
    .hero-actions .btn { width: 100%; }
    .product-grid, .product-grid-single { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; text-align: center; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
