:root {
    --primary: #d83240;
    --primary-dark: #b8040f;
    --primary-light: #fef2f2;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --header-height: 72px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav a.nav-link:hover {
    color: var(--primary);
}

.site-nav a.nav-link.active {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.nav-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown-toggle.open i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 100;
}

.nav-dropdown-menu.open {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline-primary-custom:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(216, 50, 64, 0.35);
}

.btn-primary-custom:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(216, 50, 64, 0.45);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* Hero */
.hero {
    padding: calc(var(--header-height) + 4rem) 0 5rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 60%);
    position: relative;
    overflow: hidden;
}

.hero--has-bg {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.85) 100%), var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--has-bg::before {
    display: none;
}

.hero--has-bg .hero-bg-orbs {
    opacity: 0.3;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(216, 50, 64, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.hero-badge i {
    color: var(--primary);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: floatOrb 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(216, 50, 64, 0.15);
    top: -10%;
    right: 10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(216, 50, 64, 0.08);
    bottom: 10%;
    left: -5%;
    animation-delay: -3s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(99, 102, 241, 0.1);
    top: 40%;
    right: 30%;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid var(--border);
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hero-stat {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.hero-stat .number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero metrics */
.hero-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-metric {
    display: flex;
    flex-direction: column;
}

.hero-metric-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.hero-metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-metric-suffix {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Hero showcase */
.hero-showcase {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.hero-showcase-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(216, 50, 64, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-showcase-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.hero-showcase-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.hero-showcase-header .dot:nth-child(1) { background: #ef4444; }
.hero-showcase-header .dot:nth-child(2) { background: #f59e0b; }
.hero-showcase-header .dot:nth-child(3) { background: #22c55e; }

.hero-showcase-title {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.25rem;
}

.hero-module-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-alt);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    border: 1px solid transparent;
    animation: pillFloat 3s ease-in-out infinite;
    animation-delay: var(--pill-delay, 0s);
    transition: border-color 0.2s, background 0.2s;
}

.hero-module-pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.hero-module-pill i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

@keyframes pillFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.hero-showcase-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-showcase-footer i {
    color: #22c55e;
    margin-right: 0.35rem;
}

.hero-showcase-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s;
}

.hero-showcase-link:hover {
    color: var(--primary-dark);
}

.hero-showcase-link i {
    color: inherit;
    margin-left: 0.25rem;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.hero-showcase-link:hover i {
    transform: translateX(3px);
}

/* Stats bar */
.stats-bar {
    padding: 0;
    margin-top: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.75rem 1.25rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.25s;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--primary) 15%, var(--border));
}

.stat-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 700;
}

.stat-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Modules section */
.modules-section {
    padding: 5rem 0;
    background: var(--bg-alt);
}

.module-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.module-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}

.module-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.module-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(216, 50, 64, 0.3);
}

.filter-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.module-filter.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.module-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, opacity 0.3s;
}

.module-card.is-hidden {
    display: none;
}

.module-card.is-mobile-folded {
    display: none;
}

.module-grid-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.module-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: #fff;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}

.module-show-more:hover {
    background: var(--primary);
    color: #fff;
}

.module-show-more[hidden] {
    display: none;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.module-card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(216, 50, 64, 0.06) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.module-card:hover .module-card-glow {
    opacity: 1;
}

.module-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.module-card:hover .module-card-icon {
    transform: scale(1.08) rotate(-3deg);
}

.module-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.module-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
    line-height: 1.55;
}

.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.module-tags span {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    background: var(--bg-alt);
    border-radius: 20px;
    color: var(--text-muted);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps-timeline .step-card {
    text-align: center;
    padding: 1rem;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent);
}

.step-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
}

.step-icon-wrap .step-number {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(216, 50, 64, 0.4);
}

.step-icon-wrap .step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: border-color 0.3s, transform 0.3s;
}

.step-card:hover .step-icon {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* CTA particles */
.cta-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
}

.cta-particles span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.cta-particles span:nth-child(2) { top: 60%; left: 25%; animation-delay: -1s; }
.cta-particles span:nth-child(3) { top: 30%; right: 20%; animation-delay: -2s; }
.cta-particles span:nth-child(4) { bottom: 25%; right: 10%; animation-delay: -3s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.7; }
}

/* Legal / contract page — see assets/css/legal-document.css */

