/* ============================================
   RadarRadar — Radar Intelligence
   Brand-aligned styles
   ============================================ */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .7; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
em { font-style: italic; }

/* ---------- Tokens (from brand guide) ---------- */
:root {
    --black: #000000;
    --dark-grey: #424242;
    --grey: #797979;
    --light-grey: #AAAAAA;
    --extra-light-grey: #D6D6D6;
    --white: #FFFFFF;
    --bg-soft: #f7f7f7;

    /* Secondary palette */
    --blue: #00A2FF;
    --mint: #35E7CA;
    --green: #3ED872;
    --orange: #FAB032;
    --red: #FF364E;
    --purple: #F25FDE;

    --font-mono: 'JetBrains Mono', 'NB International Pro Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;

    --container: 1240px;
    --gutter: clamp(20px, 4vw, 48px);

    --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6,
.eyebrow, .logo-text, .stat-value, .impact-value,
.shift-from, .shift-to, .module-card h3, .layer-num {
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1, h2, h3 { line-height: 1.1; margin: 0; }
h4, h5 { line-height: 1.3; margin: 0; }

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 500; }
h5 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey);
    margin: 0 0 1.25rem 0;
    font-weight: 500;
}
.eyebrow-light { color: var(--light-grey); }

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

.section {
    padding: clamp(64px, 9vw, 130px) 0;
    position: relative;
}
.section-grey { background: var(--bg-soft); }
.section-dark {
    background: var(--black);
    color: var(--white);
}
.section-dark .eyebrow { color: var(--light-grey); }

.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head-centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--dark-grey);
    margin-top: 1.25rem;
    line-height: 1.55;
}
.section-dark .section-lead { color: var(--extra-light-grey); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 64px);
}
@media (max-width: 780px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.btn-primary:hover { background: var(--dark-grey); border-color: var(--dark-grey); opacity: 1; }
.section-dark .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.section-dark .btn-primary:hover { background: var(--extra-light-grey); border-color: var(--extra-light-grey); }
.btn-ghost {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}
.btn-ghost:hover { background: var(--black); color: var(--white); opacity: 1; }
.section-dark .btn-ghost { color: var(--white); border-color: var(--white); }
.section-dark .btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-light {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.btn-light:hover { background: transparent; color: var(--white); opacity: 1; }

/* ---------- Header (mirrors live radarradar.com structure) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 80px;
    padding: 0;
}
.site-header.scrolled .header__bg { box-shadow: 0 1px 0 rgba(255,255,255,0.06); }

.header__bg {
    position: absolute;
    inset: 0;
    background: var(--black);
    z-index: -1;
    transition: box-shadow var(--transition);
}

/* Logo holder */
.header__logo-holder {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    flex-shrink: 0;
    text-decoration: none;
    z-index: 1;
}
.header__logo {
    height: 121px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navigation holder */
.header__navigation-holder {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-shrink: 0;
}

.header__navigation {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.6vw, 40px);
    padding: 0 clamp(20px, 3vw, 36px) 0 0;
    margin: 0;
    list-style: none;
}
.header__navigation-item { list-style: none; }
.header__navigation-item__link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition);
    padding: 8px 0;
}
.header__navigation-item__link:hover { opacity: 0.65; }

/* Hamburger holder (Book consult + hamburger) */
.header__hamburger-holder {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* Book consult mint pill */
.header__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    min-width: 180px;
    color: var(--black);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
}
.header__cta .button-bg {
    position: absolute;
    inset: 0;
    background: var(--mint);
    z-index: -1;
    transition: background var(--transition);
}
.header__cta:hover .button-bg { background: #2dd1b6; }
.header__cta span { position: relative; }

/* Hamburger — 2 lines, white square */
.header__hamburger {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}
.header__hamburger:hover { background: #f0f0f0; }
.header__hamburger-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 1.5px;
    background: var(--black);
    transform: translate(-50%, 0%);
    transition: transform .3s ease, opacity .25s ease;
}
.header__hamburger-line:nth-child(1) { transform: translate(-50%, 0%) translate(0px, -5px); }
.header__hamburger-line:nth-child(2) { transform: translate(-50%, 0%) translate(0px, 5px); }
.header__hamburger.active .header__hamburger-line:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.header__hamburger.active .header__hamburger-line:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 880px) {
    .site-header { height: 64px; }
    .header__navigation { display: none; }
    .header__cta { min-width: 0; padding: 0 22px; font-size: 0.82rem; }
    .header__hamburger { width: 64px; height: 64px; }
    .logo__word { height: 18px; }
    .logo__icon { width: 28px; height: 28px; }
}
@media (max-width: 520px) {
    .header__cta { display: none; }
}

