/* ==========================================================================
   UN-J — Products & Services
   Light theme using the UN-J brand palette from index.html.
   Hand-written CSS, no framework, no build step.

   TABLE OF CONTENTS
   01. Design tokens
   02. Base & typography
   03. Utilities (container, section, headings, buttons, links)
   04. Site header & navigation
   05. Hero
   06. Products
   07. Services
   08. Approach timeline
   09. Technology stack
   10. Why UN-J
   11. Closing CTA
   12. Footer
   13. Project dialog
   14. Motion, reveal & reduced-motion
   ========================================================================== */

/* ---------------------------------------------------------------- 01. Tokens */
:root {
    /* Surfaces */
    --bg: #faf8ff;
    --bg-alt: #f2f3ff;
    --bg-ice: #f8fafc;
    --surface: #ffffff;

    /* Ink */
    --ink: #131b2e;
    --ink-soft: #3d494a;
    --ink-mute: #5b696d;

    /* Lines */
    --line: rgba(19, 27, 46, 0.10);
    --line-strong: rgba(19, 27, 46, 0.18);
    --outline: #bdc9ca;

    /* Brand */
    --teal: #008d98;
    --teal-deep: #00666e;
    --teal-mid: #00818b;
    --blue: #00588e;
    --blue-mid: #007092;
    --sky: #186299;
    --mist: #7db0bc;

    /* Dark surfaces (inverse) */
    --dark: #283044;
    --dark-deep: #1f2739;
    --dark-line: rgba(255, 255, 255, 0.10);
    --on-dark: #eef0ff;
    --on-dark-soft: #c3cfe2;
    --on-dark-mute: #94a6c2;

    /* Semantic */
    --ok: #047857;
    --warn: #b45309;
    --violet: #6d28d9;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --container: 1180px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4rem, 7vw, 6.5rem);
    --header-h: 72px;

    --font-display: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --grad-brand: linear-gradient(100deg, var(--teal-mid), var(--blue));
    --grad-text: linear-gradient(100deg, var(--teal-deep), var(--blue));
}

/* ------------------------------------------------------------------ 02. Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background:
        radial-gradient(900px circle at 8% -6%, rgba(0, 141, 152, 0.10), transparent 60%),
        radial-gradient(820px circle at 92% 2%, rgba(0, 88, 142, 0.08), transparent 60%),
        var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

p {
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.1;
    text-wrap: balance;
}

::selection {
    background: rgba(0, 141, 152, 0.20);
    color: var(--ink);
}

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

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 200;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: var(--teal-deep);
    color: #fff;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
    transform: none;
}

/* ------------------------------------------------------------- 03. Utilities */
.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

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

.eyebrow {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.705rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-deep);
}

.eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 141, 152, 0.14);
    vertical-align: middle;
}

.section-title {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 3.4vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--ink);
}

.section-lede {
    margin: 0;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.72;
    color: var(--ink-soft);
}

.lede {
    margin: 0;
    max-width: 52ch;
    font-size: clamp(1.02rem, 1.5vw, 1.13rem);
    line-height: 1.7;
    color: var(--ink-soft);
}

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

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
    .text-grad {
        color: var(--teal-deep);
        -webkit-text-fill-color: currentColor;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.006em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
        color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn .icon {
    width: 1.05em;
    height: 1.05em;
    transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--grad-brand);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 12px 30px -14px rgba(0, 88, 142, 0.55);
}

.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 18px 38px -16px rgba(0, 88, 142, 0.65);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--outline);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: var(--teal);
    color: var(--teal-deep);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--mist);
}

.btn-lg {
    padding: 0.92rem 1.6rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

.btn-meta {
    font-family: var(--font-mono);
    font-size: 0.78em;
    opacity: 0.8;
    padding-left: 0.25rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--teal-deep);
    align-self: flex-start;
}

.link-arrow .icon {
    width: 1em;
    height: 1em;
    transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
    color: var(--blue);
}

.link-arrow:hover .icon {
    transform: translateX(3px);
}

