/* ============================================================
   GLASS MORPHISM & GLOBAL VISUAL POLISH
   ============================================================ */

body {
    background: var(--color-white);
}

/* Subtle mesh on off-white sections */
.section--off-white {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(37, 69, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(123, 47, 190, 0.04) 0%, transparent 50%),
        var(--color-off-white);
}

.section--white {
    background:
        radial-gradient(ellipse at 80% 10%, rgba(0, 198, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 90%, rgba(37, 69, 255, 0.03) 0%, transparent 50%),
        var(--color-white);
}

/* Hero: three-orb depth lighting */
.hero__blob {
    background:
        radial-gradient(ellipse at 78% 28%, rgba(0, 198, 255, 0.24) 0%, transparent 42%),
        radial-gradient(ellipse at 12% 68%, rgba(123, 47, 190, 0.22) 0%, transparent 42%),
        radial-gradient(ellipse at 55% 85%, rgba(37, 69, 255, 0.14) 0%, transparent 38%);
}

/* Dot grid pattern for hero */
.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 25%,
        rgba(0, 0, 0, 0.5) 75%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 25%,
        rgba(0, 0, 0, 0.5) 75%,
        transparent 100%
    );
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow:
        0 4px 24px rgba(12, 23, 84, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
    transition: box-shadow var(--transition-base), transform var(--transition-base),
                background var(--transition-base), border-color var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow:
        0 0 0 1px rgba(37, 69, 255, 0.15),
        0 16px 48px rgba(12, 23, 84, 0.13),
        0 1px 0 rgba(255, 255, 255, 1) inset !important;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.95) !important;
}

/* ============================================================
   FEATURE CARD ICON
   ============================================================ */
.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 69, 255, 0.1) 0%, rgba(123, 47, 190, 0.08) 100%);
    border: 1px solid rgba(37, 69, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    color: var(--color-brand);
    transition: background var(--transition-base), transform var(--transition-fast);
}

.feature-card:hover .feature-card__icon {
    background: linear-gradient(135deg, rgba(37, 69, 255, 0.18) 0%, rgba(123, 47, 190, 0.14) 100%);
    transform: scale(1.08);
}

/* ============================================================
   STEM SECTION PILLAR ICONS
   ============================================================ */
.stem__pillar-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
}

.stem__pillar-icon-wrap--blue {
    background: linear-gradient(135deg, rgba(37, 69, 255, 0.12) 0%, rgba(0, 198, 255, 0.1) 100%);
    border: 1px solid rgba(37, 69, 255, 0.18);
    color: var(--color-brand);
}

.stem__pillar-icon-wrap--purple {
    background: linear-gradient(135deg, rgba(123, 47, 190, 0.12) 0%, rgba(0, 198, 255, 0.08) 100%);
    border: 1px solid rgba(123, 47, 190, 0.18);
    color: #7b2fbe;
}

/* ============================================================
   WHY ZENTRA ICON WRAPS
   ============================================================ */
.why__card {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-4);
    border-radius: var(--radius-card);
}

.why__card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.why__card:hover .why__card-icon-wrap {
    transform: scale(1.1);
}

