/* ==========================================================================
   SELF-HOSTED FONTS — Anton / Inter / Outfit, served from /fonts (no
   third-party request to Google). unicode-range keeps the browser from
   downloading subsets it doesn't need.
   ========================================================================== */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/anton-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/anton-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/outfit-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/outfit-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/outfit-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/outfit-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/outfit-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/outfit-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/outfit-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/outfit-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   URGELOCK — LANDING
   Swiss/high-contrast dark: black canvas, one red, massive condensed type,
   structural rules. No images — type and CSS only.
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palette — UrgeLock red / black / white */
    --bg-base: #050505;
    --bg-raised: #0c0c0c;
    --bg-surface: rgba(15, 15, 15, 0.75);
    --bg-card: rgba(18, 18, 18, 0.6);

    --primary: hsl(0, 88%, 52%);
    --primary-glow: rgba(242, 26, 26, 0.15);
    --primary-hover: hsl(0, 88%, 60%);

    --success: #ffffff;
    --success-glow: rgba(255, 255, 255, 0.12);
    --danger: hsl(0, 88%, 52%);
    --danger-glow: rgba(242, 26, 26, 0.2);

    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    /* Lightened from #666666 for WCAG 2.1 AA: at 11px on the near-black
       background #666 measured 3.55:1, below the 4.5:1 minimum. #858585
       measures ~5.2:1 and keeps the same muted role. */
    --text-muted: #858585;

    --border-color: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-color-focus: rgba(242, 26, 26, 0.4);

    /* Type */
    --font-display: 'Anton', 'Outfit', sans-serif; /* condensed impact, like the logo */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    /* anchored jumps stop below the fixed header instead of under it */
    scroll-padding-top: 84px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 24px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(242, 26, 26, 0.4);
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.logo em {
    font-style: normal;
    color: var(--primary);
}

.logo-img {
    height: 36px;
    width: 36px;
    object-fit: cover;
    border-radius: 22%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 90px;
    overflow: hidden;
}

/* faint structural grid, Swiss-style */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.hero-title .line { display: block; }

.hero-title .accent {
    color: var(--primary);
    text-shadow: 0 0 60px rgba(242, 26, 26, 0.35);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    max-width: 540px;
}

/* hero proof points */
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    list-style: none;
}

.hero-proof li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-proof li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 2px;
    background-color: var(--primary);
}

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-raised);
    overflow: hidden;
    padding: 0.85rem 0;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
    /* promote to its own compositor layer so the scroll never stutters
       when other JS (scroll-reveal, count-up) runs on the main thread */
    will-change: transform;
    backface-visibility: hidden;
}

/* Spacing lives on the items (not a flex `gap`) so the strip is perfectly
   periodic: translateX(-50%) then lands exactly on the duplicate, giving a
   seamless loop with no jump. A `gap` would leave a half-gap mismatch at
   the seam and hitch once per cycle. */
.ticker-track span,
.ticker-track i {
    margin-right: 2.2rem;
}

.ticker-track span {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ticker-track i {
    font-style: normal;
    font-size: 0.55rem;
    color: var(--primary);
}

@keyframes ticker-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    padding: 110px 0;
    position: relative;
}

.section-head {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.section-index {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--primary);
    border: 1px solid rgba(242, 26, 26, 0.4);
    padding: 0.35rem 0.7rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 620px;
    font-size: 1.05rem;
}

/* ==========================================================================
   TOOLS GRID
   ========================================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tool-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    padding: 2rem 1.8rem 1.9rem;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 26, 26, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.tool-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    color: var(--primary);
    display: block;
    margin-bottom: 1.4rem;
}

.tool-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ==========================================================================
   APP VISUAL — a crafted device shot. Realistic frame (island, side
   buttons, screen glare) around a calm, well-composed product screen.
   Everything lives inside the frame; nothing floats or drifts.
   ========================================================================== */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.5rem 0;
    perspective: 1600px;
}

/* layered ambient light: violet product glow up top, site-red down low */
.mockup-glow {
    position: absolute;
    top: 46%;
    left: 50%;
    width: 520px;
    height: 560px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 40% 30%, rgba(124, 92, 240, 0.30), transparent 55%),
        radial-gradient(circle at 66% 74%, rgba(242, 26, 26, 0.18), transparent 52%),
        radial-gradient(circle at 50% 50%, rgba(54, 211, 160, 0.10), transparent 60%);
    filter: blur(26px);
    pointer-events: none;
    z-index: 0;
}

