/* ============================================
   SCALEPLUS — BLACKOUT + PURPLE LIQUID DESIGN
   Flying elements, aurora, glitch, scanlines
   ============================================ */

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: #0d0d0d;
    --bg-card-hover: #111111;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(168, 85, 247, 0.4);
    --text-primary: #f5f5f5;
    --text-secondary: #888888;
    --text-muted: #555555;
    --purple: #a855f7;
    --purple-light: #c084fc;
    --purple-dark: #7c3aed;
    --purple-glow: rgba(168, 85, 247, 0.15);
    --purple-glow-strong: rgba(168, 85, 247, 0.35);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(168, 85, 247, 0.3); color: #fff; }

/* ============================================
   PARTICLE CANVAS
   ============================================ */
.particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ============================================
   FLYING ICONS
   ============================================ */
.flying-icons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.flying-icon {
    position: absolute;
    color: rgba(168, 85, 247, 0.12);
    opacity: 0;
    animation: flyAround 20s linear infinite;
}

.fi-1 { top: 15%; left: -5%; animation-delay: 0s; animation-duration: 22s; }
.fi-2 { top: 40%; left: -5%; animation-delay: -4s; animation-duration: 18s; }
.fi-3 { top: 65%; left: -5%; animation-delay: -8s; animation-duration: 25s; }
.fi-4 { top: 25%; left: -5%; animation-delay: -12s; animation-duration: 20s; }
.fi-5 { top: 80%; left: -5%; animation-delay: -16s; animation-duration: 23s; }
.fi-6 { top: 50%; left: -5%; animation-delay: -6s; animation-duration: 19s; }

@keyframes flyAround {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.8); opacity: 0; }
    5% { opacity: 1; }
    50% { transform: translate(calc(100vw + 100px), -80px) rotate(180deg) scale(1.2); opacity: 0.6; }
    95% { opacity: 0; }
    100% { transform: translate(calc(200vw), -160px) rotate(360deg) scale(0.8); opacity: 0; }
}

/* ============================================
   SCANLINE OVERLAY
   ============================================ */
.scanline-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}



/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-scale { color: var(--text-primary); }
.logo-plus { color: var(--purple); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--purple);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--purple);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--purple-dark);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    display: block;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Aurora effect */
.hero-aurora {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(168, 85, 247, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.04), transparent),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(168, 85, 247, 0.03), transparent);
    animation: auroraShift 12s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% { opacity: 0.6; transform: scale(1) translateY(0); }
    50% { opacity: 1; transform: scale(1.05) translateY(-10px); }
    100% { opacity: 0.7; transform: scale(0.98) translateY(5px); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 { width: 500px; height: 500px; background: rgba(168, 85, 247, 0.08); top: 10%; left: 20%; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(124, 58, 237, 0.06); bottom: 10%; right: 15%; animation-delay: -4s; }
.hero-orb-3 { width: 300px; height: 300px; background: rgba(192, 132, 252, 0.05); top: 50%; left: 60%; animation-delay: -2s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(10px, 10px) scale(1.02); }
}

/* Spinning rings */
.hero-ring {
    position: absolute;
    border: 1px solid rgba(168, 85, 247, 0.06);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.hero-ring-1 {
    width: 600px;
    height: 600px;
    margin-top: -300px;
    margin-left: -300px;
    animation: ringRotate 30s linear infinite;
}

.hero-ring-2 {
    width: 800px;
    height: 800px;
    margin-top: -400px;
    margin-left: -400px;
    border-style: dashed;
    animation: ringRotate 45s linear infinite reverse;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--purple);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-line-1 {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.hero-gradient {
    display: block;
    background: linear-gradient(135deg, var(--purple-light), var(--purple), var(--purple-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glitch text effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--purple-light), var(--purple), var(--purple-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.glitch-text::before {
    animation: glitch1 4s ease-in-out infinite;
    clip-path: inset(0 0 60% 0);
}

.glitch-text::after {
    animation: glitch2 4s ease-in-out infinite;
    clip-path: inset(40% 0 0 0);
}

@keyframes glitch1 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    92% { opacity: 0.8; transform: translate(-2px, 1px); }
    94% { opacity: 0; transform: translate(2px, -1px); }
    96% { opacity: 0.6; transform: translate(1px, 2px); }
}

@keyframes glitch2 {
    0%, 88%, 100% { opacity: 0; transform: translate(0); }
    90% { opacity: 0.7; transform: translate(2px, -1px); }
    93% { opacity: 0; transform: translate(-1px, 2px); }
    95% { opacity: 0.5; transform: translate(-2px, -1px); }
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary { background: var(--purple); color: #fff; }

.btn-primary:hover {
    background: var(--purple-dark);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.3), 0 0 80px rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

.btn-full { width: 100%; justify-content: center; }

.liquid-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.liquid-btn:hover::before { width: 300px; height: 300px; }

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.stat-plus, .stat-percent { font-size: 1.25rem; color: var(--purple); font-weight: 700; }

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider { width: 1px; height: 40px; background: var(--border-subtle); }

/* Scroll Indicator */
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--purple);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    background: var(--bg-secondary);
}

.marquee-track { display: flex; overflow: hidden; }

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--purple);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--purple);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.text-purple { color: var(--purple); }

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

/* ============================================
   LIQUID CARD EFFECT
   ============================================ */
.liquid-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.liquid-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--purple-glow-strong), transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.liquid-card:hover::before { width: 400px; height: 400px; }

.liquid-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 0.4s;
    pointer-events: none;
    z-index: 1;
}

