/* ==========================================================================
   Crescent Technologies — Home Page Stylesheet
   Scoped to `body.ct-home` so it never leaks into other pages.
   Author: Crescent Technologies
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
.ct-home {
    /* Brand */
    --ct-indigo:        #6366f1;
    --ct-indigo-600:    #4f46e5;
    --ct-indigo-700:    #4338ca;
    --ct-violet:        #8b5cf6;
    --ct-cyan:          #06b6d4;
    --ct-cyan-300:      #67e8f9;
    --ct-fuchsia:       #d946ef;
    --ct-whatsapp:      #25d366;

    /* Ink / dark surfaces */
    --ct-ink:           #0a0821;
    --ct-ink-2:         #100d33;
    --ct-ink-3:         #191551;

    /* Light surfaces (kept: buttons, badges and the print sheet still use them) */
    --ct-bg:            #f6f7fc;
    --ct-surface:       #ffffff;
    --ct-line:          #e7e9f3;
    --ct-line-strong:   #d5d8e8;

    /* Dark-section surfaces — the vocabulary the Selected-work cards
       established, now shared by every section on the page. */
    --ct-d-panel:       linear-gradient(158deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
    --ct-d-fill:        rgba(255, 255, 255, .07);
    --ct-d-line:        rgba(255, 255, 255, .11);
    --ct-d-line-strong: rgba(255, 255, 255, .18);
    --ct-d-title:       #ffffff;
    --ct-d-body:        rgba(255, 255, 255, .72);
    --ct-d-muted:       rgba(255, 255, 255, .55);

    /* Text */
    --ct-title:         #10132a;
    --ct-body:          #4b5268;
    --ct-muted:         #7a8298;

    /* Gradients */
    --ct-grad-brand:    linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --ct-grad-btn:      linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --ct-grad-btn-hov:  linear-gradient(135deg, #7c7ef5 0%, #5b52ec 100%);

    /* Elevation */
    --ct-sh-xs:  0 1px 2px rgba(16, 19, 42, .05);
    --ct-sh-sm:  0 2px 8px rgba(16, 19, 42, .06);
    --ct-sh-md:  0 10px 28px -8px rgba(16, 19, 42, .14);
    --ct-sh-lg:  0 26px 60px -18px rgba(16, 19, 42, .22);
    --ct-glow-indigo: 0 20px 45px -14px rgba(99, 102, 241, .60);
    --ct-glow-cyan:   0 20px 45px -14px rgba(6, 182, 212, .50);
    --ct-glow-green:  0 20px 45px -14px rgba(37, 211, 102, .55);

    /* Shape & motion */
    --ct-r-sm: 10px;
    --ct-r-md: 16px;
    --ct-r-lg: 22px;
    --ct-r-xl: 30px;
    --ct-r-pill: 999px;
    --ct-ease: cubic-bezier(.22, .61, .36, 1);
    --ct-t-fast: .2s var(--ct-ease);
    --ct-t: .35s var(--ct-ease);
    --ct-t-slow: .6s var(--ct-ease);

    /* Layout */
    --ct-maxw: 1200px;
    --ct-gutter: clamp(1.15rem, 4vw, 2.5rem);
    --ct-nav-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
.ct-home {
    background: var(--ct-ink);
    color: var(--ct-body);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* NB: no `overflow-x: hidden` on the body — it makes the body the scroll
   container in some engines and breaks programmatic/anchor scrolling.
   Every section that paints outside its box clips its own overflow instead. */

/* Element defaults are written with :where() so they carry ZERO specificity —
   every component class below can override them without an escalation war. */
:where(.ct-home) :where(h1, h2, h3, h4, h5, h6) {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    color: var(--ct-title);
    letter-spacing: -.02em;
    line-height: 1.18;
    margin: 0;
}

:where(.ct-home) :where(p) { margin: 0; }
:where(.ct-home) :where(ul) { margin: 0; padding: 0; list-style: none; }
:where(.ct-home) :where(img) { max-width: 100%; height: auto; display: block; }
:where(.ct-home) :where(a) { text-decoration: none; color: inherit; }
.ct-home :focus-visible {
    outline: 3px solid rgba(99, 102, 241, .55);
    outline-offset: 3px;
    border-radius: 6px;
}
.ct-home ::selection { background: var(--ct-indigo); color: #fff; }

/* Scroll offset so anchor links clear the fixed navbar */
.ct-home section[id] { scroll-margin-top: calc(var(--ct-nav-h) + 12px); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.ct-container {
    width: 100%;
    max-width: var(--ct-maxw);
    margin-inline: auto;
    padding-inline: var(--ct-gutter);
}

.ct-section {
    padding: clamp(4rem, 9vw, 7.5rem) 0;
    position: relative;
    overflow-x: clip;
}
.ct-section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
/* Light bands. No section uses these any more — the page runs entirely on
   `--dark` (see section 24) — but they stay as the light half of the
   vocabulary if a section ever needs to break the rhythm. */
.ct-section--light { background: var(--ct-bg); }
.ct-section--white { background: var(--ct-surface); }

/* Dark sections share an aurora backdrop */
.ct-section--dark {
    background: radial-gradient(120% 100% at 50% 0%, var(--ct-ink-3) 0%, var(--ct-ink-2) 45%, var(--ct-ink) 100%);
    color: rgba(255, 255, 255, .72);
    overflow: hidden;
}
.ct-section--dark h2,
.ct-section--dark h3,
.ct-section--dark h4 { color: #fff; }

.ct-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.75rem, 5vw, 4.25rem); }
.ct-head--left { text-align: left; margin-inline: 0; }

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ct-indigo-600);
    margin-bottom: 1rem;
}
.ct-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--ct-grad-brand);
}
.ct-section--dark .ct-eyebrow { color: var(--ct-cyan-300); }

.ct-h1 { font-size: clamp(2.35rem, 6.2vw, 4.4rem); font-weight: 700; line-height: 1.06; }
.ct-h2 { font-size: clamp(1.85rem, 3.9vw, 2.85rem); font-weight: 700; }
.ct-h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }

.ct-lead {
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.75;
    color: var(--ct-muted);
    margin-top: 1.1rem;
}
.ct-section--dark .ct-lead { color: rgba(255, 255, 255, .62); }

.ct-gradient-text {
    background: var(--ct-grad-brand);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ct-shimmer 7s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   4. Buttons — lift + coloured shadow on hover
   -------------------------------------------------------------------------- */
.ct-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.9rem;
    border: 1px solid transparent;
    border-radius: var(--ct-r-pill);
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    transition: transform var(--ct-t), box-shadow var(--ct-t),
                background-color var(--ct-t), border-color var(--ct-t), color var(--ct-t);
}
.ct-btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Sheen sweep */
.ct-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .38) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform .75s var(--ct-ease);
}
.ct-btn:hover::after { transform: translateX(120%); }
.ct-btn:active { transform: translateY(-1px) scale(.99); }

.ct-btn--primary {
    background: var(--ct-grad-btn);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .8);
}
.ct-btn--primary:hover {
    background: var(--ct-grad-btn-hov);
    transform: translateY(-4px);
    box-shadow: var(--ct-glow-indigo);
}

.ct-btn--whatsapp {
    background: var(--ct-whatsapp);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .8);
}
.ct-btn--whatsapp:hover {
    background: #1fbe5b;
    transform: translateY(-4px);
    box-shadow: var(--ct-glow-green);
}

.ct-btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ct-btn--ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .45);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
}

.ct-btn--outline {
    background: var(--ct-surface);
    border-color: var(--ct-line-strong);
    color: var(--ct-indigo-600);
}
.ct-btn--outline:hover {
    border-color: var(--ct-indigo);
    color: var(--ct-indigo-700);
    background: #f4f4ff;
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -18px rgba(99, 102, 241, .6);
}

.ct-btn--light {
    background: #fff;
    color: var(--ct-indigo-600);
    box-shadow: var(--ct-sh-md);
}
.ct-btn--light:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px -16px rgba(0, 0, 0, .45);
    color: var(--ct-indigo-700);
}

.ct-btn--block { width: 100%; }
.ct-btn--lg { padding: 1.1rem 2.3rem; font-size: 1rem; }

/* Text link with animated arrow */
.ct-textlink {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    color: var(--ct-indigo-600);
    transition: color var(--ct-t-fast), gap var(--ct-t-fast);
}
.ct-textlink svg { width: 1em; height: 1em; transition: transform var(--ct-t-fast); }
.ct-textlink:hover { color: var(--ct-indigo-700); gap: .8rem; }
.ct-textlink:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Reveal-on-scroll animation
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .75s var(--ct-ease), transform .75s var(--ct-ease);
    transition-delay: var(--ct-delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="zoom"]  { transform: scale(.93); }
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@keyframes ct-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes ct-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(28px, -34px, 0) scale(1.06); }
    66%      { transform: translate3d(-24px, 22px, 0) scale(.96); }
}
@keyframes ct-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes ct-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes ct-scroll-dot {
    0%        { transform: translateY(0);    opacity: 0; }
    22%       { opacity: 1; }
    78%       { opacity: 1; }
    100%      { transform: translateY(16px); opacity: 0; }
}
@keyframes ct-ring {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes ct-marquee-rev {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@keyframes ct-spin {
    to { transform: rotate(360deg); }
}
@keyframes ct-grid-drift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-62px, 62px, 0); }
}
@keyframes ct-sweep {
    0%   { background-position: -140% 0; }
    60%, 100% { background-position: 240% 0; }
}
@keyframes ct-pop {
    0%   { transform: scale(.6); opacity: 0; }
    60%  { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes ct-drift-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@keyframes ct-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ct-modal-in {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
@keyframes ct-pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(var(--tcr), .65); }
    70%  { box-shadow: 0 0 0 9px rgba(var(--tcr), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--tcr), 0); }
}