/* faint technical grid, grounds the device */
.mockup-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.phone {
    position: relative;
    z-index: 1;
    width: 300px;
    height: 622px;
    border-radius: 52px;
    padding: 11px;
    background:
        linear-gradient(150deg, #3a3a42 0%, #17171b 32%, #0c0c0e 60%, #202027 100%);
    box-shadow:
        0 2px 3px rgba(255, 255, 255, 0.10) inset,
        0 -2px 6px rgba(0, 0, 0, 0.6) inset,
        0 40px 80px -24px rgba(0, 0, 0, 0.9),
        0 12px 30px -12px rgba(124, 92, 240, 0.35);
    /* angled hero pose; grab + drag to spin it (JS sets --ry/--rx) */
    transform: rotateY(var(--ry, -13deg)) rotateX(var(--rx, 3deg)) rotateZ(1deg);
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: grab;
    touch-action: pan-y;
    /* decorative mockup — don't let the fake UI text be selected */
    user-select: none;
    -webkit-user-select: none;
}

/* while dragging: follow the pointer instantly, show the grabbing hand.
   On release the transition kicks back in and it springs to the resting pose. */
.phone.dragging {
    cursor: grabbing;
    transition: none;
}

/* metal side buttons */
.phone-buttons { position: absolute; inset: 0; pointer-events: none; }
.pb {
    position: absolute;
    border-radius: 3px;
    background: linear-gradient(180deg, #2b2b31, #131316);
    box-shadow: -1px 0 1px rgba(255, 255, 255, 0.06) inset;
}
.pb-mute  { left: -3px; top: 128px; width: 3px; height: 26px; }
.pb-vol   { left: -3px; width: 3px; height: 46px; }
.pb-vol:nth-of-type(2) { top: 172px; }
.pb-vol:nth-of-type(3) { top: 230px; }
.pb-power { right: -3px; top: 196px; width: 3px; height: 66px;
    background: linear-gradient(180deg, #2b2b31, #131316);
    box-shadow: 1px 0 1px rgba(255, 255, 255, 0.06) inset; }

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(120% 60% at 50% -6%, #2a2154 0%, transparent 46%),
        linear-gradient(180deg, #1b1538 0%, #150f2e 28%, #100b24 58%, #06040e 100%);
    border-radius: 42px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem 0.95rem 0.8rem;
    font-family: var(--font-body);
    box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(255, 255, 255, 0.04);
}

/* diagonal screen reflection */
.phone-glare {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(128deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 16%, transparent 34%);
    pointer-events: none;
    z-index: 6;
}

/* dynamic island */
.phone-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 24px;
    background: #000;
    border-radius: 14px;
    z-index: 7;
}

/* status bar */
.m-status {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0.4rem 0.55rem;
    color: #e9e7f5;
}
.m-clock { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; }
.m-sysicons { display: flex; align-items: center; gap: 0.28rem; color: #e9e7f5; }

/* top bar */
.m-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
}
.m-avatar {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: #d7c9ff;
    background: linear-gradient(150deg, #2f2560, #1a1440);
    border: 1px solid rgba(139, 108, 240, 0.5);
}
.m-avatar i {
    position: absolute;
    right: -1px; bottom: -1px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #36d3a0;
    border: 1.5px solid #150f2e;
}
.m-brand {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f3f2f8;
}
.m-brand em { font-style: normal; color: var(--primary); }
.m-bell {
    color: #a5a1c2;
    display: flex;
}

/* affirmation pill */
.m-quote {
    font-size: 0.62rem;
    color: #b9b5d4;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.32rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.15rem;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* milestone ring + companion */
.m-ring {
    position: relative;
    width: 168px;
    height: 168px;
    margin-bottom: 0.9rem;
    filter: drop-shadow(0 0 22px rgba(54, 211, 160, 0.28));
}
.m-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 7;
}
.ring-arc {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 7;
    stroke-linecap: round;
    /* 2πr = 339.3; show ~72% of the circle */
    stroke-dasharray: 244 340;
}
.m-companion {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(139, 108, 240, 0.5);
    background:
        radial-gradient(circle at 50% 30%, #241a4a, #100b24);
}
/* face crop — same focus math as the app's LockyAvatar (47% x, 35% y) */
.m-companion img {
    position: absolute;
    height: 200%;
    width: auto;
    max-width: none;
    left: 50%;
    top: 50%;
    transform: translate(-47%, -35%);
}

/* big streak counter */
.m-streak {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.85rem;
}
.m-streak-num {
    font-family: var(--font-heading);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff, #cbb8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 20px rgba(139, 108, 240, 0.35);
}
.m-streak-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: #36d3a0;
    padding-left: 0.28em;
}

/* week strip */
.m-week {
    display: flex;
    gap: 0.42rem;
    align-items: center;
    margin-bottom: 1rem;
}
.m-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.m-day span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.m-day i {
    font-style: normal;
    font-size: 0.5rem;
    font-weight: 600;
    color: #6b678a;
}
.m-day.on span { background: #36d3a0; box-shadow: 0 0 6px rgba(54, 211, 160, 0.5); }
.m-day.on i { color: #8f8bb0; }
.m-day.today span {
    background: transparent;
    border: 2px solid #36d3a0;
    width: 9px; height: 9px;
}
.m-day.today i { color: #36d3a0; }

/* pledge card */
.m-pledge {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.7rem;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    margin-bottom: 0.6rem;
}
.m-pledge-badge {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06281d;
    background: linear-gradient(150deg, #4ff0b8, #24bd8b);
    box-shadow: 0 0 14px rgba(54, 211, 160, 0.5);
}
.m-pledge-txt {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}
.m-pledge-txt strong {
    font-size: 0.72rem;
    font-weight: 700;
    color: #f3f2f8;
}
.m-pledge-txt span {
    font-size: 0.6rem;
    color: #a5a1c2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-pledge-chev { color: #6b678a; display: flex; flex-shrink: 0; }

/* urge button */
.m-urge {
    position: relative;
    width: 100%;
    margin-top: auto;
    border: none;
    cursor: default;
    border-radius: 16px;
    padding: 0.82rem 0;
    background: linear-gradient(180deg, #f05266 0%, #d3324a 52%, #a8182e 100%);
    box-shadow:
        0 8px 24px rgba(203, 44, 67, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 -6px 14px rgba(120, 8, 24, 0.5) inset;
    overflow: hidden;
}
.m-urge-glow {
    position: absolute;
    inset: 0 0 52% 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}
.m-urge-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

/* bottom dock */
.m-dock {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 0.7rem;
    padding: 0.5rem 0.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.m-tab { color: #57547a; display: flex; }
.m-tab.active {
    color: #36d3a0;
    filter: drop-shadow(0 0 6px rgba(54, 211, 160, 0.5));
}


/* ==========================================================================
   HONEST NOTE — "a tool, not a therapist"
   ========================================================================== */
.honest-note {
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    /* a faint red wash from the left signals "important, read this" */
    background:
        radial-gradient(ellipse 70% 130% at 0% 50%, rgba(242, 26, 26, 0.07), transparent 62%),
        var(--bg-raised);
    padding: 76px 0;
    overflow: hidden;
}

/* a thin red spine down the left edge of the band */
.honest-note::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
}

.honest-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
}

.honest-mark {
    flex-shrink: 0;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--primary);
    border: 1px solid rgba(242, 26, 26, 0.45);
    border-radius: var(--radius-md);
    background: rgba(242, 26, 26, 0.08);
    box-shadow: 0 0 34px rgba(242, 26, 26, 0.14), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.honest-kicker {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.honest-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.02;
    margin-bottom: 0.7rem;
}

.honest-note p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 68ch;
}

.honest-note strong { color: #fff; }

@media (max-width: 560px) {
    .honest-container { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
}

/* small line under forms */
.form-note {
    margin-top: 1.1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   FINAL CTA — LOCK IN
   ========================================================================== */
.section-cta {
    background: var(--bg-base);
    border-top: 1px solid var(--border-color);
    padding: 120px 0 110px;
}

/* editorial close: giant type up top, a full-width base row (copy + badges)
   grounded by a rule — fills the width so it never reads as empty */
.cta-inner { max-width: 1040px; }

.cta-kicker-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.4rem;
}

.cta-kicker {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
}

.cta-rule {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.cta-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(4rem, 13vw, 9.5rem);
    line-height: 0.9;
    letter-spacing: 0.005em;
    margin-bottom: 2.6rem;
}

.cta-title .accent { color: var(--primary); }

.cta-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.6rem 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.2rem;
}

.cta-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 440px;
    margin: 0;
}

/* Store badges */
.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-store { margin: 0.25rem 0 1.9rem; }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 200px;
    background-color: rgba(12, 12, 12, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.store-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-badge-disabled {
    opacity: 0.55;
    cursor: default;
}

.store-text { display: flex; flex-direction: column; text-align: left; }

.store-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.store-main {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: #030303;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand { max-width: 320px; }

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.footer-links { display: flex; gap: 2rem; }

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-link:hover { color: #fff; }

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   SCROLL REVEAL & MOTION SAFETY
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    /* gentle rise — a big 30px jump read as "popping"; keep it subtle */
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* tool cards cascade left-to-right within each row instead of popping in
   as two abrupt blocks */
.tools-grid .scroll-reveal:nth-child(3n+2) { transition-delay: 0.07s; }
.tools-grid .scroll-reveal:nth-child(3n+3) { transition-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .hero { padding-top: 130px; }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }

    .hero-proof { justify-content: center; }

    .section-head { flex-direction: column; gap: 1rem; }

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

    /* head-on device when it sits centered under the copy */
    .phone { transform: rotateY(0) rotateX(0) rotateZ(0); }
}

@media (max-width: 640px) {
    html { font-size: 14.5px; }

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

    /* store badges sit side by side on the phone, not stacked */
    .store-buttons { flex-wrap: nowrap; gap: 0.6rem; }
    .store-badge { min-width: 0; flex: 1; gap: 0.5rem; padding: 0.55rem 0.7rem; }
    .store-badge svg { width: 20px; height: 20px; }
    .store-sub { font-size: 0.56rem; }
    .store-main { font-size: 0.82rem; }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* ==========================================================================
   LEGAL PAGE — privacy / terms / clinical disclaimer
   ========================================================================== */
.legal-body { background-color: var(--bg-base); }

.legal-main {
    padding: 150px 0 90px;
    position: relative;
}

.legal-hero {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.legal-kicker {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    border: 1px solid rgba(242, 26, 26, 0.4);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.4rem;
}

.legal-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.legal-lede {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 60ch;
}

.legal-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 820px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 3.5rem;
    border: 1px solid rgba(242, 26, 26, 0.28);
    border-radius: var(--radius-md);
    background-color: rgba(242, 26, 26, 0.05);
}

.legal-note-mark {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--primary);
    border: 1px solid rgba(242, 26, 26, 0.5);
    border-radius: 6px;
}

.legal-note p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* two-column: sticky nav + document stream */
.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: sticky;
    top: 110px;
    grid-column: 1;
    grid-row: 1 / span 3;
}

.legal-nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-left: 2px solid var(--border-color);
    transition: var(--transition);
}

.legal-nav-link:hover {
    color: #fff;
    border-left-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.legal-doc {
    grid-column: 2;
    max-width: 720px;
    /* global html scroll-padding-top already offsets for the header */
    scroll-margin-top: 8px;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3.5rem;
}

.legal-doc:last-child { border-bottom: none; margin-bottom: 0; }

.legal-doc-head { margin-bottom: 1.75rem; }

.legal-doc-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 0.5rem;
}

.legal-doc-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.legal-h {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 0.6rem;
}

.legal-p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-p a,
.legal-doc a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--primary);
}

.legal-p strong { color: #fff; font-weight: 600; }

/* plain-language summary callout (replaces the old draft warning) */
.legal-summary {
    max-width: 820px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 3.5rem;
    border: 1px solid var(--border-color);
    border-left: 3px solid #36d3a0;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
}

.legal-summary h2 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #36d3a0;
    margin-bottom: 1rem;
}

/* bulleted lists inside documents */
.legal-ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.legal-ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 9px;
    height: 2px;
    background-color: var(--primary);
}

.legal-summary .legal-ul li { font-size: 0.96rem; }
.legal-ul strong { color: #fff; font-weight: 600; }

/* small tag to flag where data lives */
.legal-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.16rem 0.5rem;
    border-radius: var(--radius-full);
    vertical-align: middle;
    margin-left: 0.15rem;
}

.legal-tag-stays {
    color: #36d3a0;
    background-color: rgba(54, 211, 160, 0.12);
    border: 1px solid rgba(54, 211, 160, 0.35);
}

.legal-tag-leaves {
    color: #f0a24b;
    background-color: rgba(240, 162, 75, 0.12);
    border: 1px solid rgba(240, 162, 75, 0.35);
}

@media (max-width: 860px) {
    .legal-main { padding-top: 120px; }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .legal-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        grid-column: 1;
        grid-row: auto;
        margin-bottom: 2.5rem;
    }

    .legal-nav-link {
        border-left: none;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-full);
        padding: 0.5rem 1rem;
    }

    .legal-nav-link:hover { border-color: var(--primary); }

    .legal-doc { grid-column: 1; }
}

/* ==========================================================================
   PREMIUM POLISH — texture, atmosphere, micro-interactions
   Layered on top of the Swiss/brutalist base without changing its bones.
   ========================================================================== */

/* Film grain — a faint static texture over the whole page for depth */
.grain {
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero atmosphere — a soft red glow that slowly breathes behind the type */
.hero { position: relative; }

.hero-aura {
    position: absolute;
    top: 34%;
    left: 6%;
    width: 640px;
    height: 640px;
    max-width: 82vw;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(242, 26, 26, 0.18), transparent 60%);
    filter: blur(34px);
    pointer-events: none;
    z-index: 0;
    animation: aura-breathe 9s ease-in-out infinite;
}

@keyframes aura-breathe {
    0%, 100% { opacity: 0.65; transform: translateY(-50%) scale(1); }
    50%      { opacity: 1;    transform: translateY(-50%) scale(1.09); }
}

.hero-container { position: relative; z-index: 1; }

/* Hero scroll cue — a thin line with a red pulse travelling down it */
.hero-scroll {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    z-index: 2;
}

.hero-scroll-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.hero-scroll:hover .hero-scroll-label { color: var(--text-secondary); }

.hero-scroll-line {
    position: relative;
    width: 1px;
    height: 46px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.hero-scroll-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(var(--primary), transparent);
    animation: scroll-travel 2.1s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes scroll-travel {
    0%   { transform: translateY(-110%); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(230%); opacity: 0; }
}

/* Tool cards — a red rule sweeps across the top edge on hover */
.tool-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 55%), var(--bg-card);
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card:hover::before { transform: scaleX(1); }

/* Primary buttons — a light sheen sweeps across on hover */
.btn-primary { position: relative; overflow: hidden; }

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
    transform: translateX(-130%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn-primary:hover::after { transform: translateX(130%); }

/* Footer links — underline draws in from the left */
.footer-link { position: relative; }

.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover::after { transform: scaleX(1); }

/* Keyboard focus — visible red ring for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Editorial hairline above the section header (Swiss structure) */
.section-head {
    border-top: 1px solid var(--border-color);
    padding-top: 2.4rem;
}

/* Header gains weight once you scroll past the hero top */
.header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(5, 5, 5, 0.92);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 991px) {
    /* the cue sits at the very bottom of a tall stacked hero — hide it */
    .hero-scroll { display: none; }
    .hero-aura { left: 50%; transform: translate(-50%, -50%); }
    @keyframes aura-breathe {
        0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
        50%      { opacity: 0.9; transform: translate(-50%, -50%) scale(1.09); }
    }

    /* closing CTA: copy stacks above the badges */
    .cta-foot { flex-direction: column; align-items: flex-start; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-aura,
    .hero-scroll-line::after { animation: none; }
}

/* ==========================================================================
   MICRO-INTERACTIONS — logo hover + active nav state
   ========================================================================== */
.logo { transition: opacity 0.25s ease; }
.logo:hover { opacity: 0.9; }

.logo-img {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.logo:hover .logo-img {
    transform: translateY(-2px) rotate(-3deg);
    box-shadow: 0 6px 18px rgba(242, 26, 26, 0.28);
    border-color: rgba(242, 26, 26, 0.5);
}

/* legal sticky nav — highlight the section you're reading (scroll-spy) */
.legal-nav-link.active {
    color: #fff;
    border-left-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.03);
}

@media (max-width: 860px) {
    .legal-nav-link.active {
        border-color: var(--primary);
        color: #fff;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
/* skip-to-content link: hidden until keyboard-focused */
.skip-link {
    position: fixed;
    top: -120px;
    left: 1rem;
    z-index: 1000;
    padding: 0.7rem 1.1rem;
    background: #fff;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* pause the marquee on hover/focus (WCAG 2.2.2, alongside reduced-motion) */
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
    animation-play-state: paused;
}

/* white-on-red button contrast: deepen the red so it clears WCAG AA (4.5:1) */
.btn-primary { background-color: hsl(0, 88%, 45%); }
.btn-primary:hover { background-color: hsl(0, 88%, 40%); }
