/**
 * PakalaTax — Microsoft-Style Glass UI & Grid System
 * Premium glassmorphism, gradient backgrounds, floating elements,
 * smooth transitions, and corporate-grade visual design.
 *
 * @package PakalaTax
 * @version 14.3.1
 */

/* =========================================
   1. CSS CUSTOM PROPERTIES — Glass System
   ========================================= */

:root {
    /* Glass tokens */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-dark: rgba(10, 25, 47, 0.75);
    --glass-bg-accent: rgba(30, 115, 190, 0.08);
    --glass-blur: 20px;
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-border-dark: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --glass-radius: 16px;
    --glass-radius-lg: 24px;
    --glass-radius-sm: 12px;

    /* Gradient system */
    --grad-hero: linear-gradient(135deg, #0A192F 0%, var(--gradient-navy-mid, #0B3D91) 40%, #1E73BE 100%);
    --grad-hero-gold: linear-gradient(135deg, #0A192F 0%, #1a2a4a 50%, #2a1a0a 100%);
    --grad-mesh-1: radial-gradient(circle at 20% 50%, rgba(30, 115, 190, 0.15) 0%, transparent 50%),
                   radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                   radial-gradient(circle at 50% 80%, rgba(11, 61, 145, 0.12) 0%, transparent 50%);
    --grad-mesh-2: radial-gradient(circle at 70% 30%, rgba(30, 115, 190, 0.12) 0%, transparent 40%),
                   radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    --grad-section-light: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 50%, #F5F7FA 100%);
    --grad-section-blue: linear-gradient(180deg, #EEF4FB 0%, #F8F9FA 100%);
    --grad-card-shine: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);

    /* Floating orb system */
    --orb-1: rgba(30, 115, 190, 0.08);
    --orb-2: rgba(212, 175, 55, 0.06);
    --orb-3: rgba(11, 61, 145, 0.07);

    /* Spacing rhythm */
    --section-gap: 100px;
    --card-gap: 24px;

    /* Transition presets */
    --ease-out-expo: ease;
    --ease-spring: ease;
    --ease-smooth: ease;
    --duration-fast: 0.3s;
    --duration-normal: 0.5s;
    --duration-slow: 0.8s;
}

/* =========================================
   2. GLASS CARD SYSTEM
   ========================================= */

/* --- Base Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                border-color var(--duration-normal) ease;
}

.glass-card::before {
    display: none; /* Shine sweep removed for simplicity */
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(30, 115, 190, 0.3);
}

.glass-card:hover::before {
    /* shine sweep removed */
}

/* Card content stays above shine */
.glass-card > * {
    position: relative;
    z-index: 2;
}

/* --- Glass Card Variants --- */

/* Dark glass */
.glass-card-dark {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
    color: #fff;
}

.glass-card-dark h3,
.glass-card-dark h4 {
    color: #fff;
}

.glass-card-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* Accent glass — subtle blue tint */
.glass-card-accent {
    background: rgba(30, 115, 190, 0.06);
    border-color: rgba(30, 115, 190, 0.15);
}

.glass-card-accent:hover {
    background: rgba(30, 115, 190, 0.1);
    border-color: rgba(30, 115, 190, 0.3);
}

/* Gold accent */
.glass-card-gold {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.15);
}

.glass-card-gold:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

/* Feature card — larger, more prominent */
.glass-card-feature {
    padding: 48px 40px;
    border-radius: var(--glass-radius-lg);
}

/* Compact card */
.glass-card-compact {
    padding: 20px 24px;
    border-radius: var(--glass-radius-sm);
}

/* =========================================
   3. GLASS CARD — Icon Header
   ========================================= */

.glass-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.12), rgba(30, 115, 190, 0.04));
    color: var(--primary-cobalt);
    transition: transform var(--duration-fast) var(--ease-spring),
                background var(--duration-normal) ease;
}

.glass-card:hover .glass-card-icon {
    transform: scale(1.05);
}

.glass-card-icon.icon-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.04));
    color: var(--color-gold);
}

