/* ═══════════════════════════════════════════════════════
   SERVICES PAGE — services-page.css
   ═══════════════════════════════════════════════════════ */

/* ─── HERO ────────────────────────────────────────────── */
.sp-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: var(--space-2xl) 0 var(--space-xl);
    background-color: var(--black);
    overflow: hidden;
}

.sp-hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

.sp-hero__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.15;
}

.sp-hero__glow--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.6) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.sp-hero__glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.4) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
}

.sp-hero__content {
    position: relative;
    z-index: 1;
}

.sp-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    line-height: 0.95;
    color: var(--white);
    margin-top: var(--space-xl);
}

.sp-hero__subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--ash);
    max-width: 520px;
    margin-top: var(--space-lg);
}

.sp-hero__disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: var(--space-xl);
}

.sp-hero__disc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ash);
}

.sp-hero__disc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
    animation: discPulse 2s ease-in-out infinite;
}

.sp-hero__disc:nth-child(2) .sp-hero__disc-dot {
    animation-delay: 0.2s;
}

.sp-hero__disc:nth-child(3) .sp-hero__disc-dot {
    animation-delay: 0.4s;
}

.sp-hero__disc:nth-child(4) .sp-hero__disc-dot {
    animation-delay: 0.6s;
}

.sp-hero__disc:nth-child(5) .sp-hero__disc-dot {
    animation-delay: 0.8s;
}

.sp-hero__disc:nth-child(6) .sp-hero__disc-dot {
    animation-delay: 1.0s;
}

.sp-hero__disc:nth-child(7) .sp-hero__disc-dot {
    animation-delay: 1.2s;
}

@keyframes discPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ─── PROCESS TIMELINE ────────────────────────────────── */
.sp-process {
    padding: var(--space-2xl) 0;
    background-color: var(--black-soft);
}

.sp-process__header {
    margin-bottom: var(--space-xl);
}

.sp-process__timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.sp-process__step {
    position: relative;
    padding: 0 var(--space-md);
}

.sp-process__step:first-child {
    padding-left: 0;
}

.sp-process__step:last-child {
    padding-right: 0;
}

.sp-process__step-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--graphite);
    line-height: 1;
    margin-bottom: var(--space-sm);
    transition: color 0.4s ease;
}

.sp-process__step:hover .sp-process__step-num {
    color: var(--stone);
}

.sp-process__step-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--graphite) 0%, transparent 100%);
    margin-bottom: var(--space-md);
}

.sp-process__step-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.sp-process__step-desc {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ash);
}

@media (max-width: 1024px) {
    .sp-process__timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .sp-process__step {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .sp-process__timeline {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .sp-process__step-line {
        width: 60px;
    }
}

/* ─── STATS ──────────────────────────────────────────── */
.sp-stats {
    padding: var(--space-xl) 0;
    background-color: var(--black);
    border-top: 1px solid var(--graphite);
    border-bottom: 1px solid var(--graphite);
}

.sp-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.sp-stats__number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-xs, 0.5rem);
}

.sp-stats__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ash);
}

@media (max-width: 768px) {
    .sp-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 400px) {
    .sp-stats__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── CAPABILITIES ────────────────────────────────────── */
.sp-capabilities {
    position: relative;
    padding: var(--space-2xl) 0;
    background-color: var(--black);
    overflow: hidden;
}

.sp-capabilities__glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(160px);
    opacity: 0.08;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.8) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sp-capabilities__header {
    margin-bottom: var(--space-lg);
}

.sp-cap {
    border-top: 1px solid var(--graphite);
}

.sp-cap:last-child {
    border-bottom: 1px solid var(--graphite);
}

.sp-cap__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    transition: background-color 0.3s ease;
}

.sp-cap__icon {
    color: var(--graphite);
    margin-bottom: var(--space-md);
    transition: color 0.4s ease;
}

.sp-cap__icon svg {
    filter: drop-shadow(0 0 0 transparent);
    transition: filter 0.4s ease;
}

.sp-cap:hover .sp-cap__icon {
    color: var(--stone);
}

.sp-cap:hover .sp-cap__icon svg {
    filter: drop-shadow(0 0 16px rgba(139, 115, 85, 0.15));
}

.sp-cap__num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--graphite);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-md);
    transition: color 0.4s ease;
}