.liquid-card:hover::after { border-color: var(--border-hover); }
.liquid-card > * { position: relative; z-index: 2; }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 120px 0; background: var(--bg-primary); position: relative; z-index: 3; }

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

/* Center last row when odd number of cards (5 cards: 3 top, 2 centered bottom) */
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
    /* handled by auto grid */
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--purple);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 3;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual { position: relative; height: 450px; }

.about-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    animation: orbFloat 6s ease-in-out infinite;
}

.about-card-stack { position: relative; width: 100%; height: 100%; }

.about-float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px 32px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.about-float-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.1);
    transform: translateY(-4px) !important;
}

.afc-1 { top: 30px; left: 20px; animation: floatCard 5s ease-in-out infinite; }
.afc-2 { top: 160px; right: 20px; animation: floatCard 5s ease-in-out infinite; animation-delay: -1.5s; }
.afc-3 { bottom: 40px; left: 60px; animation: floatCard 5s ease-in-out infinite; animation-delay: -3s; }

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

.afc-number { display: block; font-size: 1.75rem; font-weight: 800; color: var(--purple); }
.afc-label { font-size: 0.8rem; color: var(--text-muted); }

.about-content .section-tag,
.about-content .section-title { text-align: left; }

.about-content p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }

.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.af-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    flex-shrink: 0;
}

/* ============================================
   PROCESS
   ============================================ */
.process { padding: 120px 0; background: var(--bg-primary); position: relative; z-index: 3; }

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-line { display: none; }

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.process-step:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(168, 85, 247, 0.15);
    font-family: var(--font-mono);
    margin-bottom: 16px;
    line-height: 1;
    transition: color 0.3s;
}

.process-step:hover .step-number { color: rgba(168, 85, 247, 0.35); }

.step-content h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.step-content p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ============================================
   RESULTS
   ============================================ */
.results {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 3;
}

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

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
}

.result-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.result-metric {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -2px;
    margin-bottom: 8px;
    line-height: 1;
}

.result-metric span { color: var(--purple); font-size: 1.5rem; }
.result-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }


/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 120px 0; background: var(--bg-primary); position: relative; z-index: 3; }

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.testimonial-card {
    flex: 0 1 calc(33.333% - 14px);
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.testimonial-stars { color: var(--purple); font-size: 0.875rem; letter-spacing: 2px; margin-bottom: 16px; }

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

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

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
}

.testimonial-author strong { display: block; font-size: 0.875rem; font-weight: 600; }
.testimonial-author > div span { font-size: 0.75rem; color: var(--text-muted); display: block; }

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 3;
}

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: rgba(168, 85, 247, 0.15); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover { color: var(--purple-light); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.3s;
}

.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--purple); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 24px 20px; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   CTA
   ============================================ */
.cta-section { padding: 80px 0; background: var(--bg-primary); position: relative; z-index: 3; }

.cta-box {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    text-align: center;
}

.cta-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.cta-box h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

.cta-buttons { position: relative; }

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 3;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tag,
.contact-info .section-title { text-align: left; }

.contact-info p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.contact-item svg { color: var(--purple); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
}

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

.form-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

select.form-input { cursor: pointer; color: var(--text-muted); }
select.form-input:valid { color: var(--text-primary); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ============================================
   POPUP CTA — FULL SCREEN TAKEOVER
   ============================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow-y: auto;
}
.popup-overlay.active {
    display: flex;
    opacity: 1;
}
.popup-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding: 60px 40px;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}
.popup-overlay.active .popup-card {
    transform: scale(1);
}
.popup-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
    pointer-events: none;
}
.popup-close {
    position: fixed;
    top: 24px;
    right: 32px;
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    z-index: 10001;
}
.popup-close:hover {
    color: var(--text-primary);
    border-color: var(--purple);
    background: rgba(168, 85, 247, 0.1);
}
.popup-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.popup-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.6;
}
.popup-card .contact-form {
    gap: 14px;
    text-align: left;
}
.popup-card .form-input {
    padding: 14px 18px;
    font-size: 0.9375rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}