/* ---------- Full-page overlay menu ---------- */
.overlay-menu {
    position: fixed;
    inset: 0;
    background: #fafafa;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    overflow: hidden;
}
.overlay-menu.open {
    opacity: 1;
    visibility: visible;
}
.overlay-menu[aria-hidden="false"] { /* same as .open */ }

.overlay-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px var(--gutter) 80px;
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: stretch;
    min-height: 100%;
    position: relative;
}

.overlay-nav { display: contents; }
.overlay-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.overlay-list > li { list-style: none; }
.overlay-link {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    color: var(--black);
    letter-spacing: -0.005em;
    padding: 14px 0;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
}
.overlay-link:hover { opacity: 0.65; }
.overlay-toggle {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    color: var(--black);
}
.overlay-chev {
    display: inline-block;
    transition: transform .3s ease;
    font-weight: 300;
    line-height: 1;
}
.overlay-group.active .overlay-toggle {
    border-bottom: 1px solid var(--black);
    padding-bottom: 4px;
}
.overlay-group.active .overlay-chev { transform: rotate(90deg); }

/* Sub column — vertically centers the open submenu */
.overlay-sub-wrap {
    border-left: 1px solid var(--extra-light-grey);
    padding-left: clamp(20px, 4vw, 56px);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color .2s ease;
}
/* When no submenu is open, hide the divider line */
.overlay-menu:not(.has-expanded) .overlay-sub-wrap {
    border-left-color: transparent;
}
.overlay-sub {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 14px 0;
    margin: 0;
    animation: overlayFade .3s ease-out;
}
/* The HTML [hidden] attribute must win against display:flex above */
.overlay-sub[hidden] { display: none; }
.overlay-sub li { list-style: none; }
.overlay-sub a {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: var(--black);
    padding: 10px 0;
    display: inline-block;
}
.overlay-sub a:hover { opacity: 0.6; }

@keyframes overlayFade {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Language switcher bottom-right */
.overlay-langs {
    position: absolute;
    right: var(--gutter);
    bottom: 40px;
    display: flex;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}
.overlay-lang {
    color: var(--grey);
    transition: color var(--transition);
}
.overlay-lang:hover, .overlay-lang.active { color: var(--black); opacity: 1; }
.overlay-lang.active { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 880px) {
    .overlay-inner {
        grid-template-columns: 1fr;
        padding-top: 100px;
        padding-bottom: 120px;
    }
    .overlay-sub-wrap {
        border-left: none;
        border-top: 1px solid var(--extra-light-grey);
        padding-left: 0;
        padding-top: 20px;
        margin-top: 16px;
    }
    .overlay-sub-wrap:empty { display: none; }
}
@media (max-width: 520px) {
    .overlay-langs { right: var(--gutter); bottom: 24px; }
}

/* When overlay is open: prevent body scroll */
/* Menu is an overlay — the page underneath stays scrollable */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 120px 0 100px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,162,255,0.08), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(53,231,202,0.06), transparent 50%),
        linear-gradient(180deg, #000 0%, #0a0a0a 60%, #000 100%);
}
.hero-bg::before {
    content: "";
    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: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.6) 100%);
}