/* -------------------------------------------------------- 04. Header & nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 255, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.site-header.is-stuck {
    background: rgba(250, 248, 255, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px -20px rgba(19, 27, 46, 0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
}

.brand-logo {
    height: 42px;
    width: auto;
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.brand-text small {
    margin-top: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.585rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2vw, 1.9rem);
    list-style: none;
    padding: 0;
}

.nav-list a {
    position: relative;
    display: inline-block;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
    transition: color 0.2s var(--ease);
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a.is-active {
    color: var(--teal-deep);
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--outline);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle .icon {
    width: 20px;
    height: 20px;
}

.nav-toggle-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: block;
}

.nav-cta {
    display: none;
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        padding: 1.25rem var(--gutter) 1.75rem;
        background: rgba(250, 248, 255, 0.99);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -30px rgba(19, 27, 46, 0.5);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }

    .nav.is-open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list a {
        display: block;
        padding: 0.85rem 0.15rem;
        font-size: 1.02rem;
        border-bottom: 1px solid var(--line);
    }

    .nav-list a::after {
        display: none;
    }

    .header-actions .btn-sm {
        display: none;
    }

    .nav-cta {
        display: block;
        padding-top: 1.25rem;
    }

    .nav-cta .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .brand-text small {
        display: none;
    }

    .brand-logo {
        height: 36px;
    }
}

/* ------------------------------------------------------------------ 05. Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-bottom: clamp(2rem, 4vw, 3.25rem);
    background: linear-gradient(180deg, var(--bg-ice), var(--bg));
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: -20% -10% 0;
    background-image:
        linear-gradient(rgba(19, 27, 46, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 27, 46, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, #000 10%, transparent 72%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: float 24s ease-in-out infinite;
}

.orb-1 {
    width: 520px;
    height: 520px;
    top: -190px;
    left: -140px;
    background: radial-gradient(circle, rgba(0, 141, 152, 0.55), transparent 70%);
}

.orb-2 {
    width: 620px;
    height: 620px;
    top: -230px;
    right: -180px;
    background: radial-gradient(circle, rgba(0, 88, 142, 0.42), transparent 70%);
    animation-delay: -7s;
}

.orb-3 {
    width: 440px;
    height: 440px;
    bottom: -280px;
    left: 38%;
    background: radial-gradient(circle, rgba(125, 176, 188, 0.45), transparent 70%);
    opacity: 0.3;
    animation-delay: -14s;
}

.hero-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        620px circle at var(--mx, 50%) var(--my, 18%),
        rgba(0, 141, 152, 0.10),
        transparent 62%
    );
    transition: background 0.15s linear;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-title {
    margin: 0 0 1.5rem;
    font-size: clamp(2.55rem, 1.35rem + 4.6vw, 4.55rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.03;
    color: var(--ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 2rem 0 2.75rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.35rem;
}

.stat dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.3vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.stat dt {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    line-height: 1.4;
}

.stat-suffix {
    font-size: 0.62em;
    color: var(--teal-deep);
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
}

.panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #2f3a4f, #232c3d);
    box-shadow:
        0 40px 80px -34px rgba(19, 27, 46, 0.55),
        0 0 0 1px rgba(19, 27, 46, 0.06);
    overflow: hidden;
    transform: rotate(-1.2deg);
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 18% 0%, rgba(139, 242, 254, 0.10), transparent 62%);
    pointer-events: none;
}

.panel-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--dark-line);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--on-dark-mute);
}

.panel-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.panel-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.panel-dots i:first-child {
    background: rgba(248, 113, 113, 0.75);
}

.panel-dots i:nth-child(2) {
    background: rgba(251, 191, 36, 0.75);
}

.panel-dots i:last-child {
    background: rgba(52, 211, 153, 0.75);
}

.panel-title {
    color: var(--on-dark);
}

.panel-badge {
    margin-left: auto;
    padding: 0.1rem 0.45rem;
    border: 1px solid rgba(139, 242, 254, 0.45);
    border-radius: 6px;
    color: #8bf2fe;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
}

.code {
    margin: 0;
    padding: 1.05rem 1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.705rem;
    line-height: 1.7;
    color: #d7e3f4;
    overflow-x: auto;
    tab-size: 4;
}

.tok-kw {
    color: #8bf2fe;
}

.tok-type {
    color: #cfe5ff;
}

.tok-fn {
    color: #6ed6e1;
}

.tok-str {
    color: #ffd166;
}

.tok-cmt {
    color: #8fa3c0;
    font-style: italic;
}

.panel-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--dark-line);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: var(--on-dark-mute);
}

.panel-foot-right {
    margin-left: auto;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse 2.4s ease-out infinite;
}

.float-chip {
    position: absolute;
    padding: 0.38rem 0.68rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    color: var(--ink-soft);
    box-shadow: 0 14px 30px -18px rgba(19, 27, 46, 0.55);
    animation: bob 7s ease-in-out infinite;
}

.chip-1 {
    top: 4%;
    left: -3%;
    color: var(--teal-deep);
    border-color: rgba(0, 129, 139, 0.30);
}

.chip-2 {
    top: 38%;
    right: -5%;
    animation-delay: -2s;
}

.chip-3 {
    bottom: 16%;
    left: -7%;
    animation-delay: -4s;
}

.chip-4 {
    bottom: 1%;
    right: 4%;
    color: var(--blue);
    border-color: rgba(0, 88, 142, 0.25);
    animation-delay: -6s;
}

@media (max-width: 1080px) {
    .float-chip {
        display: none;
    }
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        order: 2;
        min-height: 0;
    }

    .panel {
        max-width: 480px;
        margin-inline: auto;
        transform: none;
    }
}

@media (max-width: 560px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .code {
        font-size: 0.66rem;
    }
}

/* -------------------------------------------------------------- 06. Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.6vw, 1.25rem);
    list-style: none;
    padding: 0;
}

.product-card {
    grid-column: span 6;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: clamp(1.35rem, 2.4vw, 1.85rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(19, 27, 46, 0.04);
    overflow: hidden;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        420px circle at var(--mx, 50%) var(--my, 0%),
        rgba(0, 141, 152, 0.10),
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}

.product-card:hover {
    border-color: rgba(0, 129, 139, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 30px 50px -30px rgba(19, 27, 46, 0.38);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card--wide {
    grid-column: span 7;
}

.product-card--half {
    grid-column: span 5;
}

.product-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-tile {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 129, 139, 0.24);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0, 129, 139, 0.12), rgba(0, 88, 142, 0.06));
    color: var(--teal-deep);
}

.icon-tile .icon {
    width: 20px;
    height: 20px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    padding: 0.26rem 0.6rem;
    border: 1px solid;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.615rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status--available {
    color: var(--ok);
    border-color: rgba(4, 120, 87, 0.28);
    background: rgba(4, 120, 87, 0.07);
}

.status--dev {
    color: var(--warn);
    border-color: rgba(180, 83, 9, 0.28);
    background: rgba(180, 83, 9, 0.07);
}

.status--soon {
    color: var(--violet);
    border-color: rgba(109, 40, 217, 0.25);
    background: rgba(109, 40, 217, 0.06);
}

.product-cat {
    margin: 0.2rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.655rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.product-name {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    color: var(--ink);
}

.product-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.capabilities {
    display: grid;
    gap: 0.45rem;
    margin: 0.2rem 0 0;
    padding: 0;
    list-style: none;
}

.capabilities li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.845rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.capabilities li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 2px;
    background: var(--grad-brand);
}

.status-note {
    margin: 1.75rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--ink-mute);
}

@media (max-width: 900px) {
    .product-card,
    .product-card--wide,
    .product-card--half {
        grid-column: span 12;
    }
}

/* -------------------------------------------------------------- 07. Services */
.services {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.5fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.services-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.services-intro .btn {
    margin-top: 1.75rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service {
    position: relative;
    padding: clamp(1.6rem, 2.8vw, 2.25rem) 0 clamp(1.6rem, 2.8vw, 2.25rem)
        clamp(0.9rem, 1.8vw, 1.6rem);
    border-top: 1px solid var(--line-strong);
    transition: background 0.3s var(--ease);
}

.service:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.service::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent, var(--teal));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.service:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), transparent 62%);
}

