/* ============================================================
   index.css  –  Styles specific to the index / link-in-bio page
   Depends on tokens.css, shared.css, animations.css being loaded first.
   ============================================================ */


/* ============================================
   CONTAINER
   ============================================ */
.ka-container {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    padding:
        clamp(60px, 10vh, 100px)
        clamp(20px, 6vw, 48px)
        clamp(80px, 12vh, 120px);
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
}


/* ============================================
   HERO — PROFILE + NAME + TAGLINE
   ============================================ */

/* ── Profile Ring (matches bio page style) ── */
.ka-bio-hero__ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--ka-gradient);
    padding: 3px;
    margin: 0 auto 28px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ka-ease) 0.1s forwards;
}

.ka-bio-hero__ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--ka-gradient);
    opacity: 0.15;
    filter: blur(20px);
    animation: heroGlow 3s ease-in-out infinite alternate;
    z-index: -1;
}

.ka-bio-hero__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ka-bio-hero__name {
    font-family: var(--ka-font-heading);
    font-size: var(--ka-text-3xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: var(--ka-leading-tight);
    margin-bottom: 10px;
    background: var(--ka-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ka-ease) 0.2s forwards;
}

.ka-tagline {
    font-size: var(--ka-text-base);
    color: var(--ka-text-muted);
    font-weight: 400;
}


/* ============================================
   ABOUT
   ============================================ */
.ka-divider-line {
    width: 280px;
    height: 2px;
    background: var(--ka-gradient);
    border: none;
    border-radius: 0;
    margin: 0 auto;
    clip-path: ellipse(50% 50% at 50% 50%);
}


/* ============================================
   SERVICES GRID
   ============================================ */
.ka-services {
    width: 100%;
}

.ka-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ka-service-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px var(--ka-space-4);
    background: var(--ka-surface);
    border: 1px solid var(--ka-border);
    border-radius: var(--ka-radius);
    transition: transform var(--ka-transition), border-color var(--ka-transition), box-shadow var(--ka-transition);
    overflow: hidden;
}

.ka-service-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

@media (hover: hover) {
    .ka-service-pill:hover {
        transform: translateY(-2px);
        border-color: rgba(99, 102, 241, 0.3);
        box-shadow: 0 0 20px var(--ka-accent-glow);
    }
}

.ka-service-pill:active {
    transform: scale(0.97);
}

.ka-service-pill svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--ka-accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ka-service-pill span {
    font-size: var(--ka-text-sm);
    font-weight: 500;
    color: var(--ka-text);
}


/* ============================================
   BENTO GRID
   ============================================ */
.ka-bento {
    width: 100%;
}

.ka-bento__heading {
    font-family: var(--ka-font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ka-text);
    text-align: center;
    margin-bottom: 6px;
}

.ka-bento__sub {
    font-size: 14px;
    color: var(--ka-text-muted);
    text-align: center;
    margin-bottom: 38px;
}

.ka-bento__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
}

.ka-bento__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ka-surface);
    border: 1px solid var(--ka-border);
    border-radius: var(--ka-radius-lg);
    overflow: hidden;
    transition: transform var(--ka-transition), border-color var(--ka-transition), box-shadow var(--ka-transition);
    cursor: pointer;
}

.ka-bento__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    z-index: 1;
}

/* Shimmer border effect */
.ka-bento__card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from var(--shimmer-angle, 0deg), transparent 60%, var(--ka-accent) 78%, var(--ka-accent-light) 82%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ka-bento__card:nth-child(1) { transition-delay: 0s; }
.ka-bento__card:nth-child(2) { transition-delay: 0.05s; }
.ka-bento__card:nth-child(3) { transition-delay: 0.1s; }
.ka-bento__card:nth-child(4) { transition-delay: 0.15s; }
.ka-bento__card:nth-child(5) { transition-delay: 0.2s; }
.ka-bento__card:nth-child(6) { transition-delay: 0.25s; }
.ka-bento__card:nth-child(7) { transition-delay: 0.3s; }

.ka-bento__card:active {
    transform: scale(0.97);
}

.ka-bento__card--wide {
    grid-column: 1 / -1;
}

.ka-bento__card--tall {
    grid-row: span 2;
}

.ka-bento__mockup {
    flex: 1;
    padding: var(--ka-space-5) var(--ka-space-4) var(--ka-space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    position: relative;
}

.ka-bento__card--tall .ka-bento__mockup {
    min-height: 160px;
}

.ka-bento__card--wide .ka-bento__mockup {
    min-height: 80px;
    flex-direction: row;
    gap: var(--ka-space-5);
    padding: var(--ka-space-4) var(--ka-space-6);
}

.ka-bento__label {
    padding: 10px var(--ka-space-4);
    border-top: 1px solid var(--ka-border);
    display: flex;
    align-items: center;
    gap: var(--ka-space-2);
}

.ka-bento__label svg {
    width: 14px;
    height: 14px;
    stroke: var(--ka-accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ka-bento__label span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ka-text);
    letter-spacing: -0.01em;
}

.ka-bento__badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    color: var(--ka-accent-light);
    background: var(--ka-accent-subtle);
    padding: 2px 7px;
    border-radius: var(--ka-radius-pill);
    letter-spacing: 0.02em;
}


/* ============================================
   BENTO MOCKUP — AI INTEGRATIONS (chat UI)
   ============================================ */
.ka-mockup-ai {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ka-mockup-ai__bubble {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 8px;
    line-height: var(--ka-leading-snug);
    max-width: 85%;
    opacity: 0;
    transform: translateY(6px);
}

.ka-mockup-ai__bubble--user {
    align-self: flex-end;
    background: var(--ka-accent);
    color: #fff;
    border-bottom-right-radius: 3px;
    font-weight: 500;
}

.ka-mockup-ai__bubble--ai {
    align-self: flex-start;
    background: var(--ka-surface-2);
    border: 1px solid var(--ka-border);
    color: var(--ka-text-secondary);
    border-bottom-left-radius: 3px;
    position: relative;
    overflow: hidden;
}

.is-visible .ka-mockup-ai__bubble--user {
    animation: fadeUp 0.4s var(--ka-ease) 0.1s forwards;
}

.is-visible .ka-mockup-ai__bubble--ai {
    animation: fadeUp 0.4s var(--ka-ease) 0.6s forwards;
}

.ka-mockup-ai__typing {
    align-self: flex-start;
    display: flex;
    gap: 3px;
    padding: var(--ka-space-2) var(--ka-space-3);
    background: var(--ka-surface-2);
    border: 1px solid var(--ka-border);
    border-radius: 10px;
    border-bottom-left-radius: 3px;
    opacity: 0;
}

.is-visible .ka-mockup-ai__typing {
    animation: fadeUp 0.3s var(--ka-ease) 0.35s forwards, aiTypingHide 0.3s ease 0.55s forwards;
}

.ka-mockup-ai__typing-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ka-accent-light);
    animation-play-state: paused;
}

