/* ============================================
   FEATURES PAGE — Scandinavian Minimalist
   Light theme, Inter font, frosted glassmorphism
   ============================================ */

/* Light base for the page */
main {
    background: transparent;
}

/* Color clouds — ambient gradient wash */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle 380px at 8% 12%, rgba(209, 77, 106, 0.42), transparent 65%),
    radial-gradient(ellipse 420px 280px at 88% 6%, rgba(115, 83, 186, 0.36), transparent 60%),
    radial-gradient(ellipse 300px 380px at 42% 88%, rgba(45, 159, 214, 0.33), transparent 60%);
  filter: blur(80px);
  animation: cloudPulse1 8s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(ellipse 340px 260px at 72% 48%, rgba(209, 77, 106, 0.26), transparent 55%),
    radial-gradient(circle 300px at 18% 58%, rgba(115, 83, 186, 0.22), transparent 55%);
  filter: blur(80px);
  animation: cloudPulse2 11s ease-in-out infinite;
}

@keyframes cloudPulse1 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.08); }
}

@keyframes cloudPulse2 {
  0%, 100% { opacity: 1; transform: scale(1.05); }
  50%      { opacity: 0.55; transform: scale(0.95); }
}

body > *:not(header) {
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO
   ============================================ */

.features-hero {
    padding: 140px 0 80px;
    text-align: center;
    background: transparent;
    position: relative;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 50% at 50% 30%, rgba(45, 159, 214, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 30% 60%, rgba(115, 83, 186, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 70% 60%, rgba(209, 77, 106, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.features-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.features-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.features-hero-sub {
    font-size: 1.15rem;
    color: var(--secondary-text);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

.features-hero-sub strong {
    color: var(--primary-text);
}

/* ============================================
   FEATURE DETAIL SECTIONS
   ============================================ */

.feature-detail {
    padding: 90px 0;
    position: relative;
    background: transparent;
}

.feature-detail .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Alt sections — subtle light tint */
.feature-alt {
    background: transparent;
}

/* Removed: section divider lines */

/* ── Section Headers ── */

.feature-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.feature-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-cyan {
    background: rgba(45, 159, 214, 0.08);
    border: 1px solid rgba(45, 159, 214, 0.15);
    color: #2D9FD6;
    box-shadow: 0 2px 8px rgba(45, 159, 214, 0.06);
}

.feature-icon-purple {
    background: rgba(115, 83, 186, 0.08);
    border: 1px solid rgba(115, 83, 186, 0.15);
    color: #7353BA;
    box-shadow: 0 2px 8px rgba(115, 83, 186, 0.06);
}

.feature-icon-pink {
    background: rgba(209, 77, 106, 0.08);
    border: 1px solid rgba(209, 77, 106, 0.15);
    color: #D14D6A;
    box-shadow: 0 2px 8px rgba(209, 77, 106, 0.06);
}

.feature-icon-green {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06);
}

.feature-detail-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: -0.5px;
    margin: 0;
}

.feature-detail-desc {
    font-size: 1.05rem;
    color: var(--secondary-text);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 40px;
}

/* ============================================
   SMART STRATEGY — Flagship Feature
   ============================================ */

.feature-strategy {
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.feature-strategy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(45, 159, 214, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(115, 83, 186, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Removed: section divider line */

/* ── Exclusive Badge ── */

.strategy-badge-row {
    margin-bottom: 20px;
}

.strategy-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(115, 83, 186, 0.1) 0%, rgba(45, 159, 214, 0.1) 100%);
    color: #7353BA;
    border: 1px solid rgba(115, 83, 186, 0.2);
}

/* ── Strategy Icon Badge ── */

.feature-icon-strategy {
    background: linear-gradient(135deg, rgba(115, 83, 186, 0.12) 0%, rgba(45, 159, 214, 0.1) 100%);
    border: 1px solid rgba(115, 83, 186, 0.2);
    color: #6D47C0;
    box-shadow: 0 4px 16px rgba(115, 83, 186, 0.1);
}

/* ── Step Flow Visual ── */

.strategy-visual {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
}

.strategy-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
}

.strategy-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(115, 83, 186, 0.15);
}

.strategy-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7353BA 0%, #5B3FA0 100%);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(115, 83, 186, 0.25);
    flex-shrink: 0;
}

.strategy-step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.strategy-step-content p {
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.55;
    margin: 0;
}

.strategy-step-content strong {
    color: var(--primary-text);
}

/* ── Connector arrows between steps ── */

.strategy-connector {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.strategy-connector::after {
    content: '';
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, rgba(115, 83, 186, 0.3), rgba(45, 159, 214, 0.3));
    border-radius: 1px;
}

/* ── Strategy-specific card accent ── */

.strategy-card {
    border-top: 2px solid rgba(115, 83, 186, 0.15);
}

.strategy-card:hover {
    border-top-color: rgba(115, 83, 186, 0.35);
}

/* ── Strategy use case box ── */

.strategy-use-case {
    border-left-color: rgba(115, 83, 186, 0.35);
    background: rgba(115, 83, 186, 0.025);
}

/* ── Strategy responsive ── */

@media (max-width: 900px) {
    .strategy-visual {
        flex-direction: column;
        gap: 0;
    }

    .strategy-connector {
        width: auto;
        height: 24px;
    }

    .strategy-connector::after {
        width: 2px;
        height: 16px;
    }

    .strategy-step {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 20px 24px;
    }

    .strategy-step-num {
        margin-bottom: 0;
    }
}

/* ============================================
   FEATURE GRIDS
   ============================================ */

.feature-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.feature-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

/* ── Mini Cards: frosted glass on light ── */

.feature-mini-card {
    padding: 28px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.08);
}

.feature-mini-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.feature-mini-card p {
    font-size: 0.88rem;
    color: var(--secondary-text);
    line-height: 1.6;
    margin: 0;
}

/* ── Social Platform Cards ── */

.social-platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-platform-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(115, 83, 186, 0.15);
    box-shadow: var(--shadow-md);
}

