/* Layout: Trusted Bar, Stats, Section Shared, Footer, Page Hero, Content Pages, Pricing Toggle */

/* ============================================================
   TRUSTED BY BAR
   ============================================================ */
.trusted-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 2.2rem 5%;
    text-align: center;
    overflow: hidden;
}

.trusted-bar p {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.38;
    filter: grayscale(100%);
    transition: opacity 0.5s, filter 0.5s;
}

.trusted-logos:hover {
    opacity: 0.65;
    filter: grayscale(60%);
}

.trusted-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.3s var(--transition-bounce), opacity 0.3s;
}

.trusted-logo:hover {
    transform: scale(1.08) translateY(-2px);
    opacity: 1;
}

.trusted-logo i { font-size: 1.5rem; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--accent-gradient-wide);
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

/* Moving shimmer across the whole bar */
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.stats-bar::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: auto;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: barShimmer 6s linear infinite;
    pointer-events: none;
}

@keyframes barShimmer {
    0%   { left: -60%; }
    100% { left: 130%; }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.2rem 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    flex: 1;
    min-width: 180px;
    transition: background 0.3s;
    position: relative;
    cursor: default;
}

.stat-item:last-child { border-right: none; }

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stat-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.04em;
    transition: transform 0.3s var(--transition-bounce);
}

.stat-item:hover .stat-num {
    transform: scale(1.08) translateY(-2px);
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ============================================================
   SECTIONS (Shared Layout)
   ============================================================ */
.section {
    padding: var(--space-section) 5%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

/* Pill-style label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    padding: 0.3rem 1.1rem;
    background: rgba(90, 79, 243, 0.08);
    border: 1px solid rgba(90, 79, 243, 0.15);
    border-radius: var(--radius-pill);
}

.section-label::before,
.section-label::after {
    content: '';
    width: 18px;
    height: 1.5px;
    background: var(--accent-gradient);
    opacity: 0.6;
    border-radius: var(--radius-pill);
}

.section-title {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin-bottom: 1.1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- Loading Spinner ---- */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 5rem 0;
    color: var(--text-secondary);
}

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(90, 79, 243, 0.12);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER (legacy - kept for reference)
   ============================================================ */
footer:not(.site-footer) {
    background: #141414;
    border-top: 1px solid #262626;
    padding: 4rem 5% 2rem;
    color: #d1d5db;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col a {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.25s;
}

.footer-col a:hover { color: var(--accent-primary); }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: top 0.3s;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ============================================================
   FOOTER PREMIUM
   ============================================================ */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 5.5rem 0 0;
    color: var(--text-secondary);
    position: relative;
}

/* Gradient top accent */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient-wide);
    opacity: 0.6;
}

.footer-brand { margin-bottom: 0.5rem; }

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 310px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 0.7rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(90, 79, 243, 0.06);
    border: 1.5px solid rgba(90, 79, 243, 0.1);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 18px rgba(90, 79, 243, 0.35);
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1.3rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.footer-col h4 i {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-right: 0.4rem;
}

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

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.25s, transform 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    padding-bottom: 2px;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: var(--radius-pill);
}

.footer-col a:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.footer-col a:hover::after { width: 100%; }

.footer-col li {
    margin-bottom: 0.7rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 1.8rem 0;
    margin-top: 1rem;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: color 0.25s;
    position: relative;
    padding-bottom: 2px;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover { color: var(--accent-primary); }
.footer-bottom-links a:hover::after { width: 100%; }

/* Newsletter form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 0.82rem 1.2rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
}

.newsletter-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(90, 79, 243, 0.12);
}

.newsletter-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 1.5rem;
    border: none;
    border-radius: calc(var(--radius-md) - 4px);
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.newsletter-form button:hover {
    box-shadow: 0 4px 14px rgba(90, 79, 243, 0.35);
    background: var(--accent-gradient-hover);
    transform: scale(1.02);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 10rem 5% 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0edff 0%, #ffffff 100%);
}

.page-hero .hero-bg-glow { position: absolute; }

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

.page-hero .hero-badge,
.support-hero .hero-badge {
    background: rgba(90, 79, 243, 0.1);
    border-color: rgba(90, 79, 243, 0.2);
    color: var(--accent-primary);
}

/* ============================================================
   ICON FEATURE BOX
   ============================================================ */
.feature-icon-box {
    --icon-bg: linear-gradient(135deg, rgba(90, 79, 243, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    --icon-color: #a89cff;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.3rem;
    background: var(--icon-bg);
    color: var(--icon-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(90, 79, 243, 0.1);
}

.feature-icon-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: 0;
}

.feature-icon-box > * { position: relative; z-index: 1; }

.feature-card:hover .feature-icon-box::before,
.feature-card:hover .feature-icon-box {
    opacity: 1;
}

.feature-card:hover .feature-icon-box {
    color: white;
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 28px rgba(90, 79, 243, 0.4);
    border-color: transparent;
    background: var(--accent-gradient);
}

/* ============================================================
   ABOUT / CONTENT PAGES
   ============================================================ */
.content-page {
    padding: 8rem 5% 5rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.content-page h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-page h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-page p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

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

.content-page li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.35rem;
}

/* ============================================================
   TEAM GRID (about page)
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(90, 79, 243, 0.1) 0%, rgba(37, 99, 235, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-primary);
    margin: 0 auto 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.35s var(--transition-bounce);
}

.team-card:hover .team-avatar {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.08);
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.team-card .team-role {
    color: var(--accent-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* ============================================================
   VALUES GRID (about page)
   ============================================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.35s;
    box-shadow: var(--shadow-sm);
}

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

.value-card .bi {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: block;
}

.value-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* ============================================================
   PRICING TOGGLE
   ============================================================ */
.pricing-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-pill);
    padding: 4px;
    margin: 2rem auto;
    border: 1.5px solid var(--border-color);
    width: fit-content;
    box-shadow: var(--shadow-sm);
}

.pricing-toggle button {
    padding: 0.6rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.pricing-toggle button.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 3px 12px rgba(90, 79, 243, 0.3);
}

.pricing-toggle button:not(.active):hover {
    color: var(--accent-primary);
    background: rgba(90, 79, 243, 0.06);
}