/* --------------------------------------------------------------------------
   5b. Shared decorative layer
   -------------------------------------------------------------------------- */
/* Ambient backdrop for LIGHT sections — the light-ground counterpart to the
   hero's .ct-orb set. Kept low-opacity so body copy keeps its contrast. */
.ct-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.ct-aurora::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 19, 42, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 19, 42, .04) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 82% 68% at 50% 42%, #000 18%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 82% 68% at 50% 42%, #000 18%, transparent 78%);
}
/* Deliberately NOT `filter: blur()`. A blurred layer is re-rasterised on every
   animation frame, and with one aurora per section that stalled the renderer
   outright. The gradient's own falloff gives the same soft edge, and a
   transform-only animation stays on the compositor. */
.ct-aurora span {
    position: absolute;
    border-radius: 50%;
    animation: ct-float 34s ease-in-out infinite;
}
.ct-aurora span:nth-child(1) {
    width: 620px; height: 620px; top: -24%; left: -12%;
    background: radial-gradient(circle closest-side, rgba(165, 180, 252, .55), rgba(165, 180, 252, 0));
}
.ct-aurora span:nth-child(2) {
    width: 540px; height: 540px; bottom: -28%; right: -10%;
    background: radial-gradient(circle closest-side, rgba(103, 232, 249, .42), rgba(103, 232, 249, 0));
    animation-duration: 41s;
    animation-delay: -13s;
}
/* Third blob is decorative only — dropped to keep the per-section cost at two
   composited layers. */
.ct-aurora span:nth-child(3) { display: none; }

/* Keep section content above the decorative layer. */
.ct-section > .ct-container { position: relative; z-index: 1; }

/* Generic rotating accent ring. Sizes itself off its child, so the same
   primitive wraps a 54px icon tile and a 56px logo tile. Colour comes from
   the nearest `--tcr: r, g, b`. */
.ct-ring {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
    padding: 2px;
    border-radius: 20px;
}
.ct-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
        rgba(var(--tcr, 99, 102, 241), 0) 0deg,
        rgba(var(--tcr, 99, 102, 241), .95) 80deg,
        rgba(var(--tcr, 99, 102, 241), 0) 190deg,
        rgba(var(--tcr, 99, 102, 241), .70) 290deg,
        rgba(var(--tcr, 99, 102, 241), 0) 360deg);
    animation: ct-spin 5s linear infinite;
    opacity: .5;
    transition: opacity var(--ct-t);
}
.ct-ring > * { position: relative; }
.ct-card:hover .ct-ring::before,
.ct-ring:hover::before { opacity: 1; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.ct-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--ct-nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--ct-t), box-shadow var(--ct-t),
                border-color var(--ct-t), height var(--ct-t);
}
.ct-nav.is-stuck {
    height: 66px;
    background: rgba(10, 8, 33, .82);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: rgba(255, 255, 255, .09);
    box-shadow: 0 12px 34px -20px rgba(0, 0, 0, .9);
}

.ct-nav__inner {
    width: 100%;
    max-width: var(--ct-maxw);
    margin-inline: auto;
    padding-inline: var(--ct-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.ct-nav__logo img {
    height: 40px;
    width: auto;
    transition: transform var(--ct-t), filter var(--ct-t);
}
.ct-nav__logo:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 16px rgba(99, 102, 241, .65));
}

.ct-nav__menu { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.6rem); }

.ct-nav__link {
    position: relative;
    padding: .5rem .15rem;
    font-size: .89rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .68);
    transition: color var(--ct-t-fast);
}
.ct-nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--ct-grad-brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--ct-t);
}
.ct-nav__link:hover,
.ct-nav__link.is-active { color: #fff; }
.ct-nav__link:hover::after,
.ct-nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.ct-nav__cta { padding: .7rem 1.4rem; font-size: .87rem; }

/* Hamburger */
.ct-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    transition: background-color var(--ct-t-fast), border-color var(--ct-t-fast), box-shadow var(--ct-t-fast);
}
.ct-burger:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 8px 22px -10px rgba(99, 102, 241, .9);
}
.ct-burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    border-radius: 2px;
    background: #fff;
    transition: transform var(--ct-t), opacity var(--ct-t-fast);
}
.ct-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ct-burger.is-open span:nth-child(2) { opacity: 0; }
.ct-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.ct-drawer {
    position: fixed;
    inset: var(--ct-nav-h) 0 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 2rem var(--ct-gutter) 3rem;
    background: rgba(10, 8, 33, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--ct-t), transform var(--ct-t), visibility var(--ct-t);
    overflow-y: auto;
}
.ct-drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.ct-drawer__link {
    width: 100%;
    max-width: 380px;
    padding: .95rem 1.25rem;
    border-radius: var(--ct-r-md);
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    text-align: center;
    transition: background-color var(--ct-t-fast), color var(--ct-t-fast),
                transform var(--ct-t-fast), box-shadow var(--ct-t-fast);
}
.ct-drawer__link:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -14px rgba(99, 102, 241, .95);
}
.ct-drawer__cta { margin-top: 1.1rem; width: 100%; max-width: 380px; }

body.ct-nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.ct-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--ct-nav-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 6rem);
    background: radial-gradient(130% 105% at 50% -10%, #241d63 0%, var(--ct-ink-2) 42%, var(--ct-ink) 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Grid + noise overlays */
.ct-hero__grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 75% 62% at 50% 38%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 38%, #000 30%, transparent 78%);
}
.ct-hero__fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 32%;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, rgba(10, 8, 33, .92));
    pointer-events: none;
}

/* Floating colour orbs */
.ct-orb {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    pointer-events: none;
    animation: ct-float 22s ease-in-out infinite;
    will-change: transform;
}
.ct-orb--1 { width: 460px; height: 460px; top: -8%;  left: -6%;  background: #6366f1; }
.ct-orb--2 { width: 400px; height: 400px; top: 22%;  right: -8%; background: #06b6d4; animation-duration: 27s; animation-delay: -6s; }
.ct-orb--3 { width: 340px; height: 340px; bottom: -12%; left: 34%; background: #d946ef; opacity: .38; animation-duration: 32s; animation-delay: -12s; }

.ct-hero__inner { position: relative; text-align: center; }

.ct-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1.1rem .5rem .6rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--ct-r-pill);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    transition: background-color var(--ct-t), border-color var(--ct-t), box-shadow var(--ct-t), transform var(--ct-t);
}
.ct-hero__badge:hover {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(129, 140, 248, .7);
    box-shadow: 0 14px 34px -16px rgba(99, 102, 241, .95);
    transform: translateY(-2px);
}
.ct-hero__badge b {
    padding: .22rem .6rem;
    border-radius: var(--ct-r-pill);
    background: var(--ct-grad-btn);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}

.ct-hero__title { color: #fff; margin-bottom: 1.4rem; }
/* Keeps these phrases from breaking mid-word on narrow screens; the gradient
   run already carries the emphasis, so no second underline accent here. */
.ct-hero__title .ct-underline,
.ct-hero__title .ct-nb { white-space: nowrap; }

.ct-hero__sub {
    max-width: 660px;
    margin: 0 auto 2.4rem;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, .68);
}

.ct-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin-bottom: 2.75rem;
}

.ct-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .55rem 1.6rem;
    font-size: .84rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 3rem;
}
.ct-hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.ct-hero__meta svg { width: 16px; height: 16px; color: var(--ct-cyan-300); }

/* Hero stat strip */
.ct-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: 880px;
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--ct-r-lg);
    background: rgba(255, 255, 255, .11);
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.ct-hero__stat {
    padding: 1.5rem .9rem;
    background: rgba(14, 11, 44, .72);
    transition: background-color var(--ct-t), transform var(--ct-t), box-shadow var(--ct-t);
}
.ct-hero__stat:hover {
    background: rgba(99, 102, 241, .22);
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .5);
}
.ct-hero__stat b {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    background: var(--ct-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ct-hero__stat small {
    display: block;
    margin-top: .35rem;
    font-size: .74rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .55);
}

/* Scroll cue */
.ct-scrollcue {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: var(--ct-r-pill);
    display: grid;
    place-items: start center;
    padding-top: 8px;
    transition: border-color var(--ct-t);
}
.ct-scrollcue:hover { border-color: rgba(255, 255, 255, .7); }
.ct-scrollcue i {
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: var(--ct-cyan-300);
    animation: ct-scroll-dot 1.9s var(--ct-ease) infinite;
}

/* --------------------------------------------------------------------------
   8. Card system (shared) — accent-driven lift, glow and cursor spotlight
   -------------------------------------------------------------------------- */
/* Every card carries `--tcr: r, g, b` (set inline per card), so the hairline,
   glow, icon tile and ring all pick up that card's own accent instead of the
   single indigo the whole page used to share. */
.ct-card {
    --tcr: 99, 102, 241;
    position: relative;
    padding: clamp(1.6rem, 2.6vw, 2.25rem);
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-r-lg);
    background: var(--ct-surface);
    box-shadow: var(--ct-sh-xs);
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--ct-t), box-shadow var(--ct-t), border-color var(--ct-t);
}
/* Gradient hairline that wipes in on hover */
.ct-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, rgba(var(--tcr), .25), rgb(var(--tcr)), rgba(var(--tcr), .25));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ct-t);
}
/* Cursor spotlight — home.js writes --mx / --my on [data-spot] elements. */
.ct-card[data-spot]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--tcr), .13), transparent 65%);
    transition: opacity var(--ct-t);
}
.ct-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--tcr), .45);
    box-shadow: 0 28px 55px -22px rgba(var(--tcr), .55);
}
.ct-card:hover::before { transform: scaleX(1); }
.ct-card[data-spot]:hover::after { opacity: 1; }