.sp-cap:hover .sp-cap__num {
    color: var(--stone);
}

.sp-cap__title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.sp-cap__desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--ash);
    max-width: 450px;
}

.sp-cap__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-cap__list {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sp-cap__list li {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--white);
    padding: 0.8em 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
    position: relative;
    padding-left: 1.5em;
}

.sp-cap__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--stone);
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sp-cap:hover .sp-cap__list li::before {
    opacity: 1;
    transform: translateX(0);
}

.sp-cap__list li:last-child {
    border-bottom: none;
}

/* Brand icons inline (LINE, Telegram) */
.sp-cap__brand-svg {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 5px;
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.sp-cap:hover .sp-cap__brand-svg {
    opacity: 0.85;
}

/* ─── CAPABILITY VISUALS (shared) ────────────────────── */
.sp-cap__visual {
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(42, 42, 42, 0.6);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
}

/* ─── VIS: Browser Mockup ────────────────────────────── */
.sp-vis-browser__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(42, 42, 42, 0.6);
}

.sp-vis-browser__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.sp-vis-browser__url {
    margin-left: 12px;
    height: 6px;
    width: 120px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.sp-vis-browser__body {
    padding: 16px;
}

.sp-vis-browser__nav {
    height: 6px;
    width: 60%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 16px;
}

.sp-vis-browser__hero {
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.15) 0%, rgba(139, 115, 85, 0.05) 100%);
    border-radius: 4px;
    margin-bottom: 12px;
    animation: vis-pulse 3s ease-in-out infinite;
}

.sp-vis-browser__line {
    height: 5px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    margin-bottom: 8px;
}

.sp-vis-browser__line--w80 {
    width: 80%;
}

.sp-vis-browser__line--w60 {
    width: 60%;
}

.sp-vis-browser__cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.sp-vis-browser__col {
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(42, 42, 42, 0.4);
}

.sp-vis-browser__line--w40 {
    width: 40%;
}

.sp-vis-browser__line--w50 {
    width: 50%;
}

.sp-vis-browser__footer {
    height: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
    margin-top: 12px;
    border: 1px solid rgba(42, 42, 42, 0.3);
}

@keyframes vis-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ─── VIS: Color Palette ─────────────────────────────── */
.sp-vis-palette {
    padding: 20px;
}

.sp-vis-palette__swatches {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sp-vis-palette__swatch {
    flex: 1;
    height: 48px;
    border-radius: 6px;
    background: var(--swatch);
    transition: transform 0.3s ease;
}

.sp-cap:hover .sp-vis-palette__swatch {
    transform: translateY(-3px);
}

.sp-vis-palette__type {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.4);
}

.sp-vis-palette__type-serif {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--white);
}

.sp-vis-palette__type-sans {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--ash);
}

.sp-vis-palette__grid {
    display: flex;
    gap: 8px;
}

.sp-vis-palette__block {
    flex: 1;
    height: 24px;
    border-radius: 4px;
    background: rgba(139, 115, 85, 0.12);
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.sp-vis-palette__block--tall {
    height: 36px;
}

/* ─── VIS: Code Editor ───────────────────────────────── */
.sp-vis-code__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(42, 42, 42, 0.6);
}

.sp-vis-code__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.sp-vis-code__body {
    padding: 16px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.72rem;
    line-height: 2;
    position: relative;
}

.sp-vis-code__line {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: code-type 0.4s ease forwards;
}

.sp-vis-code__line:nth-child(1) {
    animation-delay: 0.3s;
}

.sp-vis-code__line:nth-child(2) {
    animation-delay: 0.8s;
}

.sp-vis-code__line:nth-child(3) {
    animation-delay: 1.3s;
}

.sp-vis-code__line:nth-child(4) {
    animation-delay: 1.8s;
}

.sp-vis-code__kw {
    color: rgba(196, 160, 120, 0.9);
}

.sp-vis-code__fn {
    color: rgba(180, 200, 220, 0.8);
}

.sp-vis-code__num {
    color: rgba(180, 140, 100, 0.9);
}

.sp-vis-code__cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: rgba(139, 115, 85, 0.8);
    animation: cursor-blink 1s step-end infinite;
    margin-top: 4px;
}