.is-visible .ka-mockup-ai__typing-dot {
    animation: aiDotBounce 1s ease-in-out infinite;
    animation-play-state: running;
}

.ka-mockup-ai__typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.ka-mockup-ai__typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.ka-mockup-ai__badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: var(--ka-space-1);
    margin-top: 2px;
}

.ka-mockup-ai__badge svg {
    width: 8px;
    height: 8px;
    stroke: var(--ka-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.ka-mockup-ai__badge span {
    font-size: 7px;
    color: var(--ka-text-faint);
    letter-spacing: 0.03em;
}

/* AI bubble glass shimmer (idle) */
.ka-mockup-ai__bubble--ai::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(129, 140, 248, 0.08) 40%, rgba(129, 140, 248, 0.15) 50%, rgba(129, 140, 248, 0.08) 60%, transparent 100%);
    opacity: 0;
}

.is-visible .ka-mockup-ai__bubble--ai::after {
    animation: aiGlassShimmer 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.8s infinite;
}

/* AI badge icon glow (idle) */
.is-visible .ka-mockup-ai__badge svg {
    animation: aiBadgeIconGlow 3s ease-in-out 1.8s infinite;
}

/* AI badge fade-in */
.is-visible .ka-mockup-ai__badge {
    animation: fadeUp 0.4s var(--ka-ease) 0.8s forwards;
}


/* ============================================
   BENTO MOCKUP — SMART AUTOMATIONS
   ============================================ */
.ka-mockup-auto {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.ka-mockup-auto__step {
    width: 32px;
    height: 32px;
    border-radius: var(--ka-space-2);
    border: 1px solid var(--ka-border);
    background: var(--ka-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.4s, box-shadow 0.4s;
    position: relative;
}

.ka-mockup-auto__step svg {
    width: 14px;
    height: 14px;
    stroke: var(--ka-text-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dashed connector with marching ants */
.ka-mockup-auto__connector {
    width: 24px;
    height: 2px;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.ka-mockup-auto__connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg, var(--ka-border-light) 0px, var(--ka-border-light) 3px, transparent 3px, transparent 6px);
    background-size: 6px 100%;
}

.is-visible .ka-mockup-auto__connector::before {
    animation: autoMarch 1.2s linear infinite;
}

/* Traveling dot with comet tail */
.ka-mockup-auto__trail {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ka-accent-light);
    box-shadow: 0 0 6px var(--ka-accent), 0 0 12px rgba(99, 102, 241, 0.4), -4px 0 6px rgba(99, 102, 241, 0.3), -8px 0 4px rgba(99, 102, 241, 0.15);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
}

.is-visible .ka-mockup-auto__trail {
    animation: travelDot 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.ka-mockup-auto__connector:nth-of-type(2) .ka-mockup-auto__trail {
    animation-delay: 1.5s;
}

/* Step glow cascade */
.is-visible .ka-mockup-auto__step:nth-child(1) {
    animation: nodeGlow 3s ease-in-out infinite;
}

.is-visible .ka-mockup-auto__step:nth-child(3) {
    animation: nodeGlow 3s ease-in-out 1s infinite;
}

.is-visible .ka-mockup-auto__step:nth-child(5) {
    animation: nodeGlow 3s ease-in-out 2s infinite;
}


/* ============================================
   BENTO MOCKUP — WEB DESIGN (browser)
   ============================================ */
.ka-mockup-web {
    width: 100%;
    border-radius: var(--ka-space-2);
    border: 1px solid var(--ka-border);
    background: var(--ka-bg);
    overflow: hidden;
}

.ka-mockup-web__toolbar {
    display: flex;
    align-items: center;
    gap: var(--ka-space-1);
    padding: 6px var(--ka-space-2);
    border-bottom: 1px solid var(--ka-border);
}

.ka-mockup-web__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ka-mockup-web__dot--r {
    background: #ef4444;
}

.ka-mockup-web__dot--y {
    background: #eab308;
}

.ka-mockup-web__dot--g {
    background: #22c55e;
}

.ka-mockup-web__url {
    margin-left: 6px;
    height: 12px;
    flex: 1;
    border-radius: 4px;
    background: var(--ka-surface-2);
}

.ka-mockup-web__body {
    padding: var(--ka-space-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.ka-mockup-web__skel {
    border-radius: 3px;
    background: var(--ka-surface-2);
    position: relative;
    overflow: hidden;
}

.ka-mockup-web__skel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.12), rgba(129, 140, 248, 0.06), transparent);
    animation-play-state: paused;
}

.is-visible .ka-mockup-web__skel::after {
    animation: bentoSkelShimmer 2s ease-in-out infinite;
    animation-play-state: running;
}

.ka-mockup-web__skel--nav {
    height: 8px;
    width: 100%;
}

.ka-mockup-web__skel--hero {
    height: 24px;
    width: 100%;
    background: linear-gradient(135deg, var(--ka-surface-2) 0%, rgba(99, 102, 241, 0.08) 50%, var(--ka-surface-2) 100%);
}

.ka-mockup-web__skel--cols {
    display: flex;
    gap: var(--ka-space-1);
}

.ka-mockup-web__skel--col {
    height: 16px;
    flex: 1;
    border-radius: 3px;
    background: var(--ka-surface-2);
    position: relative;
    overflow: hidden;
}

.ka-mockup-web__skel--col::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.12), rgba(129, 140, 248, 0.06), transparent);
    animation-play-state: paused;
}

.is-visible .ka-mockup-web__skel--col::after {
    animation: bentoSkelShimmer 2s ease-in-out 0.3s infinite;
    animation-play-state: running;
}

.ka-mockup-web__skel--text {
    height: 5px;
    width: 70%;
}

.ka-mockup-web__skel--btn {
    height: 10px;
    width: 40%;
    border-radius: 5px;
    background: var(--ka-accent-subtle);
}

/* Web Design cursor dot (idle) */
.ka-mockup-web__cursor {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ka-accent-light);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.5);
    opacity: 0;
    pointer-events: none;
}

.is-visible .ka-mockup-web__cursor {
    animation: webCursorMove 6s cubic-bezier(0.4, 0, 0.2, 1) 1.5s infinite;
}


/* ============================================
   BENTO MOCKUP — MARKETING (Activity Rings)
   ============================================ */
.ka-mockup-rings {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ka-mockup-rings__svg {
    width: 72px;
    height: 72px;
}

.ka-mockup-rings__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 5;
}

