/* ==========================================================================
   Dabish Digital — site stylesheet
   Self-hosted type, dark-first with a light theme, GSAP-driven motion layer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted variable, no third-party request)
   -------------------------------------------------------------------------- */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-variable.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Sora";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("../fonts/sora-variable.woff2") format("woff2-variations");
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
    --brand-1: #4179fe;
    --brand-2: #7b3fe4;
    --brand-3: #e93fcb;
    --brand-4: #36f5ff;
    --gradient: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
    --gradient-soft: linear-gradient(100deg, rgba(65, 121, 254, .16), rgba(233, 63, 203, .16));

    --bg: #06050d;
    --bg-alt: #0a0816;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --surface-3: rgba(255, 255, 255, .09);
    --border: rgba(255, 255, 255, .085);
    --border-strong: rgba(255, 255, 255, .17);

    --text: #eeecf8;
    --text-muted: #9d98bb;
    --text-dim: #6f6a8d;

    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Sora", var(--font-body);

    --container: 1240px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 34px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
    --shadow-lg: 0 44px 100px -44px rgba(0, 0, 0, .95);
    --glow: 0 0 0 1px rgba(123, 63, 228, .35), 0 20px 60px -25px rgba(123, 63, 228, .75);

    --header-h: 76px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-alt: #f4f3fa;
    --surface: rgba(15, 12, 40, .026);
    --surface-2: rgba(15, 12, 40, .05);
    --surface-3: rgba(15, 12, 40, .08);
    --border: rgba(15, 12, 40, .1);
    --border-strong: rgba(15, 12, 40, .19);

    --text: #100e1c;
    --text-muted: #55516e;
    --text-dim: #7a7692;

    --shadow: 0 18px 40px -24px rgba(28, 20, 70, .35);
    --shadow-lg: 0 44px 100px -50px rgba(28, 20, 70, .45);
    --glow: 0 0 0 1px rgba(123, 63, 228, .18), 0 24px 60px -30px rgba(123, 63, 228, .45);

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   3. Reset + base
   -------------------------------------------------------------------------- */

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

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

/* Lenis smooth scroll requirements */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

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

ul,
ol {
    list-style: none;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.025em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 2px solid var(--brand-4);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(123, 63, 228, .45);
    color: #fff;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 26px;
}

.section {
    position: relative;
    padding-block: clamp(76px, 9.5vw, 148px);
}

.section--tight {
    padding-block: clamp(52px, 6vw, 88px);
}

.section--alt {
    background: var(--bg-alt);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 300;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--brand-2);
    color: #fff;
    font-weight: 600;
    transition: top .2s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

/* --------------------------------------------------------------------------
   5. Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
    flex: none;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.h1 {
    font-size: clamp(2.6rem, 6.4vw, 4.7rem);
    letter-spacing: -.04em;
}

.h2 {
    font-size: clamp(2rem, 4.1vw, 3.2rem);
    letter-spacing: -.033em;
}

.h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.42rem);
}

.lead {
    font-size: clamp(1.02rem, 1.35vw, 1.19rem);
    color: var(--text-muted);
    line-height: 1.7;
}

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

.section-head {
    max-width: 760px;
    margin-bottom: clamp(44px, 5.5vw, 72px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow::before {
    display: none;
}

.section-head .h2 {
    margin-top: 18px;
}

.section-head .lead {
    margin-top: 20px;
}

/* Masked word reveal — JS wraps each word, CSS clips the overflow */
.split-line {
    display: block;
    overflow: hidden;
    padding-bottom: .06em;
}

.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: .08em;
    margin-bottom: -.08em;
}

.split-word__in {
    display: inline-block;
    will-change: transform;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
    --btn-bg: var(--surface-2);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 27px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--btn-bg);
    color: var(--text);
    font-weight: 600;
    font-size: .96rem;
    letter-spacing: -.01em;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease),
        border-color .3s var(--ease), background-color .3s var(--ease), opacity .2s;
}

.btn:hover {
    border-color: var(--border-strong);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
    transition: transform .35s var(--ease);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn--primary {
    border-color: transparent;
    background: var(--gradient);
    background-size: 190% 100%;
    color: #fff;
    box-shadow: var(--glow);
}

.btn--primary:hover {
    background-position: 100% 0;
    box-shadow: 0 0 0 1px rgba(123, 63, 228, .5), 0 28px 64px -22px rgba(163, 63, 228, .9);
}

/* Sheen that sweeps across on hover */
.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
    translate: -110% 0;
    transition: translate .75s var(--ease);
}

.btn--primary:hover::after {
    translate: 110% 0;
}

