/* ============================================================
   SightGaming — home.css
   استایل صفحه اصلی
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px; /* clears fixed header without relying on 100vh */
    }
}

/* Grid bg */
.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96,213,163,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96,213,163,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

[data-theme="light"] .hero__grid-bg {
    background-image:
        linear-gradient(rgba(56,184,134,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56,184,134,0.06) 1px, transparent 1px);
}

/* Glow orb */
.hero__glow {
    position: absolute;
    top: 20%; right: 10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(96,213,163,0.08) 0%, transparent 65%);
    pointer-events: none;
    animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%,100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left: copy */
.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    padding: 6px 14px 6px 10px;
    font-size: 12px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 24px;
    max-width: 100%;
    text-align: right;
}

.hero__kicker svg { width: 13px; height: 13px; flex-shrink: 0; }

.hero__title {
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: bold;
    line-height: 1.15;
    margin-bottom: 22px;
    color: var(--text-primary);
}

.hero__title .brand {
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent) 0%, #8ef0c4 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandShine 4s linear infinite;
}
.hero__title .sub   { color: var(--text-secondary); font-size: 0.65em; display: block; margin-top: 4px; }

@keyframes brandShine {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero__desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Stats strip */
.hero__stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__stat-val {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero__stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Right: server card */
.hero__server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero__server-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

@media (hover: hover) and (pointer: fine) {
    .hero__server-card {
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
    .hero__server-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg), 0 0 40px rgba(96,213,163,0.12);
    }
}

.server-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.server-card__title {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-card__title svg { width: 15px; height: 15px; color: var(--accent); }

/* Radar */
.server-card__radar-wrap {
    position: relative;
    margin: 0 auto 24px;
    width: clamp(150px, 55vw, 220px);
    height: clamp(150px, 55vw, 220px);
    max-width: 220px;
    max-height: 220px;
}

#heroRadar { width: 100%; height: 100%; display: block; }

.radar-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    width: 100%;
}

.radar-online-num {
    font-size: clamp(28px, 8vw, 42px);
    font-weight: bold;
    color: var(--accent);
    line-height: 1;
    text-shadow: var(--accent-glow);
    font-variant-numeric: tabular-nums;
}

.radar-online-lbl {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Connect address */
.server-card__connect {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.connect__label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.connect__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.connect__address {
    font-size: 15px;
    font-weight: bold;
    color: var(--accent);
    font-family: monospace;
    flex: 1 1 auto;
    min-width: 0;
    letter-spacing: 0.5px;
    overflow-wrap: anywhere;
}

.connect__copy {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazir', sans-serif;
    white-space: nowrap;
}

.connect__copy svg { width: 13px; height: 13px; }
.connect__copy:hover { background: var(--accent); color: var(--text-inverted); }

.server-card__join {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: var(--text-inverted);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--accent-glow);
}

.server-card__join:hover { transform: translateY(-2px); box-shadow: var(--accent-glow-lg); }
.server-card__join svg   { width: 16px; height: 16px; }

/* Progress bar */
.server-card__cap {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cap__labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.cap__bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.cap__fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 1s ease;
    box-shadow: 0 0 8px var(--accent);
}

/* ════════════════════════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-card {
    padding: 28px 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.about-card__icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.about-card__icon svg { width: 22px; height: 22px; color: var(--accent); }

.about-card h3 { font-size: 16px; margin-bottom: 8px; }
.about-card p  { font-size: 14px; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   FEATURES SECTION
   ════════════════════════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::after  { opacity: 1; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-accent); }

.feature-card__num {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 16px;
    font-weight: bold;
}

.feature-card__icon {
    width: 42px; height: 42px;
    border-radius: var(--radius);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card__icon svg { width: 20px; height: 20px; color: var(--accent); }

.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   SERVICES SECTION
   ════════════════════════════════════════════════════════════ */
.services-list { display: flex; flex-direction: column; gap: 14px; }

.service-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.service-row:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }

.service-row__icon {
    width: 50px; height: 50px;
    border-radius: var(--radius);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-row__icon svg { width: 22px; height: 22px; color: var(--accent); }

.service-row__info { flex: 1; min-width: 0; }
.service-row__info h3 { font-size: 16px; margin-bottom: 4px; }
.service-row__info p  { font-size: 13px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   RANK SECTION
   ════════════════════════════════════════════════════════════ */
.rank-tiers {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 56px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tier {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.tier:hover { transform: translateY(-4px); border-color: var(--border-accent); }

.tier__icon { font-size: 30px; line-height: 1; }
.tier__name { font-size: 14px; font-weight: bold; }
.tier__sub  { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   GUIDE SECTION
   ════════════════════════════════════════════════════════════ */
.guide-steps { display: flex; flex-direction: column; gap: 0; }

.guide-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.guide-step:last-child { border-bottom: none; }

.guide-step__num {
    font-size: 13px;
    font-weight: bold;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    width: 36px; height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: monospace;
}

.guide-step__content h3 { font-size: 17px; margin-bottom: 8px; }
.guide-step__content p  { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }

.guide-step__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.guide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.guide-tag svg { width: 13px; height: 13px; }
.guide-tag:hover { border-color: var(--border-accent); color: var(--accent); }

.code-snippet {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 16px;
    margin-top: 8px;
}

.code-snippet code {
    font-family: monospace;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.code-snippet__copy {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazir', sans-serif;
}

.code-snippet__copy svg { width: 12px; height: 12px; }
.code-snippet__copy:hover { background: var(--accent); color: var(--text-inverted); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE HOME
   ════════════════════════════════════════════════════════════ */

/* ── Tablet landscape / small desktop ── */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__server-card { max-width: 480px; margin: 0 auto; width: 100%; }
    .hero__glow { display: none; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet portrait ── */
@media (max-width: 900px) {
    .hero__copy { text-align: center; }
    .hero__kicker { margin-inline: auto; }
    .hero__desc { margin-inline: auto; }
    .hero__cta { justify-content: center; }
    .hero__stats { justify-content: center; }

    .guide-step { gap: 18px; }
}

/* ── Mobile landscape / large phones ── */
@media (max-width: 768px) {
    .hero { padding: 100px 0 48px; }
    .hero__stats { gap: 20px; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; justify-content: center; }

    .hero__server-card { padding: 22px; }

    .service-row { padding: 18px 20px; }
    .guide-step { padding: 22px 0; }
}

/* ── Standard phones ── */
@media (max-width: 600px) {
    .hero__title { font-size: clamp(30px, 9vw, 42px); }

    .about-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    .service-row { flex-direction: column; align-items: flex-start; }
    .service-row .btn { width: 100%; justify-content: center; }
    .service-row__icon { width: 44px; height: 44px; }

    .rank-tiers {
        gap: 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
    .tier { min-width: 110px; scroll-snap-align: start; }

    .guide-step {
        flex-direction: column;
        gap: 12px;
    }
    .guide-step__num { width: 32px; height: 32px; font-size: 12px; }

    .code-snippet { width: 100%; flex-wrap: wrap; }
    .code-snippet code { word-break: break-all; }
}

/* ── Small phones ── */
@media (max-width: 480px) {
    .hero { padding: 90px 0 40px; }
    .hero__server-card { padding: 18px; border-radius: var(--radius-lg); }

    .server-card__header { margin-bottom: 18px; }
    .server-card__title { font-size: 12px; }

    .server-card__radar-wrap { margin-bottom: 18px; }
    .radar-online-lbl { font-size: 10px; }

    .server-card__connect { padding: 12px 14px; }
    .connect__address { font-size: 13.5px; }
    .connect__copy { padding: 6px 10px; font-size: 11px; }

    .server-card__join { padding: 12px; font-size: 13px; }

    .hero__stats { gap: 14px 22px; }
    .hero__stat-val { font-size: 24px; }
    .hero__stat-lbl { font-size: 11px; }

    .about-card,
    .feature-card { padding: 22px 18px; }

    .service-row { padding: 16px 16px; gap: 14px; }
    .service-row__info h3 { font-size: 15px; }

    .tier { min-width: 96px; padding: 18px 12px; }
    .tier__icon { font-size: 26px; }

    .guide-step__content h3 { font-size: 16px; }
}

/* ── Very small phones ── */
@media (max-width: 360px) {
    .hero__title { font-size: clamp(26px, 9vw, 34px); }
    .hero__desc { font-size: 15px; }

    .hero__kicker { font-size: 11px; padding: 5px 12px 5px 8px; }

    .server-card__radar-wrap { width: 140px; height: 140px; }
    .radar-online-num { font-size: 26px; }

    .hero__stats { gap: 12px 18px; }

    .tier { min-width: 88px; }
}

/* ── Landscape phones (short viewport height) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 90px 0 32px; }
    .hero__glow { display: none; }
}