.ka-mockup-rings__fill {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
}

/* Outer ring: indigo, 78%. C=219.91, offset=48.38 */
.ka-mockup-rings__fill--1 {
    stroke: var(--ka-accent);
    stroke-dasharray: 219.91;
    stroke-dashoffset: 219.91;
    filter: drop-shadow(0 0 3px rgba(99, 102, 241, 0.4));
}

.is-visible .ka-mockup-rings__fill--1 {
    animation: ringDraw1 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards,
        ringPulse1 4s ease-in-out 1.8s infinite;
}

/* Middle ring: purple, 62%. C=169.65, offset=64.47 */
.ka-mockup-rings__fill--2 {
    stroke: #a78bfa;
    stroke-dasharray: 169.65;
    stroke-dashoffset: 169.65;
    filter: drop-shadow(0 0 3px rgba(167, 139, 250, 0.4));
}

.is-visible .ka-mockup-rings__fill--2 {
    animation: ringDraw2 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards,
        ringPulse2 4s ease-in-out 2.2s infinite;
}

/* Inner ring: green, 88%. C=119.38, offset=14.33 */
.ka-mockup-rings__fill--3 {
    stroke: #22c55e;
    stroke-dasharray: 119.38;
    stroke-dashoffset: 119.38;
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.4));
}

.is-visible .ka-mockup-rings__fill--3 {
    animation: ringDraw3 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards,
        ringPulse3 4s ease-in-out 2.6s infinite;
}

.ka-mockup-rings__label {
    font-size: 8px;
    color: var(--ka-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0;
}

.is-visible .ka-mockup-rings__label {
    animation: fadeUp 0.4s var(--ka-ease) 0.8s forwards;
}


/* ============================================
   BENTO MOCKUP — PAID ADS (Performance Bars)
   ============================================ */
.ka-mockup-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ka-space-1);
    position: relative;
}

.ka-mockup-bars__chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 56px;
    padding: 0 var(--ka-space-2);
    position: relative;
}

.ka-mockup-bars__bar {
    width: 14px;
    border-radius: 4px 4px 1px 1px;
    transform-origin: bottom;
    transform: scaleY(0);
    opacity: 0.85;
}

/* Gradient that gets more vibrant as height increases */
.ka-mockup-bars__bar--1 {
    height: 65%;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.7) 0%, rgba(99, 102, 241, 0.4) 100%);
}

.ka-mockup-bars__bar--2 {
    height: 85%;
    background: linear-gradient(180deg, var(--ka-accent-light) 0%, rgba(99, 102, 241, 0.5) 100%);
}

.ka-mockup-bars__bar--3 {
    height: 50%;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.6) 0%, rgba(99, 102, 241, 0.3) 100%);
}

.ka-mockup-bars__bar--4 {
    height: 95%;
    background: linear-gradient(180deg, var(--ka-accent-light) 0%, var(--ka-accent) 100%);
}

.ka-mockup-bars__bar--5 {
    height: 72%;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.8) 0%, rgba(99, 102, 241, 0.45) 100%);
}