.ct-card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: var(--ct-r-md);
    background: linear-gradient(135deg, rgb(var(--tcr)), rgba(var(--tcr), .72));
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(var(--tcr), .95);
    transition: transform var(--ct-t), box-shadow var(--ct-t);
}
.ct-card__icon svg { width: 26px; height: 26px; }
.ct-card:hover .ct-card__icon {
    transform: translateY(-2px) rotate(-6deg) scale(1.06);
    box-shadow: 0 18px 34px -12px rgba(var(--tcr), 1);
}
/* The ring wrapper owns the outer margin now that it boxes the icon. */
.ct-card > .ct-ring { margin-bottom: 1.25rem; }

.ct-card__title { font-size: 1.16rem; font-weight: 600; margin-bottom: .6rem; }
.ct-card__text { font-size: .93rem; line-height: 1.72; color: var(--ct-muted); }

.ct-card__num {
    position: absolute;
    top: .35rem;
    right: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(var(--tcr), .09);
    pointer-events: none;
    transition: color var(--ct-t), transform var(--ct-t);
}
.ct-card:hover .ct-card__num { color: rgba(var(--tcr), .20); transform: translateY(3px) scale(1.04); }

/* Small accent chip used to close a card off */
.ct-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.35rem;
    padding: .42rem .9rem;
    border-radius: var(--ct-r-pill);
    border: 1px solid rgba(var(--tcr), .28);
    background: rgba(var(--tcr), .07);
    font-size: .76rem;
    font-weight: 600;
    color: rgb(var(--tcr));
    transition: background var(--ct-t-fast), border-color var(--ct-t-fast), transform var(--ct-t-fast);
}
.ct-chip svg { width: 13px; height: 13px; }
.ct-card:hover .ct-chip {
    background: rgba(var(--tcr), .14);
    border-color: rgba(var(--tcr), .5);
    transform: translateX(3px);
}
/* --------------------------------------------------------------------------
   9. Problems grid
   -------------------------------------------------------------------------- */
.ct-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.1rem, 2.2vw, 1.9rem);
}
.ct-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.1rem, 2.2vw, 1.9rem);
}
.ct-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.1rem, 2.2vw, 1.6rem);
}

.ct-pcard { display: flex; flex-direction: column; align-items: flex-start; }
.ct-pcard .ct-card__text { flex: 1; }
/* Accent wash that blooms from the top-left corner on hover */
.ct-pcard .ct-card__title::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: .7rem;
    border-radius: 2px;
    background: linear-gradient(90deg, rgb(var(--tcr)), rgba(var(--tcr), 0));
    transform-origin: left;
    transform: scaleX(1);
    transition: transform var(--ct-t);
}
.ct-pcard:hover .ct-card__title::after { transform: scaleX(2.4); }

.ct-note {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
}
.ct-note p { font-size: 1.05rem; color: var(--ct-body); margin-bottom: 1.4rem; }
.ct-note strong { color: var(--ct-title); }
/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */
.ct-service {
    display: flex;
    flex-direction: column;
    padding: clamp(1.8rem, 3vw, 2.6rem);
}
/* Oversized outline of the card's own icon, bottom-right */
.ct-service__watermark {
    position: absolute;
    right: -34px;
    bottom: -38px;
    width: 210px;
    height: 210px;
    z-index: -1;
    color: rgba(var(--tcr), .07);
    pointer-events: none;
    transition: transform var(--ct-t-slow), color var(--ct-t-slow);
}
.ct-service:hover .ct-service__watermark {
    transform: rotate(-8deg) scale(1.08);
    color: rgba(var(--tcr), .13);
}

.ct-service__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.ct-service__head .ct-ring { margin-bottom: 0; }
.ct-service__head h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
.ct-service__kicker {
    display: block;
    margin-bottom: .2rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgb(var(--tcr));
}

.ct-list { display: grid; gap: .7rem; margin: 1.5rem 0; }
.ct-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .92rem;
    color: var(--ct-body);
    transition: transform var(--ct-t-fast), color var(--ct-t-fast);
}
.ct-list li:hover { transform: translateX(5px); color: var(--ct-title); }
.ct-list svg {
    width: 19px;
    height: 19px;
    flex: none;
    margin-top: .1rem;
    color: rgb(var(--tcr));
    transition: transform var(--ct-t);
}
/* Ticks pop in one after another when the card is hovered */
.ct-card:hover .ct-list svg {
    animation: ct-pop .45s var(--ct-ease) both;
    animation-delay: calc(var(--i, 0) * 55ms);
}

.ct-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.ct-tag {
    padding: .38rem .85rem;
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-r-pill);
    background: var(--ct-bg);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ct-muted);
    transition: background-color var(--ct-t-fast), color var(--ct-t-fast),
                border-color var(--ct-t-fast), transform var(--ct-t-fast), box-shadow var(--ct-t-fast);
}
.ct-tag:hover {
    background: rgb(var(--tcr));
    border-color: rgb(var(--tcr));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(var(--tcr), .95);
}
/* --------------------------------------------------------------------------
   11. Process timeline
   -------------------------------------------------------------------------- */
.ct-steps {
    --p: 0;                      /* 0-1 scroll progress, written by home.js */
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.1rem, 2.2vw, 1.75rem);
}

/* The connecting rail, and the gradient that fills it as you scroll */
.ct-steps__rail {
    position: absolute;
    top: 34px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    border-radius: 2px;
    background: var(--ct-line-strong);
    overflow: hidden;
}
.ct-steps__fill {
    position: absolute;
    inset: 0;
    transform-origin: left;
    transform: scaleX(var(--p));
    background: linear-gradient(90deg, #6366f1, #8b5cf6 38%, #06b6d4 70%, #d946ef);
    transition: transform .45s var(--ct-ease);
}
/* Travelling highlight so the rail never looks static */
.ct-steps__rail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    animation: ct-sweep 4.5s var(--ct-ease) infinite;
}

.ct-step {
    --tcr: 99, 102, 241;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 .35rem;
}
.ct-step__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 1.15rem;
    border: 1px solid var(--ct-line);
    border-radius: 50%;
    background: var(--ct-surface);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: rgb(var(--tcr));
    box-shadow: var(--ct-sh-sm);
    transition: transform var(--ct-t), box-shadow var(--ct-t),
                background var(--ct-t), color var(--ct-t), border-color var(--ct-t);
}
/* Halo ring that expands out of the dot once the step is reached */
.ct-step__dot::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(var(--tcr), .35);
    opacity: 0;
    transform: scale(.85);
    transition: opacity var(--ct-t), transform var(--ct-t);
}
.ct-step.is-reached .ct-step__dot {
    background: linear-gradient(135deg, rgb(var(--tcr)), rgba(var(--tcr), .74));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 38px -14px rgba(var(--tcr), .95);
}
.ct-step.is-reached .ct-step__dot::before { opacity: 1; transform: scale(1); }
.ct-step:hover .ct-step__dot { transform: translateY(-6px) scale(1.07); }

.ct-step h3 { font-size: 1.03rem; font-weight: 600; margin-bottom: .45rem; }
/* flex:1 keeps the meta pills on one line across the row, whatever the copy. */
.ct-step p { font-size: .875rem; line-height: 1.68; color: var(--ct-muted); flex: 1; }
.ct-step__meta {
    display: inline-block;
    margin-top: .85rem;
    padding: .3rem .75rem;
    border-radius: var(--ct-r-pill);
    background: rgba(var(--tcr), .09);
    font-size: .71rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgb(var(--tcr));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--ct-t), transform var(--ct-t);
}
.ct-step.is-reached .ct-step__meta { opacity: 1; transform: none; }
/* --------------------------------------------------------------------------
   12. Selected work — text-only project cards + detail dialog
   -------------------------------------------------------------------------- */
.ct-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.1rem, 2.2vw, 1.75rem);
}

/* Grid item wrapper: holds the card plus its hidden detail block. Stretching
   is what lets .ct-proj take the full row height. */
.ct-projwrap { display: flex; }

/* Each card is a real <button>, so keyboard and screen-reader support come
   for free; these resets undo the UA button styling. */
