/* koldaat.com — Data-Driven AI. Cool light theme, deep ink, electric blue accent.
   Layout uses CSS logical properties so ar/he (dir="rtl") mirror automatically.
   Tokens & component rules: wiki/design-guide.md */

:root {
    --bg: #F7F8FA;
    --bg-alt: #EEF1F5;
    --ink: #0C1220;
    --ink-soft: #16203A;
    --muted: #5A6472;
    --line: #DDE2EA;
    --card: #FFFFFF;
    --accent: #2563EB;
    --accent-dark: #1D4ED8;
    --accent-soft: #DBE7FE;
    --teal: #0D9488;
    --radius: 14px;
    --container: 1180px;
    --header-h: 72px;
    --font-display: 'Space Grotesk', 'Noto Sans Hebrew', 'Noto Sans KR', sans-serif;
    --font-sans: 'Inter', 'Noto Sans Hebrew', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* CJK: never break inside words (no effect on Latin text) */
h1, h2, h3, p, li { word-break: keep-all; overflow-wrap: break-word; }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 32px;
}

/* Directional glyph — mirrored under RTL */
.dir-arrow { display: inline-block; }
[dir="rtl"] .dir-arrow { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    padding: 13px 28px;
    font-size: 15.5px;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 12px 27px;
    font-size: 15.5px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(247, 248, 250, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Wordmark `KolDaat.` — display font (same as hero titles), K/D/final-dot in accent.
   On load the letters "generate" once, blur → sharp in sequence (AI token motif);
   afterwards only the dot keeps breathing as a quiet live indicator. */
.logo {
    display: flex;
    align-items: center;
    margin-inline-end: auto;
    text-decoration: none;
}
.logo-word {
    display: inline-flex;
    direction: ltr;          /* per-letter flex spans must not reverse under dir="rtl" */
    unicode-bidi: isolate;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}
.logo-word .lg {
    display: inline-block;
    animation: kdLogoGen .55s cubic-bezier(.2, .7, .3, 1) both;
    animation-delay: calc(var(--i) * 70ms);
}
.logo-word .lg-a { color: var(--accent); }
.logo-word .lg-dot {
    animation: kdLogoGen .55s cubic-bezier(.2, .7, .3, 1) both,
               kdDotBreath 3s 1.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 70ms), 1.4s;
}
@keyframes kdLogoGen {
    from { opacity: 0; filter: blur(7px); transform: translateY(5px) scale(.94); }
    to   { opacity: 1; filter: blur(0);   transform: none; }
}
@keyframes kdDotBreath {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}
/* After the first play this session, skip the generate effect (set via inline JS) */
.logo-word.played .lg { animation: none; }
.logo-word.played .lg-dot { animation: kdDotBreath 3s ease-in-out infinite; }
/* Footer mark — Hebrew only, aligned to the inline start above the tagline */
.logo-foot-heb {
    display: inline-block;
    font-family: 'Noto Sans Hebrew', var(--font-sans);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    direction: rtl;
    color: var(--ink);
}
.logo-foot-heb b, .logo-foot-heb i {
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}

.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    transition: color .15s ease;
}
.desktop-nav a:not(.btn):hover, .desktop-nav a.active { color: var(--accent); }
.desktop-nav a.btn-primary, .mobile-nav a.btn-primary { color: #FFFFFF; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, color .15s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--muted); color: var(--ink); }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 140px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 28px rgba(12, 18, 32, .10);
}
.lang-menu a {
    display: block;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
}
.lang-menu a:hover { background: var(--bg-alt); }
.lang-menu a.current { color: var(--accent); font-weight: 600; }

/* Mobile menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* NOTE: this sits inside .site-header whose backdrop-filter makes the header the
   containing block for fixed descendants — inset:0 would collapse to the 72px
   header box. Explicit viewport sizing keeps the menu full-screen. */
