/* Danet AI — Landing page styles. Composes DS tokens; layout only. */

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Hebrew body uses Assistant for better Hebrew rendering */
html[lang="he"] body { font-family: var(--font-hebrew); }
html[lang="he"] .h2, html[lang="he"] .hero-headline,
html[lang="he"] .step-title { font-family: var(--font-display); }

/* Fixed ambient wash behind everything (teal/sand, subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--glow-dark);
}
.page { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
*:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 32px; }

/* ---- AI accent (DS-grounded teal → teal-bright) ---- */
.ai-accent {
  background: linear-gradient(90deg, var(--teal-bright), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.section--light .ai-accent {
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Kicker ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: var(--fs-kicker); font-weight: 600;
  letter-spacing: var(--ls-kicker); text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker-node { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ---- Headings ---- */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, var(--fs-h1));
  font-weight: 700; letter-spacing: var(--ls-display);
  line-height: 1.16; color: var(--white); margin: 0;
  text-wrap: balance;
}
.h2--light { color: var(--ink-text); }
/* Dark-surface section headers ONLY: extra space BETWEEN WORDS so the heavy
   white display type doesn't run together and stays readable. Line-height
   stays 1.16; light headings are unaffected (review finding 2 — dark only). */
.h2:not(.h2--light) { word-spacing: var(--ws-heading); }
.lead {
  font-size: var(--fs-lead); line-height: var(--lh-body);
  color: var(--text-2); max-width: 60ch; margin: 18px 0 0;
  text-wrap: pretty;
}
.lead--light { color: var(--ink-text-2); }
.lead--center { margin-inline: auto; text-align: center; }

.block-head { margin-bottom: 38px; }
.block-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  direction: ltr;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar--scrolled {
  background: rgba(15, 22, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; gap: 24px;
}
.topbar-logo { flex: none; }
.topbar-nav {
  display: flex; align-items: center; gap: 26px;
  margin-inline-start: auto;
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.topbar-nav a { transition: color var(--dur) var(--ease); position: relative; }
.topbar-nav a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.topbar-cta-wrap { display: inline-flex; }
/* In RTL, keep nav after logo but actions at the far end via order */
html[dir="rtl"] .topbar-nav { margin-inline-start: auto; }

/* ---- Hero ---- */
.hero { padding: 76px 0 88px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700; letter-spacing: var(--ls-display);
  line-height: 1.08; color: var(--white); margin: 0 0 22px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6;
  color: var(--text-2); max-width: 52ch; margin: 0 0 30px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  margin: 28px 0 0; font-size: 13px; color: var(--muted);
  line-height: 1.6; max-width: 48ch;
}
.hero-visual { display: flex; justify-content: center; }

/* ---- Hero glance panel ---- */
.glance { direction: ltr; padding: 0; }
.glance-head {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.glance-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.glance-label {
  margin-inline-start: 8px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.4px; color: var(--muted); font-family: var(--font-body);
}
.glance-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; }
.glance-app {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 11px 6px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative;
}
.glance-app--on { color: var(--teal-bright); border-color: var(--teal-soft-2); background: var(--teal-soft); }
.glance-app-badge { position: absolute; top: 7px; inset-inline-end: 7px; }
.glance-card {
  margin: 0 16px 16px; padding: 14px;
  background: var(--slate-2); border: 1px solid var(--border); border-radius: 14px;
}
.glance-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.glance-chip {
  font-size: 11px; font-weight: 700; color: var(--teal-bright);
  letter-spacing: 0.3px;
}
.glance-summary { margin-inline-start: auto; font-size: 10.5px; color: var(--muted-2); }
.glance-bars { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.glance-bars span {
  height: 7px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(28,140,132,0.30), rgba(222,210,184,0.10));
}
.glance-flow {
  display: flex; align-items: center; gap: 9px;
  padding-top: 12px; border-top: 1px dashed var(--border);
}
.glance-before { font-size: 11.5px; color: var(--muted); }
.glance-arrow { color: var(--teal-bright); }
.glance-after {
  font-size: 11.5px; font-weight: 700; color: var(--text);
  background: var(--sand-soft); border: 1px solid rgba(217,199,163,0.28);
  padding: 4px 9px; border-radius: 999px;
}

/* ---- Sections ---- */
.section { padding: 72px 0; position: relative; }
.section--light {
  background: var(--cloud);
  color: var(--ink-text);
}
.section--cta { padding-top: 40px; }

/* ---- Problem (light) ---- */
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 44px;
}
.pain-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 24px; background: var(--white);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15,22,24,0.04);
}
.pain-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-deep);
}
.pain-text { font-size: 15.5px; line-height: 1.5; color: var(--ink-text); font-weight: 500; }

