/* ==========================================================================
   RaketMate Landing Page — Section Styles
   ========================================================================== */

/* ==================== HERO ==================== */
.rm-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

/* Gradient mesh background */
.rm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(124, 58, 237, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 60%, rgba(232, 121, 168, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 80% 80% at 50% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    animation: meshShift 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes meshShift {
    0% { opacity: 1; transform: scale(1) translate(0, 0); }
    50% { opacity: 0.85; transform: scale(1.08) translate(-2%, 3%); }
    100% { opacity: 1; transform: scale(1) translate(2%, -2%); }
}

/* Noise grain overlay */
.rm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.rm-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.rm-hero h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--rm-heading);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.rm-hero-sub {
    font-size: 1.15rem;
    color: var(--rm-text);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.rm-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 72px;
    flex-wrap: wrap;
}

.rm-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.rm-hero-stat { text-align: center; }
.rm-hero-stat-val {
    font-family: var(--rm-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
}
.rm-hero-stat-lbl {
    font-size: 0.82rem;
    color: var(--rm-text-dim);
    margin-top: 2px;
}

/* ==================== SPORTS ==================== */
.rm-sport-card {
    padding: 32px 20px;
    text-align: center;
    border-radius: var(--rm-radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--rm-border);
    transition: all var(--rm-duration) var(--rm-ease);
    position: relative;
    overflow: hidden;
}

.rm-sport-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rm-gradient-h);
    transform: scaleX(0);
    transition: transform var(--rm-duration) var(--rm-ease);
}

.rm-sport-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--rm-border-hover);
    transform: translateY(-4px);
}
.rm-sport-card:hover::after { transform: scaleX(1); }

.rm-sport-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rm-white);
}
.rm-sport-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Soon ribbon */
.rm-sport-soon {
    opacity: 0.5;
    position: relative;
    overflow: hidden;
}
.rm-soon-ribbon {
    position: absolute;
    top: 14px;
    right: -28px;
    background: var(--rm-gradient-h);
    color: var(--rm-white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 32px;
    transform: rotate(45deg);
    z-index: 2;
    line-height: 1.4;
}

.rm-sport-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.rm-sport-card p {
    font-size: 0.82rem;
    color: var(--rm-text-dim);
    margin-bottom: 0;
}

/* ==================== FEATURES ==================== */
.rm-feature-card {
    padding: 32px 28px;
    border-radius: var(--rm-radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--rm-border);
    transition: all var(--rm-duration) var(--rm-ease);
    height: 100%;
}

.rm-feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--rm-border-hover);
    transform: translateY(-4px);
}

.rm-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--rm-primary-light);
}

.rm-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.rm-feature-card p {
    font-size: 0.9rem;
    color: var(--rm-text);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ==================== HOW IT WORKS ==================== */
.rm-steps-row { position: relative; }

/* Connecting line */
.rm-steps-row::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 2px;
    background: var(--rm-gradient-h);
    opacity: 0.25;
}

.rm-step { text-align: center; position: relative; z-index: 1; }

.rm-step-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-family: var(--rm-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--rm-gradient);
    color: var(--rm-white);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.25);
}

.rm-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.rm-step p {
    font-size: 0.88rem;
    color: var(--rm-text);
    max-width: 210px;
    margin: 0 auto;
}

/* ==================== COURT OWNERS ==================== */
.rm-owners-bg { background: var(--rm-bg-surface); }

.rm-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.rm-benefit-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(124, 58, 237, 0.12);
    color: var(--rm-primary-light);
}

.rm-benefit-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.rm-benefit-item p {
    font-size: 0.88rem;
    color: var(--rm-text);
    margin-bottom: 0;
}

.rm-showcase-card {
    padding: 40px;
    text-align: center;
    background: rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--rm-radius-lg);
}

.rm-showcase-val {
    font-family: var(--rm-font-heading);
    font-size: 2rem;
    font-weight: 800;
}
.rm-showcase-lbl {
    font-size: 0.82rem;
    color: var(--rm-text-dim);
    margin-top: 2px;
}

/* ==================== STATS BAR ==================== */
.rm-stats-bar {
    background: var(--rm-gradient);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.rm-stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08), transparent 70%);
}

.rm-stat-item { text-align: center; color: var(--rm-white); position: relative; z-index: 1; }
.rm-stat-val {
    font-family: var(--rm-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.rm-stat-lbl { font-size: 0.92rem; opacity: 0.8; margin-top: 4px; }

/* ==================== BLOG PREVIEW ==================== */
.rm-blog-card {
    border-radius: var(--rm-radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--rm-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--rm-duration) var(--rm-ease);
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.rm-blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--rm-border-hover);
    color: inherit;
}

.rm-blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.rm-blog-thumb-empty {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(232,121,168,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--rm-primary);
}

.rm-blog-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rm-blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--rm-text-dim);
    margin-bottom: 12px;
}
.rm-blog-cat {
    background: rgba(124, 58, 237, 0.15);
    color: var(--rm-primary-light);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.72rem;
}

.rm-blog-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}
.rm-blog-card p {
    font-size: 0.88rem;
    color: var(--rm-text);
    flex: 1;
    margin-bottom: 0;
}

.rm-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rm-primary-light);
    margin-top: 16px;
    transition: gap var(--rm-duration) var(--rm-ease);
}
.rm-blog-card:hover .rm-blog-read { gap: 10px; }

.rm-blog-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--rm-text-dim);
}
.rm-blog-empty i { font-size: 3rem; display: block; margin-bottom: 16px; opacity: 0.3; }

/* ==================== FINAL CTA ==================== */
.rm-cta {
    background: var(--rm-gradient);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rm-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05), transparent 60%);
}
.rm-cta-inner { position: relative; z-index: 1; }

.rm-cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--rm-white);
    margin-bottom: 16px;
}
.rm-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    margin: 0 auto 36px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .rm-steps-row::before { display: none; }
}

@media (max-width: 767.98px) {
    .rm-hero { min-height: auto; padding: 130px 16px 64px; }
    .rm-hero h1 { margin-bottom: 16px; }
    .rm-hero-sub { font-size: 1rem; margin-bottom: 32px; }
    .rm-hero-stats { gap: 24px; }
    .rm-hero-stat-val { font-size: 1.35rem; }
    .rm-hero-actions { flex-direction: column; }
    .rm-hero-actions .rm-btn { width: 100%; justify-content: center; }
    .rm-stat-val { font-size: 2rem; }
    .rm-cta { padding: 72px 0; }
    .rm-cta h2 { font-size: 1.75rem; }
}
