/* ============================================================
   RESET & BASE STYLES
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

/* ============================================================
   HERO SECTION (DO NOT TOUCH)
============================================================ */
#services-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    overflow: hidden;
}

#services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        60deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.08) 1px,
        transparent 1px,
        transparent 30px
    );
    animation: moveLines 40s linear infinite;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

@keyframes moveLines {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.services-intro,
.services-subtext {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ============================================================
   FEATURE SECTIONS
============================================================ */
.feature-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4.5rem 2rem;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    position: relative;
}

/* --- NICE subtle underline --- */
.feature-text h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(
        90deg,
        #6366f1,
        #60a5fa
    );
    margin-top: 0.5rem;
    border-radius: 2px;
}

.feature-text p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.75;
}

/* ============================================================
   FEATURE ICON CONTAINER
============================================================ */
.feature-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   SIGNAL ICON SYSTEM (GOOD COLORS NOW)
============================================================ */
.signal-icon {
    width: 140px;
    height: 140px;
    position: relative;
    display: grid;
    place-items: center;
    transition: transform 0.4s ease;
}

.signal-icon span {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: signalPulse 6s linear infinite;
}

/* Outer ring */
.signal-icon span:nth-child(1) {
    width: 120px;
    height: 120px;
    border-color: #6366f1;
}

/* Middle ring */
.signal-icon span:nth-child(2) {
    width: 80px;
    height: 80px;
    border-color: #93c5fd;
}

/* Inner ring */
.signal-icon span:nth-child(3) {
    width: 40px;
    height: 40px;
    border-color: #c7d2fe;
}

/* Center icon */
.signal-icon .center-icon {
    font-size: 2.8rem;
    background: linear-gradient(
        135deg,
        #6366f1,
        #3b82f6
    );
    background-clip: text;          /* standard */
    -webkit-background-clip: text;  /* required for Chrome/Safari */
    color: transparent;             /* replaces -webkit-text-fill-color */
    filter: drop-shadow(0 6px 18px rgba(99,102,241,0.25));
    transition: transform 0.4s ease, filter 0.4s ease;
    z-index: 2;
}


@keyframes signalPulse {
    0% { transform: scale(0.9); opacity: 0.35; }
    50% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(0.9); opacity: 0.35; }
}

/* Hover */
.feature-section:hover .signal-icon {
    transform: scale(1.08);
}

.feature-section:hover .signal-icon span {
    filter: drop-shadow(0 0 10px rgba(99,102,241,0.4));
}

.feature-section:hover .signal-icon .center-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 18px rgba(59,130,246,0.45));
}

/* ============================================================
   PER-SECTION VARIANTS (SOFT)
============================================================ */
.signal-icon.alert span:nth-child(1) { border-color: #60a5fa; }
.signal-icon.crossover span:nth-child(1) { border-color: #6366f1; }
.signal-icon.trend span:nth-child(1) { border-color: #818cf8; }
.signal-icon.score span:nth-child(1) { border-color: #3b82f6; }
.signal-icon.auto span:nth-child(1) { border-color: #a5b4fc; }

/* ============================================================
   FINAL CTA (DO NOT TOUCH)
============================================================ */
.final-cta {
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 5rem 2rem;
    border-radius: 2rem;
    margin: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(79,70,229,0.15), transparent 70%);
    animation: rotate360 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.final-cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin: 2rem 0 3rem;
    line-height: 1.6;
}

/* --- LAST BUTTON (CLEAN & MODERN) --- */
.btn-primary {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 1rem;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 30px rgba(59,130,246,0.35);
}



/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .feature-section,
    .feature-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin-top: 2rem;
    }

    .signal-icon {
        width: 120px;
        height: 120px;
    }

    .signal-icon .center-icon {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.4rem; }
    .services-intro,
    .services-subtext { font-size: 1rem; }
    .feature-text h2 { font-size: 1.7rem; }
    .feature-text p { font-size: 1rem; }
}

@media (max-width: 480px) {
    #services-hero { padding: 3rem 1.5rem; }
    .hero-content h1 { font-size: 2rem; }
    .feature-text h2 { font-size: 1.5rem; }
    .feature-text p { font-size: 0.95rem; }
}