.glass-card-icon.icon-navy {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.15), rgba(10, 25, 47, 0.05));
    color: var(--color-navy);
}

/* =========================================
   4. GLASS GRID SYSTEM — Microsoft Grid Boxes
   ========================================= */

.glass-grid {
    display: grid;
    gap: var(--card-gap);
    padding: 0;
    list-style: none;
}

/* Standard 3-column grid */
.glass-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4-column grid */
.glass-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 2-column split */
.glass-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Feature layout — 1 large + 2 small */
.glass-grid-feature {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.glass-grid-feature > :first-child {
    grid-row: 1 / 3;
}

/* Microsoft-style bento grid */
.glass-grid-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
}

.glass-grid-bento > .bento-wide {
    grid-column: span 2;
}

.glass-grid-bento > .bento-tall {
    grid-row: span 2;
}

.glass-grid-bento > .bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Responsive grids */
@media (max-width: 1200px) {
    .glass-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .glass-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .glass-grid-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .glass-grid-3,
    .glass-grid-4,
    .glass-grid-2,
    .glass-grid-feature,
    .glass-grid-bento {
        grid-template-columns: 1fr;
    }
    .glass-grid-bento > .bento-wide,
    .glass-grid-bento > .bento-tall,
    .glass-grid-bento > .bento-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .glass-grid-feature > :first-child {
        grid-row: auto;
    }
}

/* =========================================
   5. GRADIENT HERO SECTIONS
   ========================================= */

.hero-gradient {
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
    color: #fff;
}

.hero-gradient-gold {
    background: var(--grad-hero-gold);
}

/* Mesh overlay for depth */
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh-1);
    pointer-events: none;
    z-index: 1;
}

/* Static decorative orb — no animation */
.hero-gradient::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 115, 190, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 1;
}

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

/* Static decorative orb #2 — no animation */
.hero-orb-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
    z-index: 1;
}

/* @keyframes floatOrb/floatOrb2 removed — static orbs now */

/* Hero stat pills — glass */
.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.hero-stat-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.hero-stat-pill i,
.hero-stat-pill .icon {
    color: var(--color-gold);
}

/* Hero floating visual */
.hero-float-visual {
    position: relative;
}

/* @keyframes heroFloat removed */

/* Hero floating cards stack */
.hero-float-stack {
    position: relative;
    perspective: 1000px;
}

.hero-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
}

.hero-float-card:nth-child(1) {
    transform: rotate(-5deg) translateZ(40px);
}

.hero-float-card:nth-child(2) {
    transform: rotate(3deg) translateZ(20px);
}

.hero-float-card:nth-child(3) {
    transform: rotate(-2deg) translateZ(60px);
}

/* @keyframes heroCardFloat1/2/3 removed */

/* =========================================
   6. SECTION BACKGROUNDS & MESH GRADIENTS
   ========================================= */

.section-mesh {
    position: relative;
    background: var(--grad-section-light);
}

/* When hero-gradient + section-mesh are combined, keep the dark hero gradient */
.hero-gradient.section-mesh {
    background: var(--grad-hero);
}

.section-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh-2);
    pointer-events: none;
}

.section-mesh > * {
    position: relative;
    z-index: 1;
}

.section-blue-tint {
    background: var(--grad-section-blue);
}

/* Dark section with floating orbs */
.section-dark-mesh {
    background: linear-gradient(180deg, #0A192F, #0f2440);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.section-dark-mesh::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--orb-1);
    top: -200px;
    right: -150px;
    filter: blur(80px);
    pointer-events: none;
}

.section-dark-mesh::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--orb-2);
    bottom: -100px;
    left: -100px;
    filter: blur(80px);
    pointer-events: none;
}

.section-dark-mesh > * {
    position: relative;
    z-index: 1;
}

/* =========================================
   7. FLOATING DECORATIVE ELEMENTS
   ========================================= */

.float-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(30, 115, 190, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
}

.float-dots-topright {
    top: 40px;
    right: 40px;
}

.float-dots-bottomleft {
    bottom: 40px;
    left: 40px;
}

