/* ==========================================================================
   PROP FIRM PROFILE - PREMIUM FINTECH DESIGN
   A luxurious dark theme with dramatic glows, glassmorphism, and animations
   ========================================================================== */

/* FONTS - Premium typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Sora:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Playfair+Display:wght@600;700&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Core palette */
    --pf-bg-dark: #030712;
    --pf-bg-deeper: #010409;
    --pf-bg-panel: rgba(15, 23, 42, 0.65);
    --pf-bg-panel-hover: rgba(20, 30, 55, 0.75);
    --pf-bg-glass: rgba(255, 255, 255, 0.03);
    --pf-bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Borders */
    --pf-border-light: rgba(148, 163, 184, 0.15);
    --pf-border-glow: rgba(56, 189, 248, 0.3);
    --pf-border-accent: rgba(251, 191, 36, 0.4);
    
    /* Primary brand colors */
    --pf-primary: #38bdf8;
    --pf-primary-dark: #0ea5e9;
    --pf-primary-light: #7dd3fc;
    --pf-primary-glow: rgba(56, 189, 248, 0.5);
    --pf-primary-subtle: rgba(56, 189, 248, 0.1);
    
    /* Accent colors */
    --pf-accent-gold: #fbbf24;
    --pf-accent-gold-glow: rgba(251, 191, 36, 0.4);
    --pf-accent-emerald: #34d399;
    --pf-accent-emerald-glow: rgba(52, 211, 153, 0.4);
    --pf-accent-violet: #a78bfa;
    --pf-accent-violet-glow: rgba(167, 139, 250, 0.4);
    --pf-accent-rose: #fb7185;
    --pf-accent-rose-glow: rgba(251, 113, 133, 0.4);
    
    /* Text colors */
    --pf-text-main: #f8fafc;
    --pf-text-secondary: #e2e8f0;
    --pf-text-muted: #94a3b8;
    --pf-text-dim: #64748b;
    
    /* Typography */
    --pf-font-head: 'Sora', sans-serif;
    --pf-font-body: 'Outfit', sans-serif;
    --pf-font-mono: 'DM Mono', monospace;
    --pf-font-display: 'Playfair Display', serif;
    
    /* Spacing scale */
    --pf-space-xs: 4px;
    --pf-space-sm: 8px;
    --pf-space-md: 16px;
    --pf-space-lg: 24px;
    --pf-space-xl: 32px;
    --pf-space-2xl: 48px;
    --pf-space-3xl: 64px;
    
    /* Border radius */
    --pf-radius-sm: 8px;
    --pf-radius-md: 12px;
    --pf-radius-lg: 20px;
    --pf-radius-xl: 28px;
    --pf-radius-full: 9999px;
    
    /* Shadows */
    --pf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --pf-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --pf-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --pf-shadow-glow: 0 0 40px var(--pf-primary-glow);
    --pf-shadow-gold: 0 0 30px var(--pf-accent-gold-glow);
    
    /* Transitions */
    --pf-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
.pf-wrap *,
.pf-wrap *::before,
.pf-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pf-wrap {
    position: relative;
    min-height: auto;
    background: var(--pf-bg-dark);
    color: var(--pf-text-main);
    font-family: var(--pf-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   ANIMATED BACKGROUND
   ========================================================================== */
.pf-wrap::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(56, 189, 248, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(167, 139, 250, 0.08), transparent 40%),
        radial-gradient(ellipse 50% 60% at 70% 80%, rgba(251, 191, 36, 0.06), transparent 45%),
        radial-gradient(ellipse 40% 30% at 10% 90%, rgba(52, 211, 153, 0.05), transparent 35%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 20s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}
    100% { opacity: 0.7; transform: scale(1.1); }
}

/* Noise texture overlay */
.pf-wrap::after {
    content: '';
    position: fixed;
    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)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.pf-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--pf-space-lg);
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.pf-mono {
    font-family: var(--pf-font-mono);
    letter-spacing: -0.02em;
}

.pf-gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--pf-primary-light) 50%, var(--pf-accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.pf-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--pf-space-sm);
    padding: 14px 28px;
    border: none;
    border-radius: var(--pf-radius-md);
    font-family: var(--pf-font-head);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--pf-transition-base);
    isolation: isolate;
}

