/* ==========================================================================
   DZG — Design tokens and primitives
   Light, spacious, Apple-adjacent. Shared by index.html and company.html.
   ========================================================================== */

:root {
    /* Ink */
    --ink: #1d1d1f;
    --ink-2: #6e6e73;
    --ink-3: #86868b;
    --ink-4: #b0b0b6;

    /* Surface */
    --bg: #ffffff;
    --bg-tint: #fbfbfd;
    --surface: #f5f5f7;
    --surface-2: #ededf0;
    --line: rgba(0, 0, 0, 0.08);
    --line-2: rgba(0, 0, 0, 0.14);

    /* Product accents — taken from each product's own identity */
    --reso: #1d1d1f;
    --nebula: #5222e6;
    --mint: #24c366;
    --scene: #7c6aef;
    --shepherd: #1d1d1f;

    /* Geometry */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 34px;
    --shell: 1180px;
    --gutter: clamp(20px, 4.4vw, 40px);
    --header-h: 52px;

    /* Elevation — soft, never heavy */
    --lift-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.10);
    --lift-2: 0 2px 4px rgba(0, 0, 0, 0.04), 0 24px 48px -20px rgba(0, 0, 0, 0.16);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Inter", "Helvetica Neue", "Noto Sans SC", "PingFang SC", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: rgba(82, 34, 230, 0.14); }

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

/* --------------------------------------------------------------- Layout */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.shell-wide { max-width: 1340px; }

.band { padding-block: clamp(80px, 10.5vw, 160px); }
.band-sm { padding-block: clamp(56px, 7vw, 104px); }
.band-tint { background: var(--bg-tint); }
.band-line { border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ Typography */

.display {
    font-size: clamp(42px, 6.6vw, 84px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.038em;
    text-wrap: balance;
}

.h2 {
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.h3 {
    font-size: clamp(21px, 2.3vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.lead {
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.55;
    letter-spacing: -0.014em;
    color: var(--ink-2);
}

.body { font-size: 17px; line-height: 1.62; color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.measure { max-width: 34em; }
.measure-tight { max-width: 26em; }

/* --------------------------------------------------------------- Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    padding-inline: 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease),
        border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover { background: #000; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg {
    height: 54px;
    padding-inline: 30px;
    font-size: 16.5px;
}

.btn-quiet {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
}

.btn-quiet:hover {
    background: transparent;
    border-color: var(--ink);
}

/* Text link with a travelling arrow */
.link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

.link svg { transition: transform 0.24s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.wordmark {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-set {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    font-size: 14px;
    color: var(--ink-2);
}

.nav-set a { transition: color 0.18s var(--ease); }
.nav-set a:hover { color: var(--ink); }
.nav-set a[aria-current="page"] { color: var(--ink); }

.nav-cta {
    height: 32px;
    padding-inline: 16px;
    font-size: 14px;
}

@media (max-width: 720px) {
    .nav-set { display: none; }
}

/* ------------------------------------------------------------- Closing CTA
   Shared by the home and company pages. */

.closer {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: var(--surface);
    padding: clamp(48px, 6.5vw, 92px) clamp(28px, 5vw, 72px);
    text-align: center;
}

.closer::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    pointer-events: none;
    background:
        radial-gradient(40% 50% at 28% 30%, rgba(82, 34, 230, 0.09), transparent 70%),
        radial-gradient(40% 50% at 74% 68%, rgba(240, 140, 32, 0.09), transparent 70%);
    filter: blur(20px);
}

.closer > * { position: relative; }
.closer .lead { margin: 20px auto 0; max-width: 42ch; }

.closer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

/* Email is the front door; X is a footnote. */
.closer-alt {
    margin-top: 20px;
    font-size: 14px;
    color: var(--ink-3);
}

.closer-alt a {
    color: var(--ink-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line-2);
    transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.closer-alt a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------------------------------------------------------------- Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 40px 48px;
    font-size: 14px;
    color: var(--ink-3);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
}

.footer-grid h4 {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-4);
}

.footer-grid ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid a { transition: color 0.18s var(--ease); }
.footer-grid a:hover { color: var(--ink); }

.footer-note { max-width: 30em; color: var(--ink-3); }

.footer-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------- Scroll reveal
   Scoped to .js so the page is fully visible when scripts don't run.
   Never hide content behind JavaScript that may never execute. */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    will-change: opacity, transform;
}

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

.js .reveal[data-delay="1"] { transition-delay: 0.07s; }
.js .reveal[data-delay="2"] { transition-delay: 0.14s; }
.js .reveal[data-delay="3"] { transition-delay: 0.21s; }
.js .reveal[data-delay="4"] { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
