/* ═══════════════════════════════════════
   MineRank — matching ailist design system
   ═══════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0d1117;
    --bg-dark-nav: #161b22;
    --fg: #0f172a;
    --muted: #64748b;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #eef2ff;
    --secondary: #ec4899;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --card: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* ─── Utility classes ─── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-lg {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-primary { color: var(--primary); }
.pos-relative { position: relative; z-index: 1; }

/* ─── Navbar ─── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-dark-nav);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.nav-logo-diamond {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
    color: #fff !important;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* ─── Hero ─── */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    min-height: 580px;
    display: flex;
    align-items: center;
}

/* ─── Hero Preview ─── */
.hero-preview {
    flex: 1;
    min-width: 0;
    display: none;
}

@media (min-width: 900px) {
    .hero-preview { display: block; }
}

.browser-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.browser-frame:hover {
    transform: perspective(1200px) rotateY(-1deg) rotateX(1deg);
}

.browser-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.browser-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.browser-url {
    margin-left: 12px;
    font-size: 11px;
    color: #6b7280;
    font-family: 'Inter', monospace;
}

.browser-body {
    line-height: 0;
}

.preview-link {
    display: block;
}

.preview-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mock BMSL site */
.mock-site {
    display: block;
    background: #0d1117;
    padding: 0;
    text-decoration: none;
    line-height: 1.4;
}

.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

.mock-logo .mc-icon {
    width: 14px;
    height: 14px;
}

.mock-nav-pills {
    display: flex;
    gap: 8px;
}

.mock-nav-pills span {
    width: 36px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
}

.mock-search {
    padding: 14px 16px;
}

.mock-search-bar {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 10px;
    color: #6b7280;
}

.mock-servers {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-server {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
}

.mock-rank {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    min-width: 20px;
}

.mock-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
}

.mock-info {
    flex: 1;
    min-width: 0;
}

.mock-name-text {
    font-size: 11px;
    font-weight: 600;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-tag {
    font-size: 9px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-players {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.mock-dot-green {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
}

.mock-count-text {
    font-size: 9px;
    color: #9ca3af;
    font-weight: 500;
}

.dot-grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-wrap {
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 80px 16px 96px;
}

@media (min-width: 640px) {
    .hero-wrap { padding: 96px 24px; }
}

.hero-content {
    max-width: 640px;
    flex-shrink: 0;
}

.eyebrow {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.eyebrow-pink {
    color: var(--secondary);
}

.accent-line {
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 24px;
}

.accent-line-center {
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 4px;
    margin: 12px auto 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .hero h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
}

.hero-desc {
    font-size: 16px;
    color: #9ca3af;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .hero-desc { font-size: 18px; }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        align-items: center;
    }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
    color: #6b7280;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 20px rgba(99,102,241,0.3);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #4b5563;
    color: #d1d5db;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: #9ca3af;
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--border);
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    text-decoration: none;
    background: none;
}

.btn-outline:hover {
    border-color: var(--border-strong);
    color: var(--fg);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ─── Sections ─── */
.section {
    position: relative;
    padding: 80px 0;
}

@media (min-width: 640px) {
    .section { padding: 100px 0; }
}

@media (min-width: 1024px) {
    .section { padding: 112px 0; }
}

.bg-white { background: var(--bg); }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); overflow: hidden; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--fg);
}

@media (min-width: 640px) {
    .section-header h2 { font-size: 2.25rem; }
}

.bg-dark .section-header h2 {
    color: #fff;
}

.bg-dark .section-header .eyebrow {
    color: var(--primary);
}

.bg-dark .section-header .section-desc {
    color: #9ca3af;
}