.pf-btn-glow {
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
    color: var(--pf-bg-dark) !important;
    padding: 16px 34px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 6px 25px var(--pf-primary-glow),
        0 0 70px rgba(56, 189, 248, 0.25);
}

.pf-btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--pf-transition-fast);
}

.pf-btn-glow:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 10px 35px var(--pf-primary-glow),
        0 0 90px rgba(56, 189, 248, 0.35);
}

.pf-btn-glow:hover::before {
    opacity: 1;
}

.pf-btn-glow:active {
    transform: translateY(-1px) scale(0.99);
}

.pf-btn-outline {
    background: var(--pf-bg-glass);
    border: 1px solid var(--pf-border-light);
    color: var(--pf-text-secondary) !important;
    backdrop-filter: blur(12px);
}

.pf-btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pf-primary-subtle) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--pf-transition-base);
}

.pf-btn-outline:hover {
    border-color: var(--pf-primary);
    color: var(--pf-text-main) !important;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.pf-btn-outline:hover::before {
    opacity: 1;
}

/* Button arrow animation */
.pf-btn-glow::after,
.pf-btn-outline::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.pf-hero-header {
    position: relative;
    padding: var(--pf-space-3xl) 0 var(--pf-space-2xl);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--pf-space-2xl);
    align-items: center;
}

/* Decorative line behind hero */
.pf-hero-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100vw;
    right: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pf-border-light), transparent);
    transform: translateY(-50%);
}

.pf-hero-title {
    position: relative;
}

.pf-hero-title h1 {
    font-family: var(--pf-font-head);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 var(--pf-space-lg) 0;
    color: #fff;
}

/* Floating particles decoration */
.pf-hero-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--pf-primary-glow) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.6;
    animation: floatGlow 6s ease-in-out infinite;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -15px) scale(1.1); }
}

/* Hero meta badges */
.pf-hero-meta {
    display: flex;
    gap: var(--pf-space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--pf-space-lg);
}

.pf-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--pf-bg-glass);
    border: 1px solid var(--pf-border-light);
    border-radius: var(--pf-radius-full);
    font-size: 0.875rem;
    color: var(--pf-text-muted);
    backdrop-filter: blur(8px);
    transition: all var(--pf-transition-base);
}

.pf-hero-meta span:hover {
    border-color: var(--pf-primary);
    color: var(--pf-text-secondary);
    background: var(--pf-primary-subtle);
}

/* Updated date styling */
.pf-hero-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: var(--pf-space-lg);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--pf-radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pf-accent-emerald);
}

.pf-hero-updated::before {
    content: '●';
    font-size: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Tagline paragraph */
.pf-hero-title > p {
    font-size: 1.125rem !important;
    line-height: 1.7;
    color: var(--pf-text-muted) !important;
    max-width: 520px;
    margin-bottom: var(--pf-space-xl) !important;
}

/* Hero actions */
.pf-hero-actions {
    display: flex;
    gap: var(--pf-space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   HERO RATING CARD (Right side)
   ========================================================================== */
.pf-hero-rating {
    position: relative;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-radius: var(--pf-radius-xl);
    padding: var(--pf-space-xl);
    border: 1px solid var(--pf-border-light);
    text-align: center;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all var(--pf-transition-base);
}

.pf-hero-rating::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pf-primary-subtle) 0%, transparent 50%, var(--pf-accent-gold-glow) 100%);
    opacity: 0.3;
    transition: opacity var(--pf-transition-base);
}

/* Animated border glow */
.pf-hero-rating::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--pf-primary),
        var(--pf-accent-gold),
        var(--pf-accent-violet),
        var(--pf-primary),
        transparent
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--pf-transition-base);
}

/* Logo in rating card */
.pf-hero-logo {
    display: inline-flex;
    margin-bottom: var(--pf-space-lg);
    position: relative;
    z-index: 1;
}

.pf-hero-logo--rating {
    margin-bottom: var(--pf-space-lg);
}