.float-ring {
    position: absolute;
    border: 2px solid rgba(30, 115, 190, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.float-ring-1 {
    width: 200px;
    height: 200px;
    top: -60px;
    right: 10%;
}

.float-ring-2 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    left: 15%;
}

/* Floating line accents */
.float-line {
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30, 115, 190, 0.2), transparent);
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   8. GLASS STAT BOXES
   ========================================= */

.glass-stat-box {
    text-align: center;
    padding: 36px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) ease;
}

.glass-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
}

.glass-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cobalt), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 8px;
}

.glass-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Dark variant */
.glass-stat-box-dark {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
}

.glass-stat-box-dark .glass-stat-number {
    background: linear-gradient(135deg, #fff, var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-stat-box-dark .glass-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   9. HOVER EFFECTS — Microsoft-Style
   ========================================= */

/* Gradient border on hover */
.hover-gradient-border {
    position: relative;
}

.hover-gradient-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-cobalt), var(--color-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    pointer-events: none;
}

.hover-gradient-border:hover::after {
    opacity: 1;
}

/* Tilt on hover (JS-enhanced via data-tilt) */
.hover-tilt {
    transition: transform var(--duration-fast) var(--ease-smooth);
    transform-style: preserve-3d;
}

/* Spotlight reveal on hover */
.hover-spotlight {
    position: relative;
    overflow: hidden;
}

.hover-spotlight::before {
    display: none; /* Spotlight effect removed for simplicity */
}

/* Scale icon on card hover */
.hover-icon-scale .glass-card-icon i,
.hover-icon-scale .glass-card-icon svg {
    transition: transform var(--duration-fast) var(--ease-spring);
}

.hover-icon-scale:hover .glass-card-icon i,
.hover-icon-scale:hover .glass-card-icon svg {
    transform: scale(1.2);
}

/* Button glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    display: none; /* Glow removed for simplicity */
}

/* =========================================
   10. GLASS BUTTONS
   ========================================= */

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    text-decoration: none;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
}

.btn-glass-primary {
    background: linear-gradient(135deg, var(--primary-cobalt), #2a8ae0);
    border-color: rgba(30, 115, 190, 0.4);
}

.btn-glass-primary:hover {
    background: linear-gradient(135deg, #2a8ae0, var(--primary-cobalt));
}

.btn-glass-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--color-gold);
}

.btn-glass-gold:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.15));
    color: var(--color-gold);
}

/* Solid buttons with glass shine */
.btn-solid-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-cobalt);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    text-decoration: none;
}

.btn-solid-primary::before {
    display: none; /* Shine sweep removed for simplicity */
}

.btn-solid-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 115, 190, 0.35);
    color: #fff;
    text-decoration: none;
}

.btn-solid-primary:hover::before {
    /* sweep removed */
}

/* =========================================
   11. GLASS NAVIGATION BAR
   ========================================= */

.glass-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================
   12. GLASS TABS & NAVIGATION
   ========================================= */

.glass-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 4px;
}

.glass-tab {
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-expo);
    border: none;
    background: none;
}

.glass-tab:hover {
    color: var(--primary-cobalt);
    background: rgba(30, 115, 190, 0.06);
}

.glass-tab.active {
    background: #fff;
    color: var(--primary-cobalt);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* =========================================
   13. GLASS BADGES & TAGS
   ========================================= */

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(30, 115, 190, 0.08);
    border: 1px solid rgba(30, 115, 190, 0.12);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-cobalt);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-badge-gold {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
    color: #8B7420;
}

.glass-badge-dark {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   14. GLASS LIST / FEATURE LIST
   ========================================= */

.glass-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.glass-feature-item:hover {
    transform: translateX(4px);
    border-color: rgba(30, 115, 190, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.glass-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.1), rgba(30, 115, 190, 0.04));
    color: var(--primary-cobalt);
    font-size: 1rem;
}

/* =========================================
   15. TESTIMONIAL GLASS CARD
   ========================================= */

.glass-testimonial {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-lg);
    padding: 40px 36px;
    position: relative;
}

.glass-testimonial::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 32px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(30, 115, 190, 0.12);
    font-family: Georgia, serif;
}