.section-desc {
    margin-top: 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

.cta-sub {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

/* ─── Grid ─── */
.grid-3 {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Cards ─── */
.card {
    background: var(--card);
    border: 1px solid #f1f5f9;
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    border-color: #e2e8f0;
}

.card-center {
    text-align: center;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.card-center .card-icon {
    margin-left: auto;
    margin-right: auto;
}

.step-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}

.card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fg);
}

.card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── Blog Home Section ─── */
.blog-grid-home {
    align-items: stretch;
}

.blog-card-home {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card-home-image-link {
    display: block;
}

.blog-card-home-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.blog-card-home-body {
    padding: 22px;
}

.blog-card-home-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.blog-card-home h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card-home h3 a {
    color: var(--fg);
}

.blog-card-home h3 a:hover {
    color: var(--primary);
}

.blog-card-home p {
    margin: 0;
}

/* ─── Top 10 Server Cards (BMSL-style) ─── */
.top10-status {
    margin: 0 auto 18px;
    max-width: 920px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.bmsl-top10-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.sc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.sc-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sc-link:hover {
    color: inherit;
}

/* Header: icon + name + status */
.sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px 8px;
}

.sc-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.sc-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.sc-icon-fallback {
    background: linear-gradient(135deg, #c7d2fe, #dbeafe);
}

.sc-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fg);
}

.sc-rank {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.sc-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.sc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.sc-status.is-online {
    background: #dcfce7;
    color: #166534;
}

.sc-status.is-online .sc-dot {
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sc-status.is-offline {
    background: #f3f4f6;
    color: #6b7280;
}

.sc-status.is-offline .sc-dot {
    background: #9ca3af;
}

/* Banner */
.sc-banner {
    position: relative;
    margin: 0 16px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 468 / 60;
    background: #1a1f2e;
}

.sc-banner-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-banner-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1f2e, #12161f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-banner-fallback span {
    font-size: 11px;
    color: #6b7280;
}

.sc-platform {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #374151;
}

/* Description */
.sc-desc {
    margin: 8px 16px 0;
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Tags */
.sc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 16px 0;
}

.sc-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 500;
}

.sc-tag-more {
    background: #e2e8f0;
    color: #64748b;
}

/* IP copy row */
.sc-ip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 16px 0;
}

.sc-ip {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.sc-copy-btn:hover {
    background: #e2e8f0;
}

.sc-copy-icon {
    font-size: 13px;
}

/* Stats row */
.sc-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 12px;
    gap: 8px;
}

.sc-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.sc-stat-icon {
    font-size: 14px;
}

.sc-version {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

.sc-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.sc-vote-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
    color: #fff;
}

@media (max-width: 720px) {
    .bmsl-top10-list {
        grid-template-columns: 1fr;
    }
}

/* ─── Game Modes ─── */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.glow-1 {
    top: 0;
    right: 25%;
    width: 384px;
    height: 384px;
    background: rgba(99,102,241,0.06);
}

.glow-2 {
    bottom: 0;
    left: 25%;
    width: 320px;
    height: 320px;
    background: rgba(236,72,153,0.06);
}

.modes-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.mc-icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    flex-shrink: 0;
}

.mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mode-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99,102,241,0.08);
    box-shadow: 0 4px 16px rgba(99,102,241,0.12);
}

/* ─── Stats bar ─── */
.stats-bar {
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 32px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #9ca3af;
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

/* ─── About MineRank ─── */
.about-content {
    max-width: 760px;
    margin: 0 auto;
}

.about-content p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--fg);
    margin-top: 28px;
    margin-bottom: 10px;
}

.about-content a {
    color: var(--primary);
    font-weight: 500;
}

/* ─── FAQ ─── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card);
    border: 1px solid #f1f5f9;
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: rgba(99,102,241,0.2);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    margin: 0;
}

.faq-toggle {
    font-size: 20px;
    font-weight: 300;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-item > p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
}

/* ─── Final CTA ─── */
.section-final {
    padding: 80px 0 112px;
}

.final-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.25);
}

.section-final h2 {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .section-final h2 { font-size: 2.25rem; }
}

.section-final .section-desc {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
    font-size: 16px;
}

.final-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 480px) {
    .final-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ─── Footer ─── */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 48px;
    }
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
}

.footer-brand a {
    color: #9ca3af;
}

.footer-brand a:hover {
    color: #fff;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.footer-logo:hover {
    color: #fff;
}

.footer-logo-diamond {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: #9ca3af;
    transition: color 0.15s;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 56px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 12px;
    color: #4b5563;
}

.footer-bottom a {
    color: #4b5563;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.footer-bottom-links a {
    color: #4b5563;
    transition: color 0.15s;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #9ca3af;
}

/* ─── Smooth transitions ─── */
a, button {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