.social-platform-card svg {
    color: #7353BA;
    opacity: 0.7;
}

.social-platform-card:hover svg {
    opacity: 1;
}

.social-platform-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-text);
    letter-spacing: 0.02em;
}

/* ── Tracking/Ad Detection Cards ── */

.tracking-card {
    padding: 24px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.tracking-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-md);
}

.tracking-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.tracking-dot-blue {
    background: #4267B2;
    box-shadow: 0 0 6px rgba(66, 103, 178, 0.3);
}

.tracking-dot-orange {
    background: #F59E0B;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

.tracking-card h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 8px 0;
}

.tracking-card p {
    font-size: 0.8rem;
    color: var(--secondary-text);
    line-height: 1.55;
    margin: 0;
}

/* ── Use Case Boxes ── */

.feature-use-case {
    margin-top: 30px;
    padding: 28px 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid rgba(115, 83, 186, 0.35);
}

.feature-live-data {
    border-left-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.03);
}

.live-data-highlight {
    text-decoration: underline;
    text-decoration-color: rgba(16, 185, 129, 0.5);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    color: #059669;
}

.feature-use-case h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 14px 0;
}

.feature-use-case p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.65;
    margin: 0;
}

.feature-use-case ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-use-case li {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.65;
    padding: 4px 0 4px 20px;
    position: relative;
}

.feature-use-case li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(115, 83, 186, 0.4);
}

.feature-use-case li strong {
    color: var(--primary-text);
}

/* ── AI Scoring Highlight Section ── */

.feature-highlight {
    background: transparent;
}

/* Removed: section divider line */

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: var(--secondary-bg);
    border: 1px solid var(--page-border);
}

.comparison-table thead {
    background: var(--tertiary-bg);
}

.comparison-table th {
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-text);
    text-align: left;
    border-bottom: 2px solid var(--page-border);
}

.comparison-table td {
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--secondary-text);
    border-bottom: 1px solid var(--page-border);
}

.comparison-table tbody tr:hover {
    background: var(--tertiary-bg);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.td-good {
    color: #059669 !important;
}

.td-bad {
    color: #DC2626 !important;
}

/* ============================================
   CTA SECTION
   ============================================ */

.features-cta {
    padding: 100px 0 120px;
    text-align: center;
    background: transparent;
    position: relative;
}

.features-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 50% at 50% 40%, rgba(209, 77, 106, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 30% 60%, rgba(115, 83, 186, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* Removed: section divider line */
.features-cta::after {
    display: none;
}

.features-cta .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.features-cta h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.features-cta p {
    font-size: 1.05rem;
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 36px;
}

.features-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.features-cta .primary-button {
    font-size: 1.1rem;
    padding: 14px 34px;
}

.features-cta .secondary-button {
    font-size: 1rem;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--page-border);
    color: var(--secondary-text);
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: var(--transition);
}

.features-cta .secondary-button:hover {
    border-color: var(--secondary-text);
    color: var(--primary-text);
    background: var(--tertiary-bg);
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text-hero {
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--purple-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .feature-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-hero {
        padding: 120px 0 60px;
    }

    .features-hero h1 {
        font-size: 2.2rem;
    }

    .feature-detail {
        padding: 60px 0;
    }

    .feature-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .feature-detail-header h2 {
        font-size: 1.6rem;
    }

    .feature-grid-2 {
        grid-template-columns: 1fr;
    }

    .feature-grid-3 {
        grid-template-columns: 1fr;
    }

    .feature-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .features-cta h2 {
        font-size: 1.9rem;
    }

    .features-cta {
        padding: 70px 0 80px;
    }
}

@media (max-width: 480px) {
    .features-hero h1 {
        font-size: 1.8rem;
    }

    .feature-grid-4 {
        grid-template-columns: 1fr;
    }

    .feature-grid-5 {
        grid-template-columns: 1fr;
    }

    .feature-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-icon-badge {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .feature-icon-badge svg {
        width: 26px;
        height: 26px;
    }
}
