/* ============================================
   OptiScale360 — Main Design System (10x Upgrade)
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Primary Blues */
    --primary:          #1E40AF;
    --primary-light:    #3B82F6;
    --primary-dark:     #1E3A8A;

    /* Warm Amber Accent */
    --accent:           #F59E0B;
    --accent-light:     #FBBF24;
    --accent-dark:      #D97706;

    /* Status */
    --success:          #10B981;

    /* Navy / Dark */
    --navy:             #0F172A;
    --navy-light:       #1E293B;

    /* Surfaces */
    --surface:          #FFFFFF;
    --surface-alt:      #F8FAFC;
    --surface-warm:     #FFFBEB;

    /* Borders */
    --border:           #E2E8F0;
    --border-accent:    rgba(59,130,246,0.2);

    /* Text */
    --text-primary:     #0F172A;
    --text-secondary:   #475569;
    --text-muted:       #94A3B8;

    /* Gradients */
    --gradient-hero:    linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #3B82F6 100%);
    --gradient-cta:     linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    --gradient-accent:  linear-gradient(135deg, #F59E0B, #FBBF24);
    --gradient-card-border: linear-gradient(135deg, #3B82F6, #F59E0B);

    /* Shadows */
    --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.1);
    --shadow-glow:          0 0 20px rgba(30, 64, 175, 0.2);
    --shadow-glow-accent:   0 0 25px rgba(245, 158, 11, 0.25);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   Gradient Text Utility
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #3B82F6, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* On dark/hero backgrounds, use a brighter gradient */
.hero .gradient-text,
.page-hero .gradient-text {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ============================================
   Animation System
   ============================================ */

/* Scroll-triggered entrance */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.animate-on-scroll.from-left {
    transform: translateX(-30px);
}
.animate-on-scroll.from-left.animate-in {
    transform: translateX(0);
}
.animate-on-scroll.from-right {
    transform: translateX(30px);
}
.animate-on-scroll.from-right.animate-in {
    transform: translateX(0);
}
.animate-on-scroll.scale-in {
    transform: scale(0.95);
    opacity: 0;
}
.animate-on-scroll.scale-in.animate-in {
    transform: scale(1);
    opacity: 1;
}

/* Staggered children */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }
.stagger-children > .animate-on-scroll:nth-child(7) { transition-delay: 0.35s; }
.stagger-children > .animate-on-scroll:nth-child(8) { transition-delay: 0.4s; }

/* Hero entrance stagger */
.hero-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    animation-name: heroFadeIn;
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.hero-stagger > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(2deg); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.05); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}
@keyframes rotate-border {
    to { --border-angle: 360deg; }
}
@keyframes scoreRingFill {
    from { stroke-dashoffset: 283; }
}
@keyframes barFill {
    from { width: 0; }
}

.float          { animation: float 6s ease-in-out infinite; }
.float-slow     { animation: float-slow 8s ease-in-out infinite; }
.float-delay-1  { animation-delay: 1s; }
.float-delay-2  { animation-delay: 2s; }
.float-delay-3  { animation-delay: 3s; }

/* ============================================
   Hero Sections
   ============================================ */

.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    color: #fff;
}