.pf-hero-logo img {
    max-height: 100px;
    width: auto;
    border-radius: var(--pf-radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all var(--pf-transition-spring);
}

.pf-hero-logo:hover img {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px var(--pf-primary-glow);
}

.pf-hero-logo--rating img {
    max-height: 110px;
}

/* Rating number */
.pf-hero-rating > div:nth-child(2) {
    position: relative;
    z-index: 1;
    font-family: var(--pf-font-display) !important;
    font-size: 4rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #fff 30%, var(--pf-accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(251, 191, 36, 0.3);
}

/* Star rating */
.pf-hero-rating > div:nth-child(3) {
    position: relative;
    z-index: 1;
    font-size: 1.5rem !important;
    letter-spacing: 4px !important;
    color: var(--pf-accent-gold) !important;
    filter: drop-shadow(0 0 8px var(--pf-accent-gold-glow));
}

/* Review count — Trustpilot link */
.pf-reviews-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin-top: var(--pf-space-sm);
    font-size: 0.85rem;
    color: var(--pf-text-muted);
    text-decoration: none;
    transition: color var(--pf-transition-fast);
}

.pf-reviews-link:hover {
    color: var(--pf-primary-light);
}

.pf-reviews-link svg {
    opacity: 0.6;
    transition: opacity var(--pf-transition-fast);
}

.pf-reviews-link:hover svg {
    opacity: 1;
}

/* Visit Website CTA in rating card */
.pf-btn-glow--rating {
    position: relative;
    z-index: 1;
    margin-top: var(--pf-space-lg);
    width: 100%;
    text-align: center;
}

/* Trustpilot quick stats */
.pf-tp-quickstats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: var(--pf-space-md);
    margin-top: var(--pf-space-md);
    padding-top: var(--pf-space-md);
    border-top: 1px solid var(--pf-border-light);
}

.pf-tp-quickstats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: help;
    padding: 8px 12px;
    border-radius: var(--pf-radius-sm);
    transition: all var(--pf-transition-fast);
}

.pf-tp-quickstats__item:hover {
    background: var(--pf-bg-glass);
}

.pf-tp-quickstats__value {
    font-family: var(--pf-font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--pf-accent-emerald);
}

.pf-tp-quickstats__window {
    font-size: 0.7rem;
    color: var(--pf-text-dim);
}

/* ==========================================================================
   METRICS GRID
   ========================================================================== */
.pf-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--pf-space-md);
    margin-bottom: var(--pf-space-3xl);
}

.pf-metric-card {
    position: relative;
    background: var(--pf-bg-panel);
    border: 1px solid var(--pf-border-light);
    border-radius: var(--pf-radius-lg);
    padding: var(--pf-space-lg);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: all var(--pf-transition-base);
}

/* Hover glow effect */
.pf-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pf-primary), var(--pf-accent-violet), var(--pf-accent-gold));
    opacity: 0;
    transition: opacity var(--pf-transition-base);
}

.pf-metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--pf-border-glow);
    box-shadow: var(--pf-shadow-glow);
}

.pf-metric-card:hover::before {
    opacity: 1;
}

/* Staggered card colors */
.pf-metric-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--pf-primary), var(--pf-primary-light));
}
.pf-metric-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--pf-accent-emerald), #6ee7b7);
}
.pf-metric-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--pf-accent-violet), #c4b5fd);
}
.pf-metric-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--pf-accent-gold), #fcd34d);
}

.pf-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pf-text-dim);
    margin-bottom: var(--pf-space-sm);
}

.pf-metric-card--link {
    text-decoration: none;
    color: inherit;
}

.pf-metric-card--link:hover {
    color: inherit;
}

.pf-metric-link {
    color: inherit;
    text-decoration: none;
}

.pf-metric-link:hover {
    color: var(--pf-text-secondary);
}

.pf-metric-value {
    font-family: var(--pf-font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pf-text-main);
    line-height: 1.2;
    overflow-wrap: anywhere;
    transition: all var(--pf-transition-base);
}

.pf-metric-value--secondary {
    font-size: 1.35rem;
    margin-top: 0;
}

.pf-metric-card:hover .pf-metric-value {
    color: #fff;
}

.pf-metric-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pf-accent-emerald);
    margin-top: auto;
    padding-top: var(--pf-space-sm);
    opacity: 0.9;
}