.hero-inner { position: relative; z-index: 1; max-width: 1100px; }
.hero .eyebrow { color: var(--light-grey); margin-bottom: 1.5rem; }
.hero-title {
    font-size: clamp(2.2rem, 5.8vw, 4.4rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}
.hero-lead {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.55;
    color: var(--extra-light-grey);
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-cta .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.hero-cta .btn-primary:hover { background: var(--extra-light-grey); border-color: var(--extra-light-grey); }
.hero-cta .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.hero-cta .btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 48px);
    max-width: 720px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.01em;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--light-grey);
    line-height: 1.4;
}
@media (max-width: 600px) {
    .hero-stats { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
}

.hero-scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--light-grey);
    z-index: 2;
}
.hero-scroll-line {
    width: 48px;
    height: 1px;
    background: var(--light-grey);
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateX(-100%);
    animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
.hero-scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
}
@media (max-width: 760px) { .hero-scroll { display: none; } }

/* ---------- Problem section ---------- */
.problem-grid { align-items: start; }
.problem-grid .prose {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--extra-light-grey);
}
.pull-quote {
    margin: 0;
    padding: 32px;
    border-left: 2px solid var(--white);
    background: rgba(255,255,255,0.03);
}
.pull-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.45;
    color: var(--white);
    font-weight: 300;
}

/* ---------- Layer cards ---------- */
.layer-grid { margin-top: 24px; }
.layer-card {
    padding: clamp(28px, 4vw, 48px);
    background: var(--white);
    border: 1px solid var(--extra-light-grey);
    border-radius: 4px;
    transition: all var(--transition);
    position: relative;
}
.layer-card:hover { border-color: var(--black); transform: translateY(-4px); }
.layer-card-accent {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.layer-num {
    font-size: 0.85rem;
    color: var(--grey);
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}
.layer-card-accent .layer-num { color: var(--light-grey); }
.layer-card h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.layer-sub {
    display: block;
    color: var(--grey);
    font-size: 0.95rem;
    margin-top: 6px;
}
.layer-card-accent .layer-sub { color: var(--light-grey); }
.layer-card p {
    color: var(--dark-grey);
    font-size: 1.02rem;
    margin-bottom: 1em;
}
.layer-card-accent p { color: var(--extra-light-grey); }

/* ---------- Shifts ---------- */
.shifts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 900px) { .shifts { grid-template-columns: 1fr; } }
.shift { padding-top: 24px; border-top: 1px solid var(--extra-light-grey); }
.shift-arrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    flex-wrap: wrap;
}
.shift-from { color: var(--light-grey); text-decoration: line-through; text-decoration-thickness: 1px; }
.shift-to { color: var(--black); font-weight: 500; }
.shift-line {
    flex: 0 0 auto;
    width: 24px;
    height: 1px;
    background: var(--black);
    position: relative;
}
.shift-line::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--black);
    border-top: 1px solid var(--black);
    transform: rotate(45deg);
}
.shift p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-grey);
}

/* ---------- Modules grid ---------- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--extra-light-grey);
    border: 1px solid var(--extra-light-grey);
}
@media (max-width: 900px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .modules-grid { grid-template-columns: 1fr; } }

.module-card {
    background: var(--white);
    padding: clamp(28px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background var(--transition);
}
.module-card:hover { background: var(--bg-soft); }
.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}
.module-icon svg { width: 22px; height: 22px; }
.module-icon[data-color="blue"]   { background: rgba(0,162,255,0.12);  color: #0080cc; }
.module-icon[data-color="mint"]   { background: rgba(53,231,202,0.15); color: #1ba38b; }
.module-icon[data-color="orange"] { background: rgba(250,176,50,0.15); color: #c47e10; }
.module-icon[data-color="green"]  { background: rgba(62,216,114,0.15); color: #1c9c4a; }
.module-icon[data-color="purple"] { background: rgba(242,95,222,0.15); color: #b630a3; }

.module-card h3 {
    font-size: 1.15rem;
    line-height: 1.3;
}
.module-card p {
    color: var(--dark-grey);
    font-size: 0.98rem;
    line-height: 1.55;
}

.module-card-cta {
    background: var(--black);
    color: var(--white);
    justify-content: space-between;
}
.module-card-cta:hover { background: #1a1a1a; }
.module-card-cta h3 { color: var(--white); }
.module-card-cta p { color: var(--extra-light-grey); }
.module-card-cta .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Personas ---------- */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 900px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .persona-grid { grid-template-columns: 1fr; } }
.persona {
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.18);
}
.persona h4 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 500;
}
.persona p {
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--extra-light-grey);
}

