/* ============================================
   BrainWik — AI Automation & Growth
   Master Stylesheet
   ============================================ */

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

:root {
    --bg: #0a0c10;
    --bg-soft: #12161f;
    --bg-card: rgba(22, 28, 40, 0.7);
    --text: #f0f4fa;
    --text-soft: #b0bedb;
    --text-mute: #8896b2;
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.06);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-cyan: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-warm: linear-gradient(135deg, #ec4899, #f97316);
    --gradient-cool: linear-gradient(135deg, #10b981, #06b6d4);
    --shadow-glow: 0 8px 32px rgba(59, 130, 246, 0.4);
    --shadow-glow-purple: 0 16px 48px rgba(139, 92, 246, 0.6);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; position: relative; z-index: 1; }

h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(139, 92, 246, 0.4); color: white; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.animated-bg {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 20% 30%, #1a1e2b, #0a0c10 80%);
}

.gradient-blob {
    position: fixed;
    width: 70vmax; height: 70vmax;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    z-index: -1;
    animation: floatBlob 18s infinite alternate ease-in-out;
    pointer-events: none;
    will-change: transform;
}
.blob1 { background: var(--gradient-primary); top: -20vmax; left: -10vmax; }
.blob2 { background: var(--gradient-warm); bottom: -20vmax; right: -10vmax; animation-duration: 22s; animation-delay: -5s; }
.blob3 { background: var(--gradient-cool); top: 40%; left: 30%; width: 40vmax; height: 40vmax; opacity: 0.2; animation-duration: 25s; animation-delay: -10s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.15); }
    100% { transform: translate(-5%, -5%) scale(1.05); }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-sm { padding: 60px 0; }

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.section-header.left { text-align: left; margin-left: 0; }