.ct-proj {
    --tcr: 99, 102, 241;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: clamp(1.4rem, 2.2vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--ct-r-lg);
    background: linear-gradient(158deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--ct-t), border-color var(--ct-t), box-shadow var(--ct-t);
}
/* Accent hairline, wiped in on hover */
.ct-proj::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(var(--tcr), .3), rgb(var(--tcr)), rgba(var(--tcr), .3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ct-t);
}
/* Cursor spotlight (home.js writes --mx / --my) */
.ct-proj::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--tcr), .20), transparent 66%);
    transition: opacity var(--ct-t);
}
.ct-proj:hover,
.ct-proj:focus-visible {
    transform: translateY(-7px);
    border-color: rgba(var(--tcr), .55);
    box-shadow: 0 26px 52px -22px rgba(var(--tcr), .70);
}
.ct-proj:hover::before,
.ct-proj:focus-visible::before { transform: scaleX(1); }
.ct-proj:hover::after { opacity: 1; }

.ct-proj__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
}
.ct-proj__cat {
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgb(var(--tcr));
}
.ct-proj__star {
    flex: none;
    padding: .2rem .6rem;
    border-radius: var(--ct-r-pill);
    border: 1px solid rgba(var(--tcr), .4);
    background: rgba(var(--tcr), .13);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgb(var(--tcr));
}

.ct-proj__title {
    font-size: 1.16rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .55rem;
}
.ct-proj__sum {
    flex: 1;
    font-size: .88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .60);
    margin-bottom: 1.15rem;
}

.ct-proj__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.ct-proj__tags em {
    padding: .28rem .65rem;
    border-radius: var(--ct-r-pill);
    background: rgba(255, 255, 255, .07);
    font-size: .7rem;
    font-style: normal;
    font-weight: 600;
    color: rgba(255, 255, 255, .72);
}

.ct-proj__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
}
.ct-proj__year { font-size: .75rem; color: rgba(255, 255, 255, .45); }
.ct-proj__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: rgb(var(--tcr));
}
.ct-proj__more svg { width: 15px; height: 15px; transition: transform var(--ct-t); }
.ct-proj:hover .ct-proj__more svg { transform: translateX(4px); }

/* The in-page copy of each project's detail. Present for crawlers and for the
   no-JS case; the dialog clones it on open. */
.ct-proj__detail { display: none; }

/* ---- Dialog --------------------------------------------------------- */
.ct-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.75rem, 4vw, 2.5rem);
}
/* The author `display: flex` above outranks the UA rule for [hidden], so the
   attribute has to be honoured explicitly. */
.ct-modal[hidden] { display: none; }

.ct-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 26, .78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: ct-fade-in .25s var(--ct-ease);
}
.ct-modal__panel {
    position: relative;
    width: min(760px, 100%);
    max-height: min(86vh, 900px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--ct-r-xl);
    background: radial-gradient(120% 100% at 12% -10%, #241c60 0%, #150f42 46%, var(--ct-ink) 100%);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8);
    animation: ct-modal-in .32s var(--ct-ease);
}
.ct-modal__close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
    transition: background var(--ct-t-fast), color var(--ct-t-fast), transform var(--ct-t-fast);
}
.ct-modal__close svg { width: 17px; height: 17px; }
.ct-modal__close:hover { background: rgba(255, 255, 255, .18); color: #fff; transform: rotate(90deg); }

.ct-modal__body {
    max-height: min(86vh, 900px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(1.75rem, 4vw, 2.75rem);
}
.ct-modal__body:focus { outline: none; }
/* The clone is the thing being shown, so it must not stay display:none. */
.ct-modal__body .ct-proj__detail { display: block; }

/* ---- Dialog content ------------------------------------------------- */
.ct-pd__eyebrow {
    display: block;
    margin-bottom: .85rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgb(var(--tcr, 129, 140, 248));
}
.ct-pd__title {
    font-size: clamp(1.5rem, 3.4vw, 2.05rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .5rem;
}
.ct-pd__tagline {
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .66);
    margin-bottom: 1.75rem;
}

.ct-pd__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .7rem;
    margin: 0 0 1.9rem;
    padding: 0;
    list-style: none;
}
.ct-pd__metrics li {
    padding: .85rem 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--ct-r-md);
    background: rgba(255, 255, 255, .05);
}
.ct-pd__metrics b {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    margin-bottom: .2rem;
}
.ct-pd__metrics span {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
}

.ct-pd__section { margin-bottom: 1.6rem; }
.ct-pd__section h4 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .55rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}
.ct-pd__section h4::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: rgb(var(--tcr, 129, 140, 248));
}
.ct-pd__section p {
    font-size: .93rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, .68);
}
.ct-pd__section--result p { color: rgba(255, 255, 255, .84); }

.ct-pd__stack { margin-bottom: 1.9rem; }
.ct-pd__stack h4 {
    margin-bottom: .6rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}
.ct-pd__stack span { display: flex; flex-wrap: wrap; gap: .45rem; }
.ct-pd__stack em {
    padding: .38rem .8rem;
    border-radius: var(--ct-r-pill);
    border: 1px solid rgba(var(--tcr, 129, 140, 248), .3);
    background: rgba(var(--tcr, 129, 140, 248), .12);
    font-size: .74rem;
    font-style: normal;
    font-weight: 600;
    color: #fff;
}

.ct-pd__cta { width: 100%; justify-content: center; }
/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.ct-quote { display: flex; flex-direction: column; }
.ct-quote__mark {
    font-family: 'Space Grotesk', serif;
    font-size: 3.4rem;
    line-height: .8;
    color: rgba(var(--tcr), .22);
    margin-bottom: .6rem;
    transition: color var(--ct-t), transform var(--ct-t);
}
.ct-quote:hover .ct-quote__mark { color: rgba(var(--tcr), .5); transform: translateY(-3px) scale(1.06); }

.ct-stars { display: flex; gap: .18rem; margin-bottom: 1rem; }
.ct-stars svg { width: 16px; height: 16px; color: #fbbf24; }
/* Stars pop in left-to-right on hover */
.ct-quote:hover .ct-stars svg {
    animation: ct-pop .4s var(--ct-ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

.ct-quote__text {
    font-size: .97rem;
    line-height: 1.78;
    color: var(--ct-body);
    margin-bottom: 1.6rem;
    flex: 1;
}
.ct-quote__by { display: flex; align-items: center; gap: .8rem; }
.ct-ring--round { border-radius: 50%; }
.ct-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(var(--tcr)), rgba(var(--tcr), .68));
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 8px 18px -8px rgba(var(--tcr), .9);
    transition: transform var(--ct-t), box-shadow var(--ct-t);
}
.ct-quote:hover .ct-avatar { transform: scale(1.08); box-shadow: 0 14px 26px -10px rgba(var(--tcr), 1); }
.ct-quote__who b { display: block; font-size: .9rem; font-weight: 600; color: var(--ct-title); }
.ct-quote__who span { display: block; font-size: .78rem; color: var(--ct-muted); }
/* --------------------------------------------------------------------------
   14. Stats (dark)
   -------------------------------------------------------------------------- */
.ct-stat {
    text-align: center;
    padding: clamp(1.6rem, 2.6vw, 2.25rem) 1.1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--ct-r-lg);
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--ct-t), background-color var(--ct-t),
                border-color var(--ct-t), box-shadow var(--ct-t);
}
.ct-stat:hover {
    transform: translateY(-8px);
    background: rgba(99, 102, 241, .16);
    border-color: rgba(129, 140, 248, .55);
    box-shadow: 0 30px 60px -24px rgba(99, 102, 241, .75);
}
.ct-stat__num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: .6rem;
    background: var(--ct-grad-brand);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ct-shimmer 7s ease-in-out infinite;
}
.ct-stat h4 { font-size: .98rem; font-weight: 600; margin-bottom: .4rem; }
.ct-stat p { font-size: .82rem; line-height: 1.65; color: rgba(255, 255, 255, .55); }

/* --------------------------------------------------------------------------
   15. Tech stack — animated showcase
   -------------------------------------------------------------------------- */
/* Wins over `.ct-section--dark` by source order (equal specificity), so it
   keeps that block's white headings while painting its own richer backdrop. */
.ct-tech {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: radial-gradient(125% 120% at 14% -12%, #322480 0%, #1b1256 36%, #0d0930 74%, var(--ct-ink) 100%);
}

/* Lit hairline + halo, so the section reads as its own band under the
   (also dark) About section above it. */
.ct-tech::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    z-index: 4;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .95) 18%, rgba(6, 182, 212, .95) 50%, rgba(217, 70, 239, .95) 82%, transparent);
    background-size: 200% 100%;
    animation: ct-shimmer 9s ease-in-out infinite;
}
.ct-tech::after {
    content: "";
    position: absolute;
    inset: -70px 0 auto 0;
    height: 150px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(60% 100% at 50% 100%, rgba(129, 140, 248, .30), transparent 70%);
}

/* Drifting grid */
.ct-tech__grid {
    position: absolute;
    inset: -62px 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 80%);
    animation: ct-grid-drift 18s linear infinite;
    will-change: transform;
}

/* Cursor spotlight — home.js writes --mx / --my; falls back to a centred
   glow when JS is off or the pointer never enters. */