.btn--ghost {
    --btn-bg: transparent;
}

.btn--ghost:hover {
    background: var(--surface-2);
}

.btn--lg {
    padding: 17px 35px;
    font-size: 1.02rem;
}

.btn--sm {
    padding: 10px 21px;
    font-size: .88rem;
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    opacity: .6;
    pointer-events: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Magnetic wrapper — JS translates this, the button keeps its own hover */
.magnetic {
    display: inline-block;
    will-change: transform;
}

/* Text link with an animated underline */
.link-underline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1.5px;
    background: var(--gradient);
    transform-origin: right;
    scale: 0 1;
    transition: scale .45s var(--ease);
}

.link-underline:hover::after {
    transform-origin: left;
    scale: 1 1;
}

/* --------------------------------------------------------------------------
   7. Global chrome: grain, cursor, progress, curtain, preloader
   -------------------------------------------------------------------------- */

/* Film grain — adds texture so flat panels don't look plasticky */
.grain {
    position: fixed;
    inset: -120px;
    z-index: 210;
    pointer-events: none;
    opacity: .038;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-4%, -4%); }
    20% { transform: translate(-8%, 2%); }
    30% { transform: translate(4%, -6%); }
    40% { transform: translate(-2%, 6%); }
    50% { transform: translate(-6%, 4%); }
    60% { transform: translate(6%, 0); }
    70% { transform: translate(0, 6%); }
    80% { transform: translate(2%, -4%); }
    90% { transform: translate(-4%, 4%); }
}

/* Trailing cursor ring — the native cursor stays visible underneath */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 220;
    pointer-events: none;
    opacity: 0;
    display: none;
}

.cursor.is-ready {
    display: block;
}

.cursor__ring {
    position: absolute;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    transition: width .35s var(--ease), height .35s var(--ease),
        margin .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}

.cursor.is-hover .cursor__ring {
    width: 66px;
    height: 66px;
    margin: -33px 0 0 -33px;
    border-color: transparent;
    background: rgba(123, 63, 228, .18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.cursor__dot {
    position: absolute;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--brand-3);
    transition: opacity .3s;
}

.cursor.is-hover .cursor__dot {
    opacity: 0;
}

/* Reading progress under the header */
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    background: var(--gradient);
    pointer-events: none;
}

/* Page-transition curtain */
.curtain {
    position: fixed;
    inset: 0;
    z-index: 260;
    pointer-events: none;
    background: var(--gradient);
    translate: 0 100%;
    display: none;
}

.curtain.is-armed {
    display: block;
}

/* Preloader — only ever shown when JS is running, so it can never trap
   a visitor behind a curtain that nothing will lift. */
.preloader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 280;
    place-items: center;
    background: var(--bg);
}

.js .preloader {
    display: grid;
}

.js .preloader[hidden] {
    display: none;
}

.preloader__inner {
    display: grid;
    justify-items: center;
    gap: 26px;
    width: min(280px, 70vw);
}

.preloader__mark {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    box-shadow: 0 18px 50px -18px rgba(123, 63, 228, .9);
    animation: pulse 1.6s var(--ease) infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.92); opacity: .78; }
}

.preloader__track {
    width: 100%;
    height: 3px;
    border-radius: 100px;
    background: var(--surface-2);
    overflow: hidden;
}

.preloader__fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: var(--gradient);
}

.preloader__count {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   9. Header + navigation
   -------------------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

.header.is-stuck {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border-bottom-color: var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -.025em;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex: none;
    box-shadow: 0 6px 18px -8px rgba(123, 63, 228, .9);
    transition: transform .5s var(--ease);
}

.brand:hover .brand__mark {
    transform: rotate(-8deg) scale(1.06);
}

.brand__name {
    white-space: nowrap;
}

.nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__link {
    position: relative;
    display: block;
    padding: 9px 16px;
    border-radius: 100px;
    font-size: .94rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .25s;
}

.nav__link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: var(--surface-2);
    scale: .8;
    opacity: 0;
    transition: scale .35s var(--ease), opacity .25s;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--text);
}

.nav__link:hover::before,
.nav__link.is-active::before {
    scale: 1;
    opacity: 1;
}

.nav__link span {
    position: relative;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: color .25s, border-color .25s, background-color .25s, transform .3s var(--ease);
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

.nav-toggle {
    display: none;
}

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 240;
    visibility: hidden;
    pointer-events: none;
}

.drawer[data-open="true"] {
    visibility: visible;
    pointer-events: auto;
}

.drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(3, 2, 9, .62);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .35s var(--ease);
}

