/* singX homepage — a brand page about why singX exists. Light default, dark via [data-theme="dark"] */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-soft: #f2f0ec;
  --text: #1a1722;
  --muted: #5d586e;
  --border: #e6e2dc;
  --accent: #4f46e5;
  --accent-soft: #eceafe;
  --accent-text: #ffffff;
  --shadow: 0 1px 3px rgba(26, 23, 34, 0.07), 0 8px 24px rgba(26, 23, 34, 0.06);
  --radius: 16px;
}
html[data-theme="dark"] {
  --bg: #12101a;
  --surface: #1b1826;
  --surface-soft: #241f31;
  --text: #f2f0f7;
  --muted: #a9a4bd;
  --border: #2e2940;
  --accent: #818cf8;
  --accent-soft: #262254;
  --accent-text: #14121c;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; } /* anchor jumps clear the sticky header */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Hebrew", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 720px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-text); }
.logo-x { color: var(--accent); }
.logo-wordmark img { height: 44px; width: auto; display: block; }
/* the chosen logo artwork as PNG: blue on light, white on dark */
.logo-wordmark .logo-dark { display: none; }
[data-theme="dark"] .logo-wordmark .logo-light { display: none; }
[data-theme="dark"] .logo-wordmark .logo-dark { display: block; }
.main-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--text); background: var(--surface-soft); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-soft); }
.lang-btn { min-width: 78px; }
.lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-caret { color: var(--muted); font-size: 0.8rem; }
.lang-picker { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 60;
}
.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.lang-menu li:hover { background: var(--surface-soft); }
.lang-menu .flag { font-size: 1.15rem; line-height: 1; }
.lang-menu .lcode { margin-inline-start: auto; color: var(--muted); font-size: 0.85rem; }
.lang-menu .lcheck { visibility: hidden; color: var(--accent); font-weight: 800; }
.lang-menu li[aria-selected="true"] .lcheck { visibility: visible; }
.theme-btn { width: 40px; padding: 6px; }
.icon-sun { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 104px 0 88px; }
.hero-beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: blur(10px); }
.hero-inner { position: relative; }
.hero-eyebrow {
  margin: 0 0 1.1em;
  color: var(--accent); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  max-width: 820px; margin-inline: auto; margin-bottom: 0.5em;
}
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin-inline: auto; margin-bottom: 2em; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 1.02rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-soft); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.why { text-align: left; }
.why h2 { text-align: center; margin-bottom: 1em; }
.why p { font-size: 1.12rem; color: var(--muted); }
.why p:last-child { margin-bottom: 0; }
.who {
  background: var(--surface-soft);
  border-block: 1px solid var(--border);
  text-align: center;
}
.who-kicker {
  margin: 0 0 0.8em;
  color: var(--accent); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.who-text {
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  font-weight: 600; line-height: 1.45; letter-spacing: -0.01em;
  margin: 0;
}
.operator h2 { text-align: center; margin-bottom: 0.5em; }
.op-lead { text-align: center; color: var(--muted); font-size: 1.1rem; margin-bottom: 2.2em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0 0 2em; padding: 0; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px;
  background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 1.05rem;
}
.steps h3 { font-size: 1.12rem; margin-bottom: 0.35em; }
.steps p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.op-note {
  max-width: 720px; margin-inline: auto; margin-bottom: 0;
  padding: 18px 22px; border-radius: 12px;
  background: var(--accent-soft);
  border-inline-start: 3px solid var(--accent);
  font-weight: 600; font-size: 0.98rem;
}

/* ---------- footer ---------- */
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; font-size: 1.1rem; color: var(--text); }
.footer-tag { font-weight: 600; }
.footer-copy { margin-inline-start: auto; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 44px 0; }
  .header-inner { gap: 10px; }
  .lang-btn { min-width: 68px; padding: 6px 8px; }
  .footer-copy { margin-inline-start: 0; flex-basis: 100%; }
}
