/* ==========================================================================
   MAIN.CSS  — Global styles for Ciphertecs
   ========================================================================== */

/* Google Fonts loaded via <link> in HTML for faster delivery */

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
    --bg-primary:       #f8fafc;
    --bg-secondary:     #ffffff;
    --text-dark:        #0f172a;
    --text-muted:       #64748b;
    --accent:           #1DCD9F;
    --accent-dark:      #169976;
    --accent-gradient:  linear-gradient(135deg, #1DCD9F 0%, #169976 100%);
    --shadow:           0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-lg:        0 24px 64px rgba(0, 0, 0, 0.12);
    --border:           #e2e8f0;
    --transition:       0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-bg:          #07101f;
    --nav-height:       76px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    animation: bodyFadeIn 0.5s ease both;
}

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

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 8%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: padding 0.4s ease,
                background 0.4s ease,
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* Scrolled state — more opaque, subtle shadow */
.nav-bar.nav-scrolled {
    padding: 0.6rem 8%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.07);
    border-bottom-color: var(--border);
}

/* Scroll-progress bar that lives along the bottom of the nav */
.nav-bar::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: var(--scroll-progress, 0%);
    background: linear-gradient(90deg, var(--accent), #7df3d4);
    box-shadow: 0 0 10px rgba(29, 205, 159, 0.55);
    border-radius: 0 2px 2px 0;
    transition: width 0.12s linear;
    pointer-events: none;
}

/* Logo — soft scale + halo on hover */
.logo-container {
    cursor: pointer;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo-container::after {
    content: '';
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle at center, rgba(29, 205, 159, 0.28), transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.logo-container:hover           { transform: scale(1.04); }
.logo-container:hover::after    { opacity: 1; }

.logo-nav-img { max-height: 54px; display: block; }

.nav-icon {
    margin-right: 8px;
    font-size: 0.85em;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-item-container {
    position: relative;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.menu-item {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    position: relative;
    padding: 8px 14px;
    border-radius: 10px;
    z-index: 1;
    transition: color 0.3s ease;
}

.menu-item:hover                   { color: var(--accent); }
.menu-item:hover .nav-icon         { transform: translateY(-2px) rotate(-8deg) scale(1.12); }
.menu-item--active                 { color: var(--accent) !important; }
.menu-item--active .nav-icon       { transform: rotate(-5deg); }

/* Sliding pill indicator that follows hover & snaps to active item */
.menu-pill {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 38px;
    transform: translate(0, -50%);
    background: linear-gradient(135deg, rgba(29, 205, 159, 0.16), rgba(94, 234, 212, 0.07));
    border: 1px solid rgba(29, 205, 159, 0.32);
    border-radius: 10px;
    box-shadow:
        0 0 24px rgba(29, 205, 159, 0.22),
        inset 0 0 14px rgba(29, 205, 159, 0.06);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        width     0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity   0.3s  ease;
}
.menu-pill--visible       { opacity: 1; }
.menu-pill--no-transition { transition: none !important; }

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 2100;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ==========================================================================
   4. HERO / SPLASH — dark, dramatic
   ========================================================================== */
.splash {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hero-bg);
    overflow: hidden;
}

/* Subtle radial glow behind content */
.splash::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(29, 205, 159, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.splash-text-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
}

.text-large {
    font-size: clamp(2rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    min-height: 2.4em;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.description-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 0.5rem;
    line-height: 1.75;
}

/* Inside the dark hero, override to white */
.splash .description-text {
    color: rgba(255, 255, 255, 0.65);
}

/* Gradient animated text — richer palette + pulsing aura */
.gradient-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #1DCD9F 0%, #7df3d4 30%, #5eead4 50%, #7df3d4 70%, #1DCD9F 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        gradientShift 5s linear infinite,
        gradientGlow  3.6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% center; }
    100% { background-position: 250% center; }
}
@keyframes gradientGlow {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(29, 205, 159, 0.20)); }
    50%      { filter: drop-shadow(0 0 32px rgba(29, 205, 159, 0.60)); }
}