.service:hover::before {
    opacity: 1;
}

.service-head {
    display: flex;
    align-items: baseline;
    gap: clamp(0.7rem, 1.8vw, 1.15rem);
}

.service-num {
    flex: none;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.1vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(19, 27, 46, 0.38);
    transition: -webkit-text-stroke-color 0.3s var(--ease);
}

.service:hover .service-num {
    -webkit-text-stroke-color: var(--accent, var(--teal));
}

.service-title {
    font-size: clamp(1.18rem, 2.1vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.service-desc {
    margin: 0.7rem 0 1.05rem;
    max-width: 62ch;
    font-size: 0.935rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.deliverables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem 1.25rem;
    margin: 0 0 1.05rem;
    padding: 0;
    list-style: none;
}

.deliverables li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.835rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.deliverables li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: -0.02em;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent, var(--teal-deep));
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.655rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

@media (max-width: 960px) {
    .services-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-intro {
        position: static;
    }
}

@media (max-width: 520px) {
    .deliverables {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* -------------------------------------------------------------- 08. Timeline */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.8vw, 1.5rem);
    list-style: none;
    padding: 0;
    margin-top: clamp(1rem, 2vw, 2rem);
}

.timeline::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 2%;
    right: 2%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--outline) 12%,
        rgba(0, 141, 152, 0.55) 50%,
        var(--outline) 88%,
        transparent
    );
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.step-node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--teal-deep);
    box-shadow: 0 4px 12px -8px rgba(19, 27, 46, 0.5);
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.step-node .icon {
    width: 20px;
    height: 20px;
}