.pf-metric-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

.pf-metric-row + .pf-metric-row {
    margin-top: 8px;
}

.pf-metric-row .pf-metric-sub {
    margin-top: 2px;
    padding-top: 0;
}

.pf-metric-sub--link {
    color: var(--pf-accent-emerald);
    text-decoration: none;
}

.pf-metric-sub--link:hover {
    color: var(--pf-text-main);
}

.pf-metric-card--leverage .pf-metric-sub {
    margin-top: 2px;
    padding-top: 0;
}

/* Platform icons */
.pf-metric-card--platforms .pf-platform-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--pf-space-sm);
}

.pf-metric-card--platforms .pf-platform-icons img,
.pf-metric-card--platforms .pf-platform-icons .pf-gfx img {
    max-height: 24px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all var(--pf-transition-base);
}

.pf-metric-card--platforms:hover .pf-platform-icons img {
    filter: drop-shadow(0 4px 8px rgba(56, 189, 248, 0.3));
}

.pf-metric-card--platforms .pf-gfx {
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   STICKY NAVIGATION BAR
   ========================================================================== */
.pf-sticky-bar {
    position: sticky;
    top: 16px;
    z-index: 100;
    max-width: fit-content;
    margin: 0 auto var(--pf-space-2xl);
    padding: 8px 12px;
    background: rgba(3, 7, 18, 0.85);
    border: 1px solid var(--pf-border-light);
    border-radius: var(--pf-radius-full);
    backdrop-filter: blur(20px) saturate(1.5);
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.pf-nav-pill {
    position: relative;
    padding: 10px 18px;
    border-radius: var(--pf-radius-full);
    font-family: var(--pf-font-head);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pf-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--pf-transition-base);
    overflow: hidden;
}

.pf-nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
    opacity: 0;
    border-radius: inherit;
    transition: opacity var(--pf-transition-base);
}

.pf-nav-pill:hover {
    color: var(--pf-text-secondary);
}

.pf-nav-pill:hover::before {
    opacity: 1;
}

.pf-nav-pill.active {
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    color: var(--pf-bg-dark);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.pf-nav-pill.active::before {
    display: none;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */
.pf-sections {
    display: flex;
    flex-direction: column;
    gap: var(--pf-space-lg);
}

/* ==========================================================================
   PANEL CARDS
   ========================================================================== */
.pf-panel {
    position: relative;
    background: var(--pf-bg-panel);
    border: 1px solid var(--pf-border-light);
    border-radius: var(--pf-radius-xl);
    padding: var(--pf-space-xl);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: all var(--pf-transition-base);
}

/* Decorative corner accent */
.pf-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pf-primary) 0%, transparent 60%);
    opacity: 0.15;
    border-radius: var(--pf-radius-xl) 0 0 0;
    transition: all var(--pf-transition-base);
}

.pf-panel:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(56, 189, 248, 0.1) inset;
}

.pf-panel:hover::before {
    opacity: 0.25;
    width: 120px;
    height: 120px;
}

/* Section headings */
.pf-panel h2 {
    position: relative;
    font-family: var(--pf-font-head);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--pf-space-lg) 0;
    display: flex;
    align-items: center;
    gap: var(--pf-space-md);
    color: var(--pf-text-main);
}

.pf-panel h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--pf-primary) 0%, var(--pf-accent-violet) 100%);
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--pf-primary-glow);
}

/* Subheadings in panels */
.pf-panel h3 {
    font-family: var(--pf-font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pf-text-secondary);
    margin: var(--pf-space-lg) 0 var(--pf-space-sm) 0;
    padding-bottom: var(--pf-space-sm);
    border-bottom: 1px solid var(--pf-border-light);
}