@keyframes code-type {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ─── VIS: Notification Cards ────────────────────────── */
.sp-vis-notif {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-vis-notif__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(42, 42, 42, 0.5);
    opacity: 0;
    transform: translateX(20px);
}

.sp-vis-notif.is-animated .sp-vis-notif__card {
    animation: notif-slide 0.5s ease forwards;
}

.sp-vis-notif.is-animated .sp-vis-notif__card--1 {
    animation-delay: 0.2s;
}

.sp-vis-notif.is-animated .sp-vis-notif__card--2 {
    animation-delay: 0.6s;
}

.sp-vis-notif.is-animated .sp-vis-notif__card--3 {
    animation-delay: 1.0s;
}

.sp-vis-notif__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-vis-notif__dot--green {
    background: #4ade80;
}

.sp-vis-notif__dot--blue {
    background: #60a5fa;
}

.sp-vis-notif__dot--amber {
    background: #fbbf24;
}

.sp-vis-notif__text {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--white);
    flex: 1;
}

.sp-vis-notif__time {
    font-size: 0.65rem;
    color: var(--ash);
    flex-shrink: 0;
}

@keyframes notif-slide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── VIS: Server Rack ───────────────────────────────── */
.sp-vis-server {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sp-vis-server__unit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(42, 42, 42, 0.4);
}

.sp-vis-server__led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-vis-server__led--green {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
    animation: led-pulse 2s ease-in-out infinite;
}

.sp-vis-server__led--amber {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
    animation: led-pulse 1.5s ease-in-out infinite;
}

@keyframes led-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.sp-vis-server__name {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--ash);
    min-width: 55px;
}

.sp-vis-server__bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.sp-vis-server__fill {
    display: block;
    height: 100%;
    width: 0;
    background: rgba(74, 222, 128, 0.5);
    border-radius: 2px;
}

.sp-vis-server.is-animated .sp-vis-server__fill {
    animation: fill-grow 1.5s ease forwards;
}

.sp-vis-server__fill--amber {
    background: rgba(251, 191, 36, 0.5);
}

@keyframes fill-grow {
    from {
        width: 0;
    }

    to {
        width: var(--fill);
    }
}

.sp-vis-server__pct {
    font-size: 0.6rem;
    color: var(--ash);
    min-width: 28px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ─── VIS: Neural Network ────────────────────────────── */
.sp-vis-neural {
    padding: 20px 10px;
}

.sp-vis-neural__svg {
    width: 100%;
    height: auto;
}

.sp-vis-neural__conn {
    stroke: rgba(139, 115, 85, 0.2);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    animation: conn-flow 3s linear infinite;
}

.sp-vis-neural__conn--1 {
    animation-delay: 0s;
}

.sp-vis-neural__conn--2 {
    animation-delay: 0.3s;
}

.sp-vis-neural__conn--3 {
    animation-delay: 0.6s;
}

.sp-vis-neural__conn--4 {
    animation-delay: 0.9s;
}

.sp-vis-neural__conn--5 {
    animation-delay: 0.2s;
}

.sp-vis-neural__conn--6 {
    animation-delay: 0.5s;
}

.sp-vis-neural__conn--7 {
    animation-delay: 0.8s;
}

.sp-vis-neural__conn--8 {
    animation-delay: 1.1s;
}

@keyframes conn-flow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -24;
    }
}

.sp-vis-neural__node {
    fill: rgba(10, 10, 10, 1);
    stroke: rgba(139, 115, 85, 0.5);
    stroke-width: 1.5;
    animation: node-pulse 2.5s ease-in-out infinite;
}

.sp-vis-neural__node--1 {
    animation-delay: 0s;
}

.sp-vis-neural__node--2 {
    animation-delay: 0.5s;
}

.sp-vis-neural__node--3 {
    animation-delay: 0.2s;
}

.sp-vis-neural__node--4 {
    animation-delay: 0.7s;
}

.sp-vis-neural__node--5 {
    animation-delay: 0.4s;
}

.sp-vis-neural__node--6 {
    animation-delay: 0.9s;
}

@keyframes node-pulse {

    0%,
    100% {
        stroke: rgba(139, 115, 85, 0.5);
    }

    50% {
        stroke: rgba(139, 115, 85, 1);
    }
}