.drawer[data-open="true"] .drawer__scrim {
    opacity: 1;
}

.drawer__panel {
    position: relative;
    margin-left: auto;
    width: min(380px, 90vw);
    height: 100%;
    padding: 22px;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    translate: 100% 0;
    transition: translate .45s var(--ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer[data-open="true"] .drawer__panel {
    translate: 0 0;
}

.drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.drawer__list {
    display: grid;
    gap: 2px;
}

.drawer__list li {
    opacity: 0;
    translate: 24px 0;
    transition: opacity .4s var(--ease), translate .4s var(--ease);
    transition-delay: calc(var(--i, 0) * 55ms);
}

.drawer[data-open="true"] .drawer__list li {
    opacity: 1;
    translate: 0 0;
}

.drawer__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text);
    transition: padding-left .3s var(--ease), color .25s;
}

.drawer__list a:hover {
    padding-left: 10px;
    color: var(--brand-3);
}

.drawer__list a::after {
    content: "→";
    opacity: 0;
    translate: -8px 0;
    transition: opacity .3s, translate .3s var(--ease);
}

.drawer__list a:hover::after {
    opacity: 1;
    translate: 0 0;
}

.drawer__foot {
    margin-top: auto;
    padding-top: 28px;
    display: grid;
    gap: 12px;
}

.drawer__foot .muted {
    font-size: .9rem;
}

/* --------------------------------------------------------------------------
   10. Decorative background
   -------------------------------------------------------------------------- */

.aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 18%, transparent 76%);
    mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 18%, transparent 76%);
    opacity: .55;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(94px);
    opacity: .52;
    will-change: transform;
}

[data-theme="light"] .orb {
    opacity: .3;
}

.orb--1 {
    width: 46vw;
    height: 46vw;
    max-width: 640px;
    max-height: 640px;
    top: -18%;
    left: -10%;
    background: radial-gradient(circle, var(--brand-1), transparent 66%);
    animation: float 22s ease-in-out infinite;
}

.orb--2 {
    width: 42vw;
    height: 42vw;
    max-width: 580px;
    max-height: 580px;
    top: -8%;
    right: -8%;
    background: radial-gradient(circle, var(--brand-3), transparent 66%);
    animation: float 26s ease-in-out infinite reverse;
}

.orb--3 {
    width: 36vw;
    height: 36vw;
    max-width: 500px;
    max-height: 500px;
    bottom: -22%;
    left: 34%;
    background: radial-gradient(circle, var(--brand-2), transparent 66%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, 6%, 0) scale(1.12); }
}

/* --------------------------------------------------------------------------
   11. Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-block: clamp(56px, 8vw, 108px) clamp(76px, 9vw, 124px);
    overflow: hidden;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 76px);
    align-items: center;
}

.hero__title {
    margin-top: 0;
}

.hero__lead {
    margin-top: 26px;
    max-width: 52ch;
}

.hero__actions {
    margin-top: 36px;
}

/* Rotating word */
.rotator {
    display: inline-grid;
    vertical-align: bottom;
    overflow: hidden;
}

.rotator__item {
    grid-area: 1 / 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    translate: 0 100%;
    transition: opacity .55s var(--ease), translate .55s var(--ease);
}

.rotator__item.is-current {
    opacity: 1;
    translate: 0 0;
}

.rotator__item.is-leaving {
    opacity: 0;
    translate: 0 -100%;
}

.hero__proof {
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--text-muted);
}

.proof-item svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--brand-4);
}

/* Hero visual */
.mock {
    position: relative;
    perspective: 1500px;
}

.mock__window {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotateY(-9deg) rotateX(3deg);
    transition: transform .9s var(--ease);
}

.mock:hover .mock__window {
    transform: rotateY(-3deg) rotateX(1deg);
}

.mock__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.mock__mark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--gradient);
    flex: none;
}

.mock__title {
    font-family: var(--font-display);
    font-size: .87rem;
    font-weight: 600;
    letter-spacing: -.015em;
}

.mock__url {
    margin-left: auto;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--surface-2);
    font-size: .74rem;
    color: var(--text-dim);
}

.mock__body {
    padding: 20px 22px 26px;
}

/* Architecture diagram — real structure rather than a decorative chart */
.arch {
    width: 100%;
    height: auto;
    overflow: visible;
}

.arch__node rect {
    fill: var(--surface-2);
    stroke: var(--border-strong);
    stroke-width: 1;
}

.arch__node text {
    fill: var(--text);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-anchor: middle;
}