/* Panel content styling */
.pf-panel > div {
    color: var(--pf-text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.pf-panel p {
    margin: 0 0 var(--pf-space-md) 0;
}

.pf-panel p:last-child {
    margin-bottom: 0;
}

.pf-panel ul,
.pf-panel ol {
    margin: 0 0 var(--pf-space-md) 0;
    padding-left: var(--pf-space-lg);
}

.pf-panel li {
    margin-bottom: var(--pf-space-sm);
    position: relative;
}

.pf-panel li::marker {
    color: var(--pf-primary);
}

.pf-panel strong {
    color: var(--pf-text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   SPECS TABLE
   ========================================================================== */
.pf-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.pf-specs-table tr {
    transition: background var(--pf-transition-fast);
}

.pf-specs-table tr:hover {
    background: var(--pf-bg-glass);
}

.pf-specs-table td {
    padding: var(--pf-space-md) var(--pf-space-sm);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.95rem;
    vertical-align: top;
}

.pf-specs-table tr:last-child td {
    border-bottom: none;
}

.pf-specs-table td:first-child {
    color: var(--pf-text-muted);
    width: 35%;
    font-weight: 500;
}

.pf-specs-table td:last-child {
    text-align: right;
    font-family: var(--pf-font-mono);
    color: var(--pf-text-main);
    font-weight: 500;
}

/* Detail variant */
.pf-specs-table--detail td:last-child {
    text-align: left;
    font-family: var(--pf-font-body);
    color: var(--pf-text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.pf-specs-table--detail td:last-child p {
    margin: 0 0 var(--pf-space-sm);
}

.pf-specs-table--detail td:last-child p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */
.pf-compare-card {
    position: relative;
    background: linear-gradient(145deg, rgba(5, 11, 30, 0.95) 0%, rgba(2, 6, 23, 0.95) 100%);
    border: 2px solid transparent;
    border-radius: var(--pf-radius-xl);
    padding: var(--pf-space-2xl);
    text-align: center;
    overflow: hidden;
}

/* Animated gradient border */
.pf-compare-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-accent-violet), var(--pf-accent-gold), var(--pf-primary));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Inner background to hide the gradient except at border */
.pf-compare-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(145deg, rgba(5, 11, 30, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
    border-radius: calc(var(--pf-radius-xl) - 2px);
    z-index: -1;
}

.pf-compare-content {
    position: relative;
    z-index: 1;
}

.pf-vs-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--pf-space-lg);
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pf-font-head);
    font-size: 1.25rem;
    font-weight: 900;
    font-style: italic;
    color: var(--pf-text-main);
    box-shadow: 
        0 0 40px var(--pf-primary-glow),
        0 8px 24px rgba(0, 0, 0, 0.4);
    animation: vsPulse 3s ease-in-out infinite;
}

@keyframes vsPulse {
    0%, 100% { box-shadow: 0 0 40px var(--pf-primary-glow), 0 8px 24px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 0 60px var(--pf-primary-glow), 0 8px 24px rgba(0, 0, 0, 0.4); }
}

.pf-compare-card h2 {
    justify-content: center;
    margin-bottom: var(--pf-space-sm) !important;
    color: #fff !important;
    font-size: 1.75rem;
}

.pf-compare-card h2::before {
    display: none;
}

.pf-compare-card > .pf-compare-content > p {
    color: var(--pf-text-dim);
    margin-bottom: var(--pf-space-lg);
    font-size: 1rem;
}

/* Comparison checkbox list */
.pf-compare-card > .pf-compare-content > div {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--pf-border-light);
    border-radius: var(--pf-radius-md);
    padding: var(--pf-space-sm);
    text-align: left;
    margin-bottom: var(--pf-space-lg);
}

.pf-cmp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px var(--pf-space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--pf-transition-fast);
    border-radius: var(--pf-radius-sm);
}

.pf-cmp-row:last-child {
    border-bottom: none;
}

.pf-cmp-row:hover {
    background: rgba(56, 189, 248, 0.05);
}

.pf-cmp-row label {
    display: flex;
    align-items: center;
    gap: var(--pf-space-sm);
    color: var(--pf-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--pf-transition-fast);
}

.pf-cmp-row label:hover {
    color: var(--pf-text-main);
}

/* Checkbox styling */
.pf-cmp-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--pf-border-light);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all var(--pf-transition-fast);
}

.pf-cmp-row input[type="checkbox"]:hover {
    border-color: var(--pf-primary);
}

.pf-cmp-row input[type="checkbox"]:checked {
    background: var(--pf-primary);
    border-color: var(--pf-primary);
}