.sp-vis-neural__label {
    fill: var(--ash);
    font-size: 10px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    text-anchor: middle;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ─── VIS: Bar Chart ─────────────────────────────────── */
.sp-vis-chart {
    padding: 20px 16px 12px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
}

.sp-vis-chart__bar {
    flex: 1;
    height: var(--h);
    background: rgba(139, 115, 85, 0.2);
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    animation: bar-grow 1s ease forwards;
    transform-origin: bottom;
}

.sp-vis-chart__bar--accent {
    background: rgba(139, 115, 85, 0.45);
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-bottom: none;
}

@keyframes bar-grow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.sp-vis-chart__val {
    position: absolute;
    bottom: -20px;
    font-size: 0.55rem;
    color: var(--ash);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── VIS: APP DASHBOARD ─────────────────────────────── */
.sp-vis-app {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(42, 42, 42, 0.6);
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-sans);
}

.sp-vis-app__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.sp-vis-app__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.sp-vis-app__url {
    font-size: 0.55rem;
    color: var(--ash);
    margin-left: auto;
    font-weight: 400;
}

.sp-vis-app__body {
    display: flex;
    min-height: 140px;
}

.sp-vis-app__sidebar {
    width: 40px;
    border-right: 1px solid rgba(42, 42, 42, 0.4);
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sp-vis-app__sidebar-item {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
}

.sp-vis-app__sidebar-item--active {
    background: rgba(139, 115, 85, 0.4);
}

.sp-vis-app__main {
    flex: 1;
    padding: 10px;
}

.sp-vis-app__stats {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.4);
}

.sp-vis-app__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.sp-vis-app__stat-val {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ivory);
    line-height: 1.2;
}

.sp-vis-app__stat-label {
    font-size: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ash);
    margin-top: 1px;
}

.sp-vis-app__cards {
    display: flex;
    gap: 6px;
}

.sp-vis-app__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(42, 42, 42, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.015);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sp-vis-app.is-animated .sp-vis-app__card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sp-vis-app.is-animated .sp-vis-app__card:nth-child(1) {
    transition-delay: 0.8s;
}

.sp-vis-app.is-animated .sp-vis-app__card:nth-child(2) {
    transition-delay: 0.95s;
}

.sp-vis-app.is-animated .sp-vis-app__card:nth-child(3) {
    transition-delay: 1.1s;
}

.sp-vis-app__card-img {
    display: block;
    height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
}

.sp-vis-app__card-line {
    display: block;
    height: 4px;
    width: 70%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.sp-vis-app__card-price {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--stone);
}

/* ─── VIS: DESIGN SYSTEM ─────────────────────────────── */
.sp-vis-design {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(42, 42, 42, 0.6);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-sans);
}

.sp-vis-design__header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.sp-vis-design__label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
}

.sp-vis-design__tokens {
    margin-bottom: 16px;
}

.sp-vis-design__token-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sp-vis-design.is-animated .sp-vis-design__token-row {
    opacity: 1;
    transform: translateX(0);
}

.sp-vis-design.is-animated .sp-vis-design__token-row:nth-child(1) {
    transition-delay: 0.1s;
}

.sp-vis-design.is-animated .sp-vis-design__token-row:nth-child(2) {
    transition-delay: 0.25s;
}

.sp-vis-design.is-animated .sp-vis-design__token-row:nth-child(3) {
    transition-delay: 0.4s;
}

.sp-vis-design__swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sp-vis-design.is-animated .sp-vis-design__swatch {
    transform: scale(1);
}

.sp-vis-design.is-animated .sp-vis-design__token-row:nth-child(1) .sp-vis-design__swatch {
    transition-delay: 0.15s;
}

.sp-vis-design.is-animated .sp-vis-design__token-row:nth-child(2) .sp-vis-design__swatch {
    transition-delay: 0.3s;
}

.sp-vis-design.is-animated .sp-vis-design__token-row:nth-child(3) .sp-vis-design__swatch {
    transition-delay: 0.45s;
}

.sp-vis-design__hex {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--ash);
    font-family: monospace;
    letter-spacing: 0.02em;
}

.sp-vis-design__type {
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(42, 42, 42, 0.4);
    border-bottom: 1px solid rgba(42, 42, 42, 0.4);
    opacity: 0;
    transition: opacity 0.6s ease 0.5s;
}

.sp-vis-design.is-animated .sp-vis-design__type {
    opacity: 1;
}

.sp-vis-design__type-lg {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ivory);
    margin-bottom: 4px;
}

.sp-vis-design__type-sm {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--ash);
}