.why__card-icon-wrap--blue   { background: rgba(37, 69, 255, 0.1);  border: 1px solid rgba(37, 69, 255, 0.18);  color: var(--color-brand); }
.why__card-icon-wrap--green  { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.18); color: #059669; }
.why__card-icon-wrap--purple { background: rgba(123, 47, 190, 0.1); border: 1px solid rgba(123, 47, 190, 0.18); color: #7b2fbe; }
.why__card-icon-wrap--orange { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.18); color: #d97706; }

.why__trust-icon-svg {
    display: flex;
    align-items: center;
    color: var(--color-brand);
}

.why__trust-bar.glass-card {
    border-radius: var(--radius-card);
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.scroll-indicator {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

/* ============================================================
   DASHBOARD MOCKUP — no-scroll fix
   ============================================================ */
.dashboard-mockup {
    overflow: hidden;
    max-width: 920px;
}

.dashboard-mockup__body {
    height: 360px;
    overflow: hidden;
}

.dashboard-mockup__main {
    overflow: hidden;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: var(--space-2);
}

.stat-tile {
    padding: 10px 12px;
    gap: 10px;
}

.stat-tile__value {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
}

.stat-tile__label {
    font-size: 9px;
}

.stat-tile__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.dashboard-activity__label {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.dashboard__tagline {
    text-align: center;
    margin-top: var(--space-5);
    font-size: var(--fs-subheading);
    opacity: 0.85;
    font-style: italic;
}

/* ============================================================
   CTA GLASS OVERLAY
   ============================================================ */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a35e0 0%, #2545ff 50%, #7b2fbe 100%);
}

.cta-section__glass {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 198, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta__content {
    position: relative;
    z-index: 1;
}

/* ============================================================
   PAIN CARD GLASS
   ============================================================ */
.pain-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(12, 23, 84, 0.07);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* ============================================================
   NAVBAR GLASS (scrolled state)
   ============================================================ */
.navbar--scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

section {
    transition: background var(--transition-slow);
}

/* ============================================================
   CSS ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-up      { animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-fade-in      { animation: fadeIn 0.5s ease both; }
.animate-slide-right  { animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-float        { animation: floatY 4s ease-in-out infinite; }

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.45s; }
.anim-delay-5 { animation-delay: 0.6s; }

/* ============================================================
   HERO VISUAL CARD (floating dashboard card in hero)
   ============================================================ */
.hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    animation: slideInRight 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero__card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: var(--space-3);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.14) inset;
    animation: floatY 5s ease-in-out 1s infinite;
}

.hero__card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hero__card-dot--red    { background: #ff5f56; }
.hero__card-dot--yellow { background: #ffbd2e; }
.hero__card-dot--green  { background: #27c93f; }

.hero__card-title-bar {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-left: auto;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero__card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: var(--space-2);
}

.hero__card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 10px;
}

.hero__card-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero__card-stat-icon--blue   { background: rgba(37,  69,  255, 0.3); color: #7b9fff; }
.hero__card-stat-icon--green  { background: rgba(16,  185, 129, 0.3); color: #4dd9a8; }
.hero__card-stat-icon--purple { background: rgba(123, 47,  190, 0.3); color: #b07eff; }
.hero__card-stat-icon--orange { background: rgba(245, 158, 11,  0.3); color: #fbbf24; }

.hero__card-stat-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
    line-height: 1;
}

.hero__card-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.hero__card-activity {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 12px;
}

.hero__card-activity-title {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.hero__card-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hero__card-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__card-row-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero__card-row-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero__card-row-amt {
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.hero__float-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-badge);
    padding: 6px 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
    margin-top: var(--space-2);
    backdrop-filter: blur(8px);
    align-self: flex-start;
}

/* ============================================================
   PAIN CARD ICON WRAP
   ============================================================ */
.pain-card__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, rgba(37, 69, 255, 0.1) 0%, rgba(123, 47, 190, 0.07) 100%);
    border: 1px solid rgba(37, 69, 255, 0.14);
    color: var(--color-brand);
    transition: transform var(--transition-fast);
}

.pain-card:hover .pain-card__icon-wrap {
    transform: scale(1.08);
}

/* ============================================================
   SOLUTION ITEM ICON WRAP
   ============================================================ */
.solution__item-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    background: linear-gradient(135deg, rgba(37, 69, 255, 0.1) 0%, rgba(123, 47, 190, 0.07) 100%);
    border: 1px solid rgba(37, 69, 255, 0.14);
    color: var(--color-brand);
}

/* ============================================================
   DASHBOARD responsive
   ============================================================ */
@media (max-width: 1024px) {
    .dashboard-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-mockup__body { height: auto; min-height: 320px; }
}

@media (max-width: 640px) {
    .dashboard-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-mockup__sidebar { display: none; }
}

/* ============================================================
   FOUNDATION FLOATING IMAGE CARD
   ============================================================ */
.foundation-float-card {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 500;
    width: 220px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    box-shadow:
        0 0 0 1.5px rgba(37,85,245,.22),
        0 10px 36px rgba(37,85,245,.18),
        0 2px 8px rgba(0,0,0,.08);
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, opacity .6s ease;
}
.foundation-float-card:hover {
    opacity: 1 !important;
    transform: translateY(-5px) scale(1.015);
    box-shadow:
        0 0 0 2px rgba(37,85,245,.5),
        0 22px 56px rgba(136,32,200,.26),
        0 4px 12px rgba(0,0,0,.1);
}

/* Photo section */
.foundation-float-card__photo {
    position: relative;
    height: 134px;
    overflow: hidden;
}
.foundation-float-card__img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .5s ease;
}
.foundation-float-card:hover .foundation-float-card__img { transform: scale(1.07); }

/* Pulsing live dot — top-right corner of photo */
.foundation-float-card__live {
    position: absolute;
    top: 10px; right: 10px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #8820C8;
    box-shadow: 0 0 0 3px rgba(136,32,200,.3), 0 0 10px rgba(136,32,200,.7);
    animation: badge-pulse 2.2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 3px rgba(136,32,200,.3), 0 0 10px rgba(136,32,200,.7); }
    50%     { opacity: .7; transform: scale(.82); box-shadow: 0 0 0 5px rgba(136,32,200,.1), 0 0 16px rgba(136,32,200,.5); }
}

/* Card body */
.foundation-float-card__body {
    padding: 11px 14px 13px;
    border-top: 2.5px solid #2555F5;
    background: #fff;
}
.foundation-float-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    color: #0c1754; letter-spacing: -.01em;
    margin-bottom: 3px;
    line-height: 1;
}
.foundation-float-card__arrow {
    color: #2555F5; flex-shrink: 0;
    transition: transform .22s ease;
}
.foundation-float-card:hover .foundation-float-card__arrow { transform: translate(2px,-2px); }
.foundation-float-card__stat {
    font-size: 11px; font-weight: 500;
    color: #4a5899; margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .foundation-float-card { width: 168px; right: 12px; bottom: 68px; }
    .foundation-float-card__photo { height: 100px; }
}