.arch__node--hub rect {
    fill: url(#archHub);
    stroke: none;
    filter: drop-shadow(0 8px 22px rgba(123, 63, 228, .45));
}

.arch__node--hub text {
    fill: #fff;
}

.arch__node--hub .sub {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0;
    fill: rgba(255, 255, 255, .78);
}

.arch__node--store rect {
    fill: var(--surface);
    stroke-dasharray: 4 3;
}

.arch__edge path {
    fill: none;
    stroke: var(--border-strong);
    stroke-width: 1.1;
}

.arch__flow path {
    fill: none;
    stroke: url(#archFlow);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 5 13;
    animation: archflow 2.6s linear infinite;
}

@keyframes archflow {
    to { stroke-dashoffset: -72; }
}

/* --------------------------------------------------------------------------
   12. Marquee
   -------------------------------------------------------------------------- */

.marquee {
    position: relative;
    padding-block: 28px;
    border-block: 1px solid var(--border);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: 58px;
    animation: scroll 38s linear infinite;
    will-change: transform;
}

/* When GSAP drives the marquee it removes the CSS animation */
.marquee.is-js .marquee__track {
    animation: none;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color .3s;
}

.marquee__item:hover {
    color: var(--text);
}

.marquee__item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient);
    flex: none;
}

@keyframes scroll {
    to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   13. Cards
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    gap: 20px;
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .45s var(--ease), background-color .45s var(--ease);
}

/* Gradient edge that lights up under the cursor */
.card--spot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%),
            rgba(160, 110, 255, .75), transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.card--spot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
            rgba(123, 63, 228, .15), transparent 62%);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.card--spot:hover::before,
.card--spot:hover::after {
    opacity: 1;
}

.card:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

/* 3D tilt — JS writes the rotation custom properties */
.tilt {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transform-style: preserve-3d;
    transition: transform .5s var(--ease);
}

.tilt.is-tilting {
    transition: transform .12s linear;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: var(--gradient-soft);
    color: var(--brand-3);
    margin-bottom: 24px;
    transition: transform .5s var(--ease), color .4s;
}

.card:hover .card__icon {
    transform: translateY(-3px) scale(1.05);
}

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card__title {
    font-size: 1.2rem;
    font-weight: 700;
}

.card__text {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: .96rem;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.tag {
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .76rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Numbered corner label */
.card__index {
    position: absolute;
    top: 26px;
    right: 30px;
    z-index: 2;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--text-dim);
    opacity: .6;
}

/* --------------------------------------------------------------------------
   14. Showcase — "what we build"
   -------------------------------------------------------------------------- */

.showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.show-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .45s var(--ease), transform .5s var(--ease);
}

.show-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.show-card__stage {
    position: relative;
    height: 268px;
    padding: 30px 30px 0;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(123, 63, 228, .22), transparent 62%),
        var(--surface);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.show-card__body {
    padding: 28px 30px 32px;
}

.show-card__body h3 {
    font-size: 1.24rem;
}

.show-card__body p {
    margin-top: 11px;
    color: var(--text-muted);
    font-size: .96rem;
}

/* Generic device chrome used inside the stages */
.device {
    border-radius: 14px 14px 0 0;
    border: 1px solid var(--border-strong);
    border-bottom: 0;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    box-shadow: 0 -10px 50px -20px rgba(0, 0, 0, .8);
    overflow: hidden;
    height: 100%;
    transition: transform .6s var(--ease);
}

.show-card:hover .device {
    transform: translateY(-8px);
}

.device__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.device__bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-strong);
}

.device__pane {
    padding: 14px;
    display: grid;
    gap: 10px;
}

/* Skeleton primitives for the mock content */
.sk {
    border-radius: 5px;
    background: var(--surface-3);
    height: 9px;
}

.sk--lg { height: 15px; }
.sk--w40 { width: 40%; }
.sk--w55 { width: 55%; }
.sk--w70 { width: 70%; }
.sk--grad { background: var(--gradient); }

.sk-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sk-tile {
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 10px;
    display: grid;
    gap: 7px;
}

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

.sk-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sk-thumb {
    height: 44px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(65, 121, 254, .35), rgba(233, 63, 203, .3));
}

.sk-pill {
    height: 18px;
    width: 54px;
    border-radius: 100px;
    background: var(--gradient);
}

.sk-side {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
}

.sk-rail {
    display: grid;
    gap: 7px;
    align-content: start;
    padding: 9px 7px;
    border-radius: 8px;
    background: var(--surface-2);
}

.sk-rail i {
    height: 7px;
    border-radius: 4px;
    background: var(--surface-3);
}

.sk-rail i:first-child { background: var(--gradient); }