/* ---- Split layout (what-it-is, why) ---- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split--reverse .split-aside { order: -1; }
html[dir="rtl"] .split--reverse .split-aside { order: 0; }
html[dir="rtl"] .split--reverse .split-copy { order: -1; }

/* versus card (what it is) */
.versus {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px;
}
.versus-row {
  display: flex; align-items: center; gap: 14px;
  padding: 20px; border-radius: 14px;
}
.versus-row--on { background: var(--teal-soft); border: 1px solid var(--teal-soft-2); }
.versus-tag { font-size: 15px; font-weight: 700; color: var(--text-2); }
.versus-tag--on { color: var(--teal-bright); }
.versus-note { font-size: 13.5px; color: var(--muted); margin-inline-start: 2px; }
.versus-note--on { color: var(--text-2); }
.versus-bar {
  margin-inline-start: auto; flex: none; width: 40px; height: 40px;
  border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted);
}
.versus-bar--on { background: rgba(28,140,132,0.18); color: var(--teal-bright); }
.versus-divider { padding: 6px 20px; }
.versus-divider span { display: block; height: 1px; background: var(--border); }

/* ---- Use cases (dark) ---- */
.tiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.usecase { display: flex; align-items: flex-start; gap: 12px; }
.usecase-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; margin-top: 1px;
  background: var(--surface-2); color: var(--teal-bright); border: 1px solid var(--border);
}
.usecase-flow { display: flex; flex-direction: column; gap: 4px; }
.usecase-before { font-size: 14px; color: var(--muted); }
.usecase-arrow { display: none; }
.usecase-after { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.45; }

/* ---- How we start (light) ---- */
.steps-row {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 40px;
}
.step-card {
  flex: 1; min-width: 0;
  position: relative; overflow: hidden; padding: 28px 24px;
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(15,22,24,0.04);
}
.step-card::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 100%; height: 3px; background: var(--teal); opacity: 0.9;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--teal); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 17px;
}
.step-title {
  font-size: 18px; font-weight: 700; color: var(--ink-text);
  margin: 0 0 8px; font-family: var(--font-display);
}
.step-text { font-size: 14.5px; line-height: 1.55; color: var(--ink-text-2); margin: 0; }
.step-connector {
  flex: none; align-self: center; z-index: 2;
  display: grid; place-items: center; padding: 0 12px;
  color: var(--teal);
}

/* ---- Security (dark) ---- */
.sec2-head { max-width: 820px; margin-bottom: 34px; }
.sec2-head .security-shield { margin-bottom: 18px; }
.security-shield {
  flex: none; width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-bright);
  border: 1px solid var(--teal-soft-2);
}
.sec2-head .lead { max-width: 64ch; }

.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.risk-card {
  display: flex; align-items: flex-start; gap: 15px;
  padding: 22px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.risk-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--warning-soft); color: var(--warning);
  border: 1px solid var(--warning-border);
}
.risk-body { min-width: 0; }
.risk-title {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 700;
  color: var(--text); margin: 0 0 6px; line-height: 1.25;
}
.risk-text { font-size: 14px; line-height: 1.55; color: var(--text-2); margin: 0; text-wrap: pretty; }

.sec-closing { display: flex; align-items: stretch; gap: 0; }
.sec-closing-img { flex: 0 0 38%; min-height: 168px; background: url('img/security-glass.jpg') center/cover no-repeat; border-inline-end: 1px solid var(--border); }
.sec-closing-body { display: flex; align-items: center; gap: 20px; padding: 26px 30px; }
.sec-closing-mark {
  flex: none; width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-bright);
  border: 1px solid var(--teal-soft-2);
}
.sec-closing p {
  margin: 0; font-size: 16px; line-height: 1.6; color: var(--text);
  font-weight: 500; text-wrap: pretty;
}
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  background: var(--teal); color: #fff;
}