/* Glowing underline that draws under "confidence." once typing finishes */
.text-large.typing-complete .gradient-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.04em;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #1DCD9F 25%, #7df3d4 50%, #1DCD9F 75%, transparent 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    box-shadow: 0 0 16px rgba(29, 205, 159, 0.6);
    animation: underlineSweep 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes underlineSweep {
    0%   { transform: scaleX(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* A small burst when the gradient word lands */
.text-large.typing-complete .gradient-text {
    animation:
        gradientShift 5s linear infinite,
        gradientGlow  3.6s ease-in-out infinite,
        wordPop       0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes wordPop {
    0%   { transform: scale(1);    }
    45%  { transform: scale(1.06); }
    100% { transform: scale(1);    }
}

/* Blinking typing cursor */
.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 0.85em;
    margin-left: 6px;
    vertical-align: -8%;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 14px rgba(29, 205, 159, 0.7);
    animation: cursorBlink 0.85s steps(2, end) infinite;
    transition: opacity 0.6s ease;
}
.typing-cursor--done { opacity: 0; }
@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Staged fade-up for description and button after the headline lands */
.splash .reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity   0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.splash .reveal-up.reveal-up--in {
    opacity: 1;
    transform: translateY(0);
}

/* ── About section: interactive word-level animations ──────────── */
.about-desc {
    position: relative;
    isolation: isolate;
}

/* Cursor-follow radial glow over the paragraph */
.about-desc::before {
    content: '';
    position: absolute;
    inset: -24px;
    background: radial-gradient(
        260px circle at var(--mx, -300px) var(--my, -300px),
        rgba(29, 205, 159, 0.13),
        rgba(29, 205, 159, 0.04) 45%,
        transparent 70%
    );
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}
.about-desc.cursor-in::before { opacity: 1; }

/* Each word is its own inline-block so it can hover individually */
.about-desc .word {
    display: inline-block;
    color: inherit;
    transition:
        opacity   0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        color     0.25s ease,
        text-shadow 0.3s ease;
    cursor: default;
    will-change: opacity, transform;
}
.about-desc .word--hidden {
    opacity: 0;
    transform: translateY(6px);
}
.about-desc .word--in {
    opacity: 1;
    transform: translateY(0);
}
.about-desc .word:hover {
    transform: translateY(-3px) scale(1.06);
    color: var(--accent);
    text-shadow: 0 6px 18px rgba(29, 205, 159, 0.35);
}

/* Highlighted key phrases — accent color + soft glow + underline shimmer */
.about-desc .hl {
    position: relative;
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s;
}
.about-desc .hl::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent), #7df3d4, var(--accent), transparent);
    background-size: 200% 100%;
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
    transition: opacity 0.35s ease, transform 0.4s ease;
    animation: gradientShift 4s linear infinite;
    border-radius: 2px;
    pointer-events: none;
}
.about-desc .hl:hover { color: #7df3d4; }
.about-desc .hl:hover::after {
    opacity: 1;
    transform: scaleX(1);
}
/* When any word inside the highlight is hovered, also light the underline */
.about-desc .hl:has(.word:hover)::after {
    opacity: 1;
    transform: scaleX(1);
}
.about-desc .hl .word:hover {
    color: #7df3d4;
    text-shadow: 0 6px 22px rgba(29, 205, 159, 0.5);
}

/* Scroll hint at bottom of hero */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    animation: scrollHintBounce 2s ease-in-out infinite;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(29, 205, 159, 0.6), transparent);
}

@keyframes scrollHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50%       { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}

.demo-img { max-height: 100px; margin: 20px; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn-var-1 {
    position: relative;
    overflow: hidden;
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.93rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 8px 24px rgba(29, 205, 159, 0.35);
    margin: 8px;
    letter-spacing: 0.01em;
}

/* Shimmer sweep */
.btn-var-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.btn-var-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(29, 205, 159, 0.5);
}

.btn-var-1:hover::after { left: 160%; }

.btn-var-1:active { transform: translateY(-1px); }

.btn-var-white {
    background: white;
    color: black;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-var-green {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
    margin: 8px;
    box-shadow: 0 4px 14px rgba(29, 205, 159, 0.3);
}

.btn-var-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(29, 205, 159, 0.5);
}

/* ==========================================================================
   6. SERVICE CARDS  —  3D tilt glass cards
   ========================================================================== */

/* Section dark background */
.services {
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}
.services .accent-label { color: var(--accent); }

/* Tech grid backdrop — lines + node dots, faded at edges with a radial mask */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(29, 205, 159, 0.42) 1.4px, transparent 2.8px),
        linear-gradient(to right,  rgba(29, 205, 159, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(29, 205, 159, 0.05) 1px, transparent 1px);
    background-size: 240px 240px, 60px 60px, 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at center, black 35%, transparent 100%);
            mask-image: radial-gradient(ellipse 75% 70% at center, black 35%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Slow vertical scan line — subtle motion across the grid */
.services::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -120px;
    height: 120px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(29, 205, 159, 0.08) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: svcScan 14s linear infinite;
}
@keyframes svcScan {
    0%   { top: -120px; }
    100% { top: 100%;   }
}

