/* ==========================================================================
   Safon Techs — Card & Typography Polish
   Loaded after the page's own styles; selectors are prefixed with "html body"
   so they win without touching the original CSS.
   Change the heading font in ONE place: --font-display below.
   ========================================================================== */
:root {
    --font-display: 'Sora', 'Space Grotesk', 'Inter', sans-serif;
}

/* ── Display font on headings ────────────────────────────────────────────── */
html body .hero-title,
html body .section-heading,
html body .platform-title,
html body .service-title,
html body .newsletter-title {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
html body .hero-title { line-height: 1.12; }

/* ==========================================================================
   PLATFORM CARDS (Nexus / AI / Academy / Affiliate)
   ========================================================================== */
html body .nexus-card     { --c1: #00ff9d; --c2: #00f5ff; --rgb: 0, 255, 157;  --wm: '\f6ff'; }
html body .ai-card        { --c1: #ff4df0; --c2: #00f5ff; --rgb: 255, 0, 229;  --wm: '\f5dc'; }
html body .academy-card   { --c1: #7d8cff; --c2: #00f5ff; --rgb: 93, 113, 255; --wm: '\f19d'; }
html body .affiliate-card { --c1: #ffb81f; --c2: #ff5e62; --rgb: 255, 170, 0;  --wm: '\f2b5'; }

html body .platform-slide-card {
    border-color: rgba(var(--rgb), 0.14);
    background:
        radial-gradient(110% 70% at 100% 0%, rgba(var(--rgb), 0.17), transparent 58%),
        radial-gradient(80% 60% at 0% 100%, rgba(var(--rgb), 0.07), transparent 62%),
        linear-gradient(165deg, rgba(21, 28, 56, 0.93), rgba(7, 10, 26, 0.95));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 36px 32px 30px;
}
html.solar-mode body .platform-slide-card {
    background:
        radial-gradient(110% 70% at 100% 0%, rgba(var(--rgb), 0.13), transparent 58%),
        linear-gradient(165deg, #ffffff, #f3f7fb);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 #fff;
}
html body .platform-slide-card:hover {
    border-color: rgba(var(--rgb), 0.3);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 70px rgba(var(--rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.solar-mode body .platform-slide-card:hover {
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.14), 0 0 50px rgba(var(--rgb), 0.16);
}

/* Gradient hairline border */
html body .platform-slide-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(150deg, rgba(var(--rgb), 0.8), rgba(var(--rgb), 0.08) 38%, rgba(255, 255, 255, 0.05) 62%, rgba(var(--rgb), 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.35s ease;
}
html body .platform-slide-card:hover::before { opacity: 1; }

/* Big faint watermark icon */
html body .platform-slide-card::after {
    content: var(--wm);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -22px;
    bottom: -34px;
    font-size: 11.5rem;
    line-height: 1;
    color: rgba(var(--rgb), 0.065);
    transform: rotate(-12deg);
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}
html body .platform-slide-card:hover::after {
    transform: rotate(-5deg) scale(1.1) translate(-6px, -6px);
    color: rgba(var(--rgb), 0.11);
}

/* Keep content above the decoration */
html body .platform-slide-card > .platform-card-header,
html body .platform-slide-card > .platform-card-body,
html body .platform-slide-card > .platform-card-footer { position: relative; z-index: 1; }

/* Top glow line */
html body .platform-slide-card .card-glow-bar {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c1) 25%, var(--c2) 75%, transparent);
    box-shadow: 0 0 26px 3px rgba(var(--rgb), 0.55);
    opacity: 1;
    z-index: 2;
}

/* Icon tile with pulsing ring */
html body .platform-slide-card .platform-icon-box {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    color: var(--c1);
    background: linear-gradient(145deg, rgba(var(--rgb), 0.3), rgba(var(--rgb), 0.06));
    border: 1px solid rgba(var(--rgb), 0.42);
    box-shadow: 0 10px 26px rgba(var(--rgb), 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
html body .platform-slide-card .platform-icon-box::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 25px;
    border: 1px solid rgba(var(--rgb), 0.4);
    animation: mo-ring 3s ease-out infinite;
    pointer-events: none;
}
@keyframes mo-ring {
    0%   { transform: scale(0.9);  opacity: 0.8; }
    80%  { transform: scale(1.28); opacity: 0; }
    100% { transform: scale(1.28); opacity: 0; }
}

/* Tag with live dot */
html body .platform-slide-card .platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c1);
    background: rgba(var(--rgb), 0.1);
    border: 1px solid rgba(var(--rgb), 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
html body .platform-slide-card .platform-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: mo-blink 2.2s ease-in-out infinite;
}
@keyframes mo-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Title + subtitle */
html body .platform-slide-card .platform-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--cyber-text) 45%, var(--c1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
html body .platform-slide-card .platform-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c1);
    letter-spacing: 0.3px;
}
html body .platform-slide-card .platform-subtitle::before {
    content: '';
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
}
html body .platform-slide-card .platform-desc { color: rgba(226, 232, 240, 0.78); }
html.solar-mode body .platform-slide-card .platform-desc { color: #475569; }

/* Feature pills */
html body .platform-slide-card .platform-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--rgb), 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
html body .platform-slide-card .platform-pill i { color: var(--c1); }
html body .platform-slide-card .platform-pill:hover {
    transform: translateY(-2px);
    background: rgba(var(--rgb), 0.13);
    border-color: rgba(var(--rgb), 0.55);
    box-shadow: 0 8px 20px rgba(var(--rgb), 0.18);
}
html.solar-mode body .platform-slide-card .platform-pill { background: rgba(15, 23, 42, 0.035); }

/* Footer divider + buttons */
html body .platform-slide-card .platform-card-footer {
    border-top: 0;
    padding-top: 22px;
    background: linear-gradient(90deg, rgba(var(--rgb), 0.5), rgba(var(--rgb), 0.05) 70%, transparent) top left / 100% 1px no-repeat;
}
html body .platform-slide-card .eco-btn { box-shadow: 0 10px 28px rgba(var(--rgb), 0.38); }
html body .platform-slide-card .eco-btn:hover { box-shadow: 0 14px 36px rgba(var(--rgb), 0.55); }
html body .eco-btn i { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
html body .eco-btn:hover i.fa-arrow-right { transform: translateX(5px); }
html body .eco-btn:hover i.fa-arrow-up-right-from-square { transform: translate(3px, -3px); }

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
html body .services-grid { counter-reset: svc; }
html body .service-card { counter-increment: svc; --sc: 0, 245, 255; }
html body .service-card:nth-child(4n+2) { --sc: 255, 0, 229; }
html body .service-card:nth-child(4n+3) { --sc: 0, 255, 157; }
html body .service-card:nth-child(4n+4) { --sc: 255, 170, 0; }

html body .service-card {
    padding: 38px 32px 34px;
    border-color: rgba(var(--sc), 0.12);
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(var(--sc), 0.13), transparent 60%),
        linear-gradient(165deg, rgba(20, 27, 54, 0.9), rgba(8, 11, 28, 0.93));
}
html.solar-mode body .service-card {
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(var(--sc), 0.10), transparent 60%),
        linear-gradient(165deg, #ffffff, #f4f8fc);
}
html body .service-card:hover {
    border-color: rgba(var(--sc), 0.4);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.45), 0 0 56px rgba(var(--sc), 0.16);
}
html body .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(150deg, rgba(var(--sc), 0.7), rgba(var(--sc), 0.05) 40%, rgba(255, 255, 255, 0.04) 65%, rgba(var(--sc), 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.35s ease;
}
html body .service-card:hover::before { opacity: 1; }

html body .service-card .service-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 1.75rem;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.06);
    background: color-mix(in srgb, currentColor 15%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    box-shadow: 0 12px 30px color-mix(in srgb, currentColor 24%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
html body .service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }

/* Index number in the corner */
html body .service-card .service-icon::after {
    content: counter(svc, decimal-leading-zero);
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--cyber-text);
    opacity: 0.22;
    transition: opacity 0.3s ease;
}
html body .service-card:hover .service-icon::after { opacity: 0.6; }

html body .service-card .service-title { font-size: 1.35rem; font-weight: 700; }
html body .service-card .service-desc { color: rgba(226, 232, 240, 0.74); }
html.solar-mode body .service-card .service-desc { color: #475569; }

/* ==========================================================================
   NEWSLETTER CARD
   ========================================================================== */
html body .newsletter-card {
    border-color: rgba(0, 245, 255, 0.14);
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(0, 245, 255, 0.14), transparent 60%),
        radial-gradient(60% 80% at 100% 100%, rgba(255, 0, 229, 0.12), transparent 60%),
        linear-gradient(165deg, rgba(20, 27, 54, 0.92), rgba(8, 11, 28, 0.95));
}
html.solar-mode body .newsletter-card {
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(2, 132, 199, 0.10), transparent 60%),
        radial-gradient(60% 80% at 100% 100%, rgba(219, 39, 119, 0.08), transparent 60%),
        linear-gradient(165deg, #ffffff, #f4f8fc);
}
html body .newsletter-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.7), rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.04) 60%, rgba(255, 0, 229, 0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    opacity: 0.8;
}
html body .newsletter-card::after {
    content: '\f1d8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 4%;
    bottom: -40px;
    font-size: 14rem;
    line-height: 1;
    color: rgba(0, 245, 255, 0.05);
    transform: rotate(-14deg);
    pointer-events: none;
}
html body .newsletter-badge i { animation: mo-float-x 2.6s ease-in-out infinite; }
@keyframes mo-float-x { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -3px); } }
html body .newsletter-input:focus {
    border-color: var(--cyber-accent);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.12), 0 0 28px rgba(0, 245, 255, 0.22);
}

/* ==========================================================================
   HERO PILLS
   ========================================================================== */
html body .hero-stat-pill {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.solar-mode body .hero-stat-pill {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html body .platform-slide-card .platform-icon-box::after,
    html body .platform-slide-card .platform-tag::before,
    html body .newsletter-badge i { animation: none; }
}

/* ── Light mode: darker accents so text stays readable on white ───────────── */
html.solar-mode body .nexus-card     { --c1: #059669; }
html.solar-mode body .ai-card        { --c1: #c026d3; }
html.solar-mode body .academy-card   { --c1: #4f5bd5; }
html.solar-mode body .affiliate-card { --c1: #d97706; }