.sk-chart {
    height: 62px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 8px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.sk-chart i {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: var(--gradient);
    opacity: .82;
    height: var(--h, 40%);
}

/* API / service panel */
.sk-api {
    display: grid;
    gap: 7px;
}

.sk-api__row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: .63rem;
    letter-spacing: -.01em;
}

.sk-api__verb {
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: .56rem;
    letter-spacing: .05em;
    flex: none;
}

.sk-api__verb--get {
    background: linear-gradient(100deg, var(--brand-1), var(--brand-2));
}

.sk-api__path {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sk-api__ok {
    margin-left: auto;
    flex: none;
    color: #3ddc97;
    font-size: .58rem;
}

/* Phone frame */
.device--phone {
    width: 172px;
    margin-inline: auto;
    border-radius: 24px 24px 0 0;
    border: 6px solid var(--border-strong);
    border-bottom: 0;
    background: var(--bg);
}

.device--phone .device__notch {
    width: 52px;
    height: 5px;
    border-radius: 100px;
    background: var(--border-strong);
    margin: 9px auto 4px;
}

/* --------------------------------------------------------------------------
   15. Split section (approach)
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(38px, 5vw, 76px);
    align-items: center;
}

.checklist {
    display: grid;
    gap: 20px;
    margin-top: 36px;
}

.checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.checklist__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
}

.checklist__icon svg {
    width: 14px;
    height: 14px;
}

.checklist strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.03rem;
    letter-spacing: -.015em;
}

.checklist p {
    margin-top: 3px;
    font-size: .94rem;
    color: var(--text-muted);
}

.panel-stack {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 30px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--gradient-soft);
}

.panel-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 19px 21px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease), border-color .35s;
    will-change: transform;
}

.panel-row:hover {
    transform: translateX(8px);
    border-color: var(--border-strong);
}

.panel-row__num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
}

.panel-row__body strong {
    font-family: var(--font-display);
    font-size: 1rem;
}

.panel-row__body span {
    display: block;
    font-size: .88rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. Process — horizontal pinned track
   -------------------------------------------------------------------------- */

.process {
    position: relative;
    overflow: hidden;
}

.process__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

/* Once GSAP pins the section, scroll position is driven by ScrollTrigger.
   The section is also compacted so the whole thing fits one viewport. */
.process.is-pinned {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    /* Leaves room for the sticky header, which floats over the pinned panel */
    padding-block: calc(var(--header-h) + 44px) 48px;
}

.process.is-pinned .section-head {
    margin-bottom: 36px;
}

.process.is-pinned .process__viewport {
    overflow: hidden;
    scroll-snap-type: none;
}

.process__track {
    display: flex;
    gap: 22px;
    width: max-content;
    padding-inline: 26px;
    will-change: transform;
}

.process-card {
    position: relative;
    scroll-snap-align: center;
    width: min(400px, 82vw);
    flex: none;
    padding: 34px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .4s, background-color .4s;
}

.process-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.process-card__num {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 24px;
}

.process-card h3 {
    font-size: 1.35rem;
}

.process-card p {
    margin-top: 13px;
    color: var(--text-muted);
}

.process-card ul {
    display: grid;
    gap: 9px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.process-card li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .9rem;
    color: var(--text-muted);
}

.process-card li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-3);
    flex: none;
}

.process-card__ghost {
    position: absolute;
    right: 18px;
    bottom: -22px;
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    opacity: .04;
    pointer-events: none;
}

.process__rail {
    position: relative;
    height: 2px;
    margin: 40px 26px 0;
    border-radius: 2px;
    background: var(--border);
    overflow: hidden;
}

.process__rail span {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    transform-origin: left;
    transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   17. Engagement models
   -------------------------------------------------------------------------- */

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .4s, transform .5s var(--ease), background-color .4s;
}

.plan:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.plan--featured {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
        var(--gradient) border-box;
    border: 1px solid transparent;
    box-shadow: var(--glow);
}

.plan__flag {
    position: absolute;
    top: -12px;
    left: 34px;
    padding: 4px 13px;
    border-radius: 100px;
    background: var(--gradient);
    color: #fff;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.plan h3 {
    font-size: 1.3rem;
}

.plan__sub {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: .95rem;
}

.plan ul {
    display: grid;
    gap: 12px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.plan li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: .93rem;
    color: var(--text-muted);
}

.plan li svg {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 4px;
    color: var(--brand-3);
}

.plan .btn {
    margin-top: 28px;
}