.glass-testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 24px;
}

.glass-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.glass-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(30, 115, 190, 0.15);
}

/* =========================================
   16. PROCESS / TIMELINE — Glass Steps
   ========================================= */

.glass-process {
    position: relative;
    padding-left: 40px;
}

.glass-process::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-cobalt), var(--color-gold), transparent);
}

.glass-process-step {
    position: relative;
    margin-bottom: 32px;
    padding: 24px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.glass-process-step:hover {
    transform: translateX(4px);
    box-shadow: var(--glass-shadow);
}

.glass-process-step::before {
    content: attr(data-step);
    position: absolute;
    left: -40px;
    top: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cobalt), #2a8ae0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.3);
}

/* =========================================
   17. PRICING / PLAN GLASS CARDS
   ========================================= */

.glass-plan-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
}

.glass-plan-card.featured {
    border-color: var(--primary-cobalt);
    background: rgba(30, 115, 190, 0.04);
    transform: scale(1.04);
}

.glass-plan-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--primary-cobalt), #2a8ae0);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
}

.glass-plan-card.featured:hover {
    transform: scale(1.02) translateY(-3px);
}

.glass-plan-price {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cobalt), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 16px 0;
}

/* =========================================
   18. SECTION WAVE DIVIDERS
   ========================================= */

.wave-divider {
    position: relative;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.wave-divider-top {
    margin-bottom: -2px;
}

.wave-divider-bottom {
    margin-top: -2px;
}

/* =========================================
   19. ANIMATED GRADIENT TEXT
   ========================================= */

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cobalt), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Static gradient text */
.gradient-text-static {
    background: linear-gradient(135deg, var(--primary-cobalt), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   20. SERVICE PAGE GLASS OVERRIDES
   Service & Industry pages auto-enhance
   ========================================= */

/* All service cards become glass (specificity via body prefix instead of !important) */
body .wc-service-card,
body .wc-card,
body .wc-card-flat,
body .wc-resource-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    transition: transform var(--duration-normal) var(--ease-out-expo),
                box-shadow var(--duration-normal) ease,
                border-color var(--duration-normal) ease;
}

body .wc-service-card:hover,
body .wc-card:hover,
body .wc-card-flat:hover,
body .wc-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(30, 115, 190, 0.25);
}

/* Service icon circles → glass */
body .wc-service-card .wc-icon,
body .wc-service-card [class*="icon-circle"] {
    background: linear-gradient(135deg, rgba(30, 115, 190, 0.12), rgba(30, 115, 190, 0.04));
    border: 1px solid rgba(30, 115, 190, 0.1);
    transition: transform var(--duration-fast) var(--ease-spring);
}

body .wc-service-card:hover .wc-icon,
body .wc-service-card:hover [class*="icon-circle"] {
    transform: scale(1.05);
}

/* Section backgrounds enhanced */
body .wc-section-light {
    background: var(--grad-section-light);
    position: relative;
}

.wc-section-white {
    position: relative;
}

.wc-section-dark {
    position: relative;
    overflow: hidden;
}

/* Hero sections → gradient */
body .wc-hero {
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
}

.wc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh-1);
    pointer-events: none;
    z-index: 0;
}

.wc-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 115, 190, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
}

.wc-hero > * {
    position: relative;
    z-index: 1;
}

/* =========================================
   21. GLASSMORPHISM FORM ELEMENTS
   ========================================= */

.glass-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--duration-fast) ease;
    outline: none;
}