/* ---------- Impact ---------- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 48px);
    margin-bottom: 48px;
}
@media (max-width: 780px) { .impact-grid { grid-template-columns: 1fr; } }
.impact-card {
    text-align: center;
    padding: clamp(28px, 4vw, 48px) 24px;
    border: 1px solid var(--extra-light-grey);
    border-radius: 4px;
    background: var(--white);
}
.impact-value {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 400;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.impact-card h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.impact-card p { color: var(--dark-grey); font-size: 0.95rem; }
.impact-note {
    text-align: center;
    font-style: italic;
    color: var(--grey);
    font-size: 0.95rem;
}

/* ---------- Position section ---------- */
.section-position { text-align: center; padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }
.position-statement {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    max-width: 1000px;
    margin: 1.5rem auto 1.75rem;
    color: var(--white);
}
.position-statement .accent { color: var(--white); border-bottom: 2px solid var(--white); padding-bottom: 4px; }
.position-sub {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--extra-light-grey);
    line-height: 1.6;
}

/* ---------- CTA section ---------- */
.cta-section {
    background: var(--bg-soft);
    padding: clamp(64px, 10vw, 120px) 0;
}
.cta-inner {
    text-align: center;
    max-width: 760px;
}
.cta-inner h2 { margin-bottom: 1.25rem; }
.cta-inner p {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 2rem;
}
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer (mirrors live radarradar.com structure) ---------- */
.module-margin {
    background: var(--black);
    color: var(--extra-light-grey);
    padding: clamp(60px, 8vw, 96px) clamp(20px, 4vw, 64px) 0;
}

.footer {
    display: grid;
    grid-template-columns: 1.1fr 2.4fr;
    gap: clamp(40px, 6vw, 96px);
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 900px) { .footer { grid-template-columns: 1fr; } }

/* Left column — primary nav list */
.footer__column--left .footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer__list-item { list-style: none; }
.footer__list-item__link {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--white);
    letter-spacing: 0.01em;
    transition: opacity var(--transition);
}
.footer__list-item__link:hover { opacity: 0.6; }
.footer__sub-list {
    list-style: none;
    padding: 10px 0 4px 28px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__sub-list-item { list-style: none; }
.footer__sub-list-item__link {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    color: var(--extra-light-grey);
    transition: opacity var(--transition);
}
.footer__sub-list-item__link:hover { opacity: 0.65; }

/* Column holder — middle + right side-by-side, both stretch full height */
.footer__column-holder {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: stretch;
}
@media (max-width: 720px) { .footer__column-holder { grid-template-columns: 1fr; } }

/* Middle column: contact at top, newsletter middle, language pinned to bottom */
.footer__column--middle {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
}
.footer__contact-content { display: flex; flex-direction: column; gap: 4px; }
.footer__contact-content__title {
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--white);
    font-size: 1rem;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}
.footer__contact-content__text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--extra-light-grey);
    margin: 0;
    transition: opacity var(--transition);
    line-height: 1.5;
}
a.footer__contact-content__text:hover { opacity: 0.7; }

/* LinkedIn — plain icon, no circle border */
.footer__contact-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.footer__social-icon-holder {
    display: inline-flex;
    width: 24px;
    height: 26px;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}
.footer__social-icon-holder:hover { opacity: 0.7; }
.footer__social-icon {
    width: 24px;
    height: 26px;
    filter: invert(1) brightness(2);
}