/* ---- Why Danet (dark) ---- */
.tagline {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 30px;
  padding: 14px 22px; border-radius: var(--radius-pill);
  direction: ltr;
  background: var(--surface); border: 1px solid var(--border);
}
.tagline-a, .tagline-b {
  font-family: var(--font-body); font-weight: 800; font-size: 15px;
  letter-spacing: 1.5px;
}
.tagline-a { color: var(--muted); }
.tagline-b {
  background: linear-gradient(90deg, var(--teal-bright), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline-arrow { color: var(--teal-bright); }
.points { display: flex; flex-direction: column; gap: 12px; }
.point {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 15.5px; color: var(--text);
}
.point-node { flex: none; display: inline-flex; }

/* ---- Final CTA (dark) ---- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cta-copy { padding: 48px; }
.cta-trust {
  display: flex; align-items: center; gap: 12px; margin-top: 26px;
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.cta-trust .check { width: 22px; height: 22px; }
.cta-form-wrap {
  padding: 40px; background: var(--slate-2);
  border-inline-start: 1px solid var(--border);
  display: flex; align-items: center;
}
.cta-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.cta-sent { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-sent-mark {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-bright); border: 1px solid var(--teal-soft-2);
}
.cta-sent p { font-size: 17px; color: var(--text); margin: 0; font-weight: 600; }

/* ---- Footer ---- */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--muted); }
.footer-link { color: var(--text-2); transition: color var(--dur) var(--ease); }
.footer-link:hover { color: var(--teal-bright); }
.footer-dot { color: var(--muted-2); }
.footer-rights { font-size: 12.5px; color: var(--muted-2); }

/* ---- RTL arrow flip ---- */
html[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .hero { padding: 48px 0 64px; }
  .split, .security-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-aside, html[dir="rtl"] .split--reverse .split-copy { order: 0; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-form-wrap { border-inline-start: none; border-top: 1px solid var(--border); }
  .cta-copy { padding: 36px 32px; }
}
@media (max-width: 760px) {
  .topbar-nav { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 14px; }
  .tiles-grid { grid-template-columns: 1fr; }
  .step-connector { display: none !important; }
  .container { padding-inline: 22px; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .glance-apps { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .topbar-inner { padding: 11px 14px; gap: 10px; }
  /* Hide the "by DNT Computize" endorsement subline on phones so the bar fits */
  .topbar-logo > div > span:nth-child(2) { display: none !important; }
  .topbar-actions { gap: 8px; }
  /* Shrink the primary CTA so logo + toggle + CTA fit on one row */
  .topbar-actions .topbar-cta-wrap button {
    height: auto !important;
    padding: 9px 13px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
  }
  .cta-copy { padding: 28px 24px; }
  .cta-form-wrap { padding: 28px 24px; }
}

/* ---- Imagery (cinematic feature visuals) ---- */
.hero { overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('img/hero-ribbon.jpg') no-repeat center right; background-size: cover;
  opacity: 0.30;
  -webkit-mask-image: linear-gradient(to left, #000 26%, transparent 78%);
  mask-image: linear-gradient(to left, #000 26%, transparent 78%);
}
html[dir="rtl"] .hero-bg {
  background-position: center left;
  -webkit-mask-image: linear-gradient(to right, #000 26%, transparent 78%);
  mask-image: linear-gradient(to right, #000 26%, transparent 78%);
}
.hero .container { position: relative; z-index: 1; }

.why-img {
  width: 100%; aspect-ratio: 16 / 10;
  background: url('img/heritage.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .sec-closing { flex-direction: column; }
  .sec-closing-img { flex: none; width: 100%; min-height: 150px; border-inline-end: none; border-bottom: 1px solid var(--border); }
}

/* ---- Services (what we do) ---- */
.services { display: flex; flex-direction: column; gap: 12px; }
.service-line {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-line:hover { border-color: var(--teal-soft-2); transform: translateY(-2px); }
.service-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-bright); border: 1px solid var(--teal-soft-2);
}
.service-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--text); margin: 0 0 3px; }
.service-desc { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 0; }

/* ---- Use-case group labels ---- */
.group-label {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.4px; color: var(--teal-bright); margin: 0 0 16px;
}
.group-label--mt { margin-top: 30px; }