/* Mesh overlay with warm accent touches */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(251,191,36,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(245,158,11,0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

/* Subtle dot-grid pattern */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

/* Floating decorative orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}
.hero-orb--blue {
    background: rgba(59, 130, 246, 0.25);
}
.hero-orb--amber {
    background: rgba(251, 191, 36, 0.15);
}
.hero-orb--lg {
    width: 300px;
    height: 300px;
}
.hero-orb--md {
    width: 180px;
    height: 180px;
}
.hero-orb--sm {
    width: 100px;
    height: 100px;
}

/* ============================================
   Hero Layout Overrides
   styles.css forces: .hero { min-height:100vh; display:flex }
   and .hero .container { display:grid; grid-template-columns:1fr 1fr; min-height:80vh }
   We MUST use !important to beat those rules reliably.
   ============================================ */

.hero {
    min-height: auto !important;
    display: block !important;
}
.hero .container,
.hero > .container {
    display: block !important;
    grid-template-columns: none !important;
    min-height: auto !important;
    max-width: 1200px;
}
.page-hero .container,
.page-hero > .container {
    display: block !important;
}

/* ============================================
   Split-Layout Hero
   ============================================ */

.hero-split {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 3rem !important;
    align-items: center;
    width: 100%;
    max-width: 100%;
}
.hero-split-content {
    text-align: left;
    max-width: none;
}
.hero-split-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   Dark Section Text Color Overrides
   styles.css forces: h1-h6 { color: var(--text-primary) } (#0F172A dark)
   and p { color: var(--text-secondary) } (#475569 dark)
   These global rules make text invisible on dark backgrounds.
   We use !important to guarantee white text on ALL dark sections.
   ============================================ */

/* --- HERO (homepage index.html) --- */
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6 {
    color: #FFFFFF !important;
}
.hero p, .hero span, .hero div, .hero li, .hero a,
.hero label, .hero small {
    color: #FFFFFF !important;
}

/* --- PAGE HERO (sub-pages: audit, website, how-it-works, about) --- */
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4, .page-hero h5, .page-hero h6 {
    color: #FFFFFF !important;
}
.page-hero p, .page-hero span, .page-hero div, .page-hero li, .page-hero a,
.page-hero label, .page-hero small {
    color: #FFFFFF !important;
}

/* --- CONTACT HERO --- */
.contact-hero h1, .contact-hero h2, .contact-hero h3 {
    color: #FFFFFF !important;
}
.contact-hero p, .contact-hero span, .contact-hero div, .contact-hero a {
    color: #FFFFFF !important;
}

/* --- CTA SECTIONS (all pages — dark navy gradient) --- */
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4 {
    color: #FFFFFF !important;
}
.cta-section p, .cta-section span, .cta-section div,
.cta-section li, .cta-section a, .cta-section small {
    color: #FFFFFF !important;
}

/* --- BG-NAVY dark sections --- */
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 {
    color: #FFFFFF !important;
}
.bg-navy p, .bg-navy span, .bg-navy div, .bg-navy li, .bg-navy a {
    color: #FFFFFF !important;
}

/* --- FOOTER (dark navy gradient background) --- */
.optiscale-footer h1, .optiscale-footer h2, .optiscale-footer h3,
.optiscale-footer h4, .optiscale-footer h5, .optiscale-footer h6 {
    color: #FFFFFF !important;
}
.optiscale-footer p {
    color: #94A3B8 !important;
}

/* --- Subtitles — slightly transparent for visual hierarchy --- */
.hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}
.page-hero .hero-sub {
    color: rgba(255, 255, 255, 0.9) !important;
}
.hero .hero-trust-item {
    color: rgba(255, 255, 255, 0.85) !important;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* --- Buttons in dark sections keep their own text colors --- */
.hero .btn-primary,
.cta-section .btn-white,
.cta-section .btn-accent,
.hero .btn-primary {
    color: var(--navy) !important;
}
.hero .btn-outline,
.cta-section .btn-outline-white {
    color: #FFFFFF !important;
}
.cta-section .btn-primary {
    color: #FFFFFF !important;
}

/* --- Score card alert stays amber --- */
.hero .score-card-alert {
    color: #FBBF24 !important;
}

/* --- Gradient text retains its special rendering --- */
.hero .gradient-text,
.page-hero .gradient-text {
    -webkit-text-fill-color: transparent !important;
}

/* ============================================
   Hero Visual — AI Audit Score Card
   ============================================ */

.hero-score-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    color: #fff !important;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.hero-score-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(245,158,11,0.5));
    z-index: -1;
    filter: blur(8px);
    pointer-events: none;
    opacity: 0.7;
}
.score-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 1.25rem;
}
.score-ring-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.score-ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}
.score-ring-wrap svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}
.score-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 8;
}
.score-ring-fill {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s var(--ease-out);
}
.score-ring-fill.animated {
    stroke-dashoffset: 80;
}
.score-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}
.platform-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.platform-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.platform-bar-name {
    width: 75px;
    flex-shrink: 0;
    opacity: 0.85;
    font-weight: 500;
}
.platform-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}
.platform-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #3B82F6, #FBBF24);
    width: 0;
    transition: width 1.2s var(--ease-out);
}
.platform-bar-pct {
    width: 32px;
    text-align: right;
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0.9;
}
.score-card-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FBBF24;
}
.score-card-alert i {
    width: 16px;
    height: 16px;
}

/* Floating mini badges */
.hero-mini-badge {
    position: absolute;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
}
.hero-mini-badge--top {
    top: -12px;
    right: -16px;
    animation: float 4s ease-in-out infinite;
}
.hero-mini-badge--bottom {
    bottom: -10px;
    left: -16px;
    animation: float-slow 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Trust indicators row */
.hero-trust-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
}
.hero-trust-item i {
    width: 16px;
    height: 16px;
    color: var(--accent-light);
}