/* Newsletter — rounded pill input */
.footer__newsletter { margin-bottom: 32px; max-width: 360px; }
.footer__newsletter-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--white);
    margin: 0 0 16px;
    letter-spacing: 0.01em;
}
.footer__newsletter form { display: flex; gap: 0; width: 100%; }
.contact-form__input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--light-grey);
    border-radius: 999px;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1rem;
    padding: 14px 24px;
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}
.contact-form__input::placeholder { color: var(--light-grey); }
.contact-form__input:focus { border-color: var(--white); }

/* Language switcher — pinned at the bottom of middle column */
.footer__links-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
}
.footer__links-list__language-switch-holder {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.footer__links-list__language-switch {
    color: var(--light-grey);
    transition: color var(--transition);
    padding-bottom: 2px;
}
.footer__links-list__language-switch:hover,
.footer__links-list__language-switch.active {
    color: var(--white);
    opacity: 1;
}
.footer__links-list__language-switch.active {
    border-bottom: 1px solid var(--white);
}

/* Right column — logo aligned bottom-right */
.footer__column--right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
}
.footer__column--right a { text-decoration: none; display: inline-flex; }
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer__logo .logo__word { height: 38px; }
.footer__logo .logo__word path { fill: #fff; }
.footer__logo .logo__icon {
    width: 56px;
    height: 56px;
    margin: 0 6px;
    display: block;
    object-fit: contain;
}
@media (max-width: 720px) {
    .footer__column--right { justify-content: flex-start; }
}

/* Subfooter */
.subfooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0 32px;
    border-top: 1px solid var(--dark-grey);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--grey);
    letter-spacing: 0.03em;
}
.subfooter-column { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.subfooter__text {
    color: var(--grey);
    margin: 0;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}
.subfooter__link { transition: color var(--transition); }
.subfooter__link:hover { color: var(--white); opacity: 1; }
.subfooter__text--certified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}
.subfooter__text--certified:hover { color: var(--white); opacity: 1; }
.subfooter__iso-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}


/* ---------- Ray interactive demo ---------- */
.ray-demo {
    position: relative;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--extra-light-grey);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.25);
}

.ray-demo-screenshot {
    width: calc(100% - 380px);
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1515 / 1026;
}
.ray-demo-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.ray-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background: #171717;
    color: var(--white);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #2a2a2a;
    min-height: 0;
}
.ray-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #2a2a2a;
    background: #171717;
}
.ray-panel-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--white);
    letter-spacing: 0.02em;
}
.ray-panel-reset {
    color: var(--light-grey);
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-flex;
}
.ray-panel-reset:hover { color: var(--white); background: #1a1a1a; }

.ray-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 18px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    min-height: 0;
}
.ray-messages::-webkit-scrollbar { width: 6px; }
.ray-messages::-webkit-scrollbar-track { background: transparent; }
.ray-messages::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 6px; }

.ray-msg {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 12px;
    max-width: 100%;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    animation: rayFadeIn .35s ease-out;
}
.ray-msg-user { max-width: 92%; }
@keyframes rayFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ray-msg-user {
    align-self: flex-end;
    background: #1f4e3a;
    color: #e8f5ed;
    border-bottom-right-radius: 4px;
}
.ray-msg-ai {
    align-self: flex-start;
    background: transparent;
    color: var(--extra-light-grey);
    padding: 4px 0;
    max-width: 100%;
}
.ray-msg-ai p { margin: 0 0 8px; }
.ray-msg-ai p:last-child { margin-bottom: 0; }
.ray-msg-ai strong { color: var(--white); font-weight: 500; }
.ray-msg-ai .ray-soft { color: var(--light-grey); font-size: 0.88rem; margin-top: 14px; }

.ray-ol {
    margin: 0 0 8px;
    padding-left: 18px;
    color: var(--white);
}
.ray-ol li {
    margin: 8px 0;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    line-height: 1.4;
}
.ray-suggest, .ray-chip {
    font-family: var(--font-serif);
    font-size: inherit;
    color: var(--white);
    text-align: left;
    background: none;
    border: none;
    line-height: 1.4;
    cursor: pointer;
    transition: color var(--transition);
    padding: 2px 0;
}
.ray-suggest:hover { color: var(--mint); }