.plan__foot {
    margin-top: auto;
    padding-top: 28px;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */

.faq {
    display: grid;
    gap: 12px;
    max-width: 880px;
    margin-inline: auto;
}

.faq__item {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .35s, background-color .35s;
}

.faq__item[open] {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 26px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.03rem;
    font-weight: 600;
    letter-spacing: -.015em;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: none;
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto 0;
    height: 2px;
    border-radius: 2px;
    background: var(--text-muted);
    translate: 0 -50%;
    transition: rotate .4s var(--ease), background-color .3s;
}

.faq__icon::after {
    rotate: 90deg;
}

.faq__item[open] .faq__icon::after {
    rotate: 0deg;
}

.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
    background: var(--brand-3);
}

.faq__a {
    padding: 0 26px 24px;
    color: var(--text-muted);
    font-size: .96rem;
    max-width: 74ch;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */

.cta {
    position: relative;
    padding: clamp(50px, 6.5vw, 84px) clamp(28px, 5vw, 76px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-strong);
    background: var(--gradient-soft);
    overflow: hidden;
    text-align: center;
}

.cta::before {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    top: -60%;
    left: 50%;
    translate: -50% 0;
    background: radial-gradient(circle, rgba(123, 63, 228, .4), transparent 62%);
    filter: blur(60px);
    pointer-events: none;
}

.cta > * {
    position: relative;
}

.cta .lead {
    margin: 20px auto 0;
    max-width: 56ch;
}

.cta .button-row {
    margin-top: 36px;
    justify-content: center;
}

.cta__note {
    margin-top: 22px;
    font-size: .88rem;
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   20. Contact page
   -------------------------------------------------------------------------- */

.page-head {
    position: relative;
    padding-block: clamp(58px, 7vw, 96px) clamp(30px, 4vw, 48px);
    overflow: hidden;
}

.page-head__inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: .86rem;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    color: var(--text);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 28px;
    align-items: start;
}

.form-card {
    position: relative;
    padding: clamp(26px, 3.4vw, 42px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.field label .req {
    color: var(--brand-3);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 60%, transparent);
    color: var(--text);
    font-size: .96rem;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}

.field textarea {
    min-height: 152px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-dim);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(123, 63, 228, .22);
}

.field input:user-invalid,
.field textarea:user-invalid {
    border-color: #ff6b81;
}

/* Inline hints stay hidden until the field is marked invalid after use */
.field__error {
    display: none;
    font-size: .82rem;
    color: #ff6b81;
}

.field input:user-invalid ~ .field__error,
.field textarea:user-invalid ~ .field__error {
    display: block;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.form-status {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .92rem;
}

.form-status[hidden] {
    display: none;
}

.form-status--ok {
    border-color: rgba(61, 220, 151, .4);
    color: #3ddc97;
}

.form-status--err {
    border-color: rgba(255, 107, 129, .4);
    color: #ff6b81;
}

.contact-aside {
    display: grid;
    gap: 16px;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 23px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .35s, transform .4s var(--ease);
}

.contact-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.contact-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--brand-3);
}

.contact-card__icon svg {
    width: 20px;
    height: 20px;
}

.contact-card h3 {
    font-size: 1rem;
}

.contact-card p,
.contact-card a {
    display: block;
    font-size: .93rem;
    color: var(--text-muted);
}

.contact-card a:hover {
    color: var(--text);
}

.mini-steps {
    counter-reset: mini;
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.mini-steps li {
    counter-increment: mini;
    display: flex;
    gap: 11px;
    font-size: .92rem;
    color: var(--text-muted);
}

.mini-steps li::before {
    content: counter(mini) ".";
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-3);
    flex: none;
}

.map {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
}

.map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    filter: grayscale(.4);
}

[data-theme="dark"] .map iframe {
    filter: grayscale(.3) invert(.92) hue-rotate(185deg) brightness(.95) contrast(.92);
}

/* --------------------------------------------------------------------------
   21. Status pages (thanks / 404)
   -------------------------------------------------------------------------- */

.status-page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--header-h));
    padding-block: 84px;
    overflow: hidden;
    text-align: center;
}

.status-page__inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.status-page__inner > .h2,
.status-page__inner > .lead {
    max-width: 640px;
    margin-inline: auto;
}

.status-mark {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--glow);
    animation: pop .7s var(--ease) both;
}

.status-mark svg {
    width: 40px;
    height: 40px;
}

@keyframes pop {
    from { transform: scale(.6); opacity: 0; }
}

.status-page .lead {
    margin-top: 20px;
}

.status-page .button-row {
    margin-top: 36px;
    justify-content: center;
}

.next-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 58px;
    text-align: left;
}

.next-steps .card {
    padding: 25px;
}

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */

.footer {
    position: relative;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding-block: clamp(56px, 6vw, 82px) 30px;
    overflow: hidden;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 42px;
}

.footer__about {
    max-width: 34ch;
}

.footer__about .muted {
    margin-top: 18px;
    font-size: .93rem;
}

.footer h4 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 19px;
}

.footer__links {
    display: grid;
    gap: 11px;
}

.footer__links a {
    font-size: .94rem;
    color: var(--text-muted);
    transition: color .25s, padding-left .3s var(--ease);
}

.footer__links a:hover {
    color: var(--text);
    padding-left: 5px;
}

/* Oversized wordmark that bleeds off the bottom */
.footer__wordmark {
    margin-top: clamp(44px, 5vw, 70px);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 13vw, 11rem);
    line-height: .88;
    letter-spacing: -.05em;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .13;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    font-size: .88rem;
    color: var(--text-dim);
}

.footer__bottom ul {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer__bottom a:hover {
    color: var(--text);
}

/* --------------------------------------------------------------------------
   23. Back-to-top + sticky mobile CTA
   -------------------------------------------------------------------------- */

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0;
    translate: 0 14px;
    pointer-events: none;
    transition: opacity .35s var(--ease), translate .35s var(--ease), background-color .3s;
}

.to-top.is-visible {
    opacity: 1;
    translate: 0 0;
    pointer-events: auto;
}

.to-top svg {
    width: 18px;
    height: 18px;
}

.to-top__ring {
    position: absolute;
    inset: -1px;
    rotate: -90deg;
}

.to-top__ring circle {
    fill: none;
    stroke: var(--brand-3);
    stroke-width: 2;
    stroke-dasharray: 145;
    stroke-dashoffset: var(--progress, 145);
    transition: stroke-dashoffset .1s linear;
}

.mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 45;
    display: none;
    gap: 10px;
    padding: 10px;
    border-radius: 100px;
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    translate: 0 140%;
    transition: translate .45s var(--ease);
}

.mobile-cta.is-visible {
    translate: 0 0;
}

.mobile-cta .btn {
    flex: 1;
    padding-block: 12px;
}

/* --------------------------------------------------------------------------
   24. Scroll reveal (fallback when GSAP is unavailable)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
    opacity: 0;
    translate: 0 26px;
    transition: opacity .8s var(--ease-out), translate .8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
}

/* GSAP takes over — it sets its own from/to values */
.js.gsap-ready [data-reveal] {
    transition: none;
}

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }

    .footer__about {
        grid-column: 1 / -1;
        max-width: none;
    }

    .plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    :root {
        --header-h: 68px;
    }

    .nav {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .header__actions {
        margin-left: auto;
    }

    .header__actions .btn {
        display: none;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .mock__window {
        transform: none;
    }


    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .next-steps {
        grid-template-columns: 1fr;
    }

    .mobile-cta {
        display: flex;
    }

    .to-top {
        bottom: 84px;
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 18px;
    }

    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .hero__proof {
        gap: 12px 20px;
    }

    .process__track {
        padding-inline: 18px;
    }

    .process__rail {
        margin-inline: 18px;
    }

    .btn {
        width: 100%;
    }

    .button-row .btn,
    .mobile-cta .btn {
        width: auto;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .show-card__stage {
        height: 220px;
        padding: 24px 24px 0;
    }

    .card {
        padding: 26px;
    }
}

/* Fine pointers only — no custom cursor or tilt on touch */
@media (hover: none), (pointer: coarse) {
    .cursor {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   26. Motion / print preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] {
        opacity: 1;
        translate: none;
    }

    .grain,
    .cursor {
        display: none !important;
    }
}

@media print {

    .header,
    .to-top,
    .mobile-cta,
    .footer,
    .aurora,
    .drawer,
    .grain,
    .cursor,
    .preloader,
    .curtain {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* --------------------------------------------------------------------------
   27. Content hubs — /articles/ and /blog/
   -------------------------------------------------------------------------- */

.hub-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
}

.hub-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
}

.hub-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: .94rem;
    transition: border-color .25s, box-shadow .25s;
}

.hub-search input:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px rgba(123, 63, 228, .2);
}

.hub-search svg {
    position: absolute;
    left: 15px;
    top: 50%;
    translate: 0 -50%;
    width: 17px;
    height: 17px;
    color: var(--text-dim);
    pointer-events: none;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .25s, border-color .25s, background-color .25s;
}

.chip:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.chip.is-on {
    color: #fff;
    border-color: transparent;
    background: var(--gradient);
}