.is-visible .ka-mockup-bars__bar--1 {
    animation: barGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.is-visible .ka-mockup-bars__bar--2 {
    animation: barGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.is-visible .ka-mockup-bars__bar--3 {
    animation: barGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.is-visible .ka-mockup-bars__bar--4 {
    animation: barGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.is-visible .ka-mockup-bars__bar--5 {
    animation: barGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* Single subtle idle pulse on the whole chart */
.is-visible .ka-mockup-bars__chart {
    animation: pulse 4s ease-in-out 1.2s infinite;
}

.ka-mockup-bars__labels {
    display: flex;
    gap: 6px;
    padding: 0 var(--ka-space-2);
    width: 100%;
    justify-content: space-around;
}

.ka-mockup-bars__labels span {
    font-size: 7px;
    color: var(--ka-text-faint);
    text-align: center;
    width: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0;
}

.is-visible .ka-mockup-bars__labels span {
    animation: bentoFadeInFull 0.4s ease 0.7s forwards;
}

/* Growth badge */
.ka-mockup-bars__badge {
    position: absolute;
    top: 0;
    right: 4px;
    font-size: 8px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 1px 6px;
    letter-spacing: 0.02em;
    opacity: 0;
    z-index: 2;
}

.is-visible .ka-mockup-bars__badge {
    animation: badgeFadeIn 0.5s ease 1.5s forwards;
}

/* Trend line SVG overlay */
.ka-mockup-bars__trend {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.ka-mockup-bars__trend polyline {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.is-visible .ka-mockup-bars__trend {
    animation: bentoFadeInFull 0.3s ease 1.2s forwards;
}

.is-visible .ka-mockup-bars__trend polyline {
    animation: trendDraw 1s ease 1.3s forwards;
}


/* ============================================
   BENTO MOCKUP — CUSTOM APPS (Dev Studio)
   ============================================ */
.ka-mockup-studio {
    display: flex;
    gap: var(--ka-space-6);
    align-items: center;
    width: 100%;
    justify-content: center;
}

.ka-mockup-studio__phone {
    width: 52px;
    height: 84px;
    border-radius: 10px;
    border: 1.5px solid var(--ka-border-light);
    background: var(--ka-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    transform: translateY(8px);
}

.is-visible .ka-mockup-studio__phone {
    animation: fadeUp 0.5s var(--ka-ease) 0.1s forwards;
}

.ka-mockup-studio__phone-header {
    height: 14px;
    background: linear-gradient(135deg, var(--ka-accent) 0%, #a78bfa 100%);
    flex-shrink: 0;
}

.ka-mockup-studio__phone-body {
    flex: 1;
    padding: var(--ka-space-1);
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    overflow: hidden;
}

.ka-mockup-studio__phone-card {
    height: 18px;
    border-radius: 4px;
    background: var(--ka-surface-2);
    border: 1px solid var(--ka-border);
}

.ka-mockup-studio__phone-body::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.06) 40%, rgba(99, 102, 241, 0.1) 50%, rgba(99, 102, 241, 0.06) 60%, transparent 100%);
    opacity: 0;
}

.is-visible .ka-mockup-studio__phone-body::after {
    animation: phoneVertShimmer 5s ease-in-out 2s infinite;
}

.ka-mockup-studio__phone-nav {
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ka-space-1);
    border-top: 1px solid var(--ka-border);
    flex-shrink: 0;
}

.ka-mockup-studio__phone-nav span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ka-text-faint);
}

.ka-mockup-studio__phone-nav span:nth-child(2) {
    background: var(--ka-accent);
}

.ka-mockup-studio__code {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ka-mockup-studio__line {
    display: flex;
    gap: var(--ka-space-1);
    align-items: center;
    height: 5px;
    transform-origin: left;
    transform: scaleX(0);
}

.ka-mockup-studio__line--2,
.ka-mockup-studio__line--3 {
    margin-left: var(--ka-space-2);
}

.ka-mockup-studio__line--4 {
    margin-left: var(--ka-space-4);
}

.ka-mockup-studio__line-kw {
    display: inline-block;
    height: 4px;
    border-radius: 2px;
    background: var(--ka-accent);
}

.ka-mockup-studio__line-str {
    display: inline-block;
    height: 4px;
    border-radius: 2px;
    background: #22c55e;
}

.ka-mockup-studio__line-muted {
    display: inline-block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.ka-mockup-studio__line--1 .ka-mockup-studio__line-kw {
    width: 24px;
}

.ka-mockup-studio__line--1 .ka-mockup-studio__line-str {
    width: 36px;
}

.ka-mockup-studio__line--2 .ka-mockup-studio__line-muted {
    width: 48px;
}

.ka-mockup-studio__line--3 .ka-mockup-studio__line-kw {
    width: 20px;
}

.ka-mockup-studio__line--3 .ka-mockup-studio__line-muted {
    width: 32px;
}

.ka-mockup-studio__line--4 .ka-mockup-studio__line-str {
    width: 40px;
}

.ka-mockup-studio__line--5 .ka-mockup-studio__line-kw {
    width: 28px;
}

.is-visible .ka-mockup-studio__line--1 {
    animation: bentoTypeIn 0.5s var(--ka-ease) 0.15s forwards, codeScan 5s ease-in-out 2s infinite;
}

.is-visible .ka-mockup-studio__line--2 {
    animation: bentoTypeIn 0.5s var(--ka-ease) 0.3s forwards, codeScan 5s ease-in-out 2.5s infinite;
}

.is-visible .ka-mockup-studio__line--3 {
    animation: bentoTypeIn 0.5s var(--ka-ease) 0.45s forwards, codeScan 5s ease-in-out 3.0s infinite;
}

.is-visible .ka-mockup-studio__line--4 {
    animation: bentoTypeIn 0.5s var(--ka-ease) 0.6s forwards, codeScan 5s ease-in-out 3.5s infinite;
}

.is-visible .ka-mockup-studio__line--5 {
    animation: bentoTypeIn 0.5s var(--ka-ease) 0.75s forwards, codeScan 5s ease-in-out 4.0s infinite;
}

.ka-mockup-studio__line-cursor {
    display: inline-block;
    width: 1px;
    height: 6px;
    background: var(--ka-accent-light);
    margin-left: 2px;
    animation: studioCursorBlink 1s step-end infinite;
}


/* ============================================
   BENTO MOCKUP — MEDIA PRODUCTION (Camera)
   ============================================ */
.ka-mockup-media {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Viewfinder frame */
.ka-mockup-media__frame {
    width: 100px;
    height: 68px;
    border: 1.5px solid var(--ka-border-light);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background: rgba(6, 6, 6, 0.6);
}

/* Rule of thirds grid */
.ka-mockup-media__grid {
    position: absolute;
    inset: 0;
    /* Two vertical lines at 1/3 and 2/3 */
    background:
        linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(99, 102, 241, 0.15) calc(33.33% - 0.5px), rgba(99, 102, 241, 0.15) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px)),
        linear-gradient(to right, transparent calc(66.66% - 0.5px), rgba(99, 102, 241, 0.15) calc(66.66% - 0.5px), rgba(99, 102, 241, 0.15) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
        linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(99, 102, 241, 0.15) calc(33.33% - 0.5px), rgba(99, 102, 241, 0.15) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px)),
        linear-gradient(to bottom, transparent calc(66.66% - 0.5px), rgba(99, 102, 241, 0.15) calc(66.66% - 0.5px), rgba(99, 102, 241, 0.15) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
}

/* Focus crosshairs in center */
.ka-mockup-media__focus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
}

.ka-mockup-media__focus::before,
.ka-mockup-media__focus::after {
    content: '';
    position: absolute;
    background: var(--ka-accent-light);
}

/* Horizontal crosshair (gap in middle) */
.ka-mockup-media__focus::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
    mask-image: linear-gradient(to right, white 30%, transparent 40%, transparent 60%, white 70%);
    -webkit-mask-image: linear-gradient(to right, white 30%, transparent 40%, transparent 60%, white 70%);
}

/* Vertical crosshair (gap in middle) */
.ka-mockup-media__focus::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
    mask-image: linear-gradient(to bottom, white 30%, transparent 40%, transparent 60%, white 70%);
    -webkit-mask-image: linear-gradient(to bottom, white 30%, transparent 40%, transparent 60%, white 70%);
}

.is-visible .ka-mockup-media__focus {
    animation: viewfinderFocus 3s ease-in-out infinite;
}

/* Corner brackets */
.ka-mockup-media__corner {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.ka-mockup-media__corner--tl {
    top: 4px;
    left: 4px;
    border-top: 1.5px solid var(--ka-accent-light);
    border-left: 1.5px solid var(--ka-accent-light);
}

.ka-mockup-media__corner--tr {
    top: 4px;
    right: 4px;
    border-top: 1.5px solid var(--ka-accent-light);
    border-right: 1.5px solid var(--ka-accent-light);
}

.ka-mockup-media__corner--bl {
    bottom: 4px;
    left: 4px;
    border-bottom: 1.5px solid var(--ka-accent-light);
    border-left: 1.5px solid var(--ka-accent-light);
}

.ka-mockup-media__corner--br {
    bottom: 4px;
    right: 4px;
    border-bottom: 1.5px solid var(--ka-accent-light);
    border-right: 1.5px solid var(--ka-accent-light);
}

.is-visible .ka-mockup-media__corner--tl {
    animation: cornerSlideTL 0.5s ease-out 0.2s forwards;
}
.is-visible .ka-mockup-media__corner--tr {
    animation: cornerSlideTR 0.5s ease-out 0.3s forwards;
}
.is-visible .ka-mockup-media__corner--bl {
    animation: cornerSlideBL 0.5s ease-out 0.4s forwards;
}
.is-visible .ka-mockup-media__corner--br {
    animation: cornerSlideBR 0.5s ease-out 0.5s forwards;
}

/* REC indicator */
.ka-mockup-media__rec {
    position: absolute;
    top: 6px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
    font-weight: 600;
    color: #ef4444;
    letter-spacing: 0.05em;
    opacity: 0;
}

.is-visible .ka-mockup-media__rec {
    animation: bentoFadeInFull 0.4s ease 0.6s forwards;
}

.ka-mockup-media__rec-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
}

.is-visible .ka-mockup-media__rec-dot {
    animation: recPulse 1.5s ease-in-out infinite;
}

/* Timecode */
.ka-mockup-media__tc {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-family: 'Courier New', monospace;
    font-size: 7px;
    color: var(--ka-text-faint);
    letter-spacing: 0.05em;
    opacity: 0;
}

.is-visible .ka-mockup-media__tc {
    animation: bentoFadeInFull 0.4s ease 0.7s forwards;
}


/* ============================================
   BENTO MOCKUP — OPENCLAW (Agent Network)
   ============================================ */
.ka-mockup-claw {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 60px;
}

/* Hexagonal hub node */
.ka-mockup-claw__hub {
    width: 30px;
    height: 30px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, var(--ka-accent-subtle), rgba(99, 102, 241, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Inner hex for border effect */
.ka-mockup-claw__hub::before {
    content: '';
    position: absolute;
    inset: 1.5px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, var(--ka-surface-2), rgba(99, 102, 241, 0.08));
}

.ka-mockup-claw__hub svg {
    width: 14px;
    height: 14px;
    stroke: var(--ka-accent-light);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: relative;
    z-index: 1;
}

.is-visible .ka-mockup-claw__hub {
    animation: clawHubPulse 3s ease-in-out infinite;
}

/* Counter badge */
.ka-mockup-claw__counter {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6px;
    font-weight: 600;
    color: var(--ka-accent-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 1px 6px;
    white-space: nowrap;
    z-index: 3;
    opacity: 0;
    letter-spacing: 0.03em;
}

.is-visible .ka-mockup-claw__counter {
    animation: bentoFadeInFull 0.4s ease 1.5s forwards;
}

/* Agent nodes with status dot */
.ka-mockup-claw__agent {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ka-surface-2);
    border: 1px solid var(--ka-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ka-mockup-claw__agent svg {
    width: 10px;
    height: 10px;
    stroke: var(--ka-text-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Green status dot */
.ka-mockup-claw__agent::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0;
}

.ka-mockup-claw__agent:nth-child(4) {
    top: 2px;
    left: calc(50% - 48px);
}

.ka-mockup-claw__agent:nth-child(5) {
    top: 2px;
    right: calc(50% - 48px);
}

.ka-mockup-claw__agent:nth-child(6) {
    bottom: 2px;
    left: calc(50% - 40px);
}

.ka-mockup-claw__agent:nth-child(7) {
    bottom: 2px;
    right: calc(50% - 40px);
}

.is-visible .ka-mockup-claw__agent:nth-child(4) {
    animation: nodeGlow 3s ease-in-out 0.3s infinite;
}

.is-visible .ka-mockup-claw__agent:nth-child(5) {
    animation: nodeGlow 3s ease-in-out 0.9s infinite;
}

.is-visible .ka-mockup-claw__agent:nth-child(6) {
    animation: nodeGlow 3s ease-in-out 1.5s infinite;
}

.is-visible .ka-mockup-claw__agent:nth-child(7) {
    animation: nodeGlow 3s ease-in-out 2.1s infinite;
}

/* Sequential green status dot blink */
.is-visible .ka-mockup-claw__agent:nth-child(4)::after {
    animation: statusBlink 2.5s ease-in-out 0s infinite;
}
.is-visible .ka-mockup-claw__agent:nth-child(5)::after {
    animation: statusBlink 2.5s ease-in-out 0.6s infinite;
}
.is-visible .ka-mockup-claw__agent:nth-child(6)::after {
    animation: statusBlink 2.5s ease-in-out 1.2s infinite;
}
.is-visible .ka-mockup-claw__agent:nth-child(7)::after {
    animation: statusBlink 2.5s ease-in-out 1.8s infinite;
}

/* Connection lines — marching ants */
.ka-mockup-claw__lines {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ka-mockup-claw__lines line {
    stroke: var(--ka-border-light);
    stroke-width: 1;
    stroke-dasharray: 4 3;
}

.is-visible .ka-mockup-claw__lines line {
    animation: clawLinePulse 3s ease-in-out infinite, clawMarch 1.5s linear infinite;
}

.is-visible .ka-mockup-claw__lines line:nth-child(2) {
    animation-delay: 0.5s, 0s;
}

.is-visible .ka-mockup-claw__lines line:nth-child(3) {
    animation-delay: 1.0s, 0s;
}

.is-visible .ka-mockup-claw__lines line:nth-child(4) {
    animation-delay: 1.5s, 0s;
}


/* ============================================
   BENTO MOCKUP — BUSINESS AI (Brain/Gear)
   ============================================ */
.ka-mockup-brain {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 80px;
}

.ka-mockup-brain__core {
    width: 44px;
    height: 44px;
    border-radius: var(--ka-radius);
    border: 1.5px solid var(--ka-border-light);
    background: var(--ka-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ka-mockup-brain__core svg {
    width: 22px;
    height: 22px;
    stroke: var(--ka-accent-light);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Connection lines SVG overlay */
.ka-mockup-brain__connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ka-mockup-brain__line {
    stroke: var(--ka-border-light);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.is-visible .ka-mockup-brain__line {
    animation: brainLineCascade 3s ease-in-out infinite;
}

.is-visible .ka-mockup-brain__line:nth-child(2) {
    animation-delay: 0.4s;
}

.is-visible .ka-mockup-brain__line:nth-child(3) {
    animation-delay: 0.8s;
}

.is-visible .ka-mockup-brain__line:nth-child(4) {
    animation-delay: 1.2s;
}

/* Pulse rings */
.ka-mockup-brain__pulse {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: var(--ka-radius);
    border: 1px solid var(--ka-accent);
    opacity: 0;
    will-change: transform, opacity;
    z-index: 1;
}

.is-visible .ka-mockup-brain__pulse {
    animation: brainPulseOut 2.5s ease-out infinite;
}

.ka-mockup-brain__pulse:nth-child(2) {
    animation-delay: 1.25s;
}

/* Satellite node groups */
.ka-mockup-brain__nodes {
    position: absolute;
    display: flex;
    gap: 24px;
    z-index: 2;
}

.ka-mockup-brain__nodes--top {
    top: 2px;
}

.ka-mockup-brain__nodes--bottom {
    bottom: 2px;
}

/* Individual satellite nodes with icons */
.ka-mockup-brain__node {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ka-surface-2);
    border: 1px solid var(--ka-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ka-mockup-brain__node svg {
    width: 9px;
    height: 9px;
    stroke: var(--ka-text-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.is-visible .ka-mockup-brain__node:nth-child(1) {
    animation: nodeGlow 3s ease-in-out 0s infinite;
}

.is-visible .ka-mockup-brain__node:nth-child(2) {
    animation: nodeGlow 3s ease-in-out 0.5s infinite;
}

.is-visible .ka-mockup-brain__nodes--bottom .ka-mockup-brain__node:nth-child(1) {
    animation: nodeGlow 3s ease-in-out 1s infinite;
}

.is-visible .ka-mockup-brain__nodes--bottom .ka-mockup-brain__node:nth-child(2) {
    animation: nodeGlow 3s ease-in-out 1.5s infinite;
}


/* ============================================
   RANDOM BREATHE (bento cards)
   ============================================ */
.ka-breathing {
    animation: bentoBreath 3.5s ease-in-out infinite;
    transition: border-color 0.8s ease, box-shadow 0.8s ease, transform 0.8s ease;
}

@media (hover: hover) {
    .ka-breathing:hover {
        animation: none;
    }
}


/* ============================================
   BENTO FOOTER
   ============================================ */
.ka-bento-footer {
    text-align: center;
    margin-top: var(--ka-space-5);
}

.ka-bento-footer__text {
    font-size: var(--ka-text-sm);
    color: var(--ka-text-secondary);
    line-height: 1.55;
    text-wrap: balance;
    margin-bottom: var(--ka-space-2);
}

.ka-bento-footer__cta {
    font-size: 12px;
    color: var(--ka-text-muted);
}

.ka-bento-footer__cta a {
    color: var(--ka-accent-light);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(129, 140, 248, 0.3);
    transition: border-color var(--ka-transition), color var(--ka-transition);
    cursor: pointer;
}

.ka-bento-footer__cta a:hover {
    color: #a78bfa;
    border-color: #a78bfa;
}


/* ============================================
   INFO POPUP
   ============================================ */
.ka-popup-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ka-popup-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ka-popup {
    background: var(--ka-surface);
    border: 1px solid var(--ka-border);
    border-radius: var(--ka-radius-xl) var(--ka-radius-xl) 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    max-height: 80dvh;
    overflow: hidden;
    position: relative;
    transform: translateY(60px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ka-popup-overlay.is-open .ka-popup {
    transform: translateY(0);
}

.ka-popup__handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto var(--ka-space-5);
    position: relative;
    z-index: 5;
}

/* Sliding container for two-level nav */
.ka-popup__slider {
    display: flex;
    width: 200%;
    transition: transform 0.4s var(--ka-ease);
}

.ka-popup__slider.is-detail {
    transform: translateX(-50%);
}

.ka-popup__level {
    width: 50%;
    flex-shrink: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(80vh - 40px);
    max-height: calc(80dvh - 40px);
    padding: 0 var(--ka-space-6) var(--ka-space-8);
}

/* Level 1 — Category overview */
.ka-popup__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--ka-radius);
    background: var(--ka-accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.ka-popup__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--ka-accent-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ka-popup__title {
    font-family: var(--ka-font-heading);
    font-size: var(--ka-text-lg);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--ka-space-2);
}

.ka-popup__desc {
    font-size: var(--ka-text-sm);
    line-height: var(--ka-leading-normal);
    color: var(--ka-text-secondary);
}

/* Sub-service grid inside popup */
.ka-popup__services-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ka-text-faint);
    font-weight: 600;
    margin-top: var(--ka-space-5);
    margin-bottom: 10px;
}

.ka-popup__services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ka-space-2);
}

.ka-popup__service-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--ka-space-3);
    background: var(--ka-surface-2);
    border: 1px solid var(--ka-border);
    border-radius: var(--ka-radius);
    cursor: pointer;
    transition: border-color var(--ka-transition), background var(--ka-transition), transform var(--ka-transition), opacity 0.25s ease;
    opacity: 0;
    transform: translateY(8px);
}

.ka-popup__service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ka-popup__service-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.ka-popup__service-card:active {
    transform: scale(0.97);
}

.ka-popup__service-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--ka-space-2);
    background: var(--ka-accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ka-popup__service-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--ka-accent-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ka-popup__service-info {
    flex: 1;
    min-width: 0;
}

.ka-popup__service-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ka-text);
    line-height: 1.3;
}

.ka-popup__service-teaser {
    font-size: 10px;
    color: var(--ka-text-faint);
    line-height: 1.3;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ka-popup__service-chevron {
    width: 12px;
    height: 12px;
    stroke: var(--ka-text-faint);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Level 2 — Sub-service detail */
.ka-popup__back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ka-accent-light);
    cursor: pointer;
    padding: var(--ka-space-1) 0;
    margin-bottom: var(--ka-space-4);
    background: none;
    border: none;
    font-family: var(--ka-font-body);
    transition: opacity var(--ka-transition);
}

.ka-popup__back:hover {
    opacity: 0.7;
}

.ka-popup__back svg {
    width: 14px;
    height: 14px;
    stroke: var(--ka-accent-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ka-popup__detail-title {
    font-family: var(--ka-font-heading);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ka-text);
    margin-bottom: 10px;
}

.ka-popup__detail-desc {
    font-size: var(--ka-text-sm);
    line-height: 1.65;
    color: var(--ka-text-secondary);
}

.ka-popup__features {
    margin-top: var(--ka-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--ka-space-2);
}

.ka-popup__feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--ka-text-sm);
    color: var(--ka-text-muted);
    line-height: var(--ka-leading-snug);
}

.ka-popup__feature-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ka-accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ka-popup__feature-check svg {
    width: 10px;
    height: 10px;
    stroke: var(--ka-accent-light);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ka-popup__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--ka-space-5);
    padding: 10px var(--ka-space-5);
    background: var(--ka-accent);
    color: #fff;
    border: none;
    border-radius: var(--ka-radius);
    font-size: var(--ka-text-sm);
    font-weight: 600;
    font-family: var(--ka-font-body);
    cursor: pointer;
    transition: background var(--ka-transition), transform var(--ka-transition);
    width: 100%;
    justify-content: center;
}

.ka-popup__cta:hover {
    background: var(--ka-accent-light);
}

.ka-popup__cta:active {
    transform: scale(0.97);
}

.ka-popup__cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================
   REVIEW WALL
   ============================================ */
.ka-reviews {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    align-self: flex-start;
}

.ka-reviews__heading {
    font-family: var(--ka-font-heading);
    font-size: var(--ka-text-md);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ka-text);
    text-align: center;
    margin-bottom: 6px;
    padding: 0 var(--ka-space-6);
}

.ka-reviews__sub {
    font-size: var(--ka-text-sm);
    color: var(--ka-text-muted);
    text-align: center;
    margin-bottom: var(--ka-space-4);
    padding: 0 var(--ka-space-6);
}

.ka-reviews__wall {
    position: relative;
    overflow: hidden;
}

.ka-reviews__wall::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--ka-bg) 0%,
            transparent 12%,
            transparent 88%,
            var(--ka-bg) 100%);
    pointer-events: none;
    z-index: 2;
}