.pf-cmp-row input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--pf-bg-dark);
    font-size: 12px;
    font-weight: bold;
}

.pf-cmp-row input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   TECH LIST (alternate layout)
   ========================================================================== */
.pf-tech-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pf-space-md);
}

.pf-tech-item {
    background: var(--pf-bg-glass);
    padding: var(--pf-space-md);
    border-radius: var(--pf-radius-md);
    border-left: 3px solid var(--pf-primary);
    transition: all var(--pf-transition-base);
}

.pf-tech-item:hover {
    background: var(--pf-bg-glass-hover);
    border-left-color: var(--pf-accent-gold);
    transform: translateX(4px);
}

.pf-tech-item strong {
    display: block;
    color: var(--pf-text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
}

.pf-tech-item span {
    font-size: 0.875rem;
    color: var(--pf-text-muted);
}

/* ==========================================================================
   TAGS
   ========================================================================== */
.pf-hero-tags {
    display: flex;
    gap: var(--pf-space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--pf-space-lg);
}

.pf-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--pf-primary-subtle) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--pf-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pf-primary-light);
    transition: all var(--pf-transition-base);
}

.pf-tag:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
    border-color: var(--pf-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   BENTO GRID (if used)
   ========================================================================== */
.pf-bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--pf-space-lg);
    margin-bottom: var(--pf-space-2xl);
}

/* ==========================================================================
   CHIPS (for comma-separated values)
   ========================================================================== */
.pf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pf-space-sm);
}

.pf-chip {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--pf-bg-glass);
    border: 1px solid var(--pf-border-light);
    border-radius: var(--pf-radius-full);
    font-size: 0.8rem;
    color: var(--pf-text-muted);
}

/* ==========================================================================
   FEEDBACK SECTION STYLING
   ========================================================================== */
#sec-feedback .pf-feedback-empty {
    padding: var(--pf-space-xl);
    background: rgba(56, 189, 248, 0.05);
    border: 1px dashed rgba(56, 189, 248, 0.3);
    border-radius: var(--pf-radius-md);
    text-align: center;
    color: var(--pf-text-muted);
}

#sec-feedback form {
    margin-top: var(--pf-space-xl);
    padding-top: var(--pf-space-xl);
    border-top: 1px solid var(--pf-border-light);
}

#sec-feedback h3,
#sec-feedback .feedback-form-title {
    font-family: var(--pf-font-head);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pf-text-main);
    margin-bottom: var(--pf-space-md);
}

#sec-feedback label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pf-text-dim);
    margin-bottom: var(--pf-space-sm);
}

#sec-feedback textarea,
#sec-feedback input[type="text"],
#sec-feedback input[type="email"] {
    width: 100%;
    padding: var(--pf-space-md);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--pf-border-light);
    border-radius: var(--pf-radius-md);
    color: var(--pf-text-main);
    font-family: var(--pf-font-body);
    font-size: 0.95rem;
    transition: all var(--pf-transition-base);
    resize: vertical;
}

#sec-feedback textarea:focus,
#sec-feedback input[type="text"]:focus,
#sec-feedback input[type="email"]:focus {
    outline: none;
    border-color: var(--pf-primary);
    box-shadow: 0 0 0 3px var(--pf-primary-subtle);
}

#sec-feedback textarea::placeholder,
#sec-feedback input::placeholder {
    color: var(--pf-text-dim);
}

#sec-feedback button[type="submit"] {
    margin-top: var(--pf-space-md);
    padding: var(--pf-space-md) var(--pf-space-xl);
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
    border: none;
    border-radius: var(--pf-radius-md);
    color: var(--pf-bg-dark);
    font-family: var(--pf-font-head);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--pf-transition-base);
    box-shadow: 0 4px 16px var(--pf-primary-glow);
}

#sec-feedback button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--pf-primary-glow);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.pf-section {
    animation: fadeInUp 0.6s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for sections */