.sp-vis-design__spacing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-vis-design__space {
    display: block;
    height: 4px;
    width: 0;
    background: rgba(139, 115, 85, 0.25);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-vis-design.is-animated .sp-vis-design__space {
    width: var(--w);
}

.sp-vis-design.is-animated .sp-vis-design__space:nth-child(1) {
    transition-delay: 0.6s;
}

.sp-vis-design.is-animated .sp-vis-design__space:nth-child(2) {
    transition-delay: 0.7s;
}

.sp-vis-design.is-animated .sp-vis-design__space:nth-child(3) {
    transition-delay: 0.8s;
}

.sp-vis-design.is-animated .sp-vis-design__space:nth-child(4) {
    transition-delay: 0.9s;
}

/* ─── VIS: AI CHAT ───────────────────────────────────── */
.sp-vis-ai {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(42, 42, 42, 0.6);
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-sans);
}

.sp-vis-ai__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.sp-vis-ai__model {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ivory);
}

.sp-vis-ai__status {
    font-size: 0.55rem;
    font-weight: 400;
    color: #4ade80;
}

.sp-vis-ai__chat {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-vis-ai__msg {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 6px;
}

.sp-vis-ai__msg--user {
    background: rgba(139, 115, 85, 0.1);
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.sp-vis-ai__msg--ai {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(42, 42, 42, 0.5);
}

.sp-vis-ai__sender {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
}

.sp-vis-ai__text {
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--ivory);
}

.sp-vis-ai__typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.sp-vis-ai__typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--stone);
    animation: aiTyping 1.4s ease-in-out infinite;
}

.sp-vis-ai__typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.sp-vis-ai__typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes aiTyping {

    0%,
    60%,
    100% {
        opacity: 0.2;
    }

    30% {
        opacity: 1;
    }
}

/* ─── VIS: SEO ANALYTICS ─────────────────────────────── */
.sp-vis-seo {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(42, 42, 42, 0.6);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-sans);
}

.sp-vis-seo__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.sp-vis-seo__metric {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.sp-vis-seo__metric-val {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ivory);
    line-height: 1.2;
}

.sp-vis-seo__metric-val--up {
    color: #4ade80;
}

.sp-vis-seo__metric-label {
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
    margin-top: 2px;
}

.sp-vis-seo__result {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(42, 42, 42, 0.4);
    border-radius: 6px;
}

.sp-vis-seo__result-url {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--ash);
}

.sp-vis-seo__result-title {
    font-size: 0.85rem;
    font-weight: 400;
    color: #8ab4f8;
}

.sp-vis-seo__result-desc {
    font-size: 0.65rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--ash);
}

/* ─── CAPABILITIES RESPONSIVE ────────────────────────── */
@media (max-width: 768px) {
    .sp-cap__inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .sp-cap__left {
        text-align: center;
    }

    .sp-cap .sp-cap__icon {
        color: var(--stone);
        margin: 0 auto var(--space-sm);
    }

    .sp-cap .sp-cap__num {
        color: var(--stone);
    }

    .sp-cap .sp-cap__list li::before {
        opacity: 1;
        transform: translateX(0);
    }

    .sp-cap__visual {
        margin-bottom: var(--space-md);
    }
}

/* ─── VISUAL PROOF ───────────────────────────────────── */
.sp-proof {
    padding: var(--space-2xl) 0;
    background-color: var(--black-soft);
}

.sp-proof__header {
    margin-bottom: var(--space-xl);
}

.sp-proof__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.sp-proof__frame {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 42, 0.6);
    background: rgba(255, 255, 255, 0.015);
    transition: border-color 0.3s ease, transform 0.4s ease, opacity var(--duration-slow) var(--ease-out);
}

.sp-proof__frame:hover {
    border-color: rgba(139, 115, 85, 0.3);
    transform: translateY(-4px);
}

.sp-proof__frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(42, 42, 42, 0.6);
}

.sp-proof__frame-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.sp-proof__frame-url {
    margin-left: 12px;
    font-size: 0.65rem;
    color: var(--ash);
    letter-spacing: 0.05em;
}

.sp-proof__frame-body {
    line-height: 0;
}

.sp-proof__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.sp-proof__frame:hover .sp-proof__img {
    transform: scale(1.02);
}

