/* ============================================================
   XzeroTOOLS — Landing Page (Premium elevation)
   Built on top of base.css design tokens (orange/cyan).
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 50% -5%, rgba(255, 107, 53, 0.22), transparent 70%),
        radial-gradient(ellipse 45% 40% at 82% 18%, rgba(75, 214, 255, 0.16), transparent 70%),
        radial-gradient(ellipse 45% 40% at 14% 24%, rgba(75, 214, 255, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle animated grid + light beams to add depth behind the hero */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: clamp(46px, 6vw, 78px) clamp(46px, 6vw, 78px);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 35%, transparent 78%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 35%, transparent 78%);
    pointer-events: none;
    z-index: 0;
    animation: hero-grid-drift 26s linear infinite;
}

.hero-sweep {
    position: absolute;
    inset: -20%;
    background: conic-gradient(
        from 130deg at 50% 30%,
        transparent 0deg,
        rgba(255, 107, 53, 0.06) 32deg,
        rgba(75, 214, 255, 0.05) 48deg,
        transparent 84deg,
        transparent 214deg,
        rgba(255, 107, 53, 0.05) 250deg,
        transparent 300deg
    );
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
    animation: hero-sweep-rotate 34s linear infinite;
}

@keyframes hero-grid-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 78px 78px, 78px 78px; }
}

@keyframes hero-sweep-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* Floating decorative orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    animation: hero-orb-float 9s ease-in-out infinite;
}

.hero-orb.orb-1 {
    width: 260px;
    height: 260px;
    top: 8%;
    left: -6%;
    background: rgba(255, 107, 53, 0.30);
}

.hero-orb.orb-2 {
    width: 220px;
    height: 220px;
    top: 32%;
    right: -7%;
    background: rgba(75, 214, 255, 0.26);
    animation-delay: -3s;
}

.hero-orb.orb-3 {
    width: 160px;
    height: 160px;
    bottom: 6%;
    left: 38%;
    background: rgba(255, 205, 80, 0.18);
    animation-delay: -6s;
}

@keyframes hero-orb-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-26px) translateX(14px); }
}

.hero-content {
    max-width: 920px;
}

.hero-badge {
    position: relative;
    padding: 8px 16px;
    border: 1px solid rgba(255, 107, 53, 0.35);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(75, 214, 255, 0.10));
    color: #ffc9b0;
    font-weight: 650;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.14), inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: badge-pulse 1.8s ease-in-out infinite;
    display: inline-block;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    letter-spacing: 1.5px;
}

.hero-title .gradient-text {
    background: linear-gradient(100deg, #ffb08d 0%, #ff6b35 45%, #ff8f54 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 600px;
    font-size: var(--fs-lg);
    color: #c3c9d6;
}

.hero-actions {
    gap: 14px;
    margin-top: 4px;
}

.hero-actions .btn {
    padding: 14px 28px;
    font-size: var(--fs-md);
    border-radius: 14px;
}

.hero-actions .btn-primary {
    box-shadow: 0 10px 30px var(--orange-glow);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 40px auto 0;
    width: 100%;
}

.stat-tile {
    padding: 16px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.4);
}

.stat-tile strong {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: 800;
    background: linear-gradient(110deg, #fff 10%, #ffb08d 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-tile span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--fs-micro);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------- Feature grid (6 cards) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(16px, 2.5vw, 22px);
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    text-align: left;
    overflow: hidden;
    padding: 26px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 107, 53, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0.06));
    border: 1px solid rgba(255, 107, 53, 0.28);
    color: #ffb08d;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.10);
}

.feature-card.fc-cyan .feature-icon {
    background: linear-gradient(135deg, rgba(75, 214, 255, 0.18), rgba(75, 214, 255, 0.05));
    border-color: rgba(75, 214, 255, 0.30);
    color: #7de0ff;
    box-shadow: 0 8px 20px rgba(75, 214, 255, 0.10);
}

.feature-card.fc-gold .feature-icon {
    background: linear-gradient(135deg, rgba(255, 205, 80, 0.18), rgba(255, 205, 80, 0.05));
    border-color: rgba(255, 205, 80, 0.30);
    color: #ffe08a;
    box-shadow: 0 8px 20px rgba(255, 205, 80, 0.10);
}

.feature-card.fc-green .feature-icon {
    background: linear-gradient(135deg, rgba(80, 235, 155, 0.18), rgba(80, 235, 155, 0.05));
    border-color: rgba(80, 235, 155, 0.30);
    color: #6fe3a1;
    box-shadow: 0 8px 20px rgba(80, 235, 155, 0.10);
}

.feature-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.65;
}

.feature-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* ---------- How it works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 22px);
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    position: relative;
    padding: 28px 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: transform 0.25s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange-primary), #ff8f54);
    color: #fff;
    box-shadow: 0 10px 24px var(--orange-glow);
}

.step-card h3 {
    font-size: var(--fs-md);
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

/* ---------- Border preview (enhanced) ---------- */
.border-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
}

.border-card {
    position: relative;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.border-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.border-card .avatar-frame {
    margin-bottom: 12px;
}

.border-card-title {
    font-weight: 800;
    font-size: var(--fs-base);
    letter-spacing: 0.3px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 54px) clamp(20px, 4vw, 40px);
    border-radius: 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(75, 214, 255, 0.08)),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 53, 0.30);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.08);
}

.cta-banner::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 107, 53, 0.28), transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: var(--fs-2xl);
    margin-bottom: 12px;
    position: relative;
}

.cta-banner p {
    color: #c3c9d6;
    max-width: 520px;
    margin: 0 auto 24px;
    position: relative;
}

.cta-banner .hero-actions {
    position: relative;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-tile {
        padding: 14px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb,
    .hero-badge .badge-dot,
    .stat-tile,
    .feature-card,
    .step-card,
    .border-card {
        animation: none !important;
        transition: none !important;
    }
}
