/* ==========================================================================
   Lojic Loop — design tokens
   Brand palette is canonical: see controllers/colorpallete/colorpallete.py
   Only three brand colours exist. Every neutral is derived from black/white.
   ========================================================================== */

:root {
    /* Brand — the only three */
    --purple: #6e38cf;
    --black: #000000;
    --white: #ffffff;

    /* Page ground. Pure #fff at full-screen scale is glaring, so the ground is
       white carrying ~6% of the brand purple. Still derived from the palette —
       no fourth hue. Cards, the nav and the white Trusted-by band stay pure
       --white, and the deeper ground is what makes them read as raised rather
       than merging into the page. */
    --ground: #f1f0f6;
    --ground-86: rgba(241, 240, 246, .86);
    --ground-95: rgba(241, 240, 246, .95);

    /* Derived neutrals — opacity over black, never new hues */
    --ink: rgba(0, 0, 0, 1);
    --ink-80: rgba(0, 0, 0, .80);
    --ink-56: rgba(0, 0, 0, .56);
    --ink-40: rgba(0, 0, 0, .40);
    --ink-14: rgba(0, 0, 0, .14);
    --ink-08: rgba(0, 0, 0, .08);
    --ink-04: rgba(0, 0, 0, .04);

    /* Derived neutrals on dark grounds */
    --paper-80: rgba(255, 255, 255, .80);
    --paper-56: rgba(255, 255, 255, .56);
    --paper-24: rgba(255, 255, 255, .24);
    --paper-14: rgba(255, 255, 255, .14);
    --paper-08: rgba(255, 255, 255, .08);

    /* Purple at opacity */
    --purple-12: rgba(110, 56, 207, .12);
    --purple-24: rgba(110, 56, 207, .24);

    /* Type */
    --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --step--1: clamp(.78rem, .74rem + .18vw, .88rem);
    --step-0: clamp(.98rem, .94rem + .2vw, 1.08rem);
    --step-1: clamp(1.15rem, 1.06rem + .44vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.3rem + .95vw, 2.15rem);
    --step-3: clamp(2rem, 1.55rem + 2.2vw, 3.4rem);
    --step-4: clamp(2.6rem, 1.5rem + 5.4vw, 6.6rem);

    /* Rhythm */
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --measure: 1240px;
    --section-y: clamp(5rem, 11vh, 9.5rem);

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-soft: cubic-bezier(.4, 0, .2, 1);
    --dur: .7s;
    --dur-fast: .32s;

    --radius: 4px;
    --radius-lg: 10px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-0);
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 300;
    letter-spacing: -.035em;
    line-height: 1.02;
}

p {
    margin: 0;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

::selection {
    background: var(--purple);
    color: var(--white);
}

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

/* Shared layout primitives ------------------------------------------------ */

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

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

/* Section label. Was 40% black at weight 400, which read as a caption rather
   than a signpost. Now brand purple at 500 with a thicker rule: it stands out
   without competing with the h2 underneath, and it ties every section opening
   back to the palette. Shared by all sections deliberately — one loud label
   among quiet ones would read as a mistake. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1.5rem;
    font-size: var(--step-0);
    font-weight: 500;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--purple);
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--purple);
}

.accent {
    color: var(--purple);
}

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

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