.ka-reviews__row {
    display: flex;
    width: max-content;
    gap: var(--ka-space-3);
    margin-bottom: var(--ka-space-3);
    animation: kaWallScroll 45s linear infinite;
}

.ka-reviews__row--reverse {
    animation-direction: reverse;
    transform: translateX(calc(-50% - 6px));
}

.ka-reviews__row:hover {
    animation-play-state: paused;
}

.ka-review-card {
    width: 260px;
    flex-shrink: 0;
    background:
        radial-gradient(60% 120% at 65% -30%, rgba(99, 102, 241, 0.04) 0%, transparent 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.02) 100%),
        var(--ka-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: var(--ka-space-4) 18px;
    position: relative;
    cursor: default;
}

.ka-review-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ka-review-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ka-review-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ka-accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--ka-accent-light);
    flex-shrink: 0;
    font-family: var(--ka-font-heading);
}

.ka-review-card__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ka-text);
    line-height: 1.3;
}

.ka-review-card__role {
    font-size: 10px;
    color: var(--ka-text-faint);
    margin-top: 1px;
}

.ka-review-card__stars {
    color: var(--ka-accent-light);
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: var(--ka-space-2);
}

.ka-review-card__quote {
    font-size: 12px;
    line-height: var(--ka-leading-normal);
    color: var(--ka-text-muted);
    margin: 0;
}