.step:hover .step-node {
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 0 0 6px rgba(0, 129, 139, 0.10);
}

.step-num {
    margin: 0.7rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
}

.step-title {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--ink);
}

.step-desc {
    margin: 0;
    font-size: 0.835rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

@media (max-width: 900px) {
    .timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }

    .timeline::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .timeline {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .step {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-areas:
            "node title"
            "node desc";
        align-items: start;
        column-gap: 1rem;
    }

    .step-node {
        grid-area: node;
    }

    .step-num {
        display: none;
    }

    .step-title {
        grid-area: title;
        padding-top: 0.75rem;
    }

    .step-desc {
        grid-area: desc;
    }
}

/* ----------------------------------------------------------------- 09. Stack */
.stack-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.stack-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.stack-count {
    margin: 1.5rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.stack-count span {
    color: var(--teal-deep);
    font-size: 1.15em;
}

.stack-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1rem);
}

.stack-group {
    padding: clamp(1.1rem, 2vw, 1.4rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(19, 27, 46, 0.04);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stack-group:hover {
    border-color: rgba(0, 129, 139, 0.35);
    box-shadow: 0 18px 30px -26px rgba(19, 27, 46, 0.5);
}

.stack-group-title {
    margin: 0 0 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.655rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.tech-list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    padding: 0;
}

.tech {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.tech-mono {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--bg-alt);
    font-family: var(--font-mono);
    font-size: 0.645rem;
    letter-spacing: 0.02em;
    color: var(--teal-deep);
}

.tech-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.tech-body strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.tech-body small {
    font-size: 0.72rem;
    color: var(--ink-mute);
}

@media (max-width: 960px) {
    .stack-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .stack-intro {
        position: static;
    }
}

@media (max-width: 560px) {
    .stack-groups {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------- 10. Why */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1rem);
    list-style: none;
    padding: 0;
}

.value {
    padding: clamp(1.35rem, 2.2vw, 1.7rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(19, 27, 46, 0.04);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.value:hover {
    border-color: rgba(0, 129, 139, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 24px 40px -30px rgba(19, 27, 46, 0.45);
}

.value-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 129, 139, 0.22);
    border-radius: 11px;
    background: rgba(0, 129, 139, 0.08);
    color: var(--teal-deep);
}

.value-icon .icon {
    width: 19px;
    height: 19px;
}

.value h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.value p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

@media (max-width: 980px) {
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .value-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------- 11. CTA */
.cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    text-align: center;
    background:
        linear-gradient(165deg, var(--dark), var(--dark-deep)) padding-box,
        linear-gradient(140deg, rgba(0, 141, 152, 0.9), rgba(0, 88, 142, 0.55), rgba(125, 176, 188, 0.85)) border-box;
    box-shadow: 0 40px 70px -40px rgba(19, 27, 46, 0.55);
}

.cta-glow {
    position: absolute;
    top: -55%;
    left: 50%;
    width: min(760px, 120%);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 141, 152, 0.55), transparent 62%);
    filter: blur(40px);
    pointer-events: none;
}

.cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
    pointer-events: none;
}

.cta-body {
    position: relative;
    z-index: 1;
}

.cta-body .eyebrow {
    color: #8bf2fe;
}

