:root {
    --background: #0f172a;
    --surface: #111c3b;
    --surface-alt: #15224d;
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.15);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --error: #ef4444;
    --container-width: min(1120px, 92vw);
    font-family: 'Urbanist', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 45%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 50%),
        var(--background);
    color: var(--text);
    font-family: 'Urbanist', system-ui, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: var(--container-width);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.main-nav a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
}

.hero {
    padding: 6rem 0 4rem;
}

.hero-wrapper {
    display: grid;
    gap: 3rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero .subtitle {
    color: var(--text-muted);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.trust-signals .icon {
    margin-right: 0.3rem;
}

.hero-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.4);
    max-width: 360px;
    justify-self: center;
}

.hero-card .card-header p {
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.hero-card .card-header h3 {
    margin: 0;
    font-size: 1.35rem;
}

.hero-card .transaction {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: var(--text-muted);
}

.hero-card .status.success {
    color: var(--success);
    font-weight: 600;
}

.hero-card .card-footer {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.highlights {
    padding: 3rem 0;
}

.highlights .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.highlights article {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    min-height: 200px;
}

.highlights h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.highlights p {
    color: var(--text-muted);
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0.4rem 0 1rem;
}

.section-header .subtitle {
    max-width: 580px;
    margin: 0 auto;
    color: var(--text-muted);
}

.games {
    padding: 4rem 0 3rem;
}

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

.game-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.6);
}

.game-card .publisher,
.game-card .genre,
.game-card .tagline {
    color: var(--text-muted);
    margin: 0;
}

.package-list {
    display: grid;
    gap: 0.6rem;
}

.package {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.topup {
    padding: 4rem 0;
}

.topup-wrapper {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1.1fr 0.9fr;
}

.topup-form {
    background: rgba(15, 23, 42, 0.75);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.topup-info {
    align-self: start;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.topup-info ul {
    padding-left: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.info-card {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.form-group label {
    font-weight: 600;
}

input,
select {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

select.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.error {
    color: var(--error);
    font-size: 0.9rem;
}

.has-error select,
.has-error input {
    border-color: rgba(239, 68, 68, 0.8);
}

.order-summary {
    margin-top: 3rem;
}

.summary-card {
    background: rgba(15, 23, 42, 0.75);
    border-radius: 24px;
    padding: 2.25rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.summary-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

dl {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.5rem;
}

dl div {
    display: grid;
    gap: 0.2rem;
}

.note {
    color: var(--text-muted);
}

.error-summary {
    color: var(--error);
}

.error-summary .summary-card {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.faq {
    padding: 4rem 0 5rem;
}

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

.faq article {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.faq h3 {
    margin-top: 0;
}

.faq p {
    color: var(--text-muted);
    line-height: 1.6;
}

.site-footer {
    background: rgba(10, 15, 30, 0.95);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.site-footer ul a,
.site-footer p {
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 0.75rem;
    font-size: 1.3rem;
}

.socials a {
    transition: transform 0.2s ease;
}

.socials a:hover {
    transform: translateY(-2px);
}

@media (max-width: 960px) {
    .site-header .container {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .topup-wrapper {
        grid-template-columns: 1fr;
    }

    .topup-info {
        order: -1;
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 5rem;
    }

    .main-nav {
        display: none;
    }

    .hero-card {
        max-width: 100%;
    }
}