/* ============================================
   Hero Visual — Report Preview Card (Audit page)
   ============================================ */

.hero-report-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.75rem;
    width: 100%;
    max-width: 320px;
    color: #fff;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.report-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 1rem;
}
.report-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.report-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    opacity: 0;
    animation: heroFadeIn 0.5s var(--ease-out) forwards;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.report-checklist li:last-child { border-bottom: none; }
.report-checklist li:nth-child(1) { animation-delay: 0.6s; }
.report-checklist li:nth-child(2) { animation-delay: 0.8s; }
.report-checklist li:nth-child(3) { animation-delay: 1.0s; }
.report-checklist li:nth-child(4) { animation-delay: 1.2s; }
.report-checklist li:nth-child(5) { animation-delay: 1.4s; }
.report-check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #10B981;
    font-size: 0.7rem;
}

/* ============================================
   Hero Visual — Browser Mockup (Website page)
   ============================================ */

.hero-browser-card {
    width: 100%;
    max-width: 340px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
}
.browser-bar {
    background: rgba(255,255,255,0.12);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.browser-dots {
    display: flex;
    gap: 5px;
}
.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.7;
}
.browser-dots span:nth-child(1) { background: #EF4444; }
.browser-dots span:nth-child(2) { background: #F59E0B; }
.browser-dots span:nth-child(3) { background: #10B981; }
.browser-address {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    opacity: 0.7;
    font-family: monospace;
}
.browser-body {
    background: rgba(255,255,255,0.08);
    padding: 1.25rem;
}
.browser-skeleton-line {
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin-bottom: 0.6rem;
}
.browser-skeleton-line.short { width: 60%; }
.browser-skeleton-line.medium { width: 80%; }
.browser-skeleton-block {
    height: 50px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.browser-skeleton-btn {
    display: inline-block;
    width: 80px;
    height: 24px;
    background: linear-gradient(135deg, rgba(245,158,11,0.4), rgba(251,191,36,0.4));
    border-radius: 12px;
    margin-top: 0.3rem;
}

/* ============================================
   Section Dividers
   ============================================ */

.section-divider {
    line-height: 0;
    overflow: hidden;
    margin-top: -1px;
}
.section-divider svg {
    display: block;
    width: 100%;
    height: 50px;
}
.section-divider--flip {
    transform: scaleY(-1);
    margin-top: 0;
    margin-bottom: -1px;
}

/* ============================================
   Section Title Accent Underline
   ============================================ */

.section-title-accent {
    position: relative;
    display: inline-block;
}
.section-title-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 0.6s var(--ease-out);
}
.section-title-accent.animate-in::after {
    width: 60px;
}

/* Animated section title underline */
.section-title-animated::after {
    width: 0;
    transition: width 0.6s var(--ease-out) 0.2s;
}
.section-title-animated.animate-in::after {
    width: 60px;
}

/* ============================================
   Cards — Enhanced Treatments
   ============================================ */

/* Gradient top border */
.card-gradient-border {
    position: relative;
    overflow: hidden;
}
.card-gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-card-border);
    z-index: 1;
}

/* Enhanced hover state */
.card-hover {
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card-hover:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Glass card variant v2 */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mouse-tracking glow effect */
.card-glow {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    overflow: hidden;
}
.card-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        300px circle at var(--mouse-x) var(--mouse-y),
        rgba(59, 130, 246, 0.1),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.card-glow:hover::after {
    opacity: 1;
}
.card-glow > * {
    position: relative;
    z-index: 1;
}

/* Animated gradient border */
.card-animated-border {
    position: relative;
    background: var(--surface);
    z-index: 0;
}
.card-animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        #3B82F6, #F59E0B, #10B981, #3B82F6
    );
    z-index: -2;
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card-animated-border:hover::before {
    opacity: 1;
}
.card-animated-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--surface);
    z-index: -1;
}

/* Support for @property -- progressive enhancement */
@supports (background: conic-gradient(from 0deg, red, blue)) {
    @property --border-angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }
}

/* ============================================
   Icon Containers
   ============================================ */

.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(59, 130, 246, 0.15));
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out);
}
.icon-container svg,
.icon-container i {
    width: 28px;
    height: 28px;
}
.icon-container--accent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.18));
    color: var(--accent-dark);
}
.icon-container--white {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.icon-container--sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.icon-container--sm svg,
.icon-container--sm i {
    width: 20px;
    height: 20px;
}
.icon-container--lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}
.icon-container--lg svg,
.icon-container--lg i {
    width: 36px;
    height: 36px;
}