/* Section content sits above the grid backdrop */
.services .section-content {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Card shell ─────────────────────────────────────────────────── */
.svc-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(29, 205, 159, 0.13);
    border-radius: 20px;
    padding: 30px 26px 24px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 270px;
    will-change: transform;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.svc-card:hover {
    border-color: rgba(29, 205, 159, 0.38);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(29, 205, 159, 0.1) inset;
}

/* Stagger reveal — pre-state hides the card until JS triggers the in-animation */
.svc-card.svc-card--pre {
    opacity: 0;
    transform: translateY(34px);
}
.svc-card.svc-card--in {
    animation: svcCardReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes svcCardReveal {
    0%   { opacity: 0; transform: translateY(34px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Spotlight (follows mouse via CSS vars --mx --my) ───────────── */
.svc-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(29, 205, 159, 0.13) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.svc-card:hover .svc-shine { opacity: 1; }

/* ── Ghost number ───────────────────────────────────────────────── */
.svc-num {
    position: absolute;
    top: -8px;
    right: 18px;
    font-size: 5.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -6px;
    color: rgba(29, 205, 159, 0.06);
    user-select: none;
    pointer-events: none;
    transition: color 0.4s;
}
.svc-card:hover .svc-num { color: rgba(29, 205, 159, 0.13); }

/* ── Icon box (floats forward in 3D on hover) ───────────────────── */
.svc-icon-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: rgba(29, 205, 159, 0.07);
    border: 1px solid rgba(29, 205, 159, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease,
                transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Pulse ring emanating from the icon box on hover */
.svc-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    border: 2px solid var(--accent);
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
}
.svc-card:hover .svc-icon-wrap::after {
    animation: svcIconRing 1.35s ease-out infinite;
}
@keyframes svcIconRing {
    0%   { opacity: 0.65; transform: scale(1); }
    100% { opacity: 0;    transform: scale(1.85); }
}
.svc-card:hover .svc-icon-wrap {
    background: rgba(29, 205, 159, 0.16);
    border-color: rgba(29, 205, 159, 0.45);
    box-shadow: 0 0 22px rgba(29, 205, 159, 0.28);
    transform: translateZ(18px) scale(1.07);
}

.svc-icon {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    opacity: 0.65;
    transition: opacity 0.4s, filter 0.4s;
}
.svc-card:hover .svc-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(69%) sepia(57%)
            saturate(477%) hue-rotate(116deg);
}

/* ── Text ───────────────────────────────────────────────────────── */
.svc-title {
    position: relative;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    margin-top: 4px;
    width: fit-content;
}
.svc-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), #7df3d4, transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
}
.svc-card:hover .svc-title::after { transform: scaleX(1); }

.svc-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    flex: 1;
    transition: color 0.4s;
}
.svc-card:hover .svc-desc { color: rgba(255, 255, 255, 0.78); }

/* ── Explore link ───────────────────────────────────────────────── */
.svc-footer { margin-top: 4px; }

.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease, gap 0.25s ease;
    letter-spacing: 0.02em;
}
.svc-card:hover .svc-link {
    opacity: 1;
    transform: translateY(0);
}
.svc-card:hover .svc-link:hover { gap: 10px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================================
   7. DEMO CARDS V2
   ========================================================================== */
.demo-card-v2 {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2.2rem 2.5rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.demo-card-v2:hover {
    transform: translateX(6px) translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 16px 44px rgba(29, 205, 159, 0.12);
}

.demo-description { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-top: 0.4rem; }

/* ==========================================================================
   8. DEMO SHOWCASE
   ========================================================================== */
.demos { padding: 0; }
.demos-outer { height: 380vh; }
.demos-sticky {
    position: sticky;
    top: var(--nav-height, 76px);
    height: calc(100vh - var(--nav-height, 76px));
    overflow: hidden;
    background: var(--bg-primary);
    display: flex;
    align-items: stretch;
}
.demos-sticky-inner {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 56px;
    padding: 48px 6%;
}

/* — Left: nav list ──────────────────────────────── */
.demos-left {
    flex: 0 0 36%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.demos-heading {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 6px 0 32px;
    line-height: 1.1;
}
.demos-nav { display: flex; flex-direction: column; }
.demos-nav-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0 18px 20px;
    border-left: 2px solid var(--border);
    cursor: default;
    transition: border-color 0.35s, padding-left 0.35s;
}
.demos-nav-item.is-active {
    border-left-color: var(--accent);
    padding-left: 28px;
}
.dni-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.35s;
}
.demos-nav-item.is-active .dni-num { color: var(--accent); }
.dni-text { display: flex; flex-direction: column; gap: 4px; }
.dni-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.2;
    transition: color 0.35s;
}
.demos-nav-item.is-active .dni-title { color: var(--text-dark); }
.dni-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.65;
    line-height: 1;
}