.hub-count {
    margin-left: auto;
    font-size: .86rem;
    color: var(--text-dim);
    white-space: nowrap;
}

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

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .35s, transform .45s var(--ease), background-color .35s;
}

.post-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
    transform: translateY(-4px);
}

.post-card__cat {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-3);
}

.post-card__title {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.02em;
}

.post-card__excerpt {
    margin-top: 11px;
    font-size: .93rem;
    color: var(--text-muted);
}

.post-card__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    font-size: .82rem;
    color: var(--text-dim);
}

.post-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.hub-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.hub-empty[hidden] {
    display: none;
}

/* Year archive rows */
.archive {
    display: grid;
    gap: 2px;
    border-top: 1px solid var(--border);
}

.archive li {
    border-bottom: 1px solid var(--border);
}

.archive a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 15px 6px;
    transition: padding-left .3s var(--ease), background-color .25s;
}

.archive a:hover {
    padding-left: 14px;
    background: var(--surface);
}

.archive time {
    flex: none;
    width: 108px;
    font-size: .82rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.archive span.t {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .99rem;
    letter-spacing: -.015em;
}

.archive .c {
    margin-left: auto;
    flex: none;
    font-size: .76rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   28. Article / post pages
   -------------------------------------------------------------------------- */

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: clamp(34px, 5vw, 68px);
    align-items: start;
}

.post__head {
    padding-bottom: 30px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--border);
}

.post__title {
    margin-top: 18px;
    font-size: clamp(1.95rem, 4vw, 3rem);
    letter-spacing: -.033em;
}

.post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 22px;
    font-size: .87rem;
    color: var(--text-dim);
}

.post__meta time[hidden] {
    display: none;
}

.post__body {
    max-width: 72ch;
    font-size: 1.03rem;
}

.post__body > p {
    margin-top: 1.2em;
    color: var(--text-muted);
    line-height: 1.75;
}

.post__body > p:first-child {
    margin-top: 0;
    font-size: 1.13rem;
    color: var(--text);
}

.post__body h2 {
    margin-top: 2.1em;
    font-size: clamp(1.28rem, 2.2vw, 1.62rem);
}

.post__body h3 {
    margin-top: 1.7em;
    font-size: 1.08rem;
}

.post__body ul,
.post__body ol {
    margin-top: 1.1em;
    display: grid;
    gap: .62em;
}

.post__body li {
    position: relative;
    padding-left: 1.5em;
    color: var(--text-muted);
    line-height: 1.7;
}

.post__body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .64em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient);
}

.post__body ol {
    counter-reset: step;
}

.post__body ol li {
    counter-increment: step;
}

.post__body ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    color: var(--brand-3);
}

.post__body strong {
    color: var(--text);
    font-weight: 600;
}

.post__body blockquote {
    margin-top: 1.6em;
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    background: var(--gradient-soft);
    color: var(--text);
    font-size: 1.02rem;
}

.post__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 16px;
}

.aside-card {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.aside-card h2 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.aside-links {
    display: grid;
    gap: 13px;
}

.aside-links a {
    display: block;
    font-size: .92rem;
    line-height: 1.45;
    color: var(--text-muted);
    transition: color .25s, padding-left .3s var(--ease);
}

.aside-links a:hover {
    color: var(--text);
    padding-left: 5px;
}

.aside-cta {
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--gradient-soft);
}

.aside-cta p {
    font-size: .93rem;
    color: var(--text-muted);
    margin: 10px 0 18px;
}

.post__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
    padding-top: 34px;
    border-top: 1px solid var(--border);
}

.post__nav a {
    padding: 20px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .3s, background-color .3s;
}

.post__nav a:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.post__nav span {
    display: block;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.post__nav strong {
    font-family: var(--font-display);
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.4;
}

.post__nav a.next {
    text-align: right;
}

.scheduled-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    border-radius: 100px;
    border: 1px dashed var(--border-strong);
    font-size: .83rem;
    color: var(--text-dim);
}

/* Listings hide anything not published yet. site.js strips the attribute once
   the date arrives, so the page corrects itself without a rebuild. */
[data-future] {
    display: none !important;
}

/* Components set their own display, so [hidden] needs to outrank them */
[hidden] {
    display: none !important;
}

@media (max-width: 991px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post__aside {
        position: static;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .post__nav {
        grid-template-columns: 1fr;
    }

    .post__nav a.next {
        text-align: left;
    }

    .archive a {
        flex-wrap: wrap;
        gap: 4px 14px;
    }

    .archive time {
        width: auto;
    }

    .archive .c {
        margin-left: 0;
    }

    .hub-count {
        margin-left: 0;
    }
}