.sp-proof__footer {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.sp-proof__more {
    font-size: 0.85rem;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.sp-proof__more:hover {
    color: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .sp-proof__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── TECH STACK ──────────────────────────────────────── */
.sp-stack {
    padding: var(--space-2xl) 0;
    background-color: var(--black);
    border-top: 1px solid var(--charcoal);
}

.sp-stack__header {
    margin-bottom: var(--space-xl);
}

.sp-stack__heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
    margin-top: var(--space-md);
}

.sp-stack__sub {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--ash);
    margin-top: var(--space-md);
    max-width: 560px;
}

.sp-stack__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.sp-stack__card {
    padding: var(--space-md);
    border: 1px solid var(--graphite);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.015);
    transition: 
        border-color 0.4s ease, 
        background 0.4s ease, 
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
        box-shadow 0.4s ease, 
        opacity var(--duration-slow) var(--ease-out);
}

.sp-stack__card:hover {
    border-color: rgba(200, 168, 110, 0.4);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(200, 168, 110, 0.05);
}

.sp-stack__card-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: var(--space-xs);
}

.sp-stack__card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.sp-stack__card-desc {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ash);
}

@media (max-width: 768px) {
    .sp-stack__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── WHAT EVERY BUILD INCLUDES ──────────────────────── */
.sp-includes {
    padding: var(--space-2xl) 0;
    background-color: var(--black-soft);
    border-top: 1px solid var(--charcoal);
}

.sp-includes__header {
    margin-bottom: var(--space-xl);
}

.sp-includes__heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
    margin-top: var(--space-md);
}

.sp-includes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.sp-includes__item {
    padding: var(--space-md);
    border: 1px solid var(--graphite);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.015);
    transition: 
        border-color 0.4s ease, 
        background 0.4s ease, 
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
        box-shadow 0.4s ease, 
        opacity var(--duration-slow) var(--ease-out);
}

.sp-includes__item:hover {
    border-color: rgba(200, 168, 110, 0.4);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(200, 168, 110, 0.05);
}

.sp-includes__item-num {
    font-size: 1.4rem;
    font-weight: 300;
    font-family: var(--font-serif);
    color: var(--gold);
    display: block;
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.sp-includes__item-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.sp-includes__item-desc {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ash);
}

@media (max-width: 768px) {
    .sp-includes__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── WHY IN-HOUSE ────────────────────────────────────── */
.sp-why {
    padding: var(--space-2xl) 0;
    background-color: var(--black-soft);
}

.sp-why__inner {
    max-width: 900px;
}

.sp-why__heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--white);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
}

.sp-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.sp-why__item {
    padding-top: var(--space-md);
    border-top: 1px solid var(--graphite);
}

.sp-why__item-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.sp-why__item-desc {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ash);
}

@media (max-width: 600px) {
    .sp-why__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ─── CTA ─────────────────────────────────────────────── */
.sp-cta {
    padding: var(--space-2xl) 0;
    background-color: var(--black);
    position: relative;
    overflow: hidden;
}

.sp-cta__inner {
    text-align: center;
}

.sp-cta__heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.sp-cta__link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    padding: 1.2em 3em;
    border: 1px solid var(--graphite);
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.sp-cta__link:hover {
    border-color: var(--stone);
    background-color: rgba(255, 255, 255, 0.03);
}

.sp-cta__note {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--ash);
    margin-top: var(--space-md);
    font-style: italic;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.cs-footer {
    padding: var(--space-xl) 0 var(--space-md) 0;
    background-color: var(--black);
}

/* ─── MOBILE: Default hover states ───────────────────── */
@media (max-width: 768px) {

    /* Process timeline step numbers */
    .sp-process__step-num {
        color: var(--stone) !important;
    }

    /* Capability icons */
    .sp-cap__icon {
        color: var(--stone) !important;
    }

    /* Capability numbers (01, 02, etc.) */
    .sp-cap__num {
        color: var(--stone) !important;
    }

    /* Capability list arrow markers */
    .sp-cap__list li::before {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    /* Palette swatches */
    .sp-vis-palette__swatch {
        transform: translateY(-3px);
    }

    /* Tech stack cards */
    .sp-stack__card {
        border-color: rgba(200, 168, 110, 0.25) !important;
    }

    /* Includes items */
    .sp-includes__item {
        border-color: rgba(200, 168, 110, 0.25) !important;
    }
}