/* Trust bar */
.ka-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ka-space-3);
    flex-wrap: wrap;
    padding: 14px var(--ka-space-4);
    background: var(--ka-glass-bg);
    backdrop-filter: blur(var(--ka-glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--ka-glass-blur)) saturate(180%);
    border: 1px solid var(--ka-border);
    border-radius: var(--ka-radius);
    margin: var(--ka-space-4) 0 0;
}

.ka-trust-bar__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--ka-text-xs);
    font-weight: 600;
    color: var(--ka-text-muted);
}

.ka-trust-bar__badge svg {
    width: 14px;
    height: 14px;
    stroke: var(--ka-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ka-trust-bar__stars {
    color: var(--ka-accent-light);
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1;
}

.ka-trust-bar__sep {
    width: 1px;
    height: 20px;
    background: var(--ka-border-light);
    flex-shrink: 0;
}

.ka-trust-bar__count {
    font-size: 10px;
    color: var(--ka-text-faint);
}


/* ============================================
   STATS BAR
   ============================================ */
.ka-stats {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--ka-space-6) var(--ka-space-5);
    background: var(--ka-glass-bg);
    backdrop-filter: blur(var(--ka-glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--ka-glass-blur)) saturate(180%);
    border: 1px solid var(--ka-border);
    border-radius: var(--ka-radius-lg);
    position: relative;
    overflow: hidden;
}

.ka-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ka-stat {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ka-space-1);
}