.ct-tech__spot {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(129, 140, 248, .20), transparent 68%);
    transition: background-position .2s linear;
}

.ct-orb--t1 { width: 420px; height: 420px; top: -14%; left: -8%;  background: #6366f1; opacity: .42; }
.ct-orb--t2 { width: 380px; height: 380px; bottom: -20%; right: -6%; background: #06b6d4; opacity: .34; animation-duration: 26s; animation-delay: -8s; }
.ct-orb--t3 { width: 300px; height: 300px; top: 30%; left: 46%; background: #d946ef; opacity: .26; animation-duration: 31s; animation-delay: -15s; }

.ct-tech .ct-head { max-width: 760px; margin-bottom: 0; }

/* ---- Rails ---------------------------------------------------------- */
.ct-rail {
    position: relative;
    /* The track is `width: max-content`, so clip it here rather than relying
       on the section's overflow. */
    overflow: hidden;
    margin-top: clamp(2.5rem, 5vw, 3.75rem);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ct-rail + .ct-rail { margin-top: clamp(.9rem, 2vw, 1.25rem); }

.ct-rail__track {
    display: flex;
    width: max-content;
    animation: ct-marquee 46s linear infinite;
    will-change: transform;
}
.ct-rail--rev .ct-rail__track {
    animation-name: ct-marquee-rev;
    animation-duration: 52s;
}
/* Pause on hover, and on keyboard focus so a card can actually be read */
.ct-rail:hover .ct-rail__track,
.ct-rail:focus-within .ct-rail__track { animation-play-state: paused; }

.ct-rail__group {
    display: flex;
    align-items: stretch;
    gap: clamp(.85rem, 2vw, 1.35rem);
    padding-inline: calc(clamp(.85rem, 2vw, 1.35rem) / 2);
}

/* ---- Logo cards ----------------------------------------------------- */
.ct-tcard {
    --tcr: 99, 102, 241;
    position: relative;
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 250px;
    padding: 1rem 1.5rem 1rem 1rem;
    border-radius: var(--ct-r-lg);
    background: linear-gradient(155deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
    border: 1px solid rgba(255, 255, 255, .11);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform var(--ct-t), border-color var(--ct-t), box-shadow var(--ct-t);
}
/* Brand-colour bloom from the logo side */
.ct-tcard::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(125% 145% at 0% 50%, rgba(var(--tcr), .45), transparent 62%);
    opacity: .20;
    transition: opacity var(--ct-t);
}
/* Sheen sweep */
.ct-tcard::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -70%;
    width: 45%;
    pointer-events: none;
    transform: skewX(-18deg);
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent);
    transition: left .75s var(--ct-ease);
}
.ct-tcard:hover {
    transform: translateY(-7px);
    border-color: rgba(var(--tcr), .55);
    box-shadow: 0 24px 48px -20px rgba(var(--tcr), .70);
}
.ct-tcard:hover::before { opacity: .55; }
.ct-tcard:hover::after  { left: 125%; }

/* The logo tile rides the shared .ct-ring primitive. */
.ct-tcard .ct-ring { border-radius: 18px; }
.ct-tcard:hover .ct-ring::before { opacity: 1; }

.ct-tcard__logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
}
.ct-tcard__logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    transition: transform var(--ct-t);
}
.ct-tcard:hover .ct-tcard__logo img { transform: scale(1.12) rotate(-4deg); }

.ct-tcard__text { position: relative; display: block; }
.ct-tcard__text b {
    display: block;
    font-family: var(--ct-font-heading, inherit);
    font-size: .98rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.01em;
}
.ct-tcard__text small {
    display: block;
    margin-top: .18rem;
    font-size: .76rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .58);
}

/* ---- Supporting-tool pills ------------------------------------------ */
.ct-tpill {
    --tcr: 99, 102, 241;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .62rem 1.15rem;
    border-radius: var(--ct-r-pill);
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .11);
    transition: transform var(--ct-t), color var(--ct-t), background var(--ct-t), border-color var(--ct-t), box-shadow var(--ct-t);
}
.ct-tpill i {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(var(--tcr));
    animation: ct-pulse-dot 2.8s ease-out infinite;
}
.ct-tpill:hover {
    transform: translateY(-4px);
    color: #fff;
    background: rgba(var(--tcr), .16);
    border-color: rgba(var(--tcr), .55);
    box-shadow: 0 16px 34px -18px rgba(var(--tcr), .85);
}

/* ---- Closing notes -------------------------------------------------- */
.ct-tech__notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2.75rem);
    margin: clamp(2.75rem, 5vw, 4rem) 0 0;
    padding: 0;
    list-style: none;
}
.ct-tech__note {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    max-width: 310px;
    text-align: left;
    font-size: .84rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .60);
}
.ct-tech__note svg {
    flex: none;
    width: 19px;
    height: 19px;
    margin-top: .12rem;
    color: var(--ct-cyan-300);
}
.ct-tech__note b {
    display: block;
    margin-bottom: .18rem;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
}
/* --------------------------------------------------------------------------
   16. Pricing
   -------------------------------------------------------------------------- */
.ct-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
    flex-wrap: wrap;
}
.ct-toggle-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ct-muted);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: color var(--ct-t-fast);
}
.ct-toggle-label.is-on { color: var(--ct-title); }
.ct-save {
    padding: .2rem .6rem;
    border-radius: var(--ct-r-pill);
    background: #dcfce7;
    color: #15803d;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.ct-toggle {
    position: relative;
    width: 58px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--ct-r-pill);
    background: var(--ct-line-strong);
    cursor: pointer;
    transition: background var(--ct-t), box-shadow var(--ct-t);
}
.ct-toggle:hover { box-shadow: 0 10px 22px -10px rgba(99, 102, 241, .8); }
.ct-toggle[aria-checked="true"] { background: var(--ct-grad-btn); }
.ct-toggle i {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform var(--ct-t);
}
.ct-toggle[aria-checked="true"] i { transform: translateX(26px); }

.ct-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.1rem, 2.2vw, 1.9rem);
    align-items: start;
}
.ct-plan { display: flex; flex-direction: column; gap: 1.15rem; }
.ct-plan__emoji {
    font-size: 2rem;
    line-height: 1;
    transition: transform var(--ct-t);
}
.ct-plan:hover .ct-plan__emoji { transform: translateY(-4px) rotate(-8deg) scale(1.12); }
.ct-plan h3 { font-size: 1.14rem; font-weight: 700; }
.ct-plan__from { font-size: .8rem; color: var(--ct-muted); }
.ct-plan__price { display: flex; align-items: baseline; gap: .3rem; }
.ct-plan__amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.1rem, 3.6vw, 2.6rem);
    font-weight: 700;
    color: rgb(var(--tcr));
    letter-spacing: -.03em;
}
/* home.js flips the text on toggle; this replays as the value swaps. */
.ct-plan__amount.is-swapping { animation: ct-pop .38s var(--ct-ease); }
.ct-plan__per { font-size: 1rem; color: var(--ct-muted); }
.ct-plan__billed {
    display: block;
    min-height: 1.25em;
    font-size: .74rem;
    font-weight: 600;
    color: #16a34a;
}
.ct-plan .ct-list { margin: .25rem 0 1.25rem; flex: 1; }
.ct-plan .ct-list li { font-size: .875rem; }

/* Featured plan — dark panel with a rotating gradient frame */
.ct-plan--featured {
    background: linear-gradient(160deg, #5b57ef 0%, #4338ca 100%);
    border-color: transparent;
    color: rgba(255, 255, 255, .88);
    box-shadow: 0 34px 70px -26px rgba(79, 70, 229, .8);
}
.ct-plan--featured::before {
    background: linear-gradient(90deg, #67e8f9, #fff, #c4b5fd);
    transform: scaleX(1);
}
.ct-plan--featured:hover {
    border-color: transparent;
    box-shadow: 0 44px 84px -26px rgba(79, 70, 229, .95);
}
.ct-plan--featured h3 { color: #fff; }
.ct-plan--featured .ct-plan__from,
.ct-plan--featured .ct-plan__per { color: rgba(255, 255, 255, .72); }
.ct-plan--featured .ct-plan__amount { color: #fff; }
.ct-plan--featured .ct-plan__billed { color: #a5f3fc; }
.ct-plan--featured .ct-list li { color: rgba(255, 255, 255, .9); }
.ct-plan--featured .ct-list li:hover { color: #fff; }
.ct-plan--featured .ct-list svg { color: var(--ct-cyan-300); }

.ct-plan__badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 3;
    padding: .3rem .8rem;
    border-radius: var(--ct-r-pill);
    background: #fff;
    color: var(--ct-indigo-600);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    box-shadow: var(--ct-sh-sm);
    animation: ct-drift-y 4s ease-in-out infinite;
}

.ct-plans-note { margin-top: 2.5rem; text-align: center; font-size: .92rem; color: var(--ct-muted); }
.ct-plans-note a { color: var(--ct-indigo-600); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color var(--ct-t-fast), color var(--ct-t-fast); }
.ct-plans-note a:hover { color: var(--ct-indigo-700); border-bottom-color: currentColor; }
/* --------------------------------------------------------------------------
   17. FAQ accordion
   -------------------------------------------------------------------------- */
.ct-faq { max-width: 860px; margin-inline: auto; display: grid; gap: .85rem; }
.ct-faq__item {
    --tcr: 99, 102, 241;
    position: relative;
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-r-md);
    background: var(--ct-surface);
    overflow: hidden;
    transition: border-color var(--ct-t), box-shadow var(--ct-t), transform var(--ct-t);
}
/* Accent rail down the left edge, drawn in when the item opens */
.ct-faq__item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, rgb(var(--tcr)), rgba(var(--tcr), .35));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--ct-t);
}
.ct-faq__item:hover {
    border-color: rgba(var(--tcr), .45);
    box-shadow: 0 18px 40px -22px rgba(var(--tcr), .6);
    transform: translateY(-2px);
}
.ct-faq__item:hover::before { transform: scaleY(.45); }
.ct-faq__item.is-open {
    border-color: rgba(var(--tcr), .55);
    box-shadow: 0 22px 46px -24px rgba(var(--tcr), .65);
}
.ct-faq__item.is-open::before { transform: scaleY(1); }

.ct-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    border: none;
    background: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ct-title);
    text-align: left;
    cursor: pointer;
    transition: color var(--ct-t-fast);
}
.ct-faq__q:hover { color: rgb(var(--tcr)); }
.ct-faq__idx {
    flex: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(var(--tcr), .55);
    transition: color var(--ct-t-fast);
}
.ct-faq__item.is-open .ct-faq__idx { color: rgb(var(--tcr)); }
.ct-faq__label { flex: 1; }