/* — Right: feature card ─────────────────────────── */
.demos-right {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
.demos-feature-card {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.dfc-panels { position: relative; height: 100%; }
.dfc-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.dfc-panel.is-active {
    opacity: 1;
    pointer-events: auto;
}
.dfc-img-wrap {
    flex: 1;
    overflow: hidden;
    background: #f1f5f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dfc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 32px;
    box-sizing: border-box;
}
.dfc-info {
    flex: 0 0 auto;
    padding: 22px 28px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
}
.dfc-text { flex: 1; min-width: 0; }
.dfc-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.dfc-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dfc-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    white-space: nowrap;
}
.dfc-link:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* — Mobile-only bits (hidden on desktop) ─────────── */
.demos-swipe-hint { display: none; }
.demos-dots { display: none; }

/* Mobile — turn the scroll-jacked split into a swipe carousel */
@media (max-width: 720px) {
    /* Kill the sticky scroll-jacking: normal document flow */
    .demos-outer  { height: auto; }
    .demos-sticky {
        position: static;
        height: auto;
        overflow: visible;
    }
    .demos-sticky-inner {
        flex-direction: column;
        max-width: 100%;
        padding: 56px 0 52px;
        gap: 18px;
    }

    /* Left collapses to just the heading + swipe hint */
    .demos-left   { flex: none; padding: 0 6%; }
    .demos-heading { font-size: 1.75rem; margin: 6px 0 0; }
    .demos-nav    { display: none; }            /* replaced by the dot pager */
    .demos-swipe-hint {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: var(--accent);
    }
    .demos-swipe-hint i { animation: swipeNudge 1.4s ease-in-out infinite; }

    /* Right becomes a full-bleed horizontal snap carousel */
    .demos-right { width: 100%; align-items: stretch; }
    .demos-feature-card {
        background: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
        height: auto;
    }
    .dfc-panels {
        height: auto;
        display: flex;
        gap: 16px;
        padding: 6px 6% 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .dfc-panels::-webkit-scrollbar { display: none; }

    /* Un-stack the absolutely-positioned panels into carousel cards */
    .dfc-panel {
        position: relative;
        inset: auto;
        opacity: 1;
        pointer-events: auto;
        flex: 0 0 84%;
        scroll-snap-align: center;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 18px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: none;
    }

    .dfc-img-wrap { flex: none; height: 210px; }
    .dfc-img-wrap img { padding: 22px; }

    .dfc-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
    }
    .dfc-desc { -webkit-line-clamp: 3; }
    .dfc-link { width: 100%; justify-content: center; padding: 12px 18px; font-size: 0.88rem; }

    /* Dot pager */
    .demos-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 2px 6% 0;
    }
    .demos-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: var(--border);
        cursor: pointer;
        transition: background 0.3s, width 0.3s, border-radius 0.3s;
    }
    .demos-dot.is-active {
        background: var(--accent);
        width: 24px;
        border-radius: 5px;
    }
}

@keyframes swipeNudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

/* ==========================================================================
   9. TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--bg-primary); }

.section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

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

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(29, 205, 159, 0.1);
    border-color: var(--accent);
}

.testimonial-stars { color: #f5c518; font-size: 0.85rem; letter-spacing: 2px; }

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. LABELS & LINKS
   ========================================================================== */