.ka-stat:nth-child(2) {
    flex: 4;
}

.ka-stat + .ka-stat {
    border-left: 1px solid var(--ka-border);
}

.ka-stat__number {
    font-family: var(--ka-font-heading);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    background: var(--ka-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ka-stat__label {
    font-size: var(--ka-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ka-text-faint);
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}


/* ============================================
   LINK BUTTONS
   ============================================ */
.ka-cta-header {
    text-align: center;
    margin-bottom: var(--ka-space-2);
}

.ka-cta-header__title {
    font-family: var(--ka-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--ka-text);
    margin: 0 0 var(--ka-space-1);
    letter-spacing: -0.02em;
}

.ka-cta-header__sub {
    font-size: var(--ka-text-sm);
    color: var(--ka-text-muted);
    margin: 0;
    line-height: var(--ka-leading-snug);
}

.ka-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--ka-space-3);
}

.ka-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: var(--ka-space-4) var(--ka-space-6);
    border-radius: var(--ka-radius);
    font-size: var(--ka-text-base);
    font-weight: 600;
    transition: transform var(--ka-transition), box-shadow var(--ka-transition), border-color var(--ka-transition), background var(--ka-transition);
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.ka-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ka-link-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ka-link-btn--primary {
    background: var(--ka-gradient);
    color: #fff;
    box-shadow: 0 0 30px var(--ka-accent-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
    .ka-link-btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 50px rgba(99, 102, 241, 0.3), 0 8px 30px rgba(0, 0, 0, 0.4);
    }
}

.ka-link-btn--primary:active {
    transform: scale(0.97);
}

.ka-link-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ka-border-light);
    color: var(--ka-text);
}

@media (hover: hover) {
    .ka-link-btn--ghost:hover {
        transform: translateY(-2px);
        border-color: rgba(99, 102, 241, 0.25);
        background: rgba(99, 102, 241, 0.06);
        box-shadow: 0 0 20px var(--ka-accent-glow);
    }
}

.ka-link-btn--ghost:active {
    transform: scale(0.97);
}

.ka-link-btn--full {
    margin-top: var(--ka-space-1);
}


/* ============================================
   FOOTER
   ============================================ */
.ka-footer {
    padding: var(--ka-space-4) 0 calc(var(--ka-space-6) + env(safe-area-inset-bottom, 0px));
}

.ka-footer p {
    font-size: 12px;
    color: var(--ka-text-faint);
    text-align: center;
}


/* ============================================
   CONTACT MODAL
   ============================================ */
.ka-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: var(--ka-space-5);
    align-items: center;
    justify-content: center;
}

.ka-modal.is-open {
    display: flex;
}

.ka-modal__dialog {
    background: var(--ka-surface);
    border: 1px solid var(--ka-border);
    border-radius: var(--ka-radius-xl);
    padding: var(--ka-space-8) var(--ka-space-6);
    width: 100%;
    max-width: 420px;
    position: relative;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: modalIn 0.4s var(--ka-ease) both;
}

.ka-modal__close {
    position: absolute;
    top: var(--ka-space-4);
    right: var(--ka-space-4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    transition: background var(--ka-transition);
}

.ka-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ka-modal__close svg {
    width: 18px;
    height: 18px;
    stroke: var(--ka-text-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.ka-modal__header {
    text-align: center;
    margin-bottom: var(--ka-space-6);
}

.ka-modal__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--ka-space-4);
    background: var(--ka-accent-subtle);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: grid;
    place-items: center;
    margin: 0 auto var(--ka-space-4);
}

.ka-modal__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--ka-accent-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ka-modal__header h2 {
    font-family: var(--ka-font-heading);
    font-size: var(--ka-text-xl);
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ka-modal__header p {
    font-size: 14px;
    color: var(--ka-text-muted);
    line-height: 1.5;
}

.ka-email-pill {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: var(--ka-space-2);
    padding: var(--ka-space-3) var(--ka-space-5);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ka-border-light);
    border-radius: var(--ka-radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--ka-text-secondary);
    transition: border-color var(--ka-transition), background var(--ka-transition);
    margin-inline: auto;
}

.ka-email-pill:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--ka-accent-subtle);
}