/* Card hover → icon shift + rotation */
.card-hover:hover .icon-container {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: scale(1.08) rotate(8deg);
}

/* ============================================
   Connecting Line (Process Steps)
   ============================================ */

.steps-connected {
    position: relative;
}
.steps-connected::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
    opacity: 0.3;
    z-index: 0;
}
.steps-connected--horizontal::before {
    top: 35px;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}

/* Step number circles */
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-hero);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.step-circle svg,
.step-circle i {
    width: 24px;
    height: 24px;
}

/* ============================================
   Buttons — Enhanced with bounce
   ============================================ */

.btn-primary-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-hero);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.btn-primary-new:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-accent);
    color: var(--navy);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* ============================================
   Enhanced Link Underline
   ============================================ */

.link-underline {
    position: relative;
    text-decoration: none;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s var(--ease-out);
}
.link-underline:hover::after {
    width: 100%;
}

/* ============================================
   Pricing Card Glow
   ============================================ */

.pricing-glow {
    position: relative;
}
.pricing-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    filter: blur(8px);
}
.pricing-glow:hover::after,
.pricing-glow.featured::after {
    opacity: 1;
}

/* Badge for "Most Popular" etc */
.badge-popular {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gradient-accent);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    animation: pulse-badge 2s ease-in-out infinite;
}

/* ============================================
   Investment / CTA Boxes — Amber Accent
   ============================================ */

.investment-box {
    position: relative;
    border: 2px solid var(--accent);
    border-radius: 16px;
    overflow: hidden;
}
.investment-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(251,191,36,0.03));
    pointer-events: none;
}
.investment-box::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    background: rgba(245, 158, 11, 0.08);
    filter: blur(20px);
    z-index: -1;
}

/* ============================================
   Pull-Quote (About page)
   ============================================ */

.pull-quote {
    position: relative;
    padding: 24px 32px;
    margin: 32px 0;
    border-left: 4px solid var(--accent);
    background: var(--surface-warm);
    border-radius: 0 12px 12px 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ============================================
   Form Focus Enhancement
   ============================================ */

.input-enhanced {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-enhanced:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow-md) !important;
    outline: none;
}

/* ============================================
   Background Patterns
   ============================================ */

.bg-dots {
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-surface-alt {
    background-color: var(--surface-alt);
}

.bg-surface-warm {
    background-color: var(--surface-warm);
}

.bg-navy {
    background: var(--gradient-cta);
    color: #fff;
}

/* ============================================
   Testimonial Enhancement
   ============================================ */

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: Georgia, serif;
    margin-bottom: -12px;
    display: block;
}

/* ============================================
   FAQ Chevron (replaces + character)
   ============================================ */

.faq-chevron {
    transition: transform 0.3s var(--ease-out);
    color: var(--primary);
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

/* Smooth FAQ height animation */
.faq-answer {
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.3s ease;
}
.faq-answer-inner {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.faq-item.active .faq-answer-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Counter Animation
   ============================================ */

.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   Constellation Canvas
   ============================================ */

.constellation-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ============================================
   Typography Refinements
   ============================================ */

.heading-tight {
    line-height: 1.15;
    letter-spacing: -0.03em;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero-orb--lg { width: 180px; height: 180px; }
    .hero-orb--md { width: 120px; height: 120px; }
    .hero-orb--sm { width: 70px; height: 70px; }

    .section-divider svg { height: 30px; }

    .steps-connected::before {
        left: 28px;
    }
    .step-circle {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    .icon-container {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .icon-container svg,
    .icon-container i {
        width: 24px;
        height: 24px;
    }

    .icon-container--lg {
        width: 56px;
        height: 56px;
    }

    .pull-quote {
        padding: 16px 20px;
        font-size: 1.05rem;
    }

    /* Split hero → stack on mobile */
    .hero-split {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .hero-split-content {
        text-align: center;
    }
    .hero-trust-row {
        justify-content: center;
    }
    .hero-score-card,
    .hero-report-card,
    .hero-browser-card {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .animate-on-scroll {
        transform: translateY(20px);
    }
    .animate-on-scroll.from-left { transform: translateX(-20px); }
    .animate-on-scroll.from-right { transform: translateX(20px); }

    .hero-mini-badge { display: none; }
}