.accent-label {
    display: inline-block;
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

.text-link {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.text-link:hover { gap: 10px; color: var(--accent); }

/* ==========================================================================
   9. LAYOUT & UTILITIES
   ========================================================================== */
main { margin-top: var(--nav-height); }

.section-content {
    padding: 100px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    margin: 1rem 0 1.5rem;
}

.mobile-only { display: none; }

/* ==========================================================================
   10. SCROLL REVEAL  — base + directional variants
   ========================================================================== */
.scroll-reveal,
[data-reveal] {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Default: slide up */
.scroll-reveal             { transform: translateY(36px); }

/* Directional variants */
[data-reveal="up"]         { transform: translateY(40px); }
[data-reveal="down"]       { transform: translateY(-40px); }
[data-reveal="left"]       { transform: translateX(-50px); }
[data-reveal="right"]      { transform: translateX(50px); }
[data-reveal="scale"]      { transform: scale(0.88); }
[data-reveal="fade"]       { transform: none; }

.scroll-reveal.active,
[data-reveal].active {
    opacity: 1;
    transform: none !important;
}

/* Built-in stagger for direct children */
.stagger-children > *:nth-child(1) { transition-delay: 0.00s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.40s; }

/* ==========================================================================
   11. LOADER  — new dark design
   ========================================================================== */
#loader-wrapper {
    position: fixed;
    inset: 0;
    background: #07101f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1),
                opacity   0.5s ease;
    transform-origin: top center;
}

#loader-wrapper.loader-hidden {
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
}

/* Pulsing rings */
.ldr-rings {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ldr-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(29, 205, 159, 0.15);
    animation: ldrRingPulse 2.4s ease-in-out infinite;
}

.ldr-ring:nth-child(1) { width: 100%;  height: 100%;  animation-delay: 0s;   }
.ldr-ring:nth-child(2) { width: 140%;  height: 140%;  animation-delay: 0.4s; }
.ldr-ring:nth-child(3) { width: 185%;  height: 185%;  animation-delay: 0.8s; }

@keyframes ldrRingPulse {
    0%, 100% { opacity: 0.15; transform: scale(1);    }
    50%       { opacity: 0.5;  transform: scale(1.04); }
}

/* Spinning arc */
.ldr-arc {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: var(--accent);
    border-right-color: rgba(29, 205, 159, 0.25);
    animation: ldrSpin 1s linear infinite;
}

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

/* Inner arc (counter-rotation) */
.ldr-arc-inner {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: rgba(29, 205, 159, 0.4);
    animation: ldrSpin 1.6s linear infinite reverse;
}

/* Logo */
.ldr-logo-wrap {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ldr-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: ldrLogoBreathe 2.4s ease-in-out infinite;
}

@keyframes ldrLogoBreathe {
    0%, 100% { filter: drop-shadow(0 0 8px  rgba(29, 205, 159, 0.4)); }
    50%       { filter: drop-shadow(0 0 28px rgba(29, 205, 159, 0.9)); }
}

/* Brand text */
.ldr-text {
    margin-top: 2.2rem;
    text-align: center;
    animation: ldrTextFade 0.8s 0.3s ease both;
}

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

.ldr-brand {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 7px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.ldr-tagline {
    margin-top: 5px;
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.85;
}

/* Progress */
.ldr-progress {
    position: absolute;
    bottom: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 180px;
    animation: ldrTextFade 0.8s 0.5s ease both;
}

.ldr-pct {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    align-self: flex-end;
}

.ldr-track {
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
}

.ldr-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(29, 205, 159, 0.7);
    transition: width 0.15s ease;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.main-footer {
    background: var(--bg-secondary);
    padding: 80px 8% 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 60px;
}

.brand-tagline {
    color: var(--text-muted);
    margin: 1.2rem 0;
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 1.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.social-icons a {
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--bg-primary);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(29, 205, 159, 0.35);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    margin-top: 10px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-legal a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 18px;
    transition: color 0.3s;
}

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

/* ==========================================================================
   13. FLOATING WHATSAPP BUTTON
   ========================================================================== */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    text-decoration: none;
    z-index: 1500;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: waPulse 2.8s ease-in-out infinite;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
    50%       { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

.wa-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6);
    animation: none;
}

.wa-float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a2e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wa-float-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1a1a2e;
    border-right: none;
}

.wa-float:hover .wa-float-tooltip { opacity: 1; }