.ct-faq__q i {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ct-bg);
    transition: background var(--ct-t), transform var(--ct-t);
}
.ct-faq__q i::before,
.ct-faq__q i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: rgb(var(--tcr));
    transform: translate(-50%, -50%);
    transition: transform var(--ct-t), background var(--ct-t);
}
.ct-faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.ct-faq__item.is-open .ct-faq__q i { background: rgb(var(--tcr)); transform: rotate(180deg); }
.ct-faq__item.is-open .ct-faq__q i::before,
.ct-faq__item.is-open .ct-faq__q i::after { background: #fff; }
.ct-faq__item.is-open .ct-faq__q i::after { transform: translate(-50%, -50%) rotate(0deg); }

.ct-faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--ct-t);
}
.ct-faq__item.is-open .ct-faq__a { grid-template-rows: 1fr; }
.ct-faq__a > div { overflow: hidden; }
.ct-faq__a p {
    padding: 0 1.4rem 1.3rem 3.3rem;
    font-size: .92rem;
    line-height: 1.75;
    color: var(--ct-muted);
}

.ct-faq__foot {
    margin-top: 2.25rem;
    text-align: center;
    font-size: .92rem;
    color: var(--ct-muted);
}
.ct-faq__foot a {
    color: var(--ct-indigo-600);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color var(--ct-t-fast), color var(--ct-t-fast);
}
.ct-faq__foot a:hover { color: var(--ct-indigo-700); border-bottom-color: currentColor; }
/* --------------------------------------------------------------------------
   18. Contact
   -------------------------------------------------------------------------- */
.ct-contact {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.ct-contact__list { display: grid; gap: .8rem; margin-top: 2.25rem; }
.ct-contact__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-r-md);
    background: var(--ct-surface);
    color: var(--ct-body);
    font-size: .93rem;
    transition: transform var(--ct-t), border-color var(--ct-t), box-shadow var(--ct-t), background var(--ct-t);
}
.ct-contact__row:hover {
    transform: translateX(6px);
    border-color: rgba(99, 102, 241, .45);
    box-shadow: 0 18px 38px -20px rgba(79, 70, 229, .5);
}
.ct-contact__row i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: var(--ct-r-sm);
    background: #eef0ff;
    color: var(--ct-indigo-600);
    transition: background var(--ct-t), color var(--ct-t), transform var(--ct-t);
}
.ct-contact__row i svg { width: 19px; height: 19px; }
.ct-contact__row:hover i { background: var(--ct-grad-btn); color: #fff; transform: rotate(-8deg) scale(1.06); }

/* Form panel */
.ct-formcard {
    padding: clamp(1.6rem, 3vw, 2.5rem);
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-r-xl);
    background: var(--ct-surface);
    box-shadow: var(--ct-sh-md);
    transition: box-shadow var(--ct-t), border-color var(--ct-t);
}
.ct-formcard:hover {
    border-color: rgba(99, 102, 241, .32);
    box-shadow: 0 34px 70px -28px rgba(79, 70, 229, .45);
}

.ct-field { margin-bottom: 1.15rem; }
.ct-field label {
    display: block;
    margin-bottom: .45rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ct-title);
}
.ct-input {
    width: 100%;
    padding: .85rem 1.05rem;
    border: 1px solid var(--ct-line-strong);
    border-radius: var(--ct-r-sm);
    background: var(--ct-surface);
    font-family: inherit;
    font-size: .93rem;
    color: var(--ct-title);
    transition: border-color var(--ct-t-fast), box-shadow var(--ct-t-fast), background var(--ct-t-fast);
}
.ct-input::placeholder { color: #a8aec0; }
.ct-input:hover { border-color: var(--ct-indigo); }
.ct-input:focus {
    outline: none;
    border-color: var(--ct-indigo);
    background: #fdfdff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .16), 0 10px 24px -16px rgba(79, 70, 229, .7);
}
textarea.ct-input { resize: vertical; min-height: 120px; line-height: 1.6; }
select.ct-input {
    cursor: pointer;
    appearance: none;
    padding-right: 2.6rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8298' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 17px 17px;
}

/* Phone group */
.ct-phone {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ct-line-strong);
    border-radius: var(--ct-r-sm);
    background: var(--ct-surface);
    overflow: hidden;
    transition: border-color var(--ct-t-fast), box-shadow var(--ct-t-fast);
}
.ct-phone:hover { border-color: var(--ct-indigo); }
.ct-phone:focus-within {
    border-color: var(--ct-indigo);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .16), 0 10px 24px -16px rgba(79, 70, 229, .7);
}
.ct-phone select,
.ct-phone input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: .93rem;
    color: var(--ct-title);
    padding: .85rem .7rem;
}
.ct-phone select {
    flex: none;
    width: 104px;
    border-right: 1px solid var(--ct-line);
    background: var(--ct-bg);
    cursor: pointer;
    font-size: .86rem;
    transition: background var(--ct-t-fast);
}
.ct-phone select:hover { background: #eef0ff; }
.ct-phone input { flex: 1; min-width: 0; }

.ct-formmsg {
    display: none;
    margin-top: 1rem;
    padding: .95rem 1.1rem;
    border-radius: var(--ct-r-sm);
    font-size: .88rem;
    line-height: 1.6;
    border: 1px solid transparent;
}
.ct-formmsg.success { display: block; background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.ct-formmsg.error   { display: block; background: #fef2f2; border-color: #fecaca; color: #b91c1c; }


/* Trust strip under the contact details */
.ct-contact__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.25rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}
.ct-contact__trust li { display: flex; flex-direction: column; }
.ct-contact__trust b {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    background: var(--ct-grad-brand);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ct-shimmer 7s ease-in-out infinite;
}
.ct-contact__trust span { font-size: .76rem; color: var(--ct-muted); }

/* Animated gradient frame around the form panel */
.ct-formcard { position: relative; isolation: isolate; }
.ct-formcard__frame {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
        rgba(99, 102, 241, 0) 0deg,
        rgba(99, 102, 241, .75) 70deg,
        rgba(6, 182, 212, 0) 170deg,
        rgba(217, 70, 239, .6) 280deg,
        rgba(99, 102, 241, 0) 360deg);
    opacity: 0;
    animation: ct-spin 7s linear infinite;
    transition: opacity var(--ct-t);
}
.ct-formcard:hover .ct-formcard__frame,
.ct-formcard:focus-within .ct-formcard__frame { opacity: 1; }

.ct-formcard__head { margin-bottom: 1.5rem; }
.ct-formcard__head b {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ct-title);
    margin-bottom: .3rem;
}
.ct-formcard__head span { font-size: .85rem; line-height: 1.6; color: var(--ct-muted); }

/* Contact rows now follow their own accent instead of a shared indigo */
.ct-contact__row { --tcr: 99, 102, 241; }
.ct-contact__row:hover {
    border-color: rgba(var(--tcr), .45);
    box-shadow: 0 18px 38px -20px rgba(var(--tcr), .6);
}
.ct-contact__row i { background: rgba(var(--tcr), .10); color: rgb(var(--tcr)); }
.ct-contact__row:hover i {
    background: linear-gradient(135deg, rgb(var(--tcr)), rgba(var(--tcr), .72));
    color: #fff;
}

/* --------------------------------------------------------------------------
   19. Closing CTA band
   -------------------------------------------------------------------------- */
