/* StarkDo — landing page styles
 * Palette 1: warm cream / deep ink / sand / sage
 * Type: Inter + Geist for Latin; Heebo for Hebrew
 */

:root {
  /* Palette — set by Tweaks; below are static fallbacks */
  --ink: #1F2421;
  --ink-soft: #2C3330;
  --ink-mute: rgba(31, 36, 33, 0.62);
  --ink-faint: rgba(31, 36, 33, 0.42);
  --hair: rgba(31, 36, 33, 0.10);
  --hair-strong: rgba(31, 36, 33, 0.18);

  --paper: #F5F2EC;
  --paper-warm: #EFEAE0;
  --paper-card: #FBF8F2;

  --sand: #C9B89A;
  --sand-soft: #DCCEB4;
  --sand-deep: #A6916C;

  --sage: #8A9A8B;
  --sage-soft: #B8C4B5;
  --sage-deep: #5E7064;

  --accent: var(--sage-deep);

  /* Type */
  --font-display: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-he: 'Heebo', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  /* Motion */
  --motion: 1; /* 0..1, set by Tweaks */
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --ease-breathe: cubic-bezier(.4,0,.6,1);

  /* Radii / shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-soft: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 32px -16px rgba(31,36,33,.18);
  --shadow-card: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 60px -28px rgba(31,36,33,.28), 0 2px 6px -2px rgba(31,36,33,.08);
  --shadow-phone: 0 30px 80px -30px rgba(31,36,33,.35), 0 8px 24px -10px rgba(31,36,33,.15);
}

[data-theme="dark"] {
  --ink: #F5F2EC;
  --ink-soft: #E3DFD6;
  --ink-mute: rgba(245, 242, 236, 0.66);
  --ink-faint: rgba(245, 242, 236, 0.42);
  --hair: rgba(245, 242, 236, 0.10);
  --hair-strong: rgba(245, 242, 236, 0.18);
  --paper: #14171A;
  --paper-warm: #1A1E20;
  --paper-card: #1F2326;
  --shadow-soft: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -16px rgba(0,0,0,.6);
  --shadow-card: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -28px rgba(0,0,0,.7), 0 2px 6px -2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[lang="he"] body, body[lang="he"], html[lang="he"] body {
  font-family: var(--font-he);
}

[dir="rtl"] {
  font-family: var(--font-he);
}

/* Subtle grain overlay over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.14 0 0 0 0 0.13 0 0 0 .14 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* App root sits above the grain */
#app { position: relative; z-index: 2; }

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[lang="he"] h1, [lang="he"] h2, [lang="he"] h3 {
  font-family: var(--font-he);
  letter-spacing: -0.01em;
  font-weight: 500;
}

p { margin: 0; text-wrap: pretty; }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 36ch;
}

/* Container */
.section {
  position: relative;
  padding: 120px 32px;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
}
.narrow { max-width: 760px; margin: 0 auto; }

/* Breathing animation: very slow scale */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.025); opacity: .96; }
}
.breathing {
  animation: breathe calc(8s / max(var(--motion), 0.001)) var(--ease-breathe) infinite;
  animation-play-state: running;
}
[data-motion="0"] .breathing { animation: none; }

/* Soft float */
@keyframes float {
  0%, 100% { transform: translateY(0) }
  50%      { transform: translateY(-6px) }
}
.float-y { animation: float 9s var(--ease-breathe) infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition-property: opacity, transform;
  transition-duration: 1s, 1s;
  transition-timing-function: cubic-bezier(.22,.61,.36,1), cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-soft), background .4s var(--ease-soft);
}
.nav.scrolled { border-color: var(--hair); }
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color .3s var(--ease-soft);
}
.nav-link:hover { color: var(--ink); }
.nav-right { display: flex; gap: 14px; align-items: center; }

.lang-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent;
  color: var(--ink-mute);
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .3s var(--ease-soft);
  font: inherit;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  transition: transform .3s var(--ease-soft), background .3s var(--ease-soft), color .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 22px -10px rgba(31,36,33,.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 14px 32px -12px rgba(31,36,33,.55); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-quiet {
  background: transparent; color: var(--ink-mute); padding: 8px 0;
}
.btn-quiet:hover { color: var(--ink); }
[lang="he"] .btn, [dir="rtl"] .btn { font-family: var(--font-he); }

/* Cards */
.card {
  background: var(--paper-card);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}

/* Phone frame */
.phone {
  position: relative;
  width: 290px;
  border-radius: 44px;
  background: #0E1110;
  padding: 9px;
  box-shadow: var(--shadow-phone);
}
[data-theme="dark"] .phone { background: #2A2E30; }
.phone-screen {
  position: relative;
  border-radius: 36px;
  background: var(--paper-card);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  isolation: isolate;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 999px;
  background: #0E1110;
  z-index: 10;
}
.phone-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.phone-bar .signal {
  display: inline-flex; gap: 3px; align-items: flex-end;
  color: var(--ink-mute);
}
.phone-bar .signal i {
  display: block; width: 3px; background: currentColor; border-radius: 1px;
}

/* Dots / glyphs */
.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .5;
}

/* Subtle hairline divider */
.hair {
  height: 1px; background: var(--hair); width: 100%;
}

/* Tweaks panel scoped overrides for ink/paper if needed */
.twk-panel { font-family: var(--font-sans); }

/* Utility */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.col { flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mute { color: var(--ink-mute); }
.faint { color: var(--ink-faint); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .breathing, .float-y { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 880px) {
  .section { padding: 80px 22px; }
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
}