.ray-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 6px 0 0;
    padding: 0;
}
.ray-chips li { list-style: none; }
.ray-chip {
    font-size: 0.85rem;
    color: var(--white);
    padding-left: 14px;
    position: relative;
}
.ray-chip::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--grey);
}
.ray-chip:hover { color: var(--mint); }

.ray-typing {
    display: inline-flex;
    gap: 4px;
    padding: 12px 14px;
    align-items: center;
}
.ray-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--light-grey);
    animation: rayDot 1.2s infinite ease-in-out;
}
.ray-typing span:nth-child(2) { animation-delay: 0.15s; }
.ray-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes rayDot {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40%           { opacity: 1;   transform: translateY(-3px); }
}

.ray-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin: 8px 14px 0;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    transition: border-color var(--transition);
}
.ray-input:focus-within { border-color: #555; }
.ray-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    padding: 4px 0;
}
.ray-input input::placeholder { color: var(--grey); }
.ray-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.ray-send:hover { background: var(--mint); }

.ray-disclaimer {
    text-align: right;
    padding: 8px 18px 14px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--grey);
    letter-spacing: 0.04em;
}

.ray-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 8px 0 4px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--extra-light-grey);
    table-layout: fixed;
}
.ray-table th,
.ray-table td {
    text-align: left;
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid #1c1c1c;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.ray-table th:last-child,
.ray-table td:last-child { padding-right: 0; }
.ray-table th {
    font-weight: 500;
    color: var(--light-grey);
    text-transform: uppercase;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
}
.ray-table tbody tr:last-child td { border-bottom: none; }
.ray-table tbody tr:hover td { color: var(--white); }
.ray-msg-ai a { color: var(--mint); border-bottom: 1px dashed currentColor; }
.ray-msg-ai a:hover { opacity: 0.8; }

.ray-footnote {
    text-align: center;
    margin-top: 28px;
    color: var(--grey);
    font-size: 0.92rem;
    font-style: italic;
}

@media (max-width: 880px) {
    .ray-demo-screenshot { width: 100%; aspect-ratio: 1515 / 1026; }
    .ray-panel {
        position: static;
        width: 100%;
        height: 520px;
        border-left: none;
        border-top: 1px solid #222;
    }
    .ray-messages { max-height: none; }
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Moat statement: vertical 4-step flow ---------- */
.moat-flow {
    list-style: none;
    padding: 0;
    margin: clamp(40px, 6vw, 64px) auto 0;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.moat-step {
    list-style: none;
    text-align: center;
    padding: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 36px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: #161616;
    transition: background var(--transition), border-color var(--transition);
}
.moat-step:hover {
    background: #1d1d1d;
    border-color: rgba(255,255,255,0.28);
}

.moat-step-accent {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.moat-step-accent:hover {
    background: var(--white);
    border-color: var(--white);
}

.moat-step-title {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    color: var(--white);
    margin: 0 0 10px;
    line-height: 1.2;
}
.moat-step-accent .moat-step-title { color: var(--black); }

.moat-step-num {
    color: var(--light-grey);
    margin-right: 6px;
    font-weight: 400;
}
.moat-step-accent .moat-step-num { color: var(--black); }

.moat-step-sub {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--extra-light-grey);
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.moat-step-accent .moat-step-sub { color: var(--dark-grey); }

.moat-chev {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-grey);
    padding: 14px 0;
}
.moat-chev svg {
    width: 22px;
    height: 22px;
    display: block;
}

.moat-footnote {
    margin: clamp(28px, 4vw, 44px) auto 0;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--light-grey);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 640px;
}

/* ---------- Merged sections: How Ray fits + Proof ---------- */
.modules-strip {
    margin-top: clamp(48px, 6vw, 80px);
}
.modules-strip-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
    margin: 0 0 20px;
    text-align: center;
}

.proof-quote {
    margin: clamp(56px, 7vw, 88px) auto;
    max-width: 820px;
    padding: 0 24px;
    text-align: center;
    border-left: none;
}
.proof-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.4;
    color: var(--white);
    font-weight: 300;
    margin: 0;
}