.ct-cta {
    position: relative;
    padding: clamp(3.25rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    border-radius: var(--ct-r-xl);
    background: radial-gradient(120% 140% at 15% 0%, #6d5ef5 0%, #4c3fd6 45%, #2f2a9e 100%);
    color: rgba(255, 255, 255, .85);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 40px 80px -34px rgba(79, 70, 229, .8);
}
/* Drifting grid, matching the hero and tech treatments */
.ct-cta__grid {
    position: absolute;
    inset: -62px 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 78% 72% at 50% 45%, #000 22%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 45%, #000 22%, transparent 80%);
    animation: ct-grid-drift 20s linear infinite;
}
.ct-cta__orb {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    animation: ct-float 24s ease-in-out infinite;
}
.ct-cta__orb--1 { width: 320px; height: 320px; top: -30%; right: 6%;  background: #67e8f9; opacity: .38; }
.ct-cta__orb--2 { width: 280px; height: 280px; bottom: -34%; left: 8%; background: #e879f9; opacity: .34; animation-duration: 29s; animation-delay: -11s; }
/* Cursor spotlight (home.js writes --mx / --my on the [data-spot] band) */
.ct-cta__spot {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 45%), rgba(255, 255, 255, .16), transparent 66%);
}

.ct-cta__inner { position: relative; }
.ct-cta__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .35rem .95rem;
    border-radius: var(--ct-r-pill);
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}
.ct-cta h2 { color: #fff; margin-bottom: .9rem; }
.ct-cta p { max-width: 560px; margin: 0 auto 2rem; font-size: 1.03rem; line-height: 1.72; color: rgba(255, 255, 255, .78); }
.ct-cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.ct-cta__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 1.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .84rem;
    color: rgba(255, 255, 255, .74);
}
.ct-cta__meta li { display: inline-flex; align-items: center; gap: .45rem; }
.ct-cta__meta svg { width: 15px; height: 15px; color: var(--ct-cyan-300); }
/* --------------------------------------------------------------------------
   20. Shared footer / WhatsApp polish (home only)
   -------------------------------------------------------------------------- */
.ct-home footer a { transition: color var(--ct-t-fast), transform var(--ct-t-fast); display: inline-block; }
.ct-home footer a:hover { color: #fff; transform: translateX(3px); }
.ct-home .whatsapp-pulse { animation: ct-ring 2.6s ease-out infinite; }
.ct-home .whatsapp-pulse:hover { box-shadow: 0 18px 40px -12px rgba(37, 211, 102, .95); }

/* Back-to-top */
.ct-totop {
    position: fixed;
    right: 1.5rem;
    bottom: 5.75rem;
    z-index: 998;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--ct-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--ct-indigo-600);
    box-shadow: var(--ct-sh-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--ct-t), transform var(--ct-t), visibility var(--ct-t),
                box-shadow var(--ct-t), background var(--ct-t), color var(--ct-t);
}
.ct-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.ct-totop:hover {
    background: var(--ct-grad-btn);
    color: #fff;
    box-shadow: var(--ct-glow-indigo);
    transform: translateY(-4px);
}
.ct-totop svg { width: 20px; height: 20px; }

/* Scroll progress bar */
.ct-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 101;
    height: 3px;
    width: 0;
    background: var(--ct-grad-brand);
    box-shadow: 0 0 12px rgba(99, 102, 241, .8);
    transition: width .12s linear;
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .ct-home { --ct-maxw: 960px; }
    .ct-nav__menu { gap: .9rem; }
    .ct-nav__link { font-size: .84rem; }
}

@media (max-width: 1024px) {
    .ct-nav__menu,
    .ct-nav__cta { display: none; }
    .ct-burger { display: flex; }

    .ct-tech__notes { gap: 1.5rem 2rem; }
    .ct-tech__note { max-width: 260px; }

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

    .ct-contact { grid-template-columns: minmax(0, 1fr); }

    /* The rail only reads as a timeline while the four steps sit in one row. */
    .ct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .ct-steps__rail { display: none; }
    .ct-step__meta { opacity: 1; transform: none; }

    .ct-service__watermark { width: 165px; height: 165px; right: -26px; bottom: -30px; }

    .ct-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }

    /* No room to slide sideways once columns stack — reveal upwards instead. */
    [data-reveal="left"],
    [data-reveal="right"] { transform: translateY(30px); }
}

/* ------------------------------------------------------------------
   CUSTOM SOLUTIONS
   Reuses the card system; only the vertical rhythm and the per-card
   CTA are new. The card is a flex column so .ct-tags (margin-top:auto)
   still pushes the tag row and the CTA down to a shared baseline,
   which keeps the grid tidy when descriptions differ in length.
------------------------------------------------------------------- */
.ct-solution {
    display: flex;
    flex-direction: column;
}
.ct-solution__title {
    margin-bottom: .6rem;
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    font-weight: 600;
}
.ct-solution .ct-tags { margin-bottom: 1.15rem; }

.ct-solution__cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    align-self: flex-start;
    font-size: .86rem;
    font-weight: 600;
    color: rgb(var(--tcr));
    transition: gap var(--ct-t-fast), opacity var(--ct-t-fast);
}
.ct-solution__cta svg {
    width: 15px;
    height: 15px;
    transition: transform var(--ct-t-fast);
}
.ct-solution:hover .ct-solution__cta { gap: .7rem; }
.ct-solution:hover .ct-solution__cta svg { transform: translateX(3px); }

.ct-solutions__foot {
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
    text-align: center;
}
.ct-solutions__foot p {
    margin-bottom: 1.35rem;
    color: var(--ct-muted);
    font-size: .96rem;
}
.ct-solutions__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
}