.ka-email-pill svg {
    width: 16px;
    height: 16px;
    stroke: var(--ka-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ka-modal-divider {
    display: flex;
    align-items: center;
    gap: var(--ka-space-3);
    margin: var(--ka-space-5) 0;
}

.ka-modal-divider::before,
.ka-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ka-border);
}

.ka-modal-divider span {
    font-size: 12px;
    color: var(--ka-text-faint);
    white-space: nowrap;
}

.ka-form-group {
    margin-bottom: var(--ka-space-3);
}

.ka-input {
    width: 100%;
    padding: 14px var(--ka-space-4);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ka-border);
    border-radius: var(--ka-radius);
    color: var(--ka-text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--ka-transition), box-shadow var(--ka-transition);
}

.ka-input::placeholder {
    color: var(--ka-text-faint);
}

.ka-input:focus {
    border-color: var(--ka-accent);
    box-shadow: 0 0 0 3px var(--ka-accent-glow);
}

.ka-textarea {
    resize: vertical;
    min-height: 80px;
}

.ka-modal__footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--ka-text-faint);
    margin-top: var(--ka-space-4);
}


/* ============================================
   SUCCESS STATE
   ============================================ */
.ka-form-success {
    display: none;
    text-align: center;
    padding: var(--ka-space-5) 0;
}

.ka-form-success.is-visible {
    display: block;
    animation: modalIn 0.4s var(--ka-ease) both;
}

.ka-form-success svg {
    width: 48px;
    height: 48px;
    stroke: #22c55e;
    fill: none;
    stroke-width: 1.5;
    margin: 0 auto var(--ka-space-3);
}

.ka-form-success h3 {
    font-family: var(--ka-font-heading);
    font-size: var(--ka-text-lg);
    font-weight: 700;
    margin-bottom: 6px;
}

.ka-form-success p {
    font-size: 14px;
    color: var(--ka-text-muted);
}


/* ============================================
   RESPONSIVE — Small phone (< 380px)
   ============================================ */
@media (max-width: 380px) {
    .ka-bento__grid {
        gap: var(--ka-space-2);
    }

    .ka-services-grid {
        gap: var(--ka-space-2);
    }

    .ka-stat__number {
        font-size: var(--ka-text-xl);
    }

    .ka-stat__label {
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    .ka-link-btn {
        padding: 14px var(--ka-space-4);
        font-size: 14px;
    }

    .ka-name {
        font-size: 24px;
    }
}


/* ============================================
   RESPONSIVE — 640px+
   ============================================ */
@media (min-width: 640px) {
    .ka-profile-ring {
        width: 170px;
        height: 170px;
    }

    .ka-profile-img {
        width: 160px;
        height: 160px;
    }

    .ka-name {
        font-size: 32px;
    }

    .ka-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ka-bento__grid {
        gap: 14px;
    }

    .ka-bento__heading {
        font-size: var(--ka-text-xl);
    }

    .ka-reviews__heading {
        font-size: var(--ka-text-xl);
        margin-bottom: var(--ka-space-2);
    }

    .ka-reviews__sub {
        font-size: 14px;
        margin-bottom: var(--ka-space-5);
    }

    .ka-review-card {
        width: 300px;
        padding: var(--ka-space-5) 22px;
    }

    .ka-review-card__quote {
        font-size: var(--ka-text-sm);
    }
}


/* ============================================
   RESPONSIVE — 768px+ (tablet)
   ============================================ */
@media (min-width: 768px) {
    .ka-popup-overlay {
        align-items: center;
        padding: var(--ka-space-6);
    }

    .ka-popup {
        border-radius: var(--ka-radius-xl);
        max-height: 85vh;
        max-height: 85dvh;
    }

    .ka-popup__level {
        max-height: calc(85vh - 40px);
        max-height: calc(85dvh - 40px);
        padding: 0 var(--ka-space-8) var(--ka-space-10);
    }

    .ka-popup__services-grid {
        gap: var(--ka-space-3);
    }

    .ka-modal__dialog {
        padding: var(--ka-space-10) var(--ka-space-8);
        max-width: 480px;
    }

    .ka-stats {
        padding: var(--ka-space-8) var(--ka-space-6);
    }

    .ka-stat__number {
        font-size: var(--ka-text-2xl);
    }

    .ka-bento__heading {
        font-size: var(--ka-text-xl);
    }

    .ka-bento__sub {
        font-size: var(--ka-text-base);
    }

    .ka-reviews__heading {
        font-size: var(--ka-text-xl);
    }

    .ka-cta-header__title {
        font-size: var(--ka-text-xl);
    }
}


/* ============================================
   RESPONSIVE — 1024px+ (desktop)
   ============================================ */
@media (min-width: 1024px) {
    .ka-bento__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--ka-space-4);
    }

    .ka-bento__card--tall {
        grid-row: span 2;
    }

    .ka-bento__card--wide {
        grid-column: 1 / -1;
    }

    .ka-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--ka-space-3);
    }

    .ka-name {
        font-size: var(--ka-text-3xl);
    }

    .ka-tagline {
        font-size: var(--ka-text-md);
    }

    .ka-bento__heading {
        font-size: var(--ka-text-2xl);
    }

    .ka-bento__sub {
        font-size: var(--ka-text-base);
        margin-bottom: var(--ka-space-12);
    }

    .ka-reviews__heading {
        font-size: var(--ka-text-2xl);
    }

    .ka-reviews__sub {
        font-size: var(--ka-text-base);
    }

    .ka-review-card {
        width: 340px;
    }

    .ka-link-btn {
        font-size: var(--ka-text-md);
        padding: 18px var(--ka-space-8);
        min-height: 60px;
    }

    .ka-cta-header__title {
        font-size: var(--ka-text-2xl);
    }

    .ka-cta-header__sub {
        font-size: var(--ka-text-base);
    }

    .ka-stat__number {
        font-size: 30px;
    }

    .ka-popup__services-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .ka-popup__title {
        font-size: var(--ka-text-xl);
    }

    .ka-popup__detail-title {
        font-size: var(--ka-text-lg);
    }

    .ka-modal__header h2 {
        font-size: var(--ka-text-2xl);
    }
}