#proof .position-statement {
    margin-top: clamp(48px, 6vw, 80px);
    text-align: center;
}

/* ---------- Module "Coming soon" badge ---------- */
.module-card { position: relative; }
.module-card-soon { /* subtle visual hint that it isn't live yet */ }
.module-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 1;
}
.module-card-soon:hover .module-badge { background: var(--dark-grey); }

/* ---------- First demo section: tighter top so full demo fits on 13" laptops ---------- */
#try-ray {
    padding-top: clamp(28px, 3vw, 56px);
}
#try-ray .section-head {
    margin-bottom: clamp(24px, 3vw, 40px);
}
#try-ray .section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}
#try-ray .section-lead {
    font-size: clamp(0.98rem, 1.4vw, 1.1rem);
    margin-top: 0.75rem;
}
#try-ray .ray-footnote {
    margin-top: 20px;
}

/* ---------- Scroll indicator inside the (light) demo section ---------- */
#try-ray .hero-scroll { color: var(--grey); bottom: 80px; }
#try-ray .hero-scroll-line { background: var(--extra-light-grey); }
#try-ray .hero-scroll-line::after { background: va
/* ---------- "Integrated" badge variant ---------- */
.module-badge-live {
    background: var(--green);
    color: #0d3a1e;
}
.module-card-live:hover .module-badge-live { background: #2bc762; }


/* ---------- Trusted Decision Layer — 2x2 of module-style cards with connectors ---------- */
#stack { background: var(--bg-soft); }

.stack-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 28px;
    row-gap: 28px;
    max-width: 880px;
    margin: clamp(40px, 5vw, 56px) auto 0;
    position: relative;
}

/* Explicit grid placement so the order on screen is: top-left (01), bottom-left (02), top-right (03), bottom-right (04) */
.sc-01 { grid-column: 1; grid-row: 1; }
.sc-02 { grid-column: 1; grid-row: 2; }
.sc-03 { grid-column: 2; grid-row: 1; }
.sc-04 { grid-column: 2; grid-row: 2; }

/* Center the text inside each card */
.stack-cards .module-card {
    text-align: center !important;
    align-items: center !important;
    display: flex;
    flex-direction: column;
}
.stack-cards .module-card .module-icon {
    margin: 0 auto !important;
    align-self: center !important;
}
.stack-cards .module-card h3,
.stack-cards .module-card p {
    text-align: center !important;
    width: 100% !important;
    align-self: stretch !important;
    margin-left: auto;
    margin-right: auto;
}

/* Chevron connectors positioned in the gaps between cards */
.stack-conn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--extra-light-grey);
    z-index: 2;
}
.stack-conn svg { width: 14px; height: 14px; display: block; }

/* 01 → 02 (down between top-left and bottom-left) */
.stack-conn-1-2 {
    left: calc(25% - 18px);
    top: calc(50% - 18px);
}
/* 02 → 03 (across the middle, rotated to point right) */
.stack-conn-2-3 {
    left: calc(50% - 18px);
    top: calc(50% - 18px);
    transform: rotate(-90deg);
}
/* 03 → 04 (down between top-right and bottom-right) */
.stack-conn-3-4 {
    left: calc(75% - 18px);
    top: calc(50% - 18px);
}

.stack-footnote {
    margin: clamp(28px, 4vw, 44px) auto 0;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--grey);
    font-size: 0.98rem;
    max-width: 720px;
}

@media (max-width: 600px) {
    .stack-cards {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }
    .sc-01 { grid-column: 1; grid-row: 1; }
    .sc-02 { grid-column: 1; grid-row: 2; }
    .sc-03 { grid-column: 1; grid-row: 3; }
    .sc-04 { grid-column: 1; grid-row: 4; }
    .stack-conn { display: none; }
}
