/* ============================================================
   SINGLE PLAYER. public homepage (revision 3)
   Corrections pass: sharper, more restrained, more serious.
   Loaded only by website/index.html.
   ============================================================ */

:root {
    --bg:          #07090f;
    --bg-2:        #0c1019;
    --bg-3:        #131826;
    --ink:         #f3f1ec;
    --ink-dim:     #9aa0b0;
    --ink-mute:    #5b6275;
    --rule:        #171b29;
    --rule-2:      #232a3c;

    --accent:      #e8b14a;        /* on-air amber. single accent */
    --accent-soft: rgba(232, 177, 74, .12);

    --serif:       'Newsreader', 'Times New Roman', Georgia, serif;
    --mono:        'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --sans:        'Inter', system-ui, -apple-system, sans-serif;

    --maxw:        1240px;
    --pad:         clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: italic; color: var(--accent); }

.bg-grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .045;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}
body > * { position: relative; z-index: 2; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ============ NAV ============ */
.nav {
    position: sticky; top: 0; z-index: 60;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(7, 9, 15, 0.78);
    border-bottom: 1px solid var(--rule);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto;
    padding: 1rem var(--pad);
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 1px;
    box-shadow: 0 0 12px rgba(232,177,74,.45);
}
.brand-name {
    font-family: var(--mono);
    font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 500; color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
.nav-links > a {
    font-family: var(--mono);
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-dim);
    transition: color .2s;
}
.nav-links > a:hover { color: var(--ink); }
.nav-login { color: var(--ink-mute) !important; }

.cta-mini {
    font-family: var(--mono);
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent);
    padding: .55rem 1rem;
    border: 1px solid rgba(232,177,74,.35);
    border-radius: 2px;
    transition: background .2s, border-color .2s;
    display: inline-flex; align-items: center; gap: .5rem;
    /* slow breathing glow so the button is noticed but not annoying */
    animation: cta-breathe 3.6s ease-in-out infinite;
}
.cta-mini:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    animation: none;
}
@keyframes cta-breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(232, 177, 74, 0);
        border-color: rgba(232, 177, 74, 0.35);
    }
    50% {
        box-shadow: 0 0 14px 2px rgba(232, 177, 74, 0.35);
        border-color: rgba(232, 177, 74, 0.75);
    }
}
.play-tri {
    width: 0; height: 0;
    border-left: 6px solid var(--accent);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.cta-pill {
    color: var(--bg) !important;
    background: var(--ink);
    padding: .65rem 1.3rem;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.cta-pill:hover { background: var(--accent); color: var(--bg) !important; }

/* EN / HE language toggle */
.lang-toggle {
    font-family: var(--mono);
    font-size: .7rem; letter-spacing: .08em;
    color: var(--ink-mute);
    padding: .5rem .75rem;
    border: 1px solid var(--rule-2);
    border-radius: 2px;
    display: inline-flex; align-items: center; gap: .35rem;
    transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle .lang-en,
.lang-toggle .lang-he {
    color: var(--ink-mute);
    transition: color .2s;
}
.lang-toggle .lang-en.active,
.lang-toggle .lang-he.active {
    color: var(--accent);
    font-weight: 600;
}
.lang-toggle .lang-sep { color: var(--rule-2); }

@media (max-width: 1100px) {
    .nav-links > a:not(.nav-login) { display: none; }
    .nav-login { display: none; }
}

/* ============ HERO ============ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(3.5rem, 6vw, 5.5rem) var(--pad) clamp(3rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--rule);
}
.hero-inner {
    max-width: none;
    margin: 0;
    padding: 0;
}
.hero-text {
    max-width: none;
    margin: 0;
    text-align: left;
    padding-bottom: 0;
}
.hero-ctas { justify-content: flex-start; }
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .hero-text { text-align: center; }
    .hero-ctas { justify-content: center; }
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -.022em;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.lede {
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    color: var(--ink-dim);
    max-width: 58ch;
    margin: 0 auto 2.2rem;
    line-height: 1.6;
}
.hero-ctas {
    display: inline-flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; justify-content: center;
}

.btn-primary {
    background: var(--accent);
    color: #0a0d14;
    padding: 1rem 1.9rem;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
    font-weight: 600;
    transition: transform .2s, box-shadow .25s, background .2s;
    display: inline-block;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -14px rgba(232,177,74,.45);
}
.btn-large { padding: 1.2rem 2.3rem; font-size: .82rem; }

.btn-ghost {
    font-family: var(--mono);
    font-size: .74rem; letter-spacing: .11em; text-transform: uppercase;
    color: var(--ink-dim);
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule-2);
    transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ----- hero shot: side-by-side with text ----- */
.hero-shot-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.hero-shot-wrap::before {
    content: '';
    position: absolute;
    left: 10%; right: 10%;
    top: 40%; bottom: -10%;
    background: radial-gradient(ellipse at center, rgba(232,177,74,.12), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}
.browser-frame {
    border: 1px solid var(--rule-2);
    background: var(--bg-2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 60px 120px -30px rgba(0,0,0,.8),
        0 30px 60px -30px rgba(232,177,74,.08),
        0 0 0 1px rgba(255,255,255,.02) inset;
}
.hero-frame { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.hero-frame:hover { transform: translateY(-4px); }

.browser-bar {
    display: flex; align-items: center; gap: .45rem;
    padding: .75rem 1rem;
    background: linear-gradient(180deg, #11151f, #0c0f18);
    border-bottom: 1px solid var(--rule);
}
.browser-bar .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #2a3043;
}
.browser-frame > img { width: 100%; height: auto; display: block; }

/* ============ SECTION COMMONS ============ */
section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-tag {
    font-family: var(--mono);
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.4rem;
    display: inline-block;
}
.section-h {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -.018em;
    max-width: 26ch;
    margin-bottom: 1.2rem;
    color: var(--ink);
}
.section-sub {
    color: var(--ink-dim);
    max-width: 62ch;
    font-size: 1rem;
    margin-bottom: 3.5rem;
}

/* ============ BUILT FOR / POSITIONING ============ */
.built-for { border-bottom: 1px solid var(--rule); }
.built-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.built-card {
    border: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    padding: 2.4rem 2rem 2.2rem;
    transition: border-color .25s;
}
.built-card:hover { border-color: var(--rule-2); }
.built-icon {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    font-family: var(--serif);
    font-size: 1.1rem; font-style: italic;
    color: var(--accent);
    border: 1px solid rgba(232,177,74,.35);
    border-radius: 50%;
    margin-bottom: 1.4rem;
}
.built-card h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.45rem;
    margin-bottom: .8rem;
    letter-spacing: -.01em;
    color: var(--ink);
}
.built-card p { color: var(--ink-dim); font-size: .96rem; line-height: 1.6; }
@media (max-width: 820px) { .built-grid { grid-template-columns: 1fr; } }

/* ============ CAPABILITIES ============ */
.capabilities { border-bottom: 1px solid var(--rule); }
.cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: .5rem;
}
.cap {
    padding: 1.8rem 1.6rem;
    border: 1px solid var(--rule);
    background: var(--bg-2);
    transition: border-color .25s, transform .25s;
}
.cap:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.cap-ico {
    width: 36px; height: 36px;
    color: var(--accent);
    margin-bottom: 1.1rem;
}
.cap-ico svg { width: 100%; height: 100%; }
.cap h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: .6rem;
    color: var(--ink);
    letter-spacing: -.008em;
}
.cap p { color: var(--ink-dim); font-size: .88rem; line-height: 1.55; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* ============ HOW IT WORKS ============ */
.how { border-bottom: 1px solid var(--rule); }
.flow { margin-top: 3.5rem; }
.flow + .flow { margin-top: 5rem; }
.flow-label {
    font-family: var(--mono);
    font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.flow-num { color: var(--accent); }

.flow-track {
    display: grid;
    grid-template-columns: 1fr auto 1.5fr auto 1fr;
    gap: 1.2rem;
    align-items: center;
}
.flow-step { min-width: 0; }
.flow-cap {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .14em;
    color: var(--ink-mute);
    margin-bottom: .7rem;
    text-align: center;
}
.flow-arrow {
    color: var(--accent);
    font-size: 1.6rem;
    text-align: center;
    align-self: center;
    padding-top: 1.4rem;
    opacity: .7;
}

/* source cards */
.source-card {
    background: var(--bg-2);
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    padding: 1.1rem 1.2rem 1.2rem;
    aspect-ratio: 4/3;
    display: flex; flex-direction: column; gap: .7rem;
    box-shadow: 0 20px 40px -25px rgba(0,0,0,.6);
}
.src-head { display: flex; align-items: center; gap: .7rem; }
.src-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1a1f2e;
    display: grid; place-items: center;
    font-size: 1rem; font-weight: 600;
    color: var(--ink);
    flex: none;
}
.src-avatar.x { background: #000; color: #fff; }
.src-avatar.tt { background: linear-gradient(135deg, #25f4ee, #fe2c55); color: #fff; }
.src-name { font-size: .9rem; font-weight: 500; color: var(--ink); }
.src-handle {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--ink-mute);
    margin-top: .15rem;
}
.src-text {
    font-size: .9rem;
    color: var(--ink);
    line-height: 1.5;
    flex: 1;
}
.src-meta {
    font-family: var(--mono);
    font-size: .68rem;
    color: var(--ink-mute);
    padding-top: .6rem;
    border-top: 1px solid var(--rule);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.x-card { border-left: 2px solid #ffffff22; }
.tt-card { border-left: 2px solid #fe2c55; }
.tt-thumb {
    flex: 1;
    background:
        radial-gradient(circle at 30% 40%, rgba(37,244,238,.28), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(254,44,85,.28), transparent 55%),
        #0e1320;
    border-radius: 4px;
    border: 1px solid var(--rule);
    min-height: 80px;
    position: relative;
}
.tt-thumb::after {
    content: '▶';
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: rgba(255,255,255,.65);
    font-size: 1.5rem;
}

/* system frame. bigger on the flows */
.browser-frame.mini {
    border-radius: 5px;
}
.browser-frame.mini .browser-bar { padding: .45rem .65rem; }
.browser-frame.mini .browser-bar .dot { width: 7px; height: 7px; }
.browser-frame.mini > img { aspect-ratio: 16/10; object-fit: cover; object-position: top; }

/* output card. built in HTML, no image needed */
.output-card {
    background: #000;
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 40px -25px rgba(0,0,0,.6);
    background:
        radial-gradient(ellipse at center, #1a2a4a 0%, #060912 70%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.015) 2px, rgba(255,255,255,.015) 3px);
}
.out-tag {
    position: absolute; top: 12px; left: 12px;
    font-family: var(--mono);
    font-size: .62rem; letter-spacing: .14em;
    padding: .3rem .55rem;
    background: #e8142e;
    color: #fff;
    border-radius: 1px;
}
.out-tag.tt { background: #fe2c55; }
.out-body {
    margin: auto;
    padding: 1.5rem;
    display: flex; gap: .9rem; align-items: flex-start;
    max-width: 88%;
}
.out-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: #000; color: #fff;
    display: grid; place-items: center;
    font-size: 1.15rem;
    flex: none;
    border: 2px solid rgba(255,255,255,.2);
}
.out-avatar.tt { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.out-text { flex: 1; min-width: 0; }
.out-name {
    font-family: var(--mono);
    font-size: .68rem; letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: .5rem;
}
.out-quote {
    font-family: var(--serif);
    font-size: .95rem;
    line-height: 1.35;
    color: #fff;
    font-weight: 400;
}
.out-lower {
    background: linear-gradient(90deg, var(--accent) 0%, rgba(232,177,74,.7) 100%);
    color: #0a0d14;
    font-family: var(--mono);
    font-size: .62rem; letter-spacing: .14em;
    padding: .55rem 1rem;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 980px) {
    .flow-track { grid-template-columns: 1fr; gap: 1.5rem; }
    .flow-arrow { transform: rotate(90deg); padding: 0; }
    .source-card, .output-card { aspect-ratio: 16/10; }
}

/* ============ FLOW ASSET SLOTS ============
   Each slot holds either a real image (if dropped at /assets/img/home/sources/…)
   or a styled placeholder. If the image 404s, JS adds .asset-missing and the
   placeholder shows.
*/
.asset-slot {
    position: relative;
    display: block;
    background: var(--bg-2);
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 40px -25px rgba(0,0,0,.6);
    transition: border-color .25s, transform .25s;
}
a.asset-slot { cursor: pointer; }
a.asset-slot:hover { border-color: var(--accent); transform: translateY(-2px); }
.asset-slot img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* Source slots: contain (letterbox). posts are often portrait / have panels */
.slot-x-source img,
.slot-tt-source img {
    object-fit: contain;
    background: #000;
    padding: 8px;
}
/* Render outputs: cover. broadcast graphics are landscape 16:9 */
.slot-x-output img,
.slot-tt-output img {
    object-fit: cover;
    object-position: center;
}
.asset-slot .asset-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.4rem;
    text-align: center;
    gap: .5rem;
    background: radial-gradient(ellipse at center, #11151f 0%, #080b13 80%);
    opacity: 0;
    pointer-events: none;
}
.asset-slot.asset-missing img { display: none; }
.asset-slot.asset-missing .asset-placeholder { opacity: 1; }
.asset-placeholder.tt {
    background: radial-gradient(ellipse at center, #1a0f1a 0%, #080b13 80%);
}
.ap-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: grid; place-items: center;
    font-size: 1.4rem;
    border: 1px solid var(--rule-2);
    margin-bottom: .4rem;
}
.asset-placeholder.tt .ap-icon {
    background: linear-gradient(135deg, #25f4ee, #fe2c55);
}
.ap-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
}
.ap-meta {
    font-family: var(--mono);
    font-size: .62rem;
    color: var(--ink-mute);
    word-break: break-all;
    max-width: 90%;
    line-height: 1.5;
}
.ap-hint {
    font-family: var(--mono);
    font-size: .62rem;
    color: var(--accent);
    letter-spacing: .08em;
    text-transform: uppercase;
    padding-top: .5rem;
    border-top: 1px dashed rgba(232,177,74,.3);
    width: 70%;
    margin-top: .4rem;
}
.ap-hint code {
    background: rgba(232,177,74,.12);
    padding: 1px 4px;
    border-radius: 2px;
    color: var(--accent);
}

/* ============ USE CASES ============ */
.use-cases { border-bottom: 1px solid var(--rule); }
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}
.case {
    border: 1px solid var(--rule);
    background: var(--bg-2);
    overflow: hidden;
    transition: border-color .25s, transform .25s;
    display: flex; flex-direction: column;
}
.case:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.case-visual {
    aspect-ratio: 16/10;
    background: var(--bg-3);
    position: relative;
    display: grid; place-items: center;
    overflow: hidden;
}

/* social case */
.case-social { background: linear-gradient(135deg, #0d1322, #0a0d14); }
.mini-card {
    background: var(--bg-2);
    border: 1px solid var(--rule-2);
    border-radius: 4px;
    padding: 1rem;
    width: 80%;
    max-width: 260px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,.6);
}
.mini-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.mini-av {
    width: 28px; height: 28px; border-radius: 50%;
    background: #000; color: #fff;
    display: grid; place-items: center; font-size: .85rem;
    flex: none;
}
.mini-name { font-size: .8rem; color: var(--ink); font-weight: 500; }
.mini-sub { font-family: var(--mono); font-size: .6rem; color: var(--ink-mute); }
.mini-text { font-size: .78rem; color: var(--ink-dim); line-height: 1.5; }

/* field case */
.case-field { background: linear-gradient(135deg, #0f1a2a, #0a0d14); }
.field-illus {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1rem;
}
.field-phone {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2aabee, #1e88c7);
    position: relative;
    flex: none;
    display: grid; place-items: center;
    box-shadow: 0 10px 24px -8px rgba(42,171,238,.4);
}
.tg-icon {
    color: #fff;
    font-size: 1.7rem;
    transform: rotate(-15deg);
    line-height: 1;
}
.field-arrow { color: var(--accent); font-size: 1.4rem; opacity: .7; }
.field-screen {
    width: 120px; height: 76px;
    border: 2px solid var(--rule-2);
    border-radius: 3px;
    background:
        radial-gradient(ellipse at center, #1a2a4a 0%, #070a12 70%);
    position: relative;
}
.field-tag {
    position: absolute; top: 5px; left: 5px;
    background: #e8142e; color: #fff;
    font-family: var(--mono); font-size: .5rem; letter-spacing: .12em;
    padding: 2px 5px; border-radius: 1px;
}

/* chart case. real rendered chart from the system */
.case-chart-img {
    background: #0a0d14;
    padding: 0;
    overflow: hidden;
}
.case-chart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.case-body { padding: 1.6rem 1.7rem 1.9rem; flex: 1; }
.case h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.35rem;
    margin-bottom: .7rem;
    letter-spacing: -.01em;
    color: var(--ink);
}
.case p { color: var(--ink-dim); font-size: .94rem; line-height: 1.6; }
.case-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .14em;
    color: var(--accent);
    padding: .28rem .55rem;
    border: 1px solid rgba(232,177,74,.35);
    margin-bottom: .9rem;
    border-radius: 2px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

/* ============ WHY IT MATTERS ============ */
.why { border-bottom: 1px solid var(--rule); }
.why-head { margin-bottom: 3rem; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.why-cell {
    padding: 2.6rem 2.2rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
    transition: background .25s;
}
.why-cell:hover { background: var(--bg-2); }
.why-k {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .14em;
    color: var(--accent);
    margin-bottom: 1.4rem;
}
.why-cell h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.7rem;
    letter-spacing: -.012em;
    margin-bottom: .7rem;
    color: var(--ink);
}
.why-cell p { color: var(--ink-dim); font-size: .98rem; max-width: 36ch; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ============ FINAL CTA ============ */
.final-cta {
    text-align: center;
    background: radial-gradient(700px 350px at 50% 0%, rgba(232,177,74,.08), transparent 70%);
    border-bottom: 1px solid var(--rule);
}
.final-cta h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    letter-spacing: -.022em;
    line-height: 1.05;
    margin-bottom: 1.3rem;
    color: var(--ink);
}
.final-cta > .container > p {
    color: var(--ink-dim);
    max-width: 50ch;
    margin: 0 auto 2.4rem;
    font-size: 1.05rem;
}
.final-ctas {
    display: inline-flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; justify-content: center;
}

/* ============ FOOTER ============ */
.footer {
    padding: 2.6rem 0;
    color: var(--ink-mute);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.footer p { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; }

/* ============ MODAL (shared) ============ */
.modal {
    position: fixed; inset: 0; z-index: 200;
    display: none;
    align-items: center; justify-content: center;
    padding: 2rem;
}
.modal.open { display: flex; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.modal-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: var(--bg-2);
    border: 1px solid var(--rule-2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 60px 120px -20px rgba(0,0,0,.85);
    display: flex; flex-direction: column;
}
.modal-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--rule);
    background: rgba(0,0,0,.3);
}
.modal-title { display: flex; align-items: center; gap: 1.4rem; }
.modal-eyebrow {
    font-family: var(--mono);
    font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
}
.modal-step {
    font-family: var(--mono);
    font-size: .7rem; letter-spacing: .1em;
    color: var(--ink-dim);
}
.modal-controls { display: flex; gap: .5rem; }
.modal-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--rule-2);
    border-radius: 3px;
    color: var(--ink-dim);
    font-size: 1rem;
    transition: background .2s, color .2s, border-color .2s;
    display: grid; place-items: center;
}
.modal-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.modal-btn:disabled { opacity: .3; cursor: not-allowed; }
.modal-close { color: var(--ink-mute); }

/* mini demo */
.modal-stage {
    position: relative;
    background: #000;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.modal-stage img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    display: block;
}
.spotlight {
    position: absolute;
    pointer-events: none;
    transition: all .5s cubic-bezier(.65,0,.35,1);
    /* Softer dim so the rest of the UI stays legible in context */
    box-shadow: 0 0 0 9999px rgba(7,9,15,.55);
    border: 2px solid var(--accent);
    border-radius: 3px;
    opacity: 1;
}
.spotlight.hidden {
    opacity: 0;
    box-shadow: 0 0 0 9999px rgba(7,9,15,0);
    border-color: transparent;
}
.callout {
    position: absolute;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.2rem;
    max-width: 310px;
    box-shadow: 0 22px 42px -10px rgba(0,0,0,.75);
    transition: all .5s cubic-bezier(.65,0,.35,1);
    border-radius: 2px;
    z-index: 4;
}
.callout h4 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: .35rem;
    color: var(--ink);
    letter-spacing: -.01em;
}
.callout p {
    font-size: .84rem;
    color: var(--ink-dim);
    line-height: 1.5;
}
/* Intro blink — draws the eye to the callout when the modal first opens */
@keyframes sp-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .25; transform: scale(.97); }
}
.callout.blink-intro {
    animation: sp-blink .55s ease-in-out 3;
    box-shadow:
        0 22px 42px -10px rgba(0,0,0,.75),
        0 0 0 3px rgba(232,177,74,.25);
}
.modal-progress {
    display: flex; gap: .35rem;
    padding: .9rem 1.4rem;
    background: rgba(0,0,0,.3);
    border-top: 1px solid var(--rule);
}
.prog-bar {
    flex: 1;
    height: 2px;
    background: var(--rule-2);
    transition: background .3s;
}
.prog-bar.active { background: var(--accent); }

/* contact modal */
.contact-card { max-width: 680px; }
.contact-form { padding: 1.8rem 2rem 2rem; }
.contact-intro { margin-bottom: 1.8rem; }
.contact-intro h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.55rem;
    color: var(--ink);
    margin-bottom: .4rem;
    letter-spacing: -.01em;
}
.contact-intro p { color: var(--ink-dim); font-size: .94rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.contact-form label { display: flex; flex-direction: column; gap: .4rem; }
.form-full { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.contact-form label > span {
    font-family: var(--mono);
    font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-dim);
}
.contact-form input,
.contact-form textarea {
    background: var(--bg);
    border: 1px solid var(--rule-2);
    border-radius: 3px;
    padding: .8rem .95rem;
    color: var(--ink);
    font-family: var(--sans);
    font-size: .94rem;
    transition: border-color .2s;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form textarea { min-height: 110px; }
.form-actions {
    display: flex; align-items: center; gap: 1.2rem;
    margin-top: .4rem;
}
.form-status {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--ink-dim);
}
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
    .modal { padding: 0; }
    .modal-card { border-radius: 0; max-width: 100%; height: 100%; overflow-y: auto; }
    .callout { max-width: 86%; left: 7% !important; right: auto !important; bottom: 1rem !important; top: auto !important; }
    .spotlight { display: none; }
    .contact-card { height: auto; }
}

/* ============================================================
   HEBREW / RTL OVERRIDES
   Activated by <html lang="he"> via the toggleLang() function.
   Only impacts the public homepage.
   ============================================================ */
html[lang="he"] {
    /* Swap to Hebrew-friendly typography */
    --serif: 'Rubik', system-ui, sans-serif;
    --sans:  'Heebo', 'Inter', system-ui, -apple-system, sans-serif;
}
html[lang="he"] body {
    direction: rtl;
    text-align: right;
}
/* Keep mono (labels / timecodes / URLs) in LTR always */
html[lang="he"] .brand-name,
html[lang="he"] .nav-links > a,
html[lang="he"] .section-tag,
html[lang="he"] .flow-label,
html[lang="he"] .flow-num,
html[lang="he"] .flow-cap,
html[lang="he"] .cta-mini,
html[lang="he"] .cta-pill,
html[lang="he"] .btn-primary,
html[lang="he"] .btn-ghost,
html[lang="he"] .lang-toggle,
html[lang="he"] .modal-eyebrow,
html[lang="he"] .modal-step,
html[lang="he"] .browser-url,
html[lang="he"] .out-lower,
html[lang="he"] .out-tag,
html[lang="he"] .case-tag,
html[lang="he"] .ap-meta,
html[lang="he"] .ap-hint,
html[lang="he"] .copy,
html[lang="he"] .form-status,
html[lang="he"] .cta-meta {
    font-family: var(--mono);
}
/* But body copy & headings use the Hebrew serif/sans */
html[lang="he"] .section-h,
html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] .hero h1,
html[lang="he"] .callout h4,
html[lang="he"] .final-cta h2,
html[lang="he"] .contact-intro h3 {
    font-family: 'Rubik', system-ui, sans-serif;
    font-weight: 500;
}
html[lang="he"] body,
html[lang="he"] p,
html[lang="he"] .lede,
html[lang="he"] .built-card p,
html[lang="he"] .cap p,
html[lang="he"] .case p,
html[lang="he"] .why-cell p {
    font-family: 'Heebo', system-ui, sans-serif;
}
/* Keep :root font stacks consistent with Hebrew feel */
html[lang="he"] .section-h em,
html[lang="he"] .hero h1 em {
    font-style: normal;
    color: var(--accent);
}

/* Hero text right-aligned in Hebrew so it reads naturally next to the image */
html[lang="he"] .hero-text { text-align: right; }
html[lang="he"] .hero-ctas { justify-content: flex-end; }
html[lang="he"] .final-cta { text-align: center; }
@media (max-width: 980px) {
    html[lang="he"] .hero-text { text-align: center; }
    html[lang="he"] .hero-ctas { justify-content: center; }
}

/* Nav reverses naturally via flex, but force mono labels to stay LTR-readable */
html[lang="he"] .nav-links { flex-direction: row-reverse; }

/* Section tags sit inline-block; keep right-aligned in RTL */
html[lang="he"] .section-tag { text-align: right; }

/* Flow arrows: the meaning "source → system → on air" stays the same semantically,
   but in RTL the visual should point left. Flip the glyph with transform. */
html[lang="he"] .flow-arrow,
html[lang="he"] .field-arrow { transform: scaleX(-1); }

/* Flow tracks: reverse grid so source still reads first in the visual order */
html[lang="he"] .flow-track { direction: rtl; }

/* Built / capabilities / cases / why grids stay in natural grid order,
   but inner text aligns right */
html[lang="he"] .built-card,
html[lang="he"] .cap,
html[lang="he"] .case-body,
html[lang="he"] .why-cell { text-align: right; }

/* Built-icon was left-aligned inside a rounded circle — looks fine either way */

/* Contact form: labels align right, inputs stay LTR for name/email/phone/URL */
html[lang="he"] .contact-form label > span { text-align: right; }
html[lang="he"] .contact-form input[type="email"],
html[lang="he"] .contact-form input[type="tel"] {
    direction: ltr;
    text-align: left;
}
html[lang="he"] .contact-form textarea { direction: rtl; text-align: right; }

/* Footer copy align right */
html[lang="he"] .footer-inner { text-align: right; }

/* Modal top controls: in RTL the title sits on the right, controls on left */
html[lang="he"] .modal-top { flex-direction: row-reverse; }
html[lang="he"] .modal-title { flex-direction: row-reverse; }
html[lang="he"] .modal-controls { flex-direction: row-reverse; }

/* Hero CTAs: center */
html[lang="he"] .hero-ctas { direction: rtl; }

/* Callout border-left becomes border-right in RTL for visual consistency */
html[lang="he"] .callout {
    border-left: 1px solid var(--accent);
    border-right: 3px solid var(--accent);
}

/* Source cards in flows: reset border-left to border-right */
html[lang="he"] .x-card { border-left: none; border-right: 2px solid #ffffff22; }
html[lang="he"] .tt-card { border-left: none; border-right: 2px solid #fe2c55; }

/* Lead text max-width on hero lede: allow wider in Hebrew */
html[lang="he"] .lede { max-width: 64ch; }

/* Why-it-matters cell headings: keep on one line in Hebrew even when long */
html[lang="he"] .why-cell h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