/* ==========================================================================
   14. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-bar::after { box-shadow: none; }
    .nav-bar:has(#nav-menu.active)::after { display: none; }

    .menu-item-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    }

    .menu-item-container.active { right: 0; }

    .menu-item {
        font-size: 1.1rem;
        padding: 12px 22px;
    }

    /* Sliding pill is desktop-only — mobile uses an inline highlight */
    .menu-pill { display: none; }
    .menu-item--active {
        background: rgba(29, 205, 159, 0.1);
        border: 1px solid rgba(29, 205, 159, 0.25);
    }

    /* Stagger reveal of items as the panel slides in */
    .menu-item-container.active .menu-item {
        animation: mobileItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .menu-item-container.active .menu-item:nth-child(1) { animation-delay: 0.10s; }
    .menu-item-container.active .menu-item:nth-child(2) { animation-delay: 0.16s; }
    .menu-item-container.active .menu-item:nth-child(3) { animation-delay: 0.22s; }
    .menu-item-container.active .menu-item:nth-child(4) { animation-delay: 0.28s; }
    .menu-item-container.active .menu-item:nth-child(5) { animation-delay: 0.34s; }
    @keyframes mobileItemIn {
        0%   { opacity: 0; transform: translateX(28px); }
        100% { opacity: 1; transform: translateX(0);    }
    }

    .demo-card-v2 { flex-direction: column; text-align: center; }

    .footer-content { grid-template-columns: 1fr; }

    .hamburger.toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .hide-mobile  { display: none; }
    .mobile-only  { display: block; }

    .wa-float { bottom: 1.5rem; right: 1.5rem; width: 52px; height: 52px; font-size: 1.35rem; }
}

@media (max-width: 600px) {
    .footer-content { gap: 2rem; }
    .footer-bottom-container { flex-direction: column; gap: 12px; text-align: center; }
}

/* ==========================================================================
   15. GLOBAL POLISH
   ========================================================================== */

/* ── Custom scrollbar ── */
::-webkit-scrollbar               { width: 5px; height: 5px; }
::-webkit-scrollbar-track         { background: transparent; }
::-webkit-scrollbar-thumb         { background: rgba(29, 205, 159, 0.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover   { background: rgba(29, 205, 159, 0.5); }
html { scrollbar-width: thin; scrollbar-color: rgba(29, 205, 159, 0.28) transparent; }

/* ── Text selection ── */
::selection { background: rgba(29, 205, 159, 0.22); color: var(--text-dark); }

/* ── Focus ring ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button:focus-visible, a:focus-visible { border-radius: 8px; }

/* ── btn-var-white hover ── */
.btn-var-white:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ── Homepage about section ── */
.about {
    background: linear-gradient(160deg, rgba(29, 205, 159, 0.04) 0%, var(--bg-primary) 60%);
    position: relative;
}

.about-homepage-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0.5rem 0 1.5rem;
    color: var(--text-dark);
}

.about .about-desc {
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    max-width: 800px;
    line-height: 1.85;
}

/* ── Section heading with accent underline ── */
.section-heading-xl {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}
.section-heading-xl::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 52px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* ── Testimonials dark variant ── */
.testimonials--dark {
    background: var(--hero-bg);
}
.testimonials--dark .section-heading {
    color: #ffffff;
}
.testimonials--dark .testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.testimonials--dark .testimonial-card:hover {
    border-color: rgba(29, 205, 159, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.testimonials--dark .testimonial-text   { color: rgba(255, 255, 255, 0.72); }
.testimonials--dark .testimonial-name   { color: rgba(255, 255, 255, 0.92); }
.testimonials--dark .testimonial-role   { color: rgba(255, 255, 255, 0.42); }
.testimonials--dark .testimonial-stars  { color: #f5c518; }

/* ── Animated accent label ── */
.accent-label-animated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
}
.accent-label-animated::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Footer top gradient transition ── */
.main-footer {
    background: linear-gradient(180deg, var(--bg-primary) 0px, var(--bg-secondary) 60px);
}

/* ── Stat number counter animation ── */
.about-stat-num {
    font-variant-numeric: tabular-nums;
}

/* ── Demo card preview gradient backgrounds ── */
.dfc-img-wrap {
    background: linear-gradient(135deg, #f0fdf8 0%, #e8f5f0 100%);
}

/* ── Demos section heading polish ── */
.demos-heading {
    letter-spacing: -0.03em;
}

/* ── Testimonials hover shadow ── */
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(29, 205, 159, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: -1;
}
.testimonial-card {
    position: relative;
    isolation: isolate;
}
.testimonial-card:hover::before { opacity: 1; }

/* ── Section content max-width tighten on ultra-wide ── */
@media (min-width: 1440px) {
    .section-content { padding-left: max(8%, calc((100% - 1400px) / 2)); padding-right: max(8%, calc((100% - 1400px) / 2)); }
}

@media (max-width: 480px) {
    .section-content { padding: 72px 6%; }
    .about { padding: 0; }
}