.cta-body .eyebrow-dot {
    background: #8bf2fe;
    box-shadow: 0 0 0 3px rgba(139, 242, 254, 0.18);
}

.cta-title {
    max-width: 22ch;
    margin: 1rem auto 1rem;
    font-size: clamp(1.9rem, 4.2vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: #ffffff;
}

.cta-lede {
    max-width: 56ch;
    margin: 0 auto;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.72;
    color: var(--on-dark-soft);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2rem;
}

.cta-note {
    margin: 1.35rem 0 0;
    font-size: 0.845rem;
    color: var(--on-dark-mute);
}

.cta-note a {
    color: #8bf2fe;
    text-decoration: underline;
    text-decoration-color: rgba(139, 242, 254, 0.45);
    text-underline-offset: 3px;
}

.cta-note a:hover {
    text-decoration-color: #8bf2fe;
}

/* ---------------------------------------------------------------- 12. Footer */
.site-footer {
    margin-top: clamp(2rem, 6vw, 4rem);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    background: var(--dark);
    color: var(--on-dark-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.55fr repeat(3, 1fr) 1.15fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.site-footer .brand {
    color: #ffffff;
}

.site-footer .brand-text strong {
    color: #ffffff;
}

.site-footer .brand-text small {
    color: var(--on-dark-mute);
}

.footer-desc {
    margin: 1.1rem 0 1.25rem;
    max-width: 34ch;
    font-size: 0.845rem;
    line-height: 1.7;
    color: var(--on-dark-soft);
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.social a {
    font-size: 0.8rem;
    color: var(--on-dark-mute);
    transition: color 0.2s var(--ease);
}

.social a:hover {
    color: #8bf2fe;
}

.footer-heading {
    margin: 0 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.655rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mist);
}

.footer-col ul {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
}

.footer-col a {
    font-size: 0.83rem;
    line-height: 1.45;
    color: var(--on-dark-soft);
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: #ffffff;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.83rem;
    line-height: 1.45;
    color: var(--on-dark-soft);
}

.contact-list .icon {
    width: 16px;
    height: 16px;
    margin-top: 0.12rem;
    color: var(--mist);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-line);
    font-size: 0.755rem;
    color: var(--on-dark-mute);
}

.footer-bottom p {
    margin: 0;
}

.footer-built {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.footer-top {
    color: var(--on-dark-mute);
    transition: color 0.2s var(--ease);
}

.footer-top:hover {
    color: #8bf2fe;
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------- 13. Dialog */
.dialog {
    width: min(560px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 50px 100px -40px rgba(19, 27, 46, 0.65);
    overflow: auto;
}

.dialog::backdrop {
    background: rgba(19, 27, 46, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.dialog[open] {
    animation: dialogIn 0.28s var(--ease);
}

.dialog-form {
    display: grid;
    gap: 0.95rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dialog-title {
    margin: 0.3rem 0 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
    color: var(--ink);
    border-color: var(--outline);
}

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

.dialog-context {
    margin: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(0, 129, 139, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(0, 129, 139, 0.07);
    font-size: 0.82rem;
    color: var(--teal-deep);
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-family: var(--font-mono);
    font-size: 0.665rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--bg-ice);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

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

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%),
        linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.25rem;
}

.field :is(input, select, textarea):focus-visible {
    outline: none;
    border-color: var(--teal-mid);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 129, 139, 0.15);
}

.form-result:empty {
    display: none;
}

.form-result {
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(4, 120, 87, 0.28);
    background: rgba(4, 120, 87, 0.07);
    font-size: 0.85rem;
    line-height: 1.55;
    color: #14532d;
}

.form-result.is-error {
    border-color: rgba(185, 28, 28, 0.3);
    background: rgba(185, 28, 28, 0.06);
    color: #7f1d1d;
}

.form-result a {
    color: var(--teal-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.form-hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--ink-mute);
}

/* --------------------------------------------- 14. Motion, reveal, a11y prefs */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(20px, 26px, 0) scale(1.06);
    }
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .orb,
    .float-chip,
    .pulse {
        animation: none;
    }
}

@media print {
    .site-header,
    .hero-bg,
    .cta-glow,
    .cta-grid,
    .float-chip,
    .dialog {
        display: none !important;
    }

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

    .site-footer,
    .cta-panel,
    .panel {
        background: #fff !important;
        color: #000 !important;
    }
}