.popup-card textarea.form-input { min-height: 90px; }
.popup-skip {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.popup-skip:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
    .popup-card { padding: 80px 24px 40px; }
    .popup-close { top: 16px; right: 16px; width: 38px; height: 38px; font-size: 20px; }
    .popup-card .form-row { flex-direction: column; gap: 10px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 16px; line-height: 1.6; max-width: 280px; }

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--purple-light); }

.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 3;
}

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

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.beauty-glow {
    background: rgba(219, 112, 147, 0.08);
    border: 1px solid rgba(219, 112, 147, 0.15);
    color: #db7093;
}

.wellness-glow {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.construction-glow {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.portfolio-card:hover .portfolio-icon {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.ecommerce-glow {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.realestate-glow {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.manufacturing-glow {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.portfolio-card:hover .beauty-glow { background: rgba(219, 112, 147, 0.15); box-shadow: 0 0 30px rgba(219, 112, 147, 0.15); }
.portfolio-card:hover .wellness-glow { background: rgba(34, 197, 94, 0.15); box-shadow: 0 0 30px rgba(34, 197, 94, 0.15); }
.portfolio-card:hover .construction-glow { background: rgba(245, 158, 11, 0.15); box-shadow: 0 0 30px rgba(245, 158, 11, 0.15); }
.portfolio-card:hover .ecommerce-glow { background: rgba(168, 85, 247, 0.15); box-shadow: 0 0 30px rgba(168, 85, 247, 0.15); }
.portfolio-card:hover .realestate-glow { background: rgba(59, 130, 246, 0.15); box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); }
.portfolio-card:hover .manufacturing-glow { background: rgba(239, 68, 68, 0.15); box-shadow: 0 0 30px rgba(239, 68, 68, 0.15); }

.portfolio-tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--purple);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.portfolio-grid-bottom {
    margin-top: 20px;
}

.portfolio-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.portfolio-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ---- Dynamic Flowchart ---- */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 24px;
    flex: 1;
}

/* Node base */
.fc-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: all 0.35s ease;
    cursor: default;
}

.fc-node:hover {
    border-color: var(--border-hover);
    background: rgba(168, 85, 247, 0.06);
    transform: translateX(4px);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.08);
}

/* Node type color accents */
.fc-trigger { border-left: 3px solid var(--purple); }
.fc-process { border-left: 3px solid var(--purple-light); }
.fc-action { border-left: 3px solid var(--purple-dark); }
.fc-output { border-left: 3px solid #22c55e; }

/* Per-niche accent overrides */
[data-niche="beauty"] .fc-trigger { border-left-color: #db7093; }
[data-niche="beauty"] .fc-output { border-left-color: #db7093; }
[data-niche="wellness"] .fc-trigger { border-left-color: #22c55e; }
[data-niche="wellness"] .fc-output { border-left-color: #22c55e; }
[data-niche="construction"] .fc-trigger { border-left-color: #f59e0b; }
[data-niche="construction"] .fc-output { border-left-color: #f59e0b; }
[data-niche="ecommerce"] .fc-trigger { border-left-color: #a855f7; }
[data-niche="ecommerce"] .fc-output { border-left-color: #a855f7; }
[data-niche="realestate"] .fc-trigger { border-left-color: #3b82f6; }
[data-niche="realestate"] .fc-output { border-left-color: #3b82f6; }
[data-niche="manufacturing"] .fc-trigger { border-left-color: #ef4444; }
[data-niche="manufacturing"] .fc-output { border-left-color: #ef4444; }

.fc-node-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    transition: all 0.35s;
}

.fc-node:hover .fc-node-icon {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

[data-niche="beauty"] .fc-node-icon { background: rgba(219, 112, 147, 0.08); border-color: rgba(219, 112, 147, 0.2); color: #db7093; }
[data-niche="beauty"] .fc-node:hover .fc-node-icon { background: rgba(219, 112, 147, 0.2); box-shadow: 0 0 16px rgba(219, 112, 147, 0.25); }
[data-niche="wellness"] .fc-node-icon { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.2); color: #22c55e; }
[data-niche="wellness"] .fc-node:hover .fc-node-icon { background: rgba(34, 197, 94, 0.2); box-shadow: 0 0 16px rgba(34, 197, 94, 0.25); }
[data-niche="construction"] .fc-node-icon { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.2); color: #f59e0b; }
[data-niche="construction"] .fc-node:hover .fc-node-icon { background: rgba(245, 158, 11, 0.2); box-shadow: 0 0 16px rgba(245, 158, 11, 0.25); }
[data-niche="ecommerce"] .fc-node-icon { background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.2); color: #a855f7; }
[data-niche="ecommerce"] .fc-node:hover .fc-node-icon { background: rgba(168, 85, 247, 0.2); box-shadow: 0 0 16px rgba(168, 85, 247, 0.25); }
[data-niche="realestate"] .fc-node-icon { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.2); color: #3b82f6; }
[data-niche="realestate"] .fc-node:hover .fc-node-icon { background: rgba(59, 130, 246, 0.2); box-shadow: 0 0 16px rgba(59, 130, 246, 0.25); }
[data-niche="manufacturing"] .fc-node-icon { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); color: #ef4444; }
[data-niche="manufacturing"] .fc-node:hover .fc-node-icon { background: rgba(239, 68, 68, 0.2); box-shadow: 0 0 16px rgba(239, 68, 68, 0.25); }

.fc-node span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.3s;
}

.fc-node:hover span { color: var(--text-primary); }

/* Trigger node pulse ring */
.fc-pulse {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
    transform: translateY(-50%);
    animation: fcPulse 2s ease-in-out infinite;
}

[data-niche="beauty"] .fc-pulse { background: #db7093; }
[data-niche="wellness"] .fc-pulse { background: #22c55e; }
[data-niche="construction"] .fc-pulse { background: #f59e0b; }

@keyframes fcPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
}

[data-niche="beauty"] .fc-pulse { animation-name: fcPulseBeauty; }
@keyframes fcPulseBeauty {
    0%, 100% { box-shadow: 0 0 0 0 rgba(219, 112, 147, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(219, 112, 147, 0); }
}

[data-niche="wellness"] .fc-pulse { animation-name: fcPulseWellness; }
@keyframes fcPulseWellness {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

[data-niche="construction"] .fc-pulse { animation-name: fcPulseConstruction; }
@keyframes fcPulseConstruction {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

[data-niche="realestate"] .fc-pulse { background: #3b82f6; animation-name: fcPulseRealestate; }
@keyframes fcPulseRealestate {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

[data-niche="manufacturing"] .fc-pulse { background: #ef4444; animation-name: fcPulseManufacturing; }
@keyframes fcPulseManufacturing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Connector between nodes */
.fc-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 28px;
    position: relative;
    margin-left: 28px;
}

.fc-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.4), rgba(168, 85, 247, 0.15));
    position: relative;
    overflow: hidden;
}

[data-niche="beauty"] .fc-line { background: linear-gradient(180deg, rgba(219, 112, 147, 0.4), rgba(219, 112, 147, 0.15)); }
[data-niche="wellness"] .fc-line { background: linear-gradient(180deg, rgba(34, 197, 94, 0.4), rgba(34, 197, 94, 0.15)); }
[data-niche="construction"] .fc-line { background: linear-gradient(180deg, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0.15)); }
[data-niche="realestate"] .fc-line { background: linear-gradient(180deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.15)); }
[data-niche="manufacturing"] .fc-line { background: linear-gradient(180deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.15)); }

/* Animated flowing data dot on connector */
.fc-data-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6), 0 0 20px rgba(168, 85, 247, 0.3);
    animation: flowDown 2.5s ease-in-out infinite;
    opacity: 0;
}

[data-niche="beauty"] .fc-data-dot { background: #db7093; box-shadow: 0 0 8px rgba(219, 112, 147, 0.6), 0 0 20px rgba(219, 112, 147, 0.3); }
[data-niche="wellness"] .fc-data-dot { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6), 0 0 20px rgba(34, 197, 94, 0.3); }
[data-niche="construction"] .fc-data-dot { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6), 0 0 20px rgba(245, 158, 11, 0.3); }
[data-niche="realestate"] .fc-data-dot { background: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.3); }
[data-niche="manufacturing"] .fc-data-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6), 0 0 20px rgba(239, 68, 68, 0.3); }

/* Stagger the data dots */
.fc-connector:nth-child(2) .fc-data-dot { animation-delay: 0s; }
.fc-connector:nth-child(4) .fc-data-dot { animation-delay: 0.6s; }
.fc-connector:nth-child(6) .fc-data-dot { animation-delay: 1.2s; }

@keyframes flowDown {
    0% { top: -2px; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: calc(100% - 4px); opacity: 0; }
}

/* Arrow at bottom of connector */
.fc-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(168, 85, 247, 0.4);
    flex-shrink: 0;
}

[data-niche="beauty"] .fc-arrow { border-top-color: rgba(219, 112, 147, 0.4); }
[data-niche="wellness"] .fc-arrow { border-top-color: rgba(34, 197, 94, 0.4); }
[data-niche="construction"] .fc-arrow { border-top-color: rgba(245, 158, 11, 0.4); }
[data-niche="realestate"] .fc-arrow { border-top-color: rgba(59, 130, 246, 0.4); }
[data-niche="manufacturing"] .fc-arrow { border-top-color: rgba(239, 68, 68, 0.4); }

/* Portfolio Stats */
.portfolio-stats {
    display: flex;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.ps-item {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.08);
    transition: var(--transition);
}

.ps-item:hover {
    border-color: var(--border-hover);
    background: rgba(168, 85, 247, 0.08);
}

.ps-item strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.ps-item span {
    display: block;
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   TESTIMONIALS — UPDATED
   ============================================ */
.testimonial-service-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple);
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.testimonial-location {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.author-avatar span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.5px;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE: TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid .testimonial-card { flex: 0 1 calc(50% - 10px); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .hero-ring { display: none; }
}

/* ============================================
   RESPONSIVE: MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 12px; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 5, 5, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 10001;
        padding: 80px 20px 40px;
    }

    .nav-links.active { display: flex; }

    .nav-links li { list-style: none; text-align: center; }

    .nav-links a {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .nav-links .nav-cta {
        margin-top: 12px;
        padding: 12px 32px;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 10002;
        position: relative;
    }

    .nav-toggle span {
        background: var(--text-primary);
    }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding: 100px 20px 60px; }
    .hero-title { letter-spacing: -1px; }
    .hero-line-1 { font-size: clamp(1.2rem, 5vw, 1.8rem); }
    .hero-ring { display: none; }

    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-divider { width: 40px; height: 1px; }

    .services-grid,
    .process-timeline,
    .results-grid,
    .portfolio-grid { grid-template-columns: 1fr; }

    .testimonials-grid .testimonial-card { flex: 0 1 100%; }

    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }

    .about-visual { height: 300px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .cta-box { padding: 48px 24px; }

    .cursor-glow { display: none; }
    .flying-icons { display: none; }

    .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    .hero { padding: 90px 16px 40px; min-height: auto; }
    .container { padding: 0 16px; }

    .hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .hero-line-1 { font-size: clamp(1rem, 4vw, 1.4rem); }
    .hero-subtitle { font-size: 0.9375rem; padding: 0 8px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; min-height: 48px; }

    .section-tag { font-size: 0.7rem; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.875rem; padding: 0 8px; }

    .service-card,
    .process-step,
    .result-card,
    .testimonial-card { padding: 28px 20px; }

    .portfolio-card { padding: 28px 20px; }
    .portfolio-stats { flex-direction: row; gap: 6px; }
    .ps-item strong { font-size: 1rem; }
    .fc-connector { height: 22px; margin-left: 22px; }
    .fc-node { padding: 8px 10px; gap: 8px; }
    .fc-node-icon { width: 28px; height: 28px; min-width: 28px; }
    .fc-node span { font-size: 0.75rem; }

    .results-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .result-card { padding: 24px 16px; }
    .result-metric { font-size: 2rem; }
    .result-metric span { font-size: 1.1rem; }

    .about-visual { height: 260px; }
    .about-float-card { padding: 16px 20px; }
    .afc-number { font-size: 1.4rem; }

    .marquee-content span { font-size: 0.8rem; }

    .contact-form input,
    .contact-form select,
    .contact-form textarea { font-size: 16px; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, a, button, .nav-links a, .faq-question { min-height: 44px; }
    .cursor-glow { display: none; }
    .liquid-card { --mouse-x: 50%; --mouse-y: 50%; }
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    padding: 20px;
}
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.popup-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.popup-overlay.active .popup-box {
    transform: scale(1) translateY(0);
}
.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
    font-size: 1.2rem;
}
.popup-close:hover { color: var(--text-primary); border-color: var(--purple); }
.popup-icon {
    width: 56px;
    height: 56px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--purple);
}
.popup-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.popup-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}
.popup-btn:hover { background: var(--purple-hover); transform: translateY(-2px); }
@media (max-width: 480px) {
    .popup-box { padding: 36px 24px; }
    .popup-title { font-size: 1.25rem; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .particle-canvas, .flying-icons, .scanline-overlay,
    .hero-aurora, .hero-ring, .cursor-glow { display: none; }
    .portfolio-card { animation: none !important; }
}