/* Features */
.features {
    padding: 5rem 0;
    background: var(--bg);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-header .section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* How it works */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-alt);
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 1.25rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* CTA */
.cta-section {
    padding: 5rem 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

.cta-box .btn-light-custom {
    background: #fff;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    position: relative;
}

.cta-box .btn-light-custom:hover {
    transform: scale(1.05);
    color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

.site-footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Mobile nav */
@media (max-width: 991.98px) {
    .mobile-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav a.nav-link {
        padding: 0.75rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 0;
        text-align: left;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0.5rem 1rem;
        background: transparent;
    }

    .nav-dropdown-item {
        padding: 0.5rem 0;
    }

    .site-nav .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .site-nav .header-actions a {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding-bottom: 3rem;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .hero-metrics {
        gap: 1.25rem;
    }

    .stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .module-filter {
        flex-shrink: 0;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .module-card {
        padding: 1.15rem;
    }

    .module-card h3 {
        font-size: 0.92rem;
    }

    .module-card p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .module-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps-timeline::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .stats-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Inner pages */
.page-hero {
    padding: calc(var(--header-height) + 3rem) 0 3rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.page-content {
    padding: 3rem 0 5rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-layout.has-image {
    grid-template-columns: 1fr 1fr;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.about-content h2,
.about-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form-card .form-control {
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-alt);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.blog-detail-hero {
    padding: calc(var(--header-height) + 2rem) 0 0;
}

.blog-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    max-height: 420px;
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.blog-detail-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

@media (max-width: 991.98px) {
    .about-layout.has-image {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

/* Modules preview (homepage) */
.modules-preview {
    padding: 5rem 0;
    background: var(--bg);
}

.category-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.category-preview-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.category-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.category-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--primary) 20%, var(--border));
}

.category-preview-card:hover::before {
    opacity: 1;
}

.category-preview-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.category-preview-card:hover .category-preview-icon {
    transform: scale(1.08);
}

.category-preview-body {
    flex: 1;
    min-width: 0;
}

.category-preview-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.category-preview-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.category-preview-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.category-preview-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.category-preview-card:hover .category-preview-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Trust section */
.trust-section {
    padding: 4rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.trust-item > i {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.trust-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* CTA enhancements */
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    position: relative;
}

.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.cta-section--compact {
    padding: 3rem 0 5rem;
}

.modules-section--page {
    padding-top: 3rem;
}

/* Rich page hero */
.page-hero--rich {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-bottom: 4rem;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.page-hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(216, 50, 64, 0.1);
    top: -20%;
    right: -10%;
}

.page-hero-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, 0.08);
    bottom: -10%;
    left: -5%;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.page-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb a:hover {
    color: var(--primary);
}

.page-breadcrumb i {
    font-size: 0.6rem;
    opacity: 0.5;
}

.page-breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.page-hero-badge i {
    color: var(--primary);
}

.page-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.page-hero-stat-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.page-hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.page-hero-stat-suffix {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.page-hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* About page */
.about-image {
    position: relative;
}

.about-image-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.prose-content {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 1rem;
}

.prose-content h2,
.prose-content h3,
.prose-content h4 {
    color: var(--text);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.prose-content p {
    margin-bottom: 1rem;
}

.prose-content ul,
.prose-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose-content li {
    margin-bottom: 0.4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1.25rem;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Contact page */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-form-header {
    margin-bottom: 1.75rem;
}

.contact-form-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.contact-form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.contact-form-card .form-control {
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.contact-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contact-quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}

.contact-quick-link i {
    color: var(--primary);
}

.contact-quick-link:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* Blog enhancements */
.blog-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2.5rem;
}

.blog-featured-image {
    display: block;
    overflow: hidden;
    min-height: 320px;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-featured:hover .blog-featured-image img {
    transform: scale(1.03);
}

.blog-featured-placeholder,
.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--bg-alt), var(--primary-light));
    color: var(--text-muted);
    font-size: 2rem;
}

.blog-featured-body {
    padding: 2.5rem 2rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-featured-body h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.35;
}

.blog-featured-body h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-featured-body h2 a:hover {
    color: var(--primary);
}

.blog-featured-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.blog-detail-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-detail-footer {
    margin-bottom: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.blog-back-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin: 0;
}

/* Feature card enhancement */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

@media (max-width: 991.98px) {
    .category-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .values-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured-body {
        padding: 1.5rem;
    }

    .blog-featured-image {
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .category-preview-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .contact-quick-links {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn-light-custom,
    .cta-actions .btn-outline-light-custom {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