.glass-input:focus {
    border-color: var(--primary-cobalt);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.glass-input::placeholder {
    color: var(--text-muted);
}

/* Glass Input — Light variant (for light backgrounds like contact form) */
.glass-input-light {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary, #1a1a1a);
    transition: all 0.3s ease;
    outline: none;
}

.glass-input-light:focus {
    border-color: var(--primary-cobalt, #1E73BE);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.12);
    background: #fff;
}

.glass-input-light::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

select.glass-input-light {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.glass-input-light {
    resize: vertical;
    min-height: 100px;
}

/* =========================================
   22. GLASS ACCORDION / FAQ
   ========================================= */

.glass-accordion-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    transition: all var(--duration-fast) ease;
}

.glass-accordion-item:hover {
    border-color: rgba(30, 115, 190, 0.2);
}

.glass-accordion-header {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--duration-fast) ease;
}

.glass-accordion-header:hover {
    background: rgba(30, 115, 190, 0.04);
}

.glass-accordion-body {
    padding: 0 24px 18px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* =========================================
   23. SMOOTH PAGE TRANSITIONS
   ========================================= */

/* Page entrance */
.page-transition-in {
    animation: pageSlideIn 0.6s var(--ease-out-expo) forwards;
}

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

/* Content fade cascade */ 
.cascade-in > * {
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeItem 0.5s var(--ease-out-expo) forwards;
}

.cascade-in > *:nth-child(1) { animation-delay: 0.05s; }
.cascade-in > *:nth-child(2) { animation-delay: 0.1s; }
.cascade-in > *:nth-child(3) { animation-delay: 0.15s; }
.cascade-in > *:nth-child(4) { animation-delay: 0.2s; }
.cascade-in > *:nth-child(5) { animation-delay: 0.25s; }
.cascade-in > *:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes cascadeItem {
    to {
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   24. PARTICLE / DOT BACKGROUND (CSS-only)
   ========================================= */

.bg-particles {
    position: relative;
    overflow: hidden;
}

.bg-particles::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(30, 115, 190, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(30, 115, 190, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 70% 20%, rgba(11, 61, 145, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px, 350px 350px;
    /* animation removed for simplicity */
    pointer-events: none;
    z-index: 0;
}

.bg-particles > * {
    position: relative;
    z-index: 1;
}

/* @keyframes particleDrift removed */

/* =========================================
   25. RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
        --card-gap: 16px;
        --glass-blur: 12px;
        --glass-radius: 12px;
        --glass-radius-lg: 16px;
    }

    .hero-gradient {
        padding: 80px 0 60px;
    }

    .glass-card {
        padding: 24px 20px;
    }

    .glass-card-feature {
        padding: 32px 24px;
    }

    .glass-stat-number {
        font-size: 2rem;
    }

    .glass-plan-price {
        font-size: 2.5rem;
    }

    .hero-float-visual,
    .hero-float-stack {
        display: none;
    }

    .glass-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .glass-process {
        padding-left: 32px;
    }
}

/* =========================================
   25b. MOBILE SECTION HEIGHT — Compact dark sections
   Service templates use inline padding on dark hero &
   CTA sections. Override with !important on mobile to
   prevent all-dark viewport appearance.
   ========================================= */
@media (max-width: 768px) {
    /* Hero sections — reduce from ~110/90px to 80/50px */
    .site-main > section:first-child,
    main > section:first-child {
        padding-top: 80px !important;
        padding-bottom: 50px !important;
    }
    .site-main > section:first-child h1,
    main > section:first-child h1 {
        font-size: clamp(1.7rem, 5.5vw, 2.4rem) !important;
    }

    /* Dark CTA / Testimonial / Final-CTA sections */
    .site-main > section[style*="0A192F"],
    .site-main > section[style*="0D2B4A"],
    .site-main > section[style*="153D66"],
    main > section[style*="0A192F"],
    main > section[style*="0D2B4A"],
    main > section[style*="153D66"] {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Stats bars inside dark sections */
    .site-main > section[style*="0A192F"] .row.g-0,
    main > section[style*="0A192F"] .row.g-0 {
        gap: 0;
    }

    /* Light sections get more compact spacing too */
    .site-main > section[style*="f8f9fb"],
    .site-main > section[style*="f0f4f8"],
    main > section[style*="f8f9fb"],
    main > section[style*="f0f4f8"] {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Decorative orbs — reduce size & hide some on mobile */
    .site-main > section [style*="border-radius:50%"][style*="animation"],
    main > section [style*="border-radius:50%"][style*="animation"] {
        display: none !important;
    }

    /* Grid mesh backgrounds — remove on mobile for cleaner look */
    .site-main > section [style*="background-size:64px"],
    main > section [style*="background-size:64px"] {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .site-main > section:first-child,
    main > section:first-child {
        padding-top: 70px !important;
        padding-bottom: 40px !important;
    }
    .site-main > section:first-child h1,
    main > section:first-child h1 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }

    .site-main > section[style*="0A192F"],
    .site-main > section[style*="0D2B4A"],
    .site-main > section[style*="153D66"],
    main > section[style*="0A192F"],
    main > section[style*="0D2B4A"],
    main > section[style*="153D66"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .site-main > section[style*="f8f9fb"],
    .site-main > section[style*="f0f4f8"],
    main > section[style*="f8f9fb"],
    main > section[style*="f0f4f8"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* =========================================
   26. PRINT — Remove glass and animations
   ========================================= */

@media print {
    .glass-card,
    .glass-stat-box,
    .glass-testimonial,
    .glass-plan-card,
    .glass-feature-item,
    .glass-accordion-item {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .hero-gradient {
        background: var(--color-navy) !important;
    }

    .hero-gradient::before,
    .hero-gradient::after,
    .float-dots,
    .float-ring,
    .hero-orb-2,
    .bg-particles::before {
        display: none !important;
    }

    [data-motion] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================
   27. PREFERS-REDUCED-MOTION — Accessibility
   Disables all Glass UI animations for users who prefer reduced motion.
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    .glass-card::before,
    .glass-card:hover {
        animation: none !important;
        transition: none !important;
    }

    .hero-gradient::before,
    .hero-gradient::after {
        animation: none !important;
    }

    .glass-card:hover {
        transform: none !important;
    }

    .hero-float-card {
        animation: none !important;
    }

    .bg-particles::before {
        animation: none !important;
    }

    @keyframes floatOrb1 { from, to { transform: none; } }
    @keyframes floatOrb2 { from, to { transform: none; } }
    @keyframes gradientTextShift { from, to { background-position: 0; } }
    @keyframes particleDrift { from, to { transform: none; } }

    .cascade-in > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* =========================================
   28. MOBILE PERFORMANCE — Reduce compositor layers
   Disables backdrop-filter on mobile to prevent 20+
   GPU layers from glass cards on service grids.
   ========================================= */
@media (max-width: 768px) {
    .glass-card,
    body .wc-service-card,
    body .wc-card,
    body .wc-card-flat,
    body .wc-resource-card,
    .glass-stat-box,
    .glass-testimonial,
    .glass-accordion-item {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.97);
    }

    /* Dark variants MUST keep dark backgrounds on mobile */
    .glass-card-dark,
    .glass-stat-box-dark {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 25, 47, 0.97) !important;
        color: #fff;
    }
    .glass-card-dark h3,
    .glass-card-dark h4,
    .glass-card-dark p,
    .glass-stat-box-dark .glass-stat-label {
        color: rgba(255, 255, 255, 0.9);
    }
    .glass-stat-box-dark .glass-stat-number {
        background: linear-gradient(135deg, #fff, var(--color-gold));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Gold/accent variants keep subtle tint */
    .glass-card-accent {
        background: rgba(30, 115, 190, 0.06) !important;
    }
    .glass-card-gold {
        background: rgba(212, 175, 55, 0.06) !important;
    }

    /* Hero stat pills need solid bg when blur is removed */
    .hero-stat-pill {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 25, 47, 0.7);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .glass-card::before {
        display: none; /* Disable shine effect on mobile */
    }
}

/* =========================================
   29. TRANSFORM ISOLATION — Prevent glass-ui :hover
   transforms from conflicting with visual-motion.css
   data-motion enter transforms. glass-ui uses
   translate3d for hover lift; visual-motion uses
   translateY/X for scroll-triggered entrance. Since
   data-motion transforms are reset to none on .vm-visible,
   both systems coexist without override.
   ========================================= */
.glass-card:hover,
.glass-stat-box:hover,
.glass-plan-card:hover,
.glass-process-step:hover,
.glass-feature-item:hover {
    transform: translate3d(0, -3px, 0);
}