.mobile-menu-container {
    display: none;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    z-index: 200;
    background: var(--bg);
    padding: 28px 32px;
}
.mobile-menu-container.active { display: block; }
.close-btn {
    position: absolute;
    top: 20px; inset-inline-end: 26px;
    width: 40px; height: 40px;
    background: none; border: none;
    cursor: pointer;
}
.close-btn span {
    position: absolute;
    top: 50%; left: 50%;
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
}
.close-btn span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.close-btn span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-nav { display: flex; flex-direction: column; gap: 22px; margin-top: 64px; }
.mobile-nav > a {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    color: var(--ink);
}
.mobile-nav > a.btn { font-family: var(--font-sans); font-size: 16px; text-align: center; }
.mobile-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.mobile-langs a {
    text-decoration: none;
    font-size: 14px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
}
.mobile-langs a.current { color: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ---------- Sections ---------- */
.main-content { padding-top: var(--header-h); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.015em;
    margin-bottom: 14px;
}
.section-sub { font-size: 17.5px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 76px; }
.hero-title {
    font-family: var(--font-display);
    font-size: 58px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -.02em;
    max-width: 880px;
    margin-bottom: 26px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-title-sub { font-size: 48px; } /* sub-page scale — shrinks with the media queries below */
.hero-sub {
    font-size: 19px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 720px;
    margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 16px; font-family: var(--font-mono); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 64px;
    align-items: center;
}
.hero-text { animation: kdFadeUp .7s ease both; }
.hero-visual { animation: kdFadeUp .8s .15s ease both; direction: ltr; }
.hero-visual svg { width: 100%; height: auto; display: block; }

@keyframes kdFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Console SVG (dark data panel) ---------- */
.kc-panel { fill: var(--ink); stroke: var(--ink-soft); }
.kc-dot { fill: #2A3550; }
.kc-hair { stroke: #222D47; stroke-width: 1; }
.kc-label, .kc-val, .kc-chip text {
    font-family: var(--font-mono);
    font-size: 10.5px;
    fill: #8B96AC;
}
.kc-val { font-weight: 600; fill: #E8ECF4; }
.kc-accent-t { fill: #6D9BFF !important; }
.kc-teal-t { fill: #34D3B1 !important; }
.kc-live { fill: #34D3B1; animation: kcPulse 1.6s ease-in-out infinite; }
@keyframes kcPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.kc-node rect { fill: #131C33; stroke: #26314E; }
.kc-node text { font-family: var(--font-mono); font-size: 11px; fill: #C6CEDD; }
.kc-node .kc-node-he {
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 15px;
    font-weight: 600;
    fill: #6D9BFF;
}
.kc-flow {
    fill: none;
    stroke: #6D9BFF;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-dasharray: 4 7;
    animation: kcFlow 1.2s linear infinite;
}
@keyframes kcFlow { to { stroke-dashoffset: -11; } }

.kc-bar { fill: #26314E; }
.kc-bar-fill { fill: #6D9BFF; transform-box: fill-box; transform-origin: left center; }
.kc-bf1 { animation: kcGrow 7s ease-out infinite; }
.kc-bf2 { animation: kcGrow 7s .5s ease-out both infinite; }
.kc-bf3 { animation: kcGrow 7s 1s ease-out both infinite; }
@keyframes kcGrow {
    0% { transform: scaleX(0); }
    24%, 90% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}
.kc-spark {
    fill: none;
    stroke: #34D3B1;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: kcSpark 6s ease-in-out infinite;
}
@keyframes kcSpark {
    0% { stroke-dashoffset: 360; }
    50%, 85% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}
.kc-chip rect { fill: none; stroke: #26314E; }
.kc-chip text { text-anchor: middle; }
.kc-c1 { animation: kcChip 9s infinite; }
.kc-c2 { animation: kcChip 9s 3s infinite; }
.kc-c3 { animation: kcChip 9s 6s infinite; }
@keyframes kcChip {
    0%, 30% { opacity: 1; }
    36%, 94% { opacity: .35; }
    100% { opacity: 1; }
}

/* ---------- Brand story (כלדעת) ---------- */
.brand-band { text-align: center; }
.brand-letters {
    font-family: 'Noto Sans Hebrew', var(--font-sans);
    font-size: 128px;
    font-weight: 700;
    line-height: 1.1;
    direction: rtl;
    letter-spacing: .02em;
    margin-bottom: 8px;
}
.brand-letters .bl-kol { color: var(--accent); }
.brand-letters .bl-daat { color: var(--ink); }
.brand-reading {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 56px;
}
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; text-align: start; }
.brand-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 34px 30px;
}
.brand-card .bc-he {
    font-family: 'Noto Sans Hebrew', var(--font-sans);
    font-size: 34px;
    font-weight: 700;
    direction: rtl;
    display: inline-block;
    margin-bottom: 10px;
}
.brand-card.bc-kol .bc-he { color: var(--accent); }
.brand-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.brand-card p { font-size: 15.5px; color: var(--muted); }
.brand-formula {
    margin-top: 44px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 820px;
    margin-inline: auto;
}
.brand-formula em { font-style: normal; color: var(--accent); }
.bs-link {
    display: inline-block;
    margin-top: 22px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.bs-link:hover { color: var(--accent-dark); }

/* ---------- Engine cards ---------- */
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.engine-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 30px;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.engine-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(12, 18, 32, .08);
}
.engine-num {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}
.engine-card h3 { font-family: var(--font-display); font-size: 21.5px; font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.engine-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal);
    margin-bottom: 14px;
}
.engine-card p { font-size: 15px; color: var(--muted); flex-grow: 1; }
.engine-link {
    margin-top: 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--accent);
}
.engine-role {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bg-alt);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

/* Platform diagram line above engines */
.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #E8ECF4;
    font-family: var(--font-mono);
    font-size: 13px;
    border-radius: 999px;
    padding: 10px 22px;
    margin-bottom: 14px;
}
.platform-chip .pc-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D3B1; }
.platform-stem { width: 1px; height: 34px; background: var(--line); margin: 0 auto 14px; }
.platform-wrap { text-align: center; }
.platform-wrap .engine-grid { text-align: start; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 30px;
}
.card h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}
.card p { font-size: 15.5px; color: var(--muted); }
.card ul { list-style: none; margin-top: 4px; }
.card ul li {
    font-size: 15px;
    color: var(--muted);
    padding: 7px 0;
    padding-inline-start: 24px;
    position: relative;
    border-bottom: 1px solid var(--bg-alt);
}
.card ul li:last-child { border-bottom: none; }
.card ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px; top: 15px;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--accent);
    opacity: .85;
}

/* Old-way vs koldaat-way comparison */
.card-dim h3 { color: var(--muted); }
.card-dark { background: var(--ink); border-color: var(--ink); }
.card-dark h3 { color: #F2F5FA; }
.card-dark ul li { color: rgba(232, 236, 244, .82); border-bottom-color: rgba(232, 236, 244, .12); }
.card-dark ul li::before { background: #6D9BFF; }

/* Plain feature blocks */
.feature { padding: 6px 0; }
.feature h3 {
    font-family: var(--font-display);
    font-size: 20.5px;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature p { font-size: 15.5px; color: var(--muted); }

/* Numbered process steps (flywheel) */
.step { position: relative; padding-top: 18px; }
.step::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--line);
}
.step-num {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}
.step h3 { font-family: var(--font-display); font-size: 19.5px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }
.fw-close { margin-top: 40px; font-size: 16.5px; color: var(--muted); max-width: 800px; }

/* Deliverables list */
.del-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.del-list li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
    padding-inline-start: 46px;
    position: relative;
    font-size: 15px;
}
.del-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 22px;
    top: 26px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

/* Personas */
.persona-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
}
.persona-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.persona-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.persona-card > p { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.persona-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex-grow: 1; }
.persona-col h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.persona-col.pc-gain h4 { color: var(--teal); }
.persona-col ul { list-style: none; }
.persona-col li {
    font-size: 14px;
    color: var(--muted);
    padding: 5px 0;
    padding-inline-start: 18px;
    position: relative;
}
.persona-col li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px; top: 12px;
    width: 6px; height: 6px;
    border-radius: 2px;
    background: var(--line);
}
.persona-col.pc-gain li::before { background: var(--teal); }
.persona-eng {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-alt);
    font-size: 14px;
    font-weight: 600;
}
.persona-eng a { color: var(--accent); text-decoration: none; }
.persona-eng a:hover { color: var(--accent-dark); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--ink);
    color: #F2F5FA;
    border-radius: 20px;
    padding: 72px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "כלדעת";
    position: absolute;
    inset-inline-end: -30px;
    bottom: -66px;
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 200px;
    font-weight: 700;
    color: rgba(109, 155, 255, .07);
    pointer-events: none;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
    position: relative;
}
.cta-band .cta-sub {
    font-size: 16.5px;
    line-height: 1.7;
    color: rgba(232, 236, 244, .78);
    max-width: 640px;
    margin: 0 auto 30px;
    position: relative;
}
.cta-band .btn-primary { background: #F2F5FA; color: var(--ink); position: relative; }
.cta-band .btn-primary:hover { background: var(--accent); color: #FFFFFF; }
.cta-band .cta-note { font-family: var(--font-mono); font-size: 13px; color: rgba(232, 236, 244, .55); margin-top: 18px; position: relative; }

/* ---------- Contact: Daat intro (left) + form (right) ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.daat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 30px 26px;
}
.daat-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.daat-avatar {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-family: 'Noto Sans Hebrew', var(--font-sans);
    font-size: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.daat-id strong { font-family: var(--font-display); font-size: 19px; display: block; line-height: 1.2; }
.daat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--teal);
    margin-top: 4px;
}
.daat-badge::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
    animation: kcPulse 1.8s ease-in-out infinite;
}
.daat-card h2 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
}
.daat-card > p { font-size: 15px; line-height: 1.7; color: var(--muted); margin-bottom: 20px; }
.daat-facts {
    list-style: none;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--bg-alt);
}
.daat-facts li {
    font-size: 14px;
    color: var(--muted);
    padding: 6px 0;
    padding-inline-start: 22px;
    position: relative;
}
.daat-facts li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px; top: 13px;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--accent);
}
@media (max-width: 1100px) {
    .contact-grid { grid-template-columns: 1fr; }
    .daat-card { max-width: 760px; margin-inline: auto; width: 100%; }
}

/* ---------- Contact form ---------- */
.form-card {
    max-width: 760px;
    margin-inline: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 44px 48px;
}
.form-row { margin-bottom: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-card label { display: block; }
.form-card label span {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 7px;
}
.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 15.5px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-card textarea { resize: vertical; }
.form-card .btn { margin-top: 6px; }
/* Honeypot: clip-hidden (no offscreen offset — a negative left offset widens the
   scrollable canvas under dir="rtl" and pushes the whole page out of view).
   Selector must outrank `.form-card input` or its width:100% wins and overflows RTL. */
.hp-field,
.form-card .hp-field {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    opacity: 0;
}
.form-ok, .form-err {
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 15.5px;
}
.form-ok { background: #E4F5EF; border: 1px solid #A9DCC9; color: #115E45; }
.form-err { background: #FBEAE8; border: 1px solid #EFB9B0; color: #93321F; margin-bottom: 22px; }

/* ---------- Privacy / legal prose ---------- */
.legal { max-width: 780px; }
.legal h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 15.5px; color: var(--muted); }
.legal ul { padding-inline-start: 22px; margin: 10px 0; }
.legal .legal-touch { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 84px 0 40px;
    background: var(--bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 48px 56px;
    margin-bottom: 72px;
}
.footer-brand .logo { margin-bottom: 20px; margin-inline-end: 0; }
.footer-tagline {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ink);
    max-width: 320px;
    margin-bottom: 28px;
}
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-langs a {
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 13px;
    transition: color .15s ease, border-color .15s ease;
}
.footer-langs a:hover { color: var(--ink); border-color: var(--muted); }
.footer-langs a.current { color: var(--accent); border-color: var(--accent); }
.footer-col h3 {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 4.5px 0; }
.footer-col li a {
    text-decoration: none;
    font-size: 15px;
    color: var(--ink);
    transition: color .15s ease;
}
.footer-col li a:hover { color: var(--accent); }
.footer-addr {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--muted);
    font-style: normal;
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .01em;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-adm { text-decoration: none; color: inherit; cursor: default; padding: 0 2px; }
.footer-adm:hover { color: var(--accent); cursor: pointer; }

/* ---------- Daat chat assistant ---------- */
.kd-chat {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 300;
}
.kd-chat-fab {
    position: relative;
    width: 58px; height: 58px;
    border: none;
    border-radius: 50%;
    background: var(--ink);
    color: #F2F5FA;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(12, 18, 32, .28);
    transition: background .18s ease, transform .18s ease;
}
.kd-chat-fab:hover { background: var(--accent); transform: translateY(-2px); }
.kd-fab-dot {
    position: absolute;
    top: 4px; inset-inline-end: 4px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--teal);
    border: 2px solid var(--bg);
    animation: kcPulse 1.8s ease-in-out infinite;
}
.kd-chat-panel {
    display: none;
    position: absolute;
    bottom: 74px;
    inset-inline-end: 0;
    width: 372px;
    max-width: calc(100vw - 40px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(12, 18, 32, .22);
    overflow: hidden;
    flex-direction: column;
}
.kd-chat.kd-open .kd-chat-panel { display: flex; animation: kdFadeUp .25s ease both; }
.kd-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ink);
    color: #F2F5FA;
}
.kd-chat-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-family: 'Noto Sans Hebrew', var(--font-sans);
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kd-chat-title { display: flex; flex-direction: column; line-height: 1.3; }
.kd-chat-title strong { font-family: var(--font-display); font-size: 15.5px; }
.kd-chat-sub { font-family: var(--font-mono); font-size: 11px; color: #8B96AC; }
.kd-online {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
    margin-inline-end: 5px;
    animation: kcPulse 1.8s ease-in-out infinite;
}
.kd-chat-close {
    margin-inline-start: auto;
    background: none;
    border: none;
    color: #8B96AC;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}
.kd-chat-close:hover { color: #F2F5FA; }
.kd-chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}
.kd-msg {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}
.kd-msg-bot {
    align-self: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    border-start-start-radius: 4px;
}
.kd-msg-bot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.kd-msg-bot a:hover { text-decoration: underline; }
.kd-msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
    border-end-end-radius: 4px;
}
.kd-typing span {
    display: inline-block;
    width: 6px; height: 6px;
    margin: 0 1.5px;
    border-radius: 50%;
    background: var(--muted);
    animation: kdTyping 1s ease-in-out infinite;
}
.kd-typing span:nth-child(2) { animation-delay: .15s; }
.kd-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes kdTyping { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.kd-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 16px 10px;
    background: var(--bg);
}
.kd-chip {
    background: var(--card);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 13px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.kd-chip:hover { background: var(--accent); color: #fff; }
.kd-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: var(--card);
}
.kd-chat-input input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 13px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
}
.kd-chat-input input:focus { outline: none; border-color: var(--accent); }
.kd-chat-input button {
    width: 42px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.kd-chat-input button:hover { background: var(--accent-dark); }

@media (max-width: 720px) {
    .kd-chat { bottom: 16px; inset-inline-end: 16px; }
    .kd-chat-panel { width: calc(100vw - 32px); height: 500px; }
}
/* The chat FAB must not float over the opened mobile menu (body class set by menu JS) */
body.menu-open .kd-chat { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-text, .hero-visual, .kc-live, .kc-flow, .kc-bf1, .kc-bf2, .kc-bf3,
    .kc-spark, .kc-c1, .kc-c2, .kc-c3, .logo-word .lg, .logo-word .lg-dot { animation: none; }
    .kc-spark { stroke-dashoffset: 0; }
    .kc-bar-fill { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 480px; }
    .hero-title, .hero-title-sub { font-size: 46px; }
    .brand-letters-sm { font-size: 84px; }
    .section-title { font-size: 32px; }
    .grid-3, .grid-4, .engine-grid { grid-template-columns: repeat(2, 1fr); }
    .del-list { grid-template-columns: repeat(2, 1fr); }
    .brand-letters { font-size: 96px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
    .cta-band { padding: 60px 40px; }
}

@media (max-width: 860px) {
    .desktop-nav { display: none; }
    .hamburger-btn { display: flex; }
    .lang-switch { margin-inline-start: auto; }
    .logo { margin-inline-end: 0; }
    .header-inner { justify-content: space-between; }
}

@media (max-width: 720px) {
    .container { padding-inline: 22px; }
    .section { padding: 64px 0; }
    .hero { padding: 36px 0 48px; }
    .hero-title, .hero-title-sub { font-size: 35px; }
    .brand-letters-sm { font-size: 56px; }
    .brand-reading { font-size: 10.5px; letter-spacing: .12em; }
    .hero-sub { font-size: 17px; }
    .section-title { font-size: 27px; }
    .grid-2, .grid-3, .grid-4, .engine-grid, .brand-cards, .persona-cols { grid-template-columns: 1fr; }
    .del-list { grid-template-columns: 1fr; }
    .brand-letters { font-size: 64px; }
    .brand-formula { font-size: 19px; }
    .form-card { padding: 30px 22px; }
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }
    .form-row-2 label { margin-bottom: 20px; }
    .cta-band { padding: 48px 26px; }
    .cta-band h2 { font-size: 27px; }
    .cta-band::before { font-size: 120px; bottom: -40px; }
    .site-footer { padding-top: 56px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; margin-bottom: 48px; }
    .footer-bottom { flex-direction: column; gap: 4px; }
}