.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 60px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-warm {
    background: linear-gradient(135deg, #fbbf24, #f97316, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-cool {
    background: linear-gradient(135deg, #34d399, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(8, 11, 18, 0.82);
    backdrop-filter: saturate(170%) blur(22px);
    -webkit-backdrop-filter: saturate(170%) blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    background: rgba(8, 11, 18, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.site-header .header-inner {
    max-width: 1300px; margin: 0 auto; padding: 0 24px;
    height: 76px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center; gap: 24px;
}
.site-header .logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
    color: white; justify-self: start;
}
.site-header .header-logo-image {
    display: block;
    height: auto;
    filter: brightness(0.8);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.site-header .header-logo-image {
    width: 172px;
    mix-blend-mode: lighten;
    filter: none;
    -webkit-mask-image: radial-gradient(ellipse 95% 95% at center, #000 82%, transparent 100%);
    mask-image: radial-gradient(ellipse 95% 95% at center, #000 82%, transparent 100%);
}
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gradient-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; color: white;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}
.nav-desktop {
    display: flex; align-items: center; justify-self: center; gap: 4px;
    margin: 0; padding: 0;
}
.nav-desktop a {
    position: relative; padding: 10px 12px; border-radius: 8px;
    color: #b8c4d9; font-size: 0.88rem; font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover { color: white; background: rgba(255, 255, 255, 0.055); }
.nav-desktop a.active {
    color: white; background: rgba(139, 92, 246, 0.12);
}
.nav-desktop a:focus-visible, .header-link-demo:focus-visible, .header-cta:focus-visible, .menu-toggle:focus-visible {
    outline: 2px solid #a5b4fc; outline-offset: 3px;
}

.header-actions { display: flex; align-items: center; justify-self: end; gap: 10px; }
.header-link-demo {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 10px;
    color: #c4cee0; font-size: 0.84rem; font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.header-link-demo:hover { background: rgba(255, 255, 255, 0.07); color: white; }
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: liveDot 1.8s infinite;
}
@keyframes liveDot {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.site-header .header-cta {
    padding: 10px 16px; border-radius: 9px;
    background: var(--gradient-primary);
    color: white; font-weight: 600; font-size: 0.86rem;
    box-shadow: 0 5px 16px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.site-header .header-cta:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(59, 130, 246, 0.34); }

.menu-toggle {
    display: none;
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer; position: relative;
}
.menu-toggle span {
    position: absolute; left: 11px; right: 11px; height: 2px;
    background: white; border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-nav {
    position: fixed; inset: 72px 0 0 0; z-index: 999;
    background: rgba(8, 11, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px;
    font-size: 1.2rem; font-weight: 600; color: #d6deeb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav-links a i { font-size: 0.85rem; color: var(--text-mute); transition: transform 0.2s; }
.mobile-nav-links a:hover i { transform: translateX(4px); }
.mobile-nav-links a.active { color: white; }
.mobile-nav-links a.active i { color: #c084fc; }
.mobile-nav-footer { display: grid; gap: 10px; padding-top: 24px; }
.mobile-nav-footer .btn { width: 100%; padding: 14px 20px; }

/* 6 menu links fit on most laptops: drop the "Live demo" link first, the full menu only below 1024px */
@media (max-width: 1180px) {
    .header-link-demo { display: none; }
    .nav-desktop a { padding: 8px 12px; }
}
@media (max-width: 1024px) {
    .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
    .nav-desktop { display: none; }
    .menu-toggle { display: block; }
    .header-actions { margin-left: 0; }
}
@media (max-width: 480px) {
    .site-header .header-inner { height: 64px; padding: 0 16px; }
    .site-header .header-logo-image { width: 140px; }
    .mobile-nav { inset: 64px 0 0 0; }
    .site-header .header-cta { padding: 9px 14px; font-size: 0.82rem; }
}
@media (max-width: 380px) {
    .site-header .header-inner { gap: 12px; }
    .site-header .header-cta { display: none; }
}
@media (min-width: 1025px) { .mobile-nav { display: none; } }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px; border-radius: 60px;
    font-weight: 600; font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn:hover::before { width: 400px; height: 400px; }
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-purple);
}
.btn-warm {
    background: var(--gradient-warm);
    border: none;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.4);
}
.btn-warm:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(249, 115, 22, 0.6);
}
.btn-cool {
    background: var(--gradient-cool);
    border: none;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
}
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-lg { padding: 18px 42px; font-size: 1.1rem; }
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    margin-bottom: 20px;
    animation: fadeUp 0.9s ease;
}
.hero p.lead {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    color: var(--text-soft);
    max-width: 720px;
    margin: 0 auto 40px;
    animation: fadeUp 0.9s 0.15s ease backwards;
}
.hero .hero-cta-row {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.9s 0.3s ease backwards;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 60px;
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    animation: fadeUp 0.9s ease;
}
.hero-badge .pulse-dot {
    width: 8px; height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   GLASS CARDS
   ============================================ */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
}

.card {
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.card:hover::before { opacity: 1; }

.card-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 20px;
    transition: transform 0.4s;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.card-icon.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.card-icon.pink   { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.card-icon.green  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.card-icon.orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.card-icon.blue   { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.card-icon.cyan   { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.card p {
    color: var(--text-soft);
    font-size: 0.97rem;
}

/* ============================================
   GRIDS
   ============================================ */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 950px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   HEALTH CHECK FORM
   ============================================ */
.health-check {
    background: rgba(18, 22, 33, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 48px;
    padding: 48px;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.health-check h2 {
    font-size: 1.9rem;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.health-check p { color: var(--text-soft); margin-bottom: 6px; }
.health-form {
    display: flex; gap: 12px; margin-top: 28px;
    flex-wrap: wrap;
}
.health-form input {
    flex: 1 1 220px;
    padding: 16px 22px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.3s, box-shadow 0.3s;
}
.health-form input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.health-form input::placeholder { color: var(--text-mute); }
.health-result {
    margin-top: 24px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    display: none;
}
.health-result.show { display: block; animation: fadeUp 0.5s ease; }
.health-score {
    font-size: 3rem; font-weight: 800;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   STATS / COUNTERS
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 48px;
    background: rgba(18, 22, 33, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
}
.stat-item { text-align: center; }
.stat-item .stat-value {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item .stat-label {
    color: var(--text-mute);
    font-size: 0.95rem;
}
@media (max-width: 760px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 32px; }
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}
.pricing-card {
    padding: 38px 30px;
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s;
    position: relative;
}
.pricing-card.featured {
    border-color: var(--accent-purple);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(22, 28, 40, 0.7));
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.featured:hover { transform: translateY(-6px) scale(1.03); }
.pricing-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 60px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.pricing-card .plan-name {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.pricing-card .plan-price {
    font-size: 3rem; font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}
.pricing-card .plan-price span {
    font-size: 1rem; font-weight: 500; color: var(--text-mute);
}
.pricing-card .plan-desc {
    color: var(--text-mute); font-size: 0.9rem;
    margin-bottom: 26px;
}
.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}
.pricing-card ul li {
    padding: 10px 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border-soft);
}
.pricing-card ul li i { color: #34d399; font-size: 0.9rem; }
.pricing-card ul li.disabled { color: var(--text-mute); opacity: 0.6; }
.pricing-card ul li.disabled i { color: var(--text-mute); }

@media (max-width: 950px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-6px); }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial {
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    padding: 32px;
    transition: all 0.4s;
    position: relative;
}
.testimonial:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}
.testimonial .stars {
    color: #fbbf24;
    margin-bottom: 14px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.testimonial .quote {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 22px;
}
.testimonial .author {
    display: flex; align-items: center; gap: 14px;
}
.testimonial .avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: white;
}
.testimonial .author-info .name { font-weight: 600; font-size: 0.95rem; }
.testimonial .author-info .role { color: var(--text-mute); font-size: 0.85rem; }

/* ============================================
   PROCESS / TIMELINE
   ============================================ */
.process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.process-step {
    position: relative;
    padding: 32px 24px;
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    counter-increment: step;
    transition: all 0.4s;
}
.process-step:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}
.process-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 24px; right: 24px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(139, 92, 246, 0.25);
    line-height: 1;
}
.process-step .step-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.process-step h4 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--text-soft); font-size: 0.92rem; }

@media (max-width: 950px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process-list { grid-template-columns: 1fr; } }

/* ============================================
   BLOG / ARTICLE CARDS
   ============================================ */
.article-card {
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.article-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
}
.article-thumb.warm { background: linear-gradient(135deg, #ec4899, #f97316); }
.article-thumb.cool { background: linear-gradient(135deg, #10b981, #06b6d4); }
.article-thumb.violet { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.article-thumb.sunset { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.article-thumb.forest { background: linear-gradient(135deg, #059669, #06b6d4); }
.article-thumb.ocean { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.article-card .article-body {
    padding: 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.article-card .tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 60px;
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}
.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.2s;
    overflow-wrap: normal;
}
.article-card:hover h3 { color: #c084fc; }
.article-card p { color: var(--text-soft); font-size: 0.93rem; flex: 1; overflow-wrap: normal; }
.article-meta {
    margin-top: 18px;
    display: flex; align-items: center; gap: 12px;
    font-size: 0.85rem;
    color: var(--text-mute);
    flex-wrap: wrap;
}
.article-meta .dot { width: 3px; height: 3px; background: var(--text-mute); border-radius: 50%; }

/* ============================================
   FORM
   ============================================ */
.contact-form {
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================
   TEAM
   ============================================ */
.team-card {
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s;
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
}
.team-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 800;
    color: white;
    position: relative;
    overflow: hidden;
}
.team-avatar.warm { background: var(--gradient-warm); }
.team-avatar.cool { background: var(--gradient-cool); }
.team-avatar.violet { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.team-card h4 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card .role { color: #c084fc; font-size: 0.88rem; margin-bottom: 14px; }
.team-card .bio { color: var(--text-soft); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.team-card .team-social {
    display: flex; gap: 10px; justify-content: center;
}
.team-card .team-social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.team-card .team-social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}
.team-scroller {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) rgba(255, 255, 255, 0.06);
    padding: 4px 2px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.team-scroller:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; border-radius: 12px; }
.team-track { display: flex; gap: 18px; width: max-content; }
.team-scroller .team-card {
    flex: 0 0 220px;
    padding: 20px 16px;
    border-radius: 18px;
    scroll-snap-align: start;
}
.team-scroller .team-avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    font-size: 1.5rem;
}
.team-scroller .team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-scroller .team-card .role { font-size: 0.8rem; margin: 0; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 36px;
    padding: 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    pointer-events: none;
    animation: floatSlow 8s infinite alternate ease-in-out;
}
@keyframes floatSlow {
    from { transform: translate(0, 0); }
    to { transform: translate(40%, 10%); }
}
.cta-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 14px;
    position: relative; z-index: 1;
}
.cta-banner p {
    color: var(--text-soft);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative; z-index: 1;
}
.cta-banner .btn-row {
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap;
    position: relative; z-index: 1;
}

/* ============================================
   BADGES & CHIPS
   ============================================ */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 500;
}
.chip.green { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.chip.purple { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); color: #c084fc; }
.chip.blue { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-list { list-style: none; }
.feature-list li {
    padding: 12px 0;
    display: flex; align-items: flex-start; gap: 12px;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border-soft);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i {
    color: #34d399;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   DEMO CARDS
   ============================================ */
.demo-card {
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
}
.demo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
}
.demo-preview {
    height: 220px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.demo-preview::before {
    content: '';
    position: absolute;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.2), transparent 30%);
    animation: spinSlow 6s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.demo-preview i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    position: relative;
}
.demo-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    border-radius: 50%;
    background: white;
    color: #1a1e2b;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    z-index: 2;
    transition: transform 0.3s;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    animation: pulseRing 2s infinite;
}
.demo-card:hover .demo-play { transform: translate(-50%, -50%) scale(1.1); }
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    70% { box-shadow: 0 0 0 24px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.demo-body { padding: 24px; }
.demo-body h4 { font-size: 1.15rem; margin-bottom: 8px; }
.demo-body p { color: var(--text-soft); font-size: 0.93rem; }

/* ============================================
   BLOG DETAIL
   ============================================ */
.article-hero {
    text-align: center;
    padding: 60px 24px 30px;
}
.article-hero .article-cat {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 60px;
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.article-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 18px;
    max-width: 820px;
    margin-left: auto; margin-right: auto;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
.article-hero .article-meta {
    justify-content: center;
    margin-top: 18px;
}
.article-cover {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 860px;
    height: auto;
    max-height: 560px;
    border-radius: 28px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    margin: 40px auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.6);
}
.article-body {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-soft);
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
.article-body p { margin-bottom: 22px; }
.article-body h2 {
    font-size: 1.7rem;
    color: white;
    margin: 36px 0 16px;
}
.article-body h3 {
    font-size: 1.3rem;
    color: white;
    margin: 28px 0 12px;
}
.article-body ul, .article-body ol {
    margin: 0 0 22px 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
    border-left: 4px solid var(--accent-purple);
    padding: 16px 24px;
    margin: 30px 0;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--text);
}
.article-body code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.92em;
    color: #f472b6;
}
.article-content,
.article-content * {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
.article-content {
    display: flow-root;
    width: 100%;
    max-width: 760px;
    min-width: 0;
    box-sizing: border-box;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.85;
    white-space: normal !important;
}
.article-content p {
    max-width: 100%;
    white-space: normal !important;
}
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content h2,
.article-content h3,
.article-content h4 {
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
.article-content h4 {
    color: white;
    font-size: 1.1rem;
    margin: 24px 0 10px;
}
.article-content a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: normal;
}
.article-content span { color: inherit; background-color: transparent; }
.article-content img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 14px;
    margin: 28px auto;
}
.article-body.article-content img { margin-right: auto; margin-left: auto; }
.article-content iframe,
.article-content video,
.article-content embed {
    max-width: 100%;
}
.article-content pre {
    overflow-x: auto;
    padding: 18px 20px;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.article-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}
.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 24px 0;
}
.article-content th,
.article-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
}
.article-content th { color: var(--text); }
.article-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

/* ============================================
   CASE STUDY
   ============================================ */
.case-hero {
    padding: 60px 24px 30px;
}
.case-hero .client-info {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.case-hero .client-logo {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800;
    color: white;
}
.case-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}
.case-metric {
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}
.case-metric .value {
    font-size: 2.4rem; font-weight: 800;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.case-metric .label { color: var(--text-mute); font-size: 0.88rem; margin-top: 4px; }
@media (max-width: 760px) { .case-metrics { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    background: rgba(22, 28, 40, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border 0.3s;
}
.faq-item.open { border-color: rgba(139, 92, 246, 0.3); }
.faq-q {
    padding: 20px 24px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}
.faq-q i { transition: transform 0.3s; color: var(--accent-purple); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-soft);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 24px 22px; line-height: 1.7; }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-enabled .reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-enabled .reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-enabled .reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.4s ease; }
.reveal-enabled .reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-enabled .reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.4s ease; }
.reveal-enabled .reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-enabled .reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.4s ease; }
.reveal-enabled .reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.reveal-enabled .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.35s ease, transform 0.35s ease; }
.reveal-enabled .stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-enabled .stagger.visible > *:nth-child(1) { transition-delay: 0.03s; }
.reveal-enabled .stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-enabled .stagger.visible > *:nth-child(3) { transition-delay: 0.13s; }
.reveal-enabled .stagger.visible > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-enabled .stagger.visible > *:nth-child(5) { transition-delay: 0.23s; }
.reveal-enabled .stagger.visible > *:nth-child(6) { transition-delay: 0.28s; }
.reveal-enabled .stagger.visible > *:nth-child(7) { transition-delay: 0.33s; }
.reveal-enabled .stagger.visible > *:nth-child(8) { transition-delay: 0.38s; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-soft { color: var(--text-soft); }
.text-mute { color: var(--text-mute); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 60px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; } .mb-5 { margin-bottom: 60px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.wrap { flex-wrap: wrap; }

/* ============================================
   PAGE 404
   ============================================ */
.error-page {
    padding: 120px 24px;
    text-align: center;
}
.error-page h1 {
    font-size: clamp(5rem, 14vw, 9rem);
    margin-bottom: 12px;
}
.error-page p {
    font-size: 1.3rem;
    color: var(--text-soft);
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 640px) {
    .hero { padding: 60px 20px 40px; }
    .section { padding: 70px 0; }
    .health-check { padding: 32px 24px; border-radius: 32px; }
    .cta-banner { padding: 40px 24px; }
    .contact-form { padding: 28px; }
}

/* ---------- Announcement bar ---------- */
.announce {
    position: relative; z-index: 1001;
    background: linear-gradient(90deg, #4338ca, #7c3aed, #db2777);
    color: white; font-size: 0.88rem;
}
.announce[hidden] { display: none; }
.announce-inner {
    max-width: 1300px; margin: 0 auto; padding: 9px 56px 9px 24px;
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
}
.announce-badge { padding: 2px 9px; border-radius: 60px; background: rgba(255, 255, 255, 0.2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.announce-text strong { font-weight: 700; }
.announce-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 60px; background: white; color: #4c1d95; white-space: nowrap; }
.announce-link i { font-size: 0.75rem; transition: transform 0.2s; }
.announce-link:hover i { transform: translateX(3px); }
.announce-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 8px; border: none;
    background: transparent; color: rgba(255, 255, 255, 0.85); cursor: pointer;
}
.announce-close:hover { background: rgba(255, 255, 255, 0.15); color: white; }

@media (max-width: 640px) {
    .announce { font-size: 0.8rem; }
    .announce-inner { padding: 8px 44px 8px 14px; gap: 6px 10px; }
    .announce-badge { display: none; }
}