@media (max-width: 860px) {
    .ct-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .ct-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ct-tcard { min-width: 218px; padding: .85rem 1.2rem .85rem .85rem; }
    .ct-tcard__logo { width: 48px; height: 48px; border-radius: 14px; }
    .ct-tcard__logo img { width: 29px; height: 29px; }
    .ct-tech__notes { flex-direction: column; align-items: center; }
    .ct-tech__note { max-width: 420px; }

    .ct-home { --ct-nav-h: 66px; }
    .ct-grid-3,
    .ct-grid-4 { grid-template-columns: minmax(0, 1fr); }
    .ct-solutions__actions { flex-direction: column; align-items: stretch; }
    .ct-solutions__actions .ct-btn { justify-content: center; }
    .ct-steps { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
    .ct-projects { grid-template-columns: minmax(0, 1fr); }
    .ct-modal__panel { max-height: 92vh; }
    .ct-modal__body { max-height: 92vh; }
    .ct-pd__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ct-hero { min-height: auto; }
    .ct-hero__actions { flex-direction: column; align-items: stretch; }
    .ct-hero__actions .ct-btn { width: 100%; }
    .ct-scrollcue { display: none; }
    .ct-cta__actions { flex-direction: column; }
    .ct-cta__actions .ct-btn { width: 100%; }

    .ct-orb { filter: blur(70px); opacity: .42; }
    .ct-orb--1 { width: 280px; height: 280px; }
    .ct-orb--2 { width: 240px; height: 240px; }
    .ct-orb--3 { display: none; }

    .ct-totop { right: 1rem; bottom: 5.25rem; width: 42px; height: 42px; }
    .ct-card__num { font-size: 3.2rem; }
    .ct-phone select { width: 92px; }

    .ct-aurora span { filter: blur(70px); opacity: .26; }
    .ct-aurora span:nth-child(3) { display: none; }
    .ct-contact__trust { gap: 1rem 1.75rem; }
    .ct-cta__meta { flex-direction: column; align-items: center; gap: .55rem; }
    .ct-faq__a p { padding-left: 1.4rem; }
}

@media (max-width: 400px) {
    .ct-hero__stats { grid-template-columns: minmax(0, 1fr); }
    .ct-hero__badge { font-size: .72rem; }
}

/* Extra-wide displays */
@media (min-width: 1600px) {
    .ct-home { --ct-maxw: 1320px; }
}

/* --------------------------------------------------------------------------
   22. Accessibility / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ct-home *,
    .ct-home *::before,
    .ct-home *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
    .ct-nav, .ct-drawer, .ct-totop, .ct-progress,
    .ct-home .whatsapp-pulse, .ct-scrollcue, .ct-orb { display: none !important; }
    .ct-section--dark, .ct-cta { background: #fff !important; color: #000 !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   23. Compatibility — main.js rewrites the message element's className,
       so mirror the styling on the legacy `.form-message` classes too.
   -------------------------------------------------------------------------- */
.ct-home .form-message {
    display: none;
    margin-top: 1rem;
    padding: .95rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--ct-r-sm);
    font-size: .88rem;
    line-height: 1.6;
}
.ct-home .form-message.success { display: block; background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.ct-home .form-message.error   { display: block; background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* --------------------------------------------------------------------------
   24. Dark sections — component overrides

   Every section on the page now runs on `.ct-section--dark`, the same band
   Selected work uses. The components below were originally drawn for a white
   surface, so each one gets a dark counterpart here rather than being forked
   into a second class: the markup stays identical, only the surface changes.

   Rules are scoped `.ct-section--dark <component>` (0,2,0), which outranks the
   plain component rule above without any !important. Accent-driven bits
   (`rgba(var(--tcr), …)`) are left alone — they read correctly on both grounds.
   -------------------------------------------------------------------------- */

/* Aurora backdrop: the light version painted near-black grid lines and pale
   blobs. Invert the lines and dim the blobs so they glow instead of wash. */
.ct-section--dark .ct-aurora::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
}
.ct-section--dark .ct-aurora span:nth-child(1) {
    background: radial-gradient(circle closest-side, rgba(99, 102, 241, .30), rgba(99, 102, 241, 0));
}
.ct-section--dark .ct-aurora span:nth-child(2) {
    background: radial-gradient(circle closest-side, rgba(6, 182, 212, .22), rgba(6, 182, 212, 0));
}

/* -- Card system --------------------------------------------------------- */
/* :not() keeps the featured pricing plan on its own indigo panel. */
.ct-section--dark .ct-card:not(.ct-plan--featured) {
    border-color: var(--ct-d-line);
    background: var(--ct-d-panel);
    box-shadow: none;
}
.ct-section--dark .ct-card__text { color: var(--ct-d-muted); }
.ct-section--dark .ct-card__num { color: rgba(var(--tcr), .16); }
.ct-section--dark .ct-card:hover .ct-card__num { color: rgba(var(--tcr), .30); }
.ct-section--dark .ct-service__watermark { color: rgba(var(--tcr), .09); }
.ct-section--dark .ct-service:hover .ct-service__watermark { color: rgba(var(--tcr), .16); }

.ct-section--dark .ct-list li { color: var(--ct-d-body); }
.ct-section--dark .ct-list li:hover { color: var(--ct-d-title); }

.ct-section--dark .ct-tag {
    border-color: var(--ct-d-line);
    background: var(--ct-d-fill);
    color: rgba(255, 255, 255, .68);
}
.ct-section--dark .ct-tag:hover { color: #fff; }

.ct-section--dark .ct-note p { color: var(--ct-d-body); }
.ct-section--dark .ct-note strong { color: var(--ct-d-title); }

/* -- Process timeline ---------------------------------------------------- */
.ct-section--dark .ct-steps__rail { background: var(--ct-d-line-strong); }
.ct-section--dark .ct-step__dot {
    border-color: var(--ct-d-line);
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
}
/* .is-reached still fills the dot with its own accent — nothing to override. */
.ct-section--dark .ct-step p { color: var(--ct-d-muted); }

/* -- Testimonials -------------------------------------------------------- */
.ct-section--dark .ct-quote__text { color: var(--ct-d-body); }
.ct-section--dark .ct-quote__who b { color: var(--ct-d-title); }
.ct-section--dark .ct-quote__who span { color: var(--ct-d-muted); }

/* -- Pricing ------------------------------------------------------------- */
.ct-section--dark .ct-toggle-label { color: var(--ct-d-muted); }
.ct-section--dark .ct-toggle-label.is-on { color: var(--ct-d-title); }
.ct-section--dark .ct-toggle { background: var(--ct-d-line-strong); }
.ct-section--dark .ct-save { background: rgba(34, 197, 94, .18); color: #86efac; }

.ct-section--dark .ct-plan__from,
.ct-section--dark .ct-plan__per { color: var(--ct-d-muted); }
.ct-section--dark .ct-plan__billed { color: #4ade80; }

/* The featured plan keeps the panel it already had — restated at (0,3,0) so it
   wins over the generic dark-card rules above. */
.ct-section--dark .ct-card.ct-plan--featured {
    border-color: transparent;
    background: linear-gradient(160deg, #5b57ef 0%, #4338ca 100%);
    box-shadow: 0 34px 70px -26px rgba(79, 70, 229, .8);
}
.ct-section--dark .ct-plan--featured .ct-plan__from,
.ct-section--dark .ct-plan--featured .ct-plan__per { color: rgba(255, 255, 255, .72); }
.ct-section--dark .ct-plan--featured .ct-plan__billed { color: #a5f3fc; }
.ct-section--dark .ct-plan--featured .ct-list li { color: rgba(255, 255, 255, .9); }
.ct-section--dark .ct-plan--featured .ct-list li:hover { color: #fff; }

.ct-section--dark .ct-plans-note { color: var(--ct-d-muted); }
.ct-section--dark .ct-plans-note a,
.ct-section--dark .ct-faq__foot a { color: var(--ct-cyan-300); }
.ct-section--dark .ct-plans-note a:hover,
.ct-section--dark .ct-faq__foot a:hover { color: #fff; }

/* -- FAQ ----------------------------------------------------------------- */
.ct-section--dark .ct-faq__item {
    border-color: var(--ct-d-line);
    background: var(--ct-d-panel);
}
.ct-section--dark .ct-faq__q { color: var(--ct-d-title); }
.ct-section--dark .ct-faq__q i { background: var(--ct-d-fill); }
.ct-section--dark .ct-faq__a p { color: var(--ct-d-muted); }
.ct-section--dark .ct-faq__foot { color: var(--ct-d-muted); }

/* -- Contact ------------------------------------------------------------- */
.ct-section--dark .ct-contact__row {
    border-color: var(--ct-d-line);
    background: var(--ct-d-panel);
    color: var(--ct-d-body);
}
.ct-section--dark .ct-contact__trust span { color: var(--ct-d-muted); }

.ct-section--dark .ct-formcard {
    border-color: var(--ct-d-line);
    background: var(--ct-d-panel), var(--ct-ink-2);
    box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .75);
}
/* `__frame` is a child at z-index -1, and negative-z children paint ABOVE the
   parent's own background, so the rotating conic covers the whole panel rather
   than edging it. The white card hid that behind opaque inputs; ink cannot.
   Clip it to the panel and dim it, and it reads as a slow aurora under the
   form instead of a bright cross through it. */
.ct-section--dark .ct-formcard { overflow: hidden; }
.ct-section--dark .ct-formcard:hover .ct-formcard__frame,
.ct-section--dark .ct-formcard:focus-within .ct-formcard__frame { opacity: .3; }
.ct-section--dark .ct-formcard:hover { border-color: rgba(129, 140, 248, .45); }
.ct-section--dark .ct-formcard__head b { color: var(--ct-d-title); }
.ct-section--dark .ct-formcard__head span { color: var(--ct-d-muted); }
.ct-section--dark .ct-field label { color: rgba(255, 255, 255, .82); }

/* `color-scheme` is what makes the native select popup and the caret dark —
   colouring the control alone leaves a white dropdown list. */
.ct-section--dark .ct-input,
.ct-section--dark .ct-phone,
.ct-section--dark .ct-phone select,
.ct-section--dark .ct-phone input { color-scheme: dark; }

/* `background-color`, not the shorthand: the shorthand resets the arrow
   image's repeat/position/size on `select.ct-input` and tiles the chevron. */
.ct-section--dark .ct-input {
    border-color: var(--ct-d-line-strong);
    background-color: rgba(255, 255, 255, .05);
    color: #fff;
}
.ct-section--dark .ct-input::placeholder { color: rgba(255, 255, 255, .38); }
.ct-section--dark .ct-input:hover,
.ct-section--dark .ct-phone:hover { border-color: rgba(129, 140, 248, .75); }
.ct-section--dark .ct-input:focus {
    border-color: var(--ct-indigo);
    background-color: rgba(99, 102, 241, .12);
}
/* Option lists are painted by the OS on some platforms; name the colours. */
.ct-section--dark .ct-input option,
.ct-section--dark .ct-phone select option { background: var(--ct-ink-2); color: #fff; }

/* Repeat/position/size are restated because `.ct-input:focus` above uses the
   `background` shorthand, which resets them and tiles the arrow on focus. */
.ct-section--dark select.ct-input {
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 17px 17px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b0cc' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.ct-section--dark .ct-phone {
    border-color: var(--ct-d-line-strong);
    background-color: rgba(255, 255, 255, .05);
}
.ct-section--dark .ct-phone select,
.ct-section--dark .ct-phone input { color: #fff; }
.ct-section--dark .ct-phone select {
    border-right-color: var(--ct-d-line);
    background: rgba(255, 255, 255, .07);
}
.ct-section--dark .ct-phone select:hover { background: rgba(99, 102, 241, .22); }
.ct-section--dark .ct-phone input::placeholder { color: rgba(255, 255, 255, .38); }

/* Form feedback — mirrored on the legacy `.form-message` classes because
   main.js rewrites the element's className (see section 23). */
.ct-section--dark .ct-formmsg.success,
.ct-section--dark .form-message.success {
    background: rgba(16, 185, 129, .14);
    border-color: rgba(16, 185, 129, .42);
    color: #6ee7b7;
}
.ct-section--dark .ct-formmsg.error,
.ct-section--dark .form-message.error {
    background: rgba(239, 68, 68, .14);
    border-color: rgba(239, 68, 68, .42);
    color: #fca5a5;
}

/* -- Buttons on a dark ground -------------------------------------------- */
/* `--outline` was a white pill with an indigo hairline; on ink it becomes the
   same glass pill the hero uses, keeping the accent in the label. */
.ct-section--dark .ct-btn--outline {
    border-color: var(--ct-d-line-strong);
    background: rgba(255, 255, 255, .06);
    color: #c7d2fe;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ct-section--dark .ct-btn--outline:hover {
    border-color: rgba(129, 140, 248, .7);
    background: rgba(99, 102, 241, .18);
    color: #fff;
    box-shadow: 0 18px 38px -18px rgba(99, 102, 241, .8);
}

/* Print: the sheet flips dark sections to white (section 22), so the text
   inside them has to come back to black or it prints invisible. */
@media print {
    .ct-section--dark *,
    .ct-cta * { color: #000 !important; }
}