.pf-section:nth-child(1) { animation-delay: 0.05s; }
.pf-section:nth-child(2) { animation-delay: 0.1s; }
.pf-section:nth-child(3) { animation-delay: 0.15s; }
.pf-section:nth-child(4) { animation-delay: 0.2s; }
.pf-section:nth-child(5) { animation-delay: 0.25s; }
.pf-section:nth-child(6) { animation-delay: 0.3s; }
.pf-section:nth-child(7) { animation-delay: 0.35s; }
.pf-section:nth-child(8) { animation-delay: 0.4s; }
.pf-section:nth-child(9) { animation-delay: 0.45s; }
.pf-section:nth-child(10) { animation-delay: 0.5s; }

/* ==========================================================================
   SELECTION STYLING
   ========================================================================== */
.pf-wrap ::selection {
    background: var(--pf-primary);
    color: var(--pf-bg-dark);
}

/* ==========================================================================
   SCROLLBAR STYLING
   ========================================================================== */
.pf-wrap ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pf-wrap ::-webkit-scrollbar-track {
    background: var(--pf-bg-deeper);
}

.pf-wrap ::-webkit-scrollbar-thumb {
    background: var(--pf-border-light);
    border-radius: 4px;
}

.pf-wrap ::-webkit-scrollbar-thumb:hover {
    background: var(--pf-text-dim);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .pf-hero-header {
        grid-template-columns: 1fr;
        gap: var(--pf-space-xl);
        text-align: center;
    }
    
    .pf-hero-title::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .pf-hero-meta {
        justify-content: center;
    }
    
    .pf-hero-actions {
        justify-content: center;
    }
    
    .pf-hero-title > p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .pf-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pf-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .pf-tech-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }
    
    .pf-container {
        padding: 0 var(--pf-space-md);
    }
    
    .pf-hero-header {
        padding: var(--pf-space-xl) 0;
    }
    
    .pf-hero-title h1 {
        font-size: 2.5rem;
    }
    
    .pf-hero-rating {
        padding: var(--pf-space-lg);
    }
    
    .pf-sticky-bar {
        position: relative;
        top: 0;
        border-radius: 0;
        margin: 0 calc(-1 * var(--pf-space-md)) var(--pf-space-xl);
        padding: var(--pf-space-sm);
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .pf-sticky-bar::-webkit-scrollbar {
        display: none;
    }
    
    .pf-nav-pill {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .pf-panel {
        padding: var(--pf-space-lg);
        border-radius: var(--pf-radius-lg);
    }
    
    .pf-panel h2 {
        font-size: 1.25rem;
    }
    
    .pf-specs-table td:first-child {
        width: 45%;
    }
    
    .pf-compare-card {
        padding: var(--pf-space-xl);
    }
}

@media (max-width: 480px) {
    .pf-hero-title h1 {
        font-size: 2rem;
    }
    
    .pf-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .pf-metric-card {
        padding: var(--pf-space-md);
    }
    
    .pf-hero-actions {
        flex-direction: column;
    }
    
    .pf-hero-actions .pf-btn {
        width: 100%;
    }
    
    .pf-hero-meta span {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .pf-tp-quickstats {
        flex-direction: column;
        gap: var(--pf-space-sm);
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .pf-wrap {
        background: #fff;
        color: #000;
    }
    
    .pf-wrap::before,
    .pf-wrap::after {
        display: none;
    }
    
    .pf-sticky-bar {
        display: none;
    }
    
    .pf-panel {
        background: #fff;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .pf-btn {
        display: none;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   FOCUS STATES (Accessibility)
   ========================================================================== */
.pf-wrap a:focus-visible,
.pf-wrap button:focus-visible,
.pf-wrap input:focus-visible,
.pf-wrap textarea:focus-visible {
    outline: 2px solid var(--pf-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   CLOSED FIRM — BANNER & PROFILE STYLES
   ========================================================================== */

/* Closed banner at top of firm profile */
.pf-closed-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.pf-closed-banner__icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    color: #ef4444;
}

.pf-closed-banner__text strong {
    display: block;
    font-family: var(--pf-font-head, 'Sora', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 6px;
}

.pf-closed-banner__text p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Disabled Visit button on firm profile */
.pf-btn.pf-btn--closed {
    display: inline-block;
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid rgba(100, 116, 139, 0.2);
    padding: 12px 28px;
    border-radius: 10px;
    font-family: var(--pf-font-head, 'Sora', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 16px;
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */

