/* NUMERA — Kinetic glass numerology. Plain CSS, no framework. */

:root {
  --bg: #17142a;
  --fg: #f2f0fa;
  --card: #201c3a;
  --muted: #a9a3c8;
  --border: rgba(255, 255, 255, 0.1);
  --brand: #00e5ff;
  --glow: #7c3aed;
  --ink: #17142a;
  --radius: 1rem;
  --display: "Anton", "Heebo", sans-serif;
  --body: "Inter", "Heebo", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 900px;
}

/* ---------- motion ---------- */
@keyframes sheen-slide {
  from {
    transform: translateX(110%) skewX(-10deg);
  }
  to {
    transform: translateX(-110%) skewX(-10deg);
  }
}

@keyframes glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, -6%) scale(1.12);
  }
}

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

.sheen {
  position: absolute;
  top: -25%;
  height: 150%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: sheen-slide 5s linear infinite;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  animation: glow-drift 16s ease-in-out infinite;
  pointer-events: none;
}

.rise {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 20, 42, 0.6);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand .mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--glow));
  color: var(--ink);
  font-weight: 900;
  font-size: 0.85rem;
}

.brand .name {
  font-family: var(--display);
  letter-spacing: 0.18em;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- language toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  background: transparent;
  color: rgba(217, 211, 240, 0.6);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.lang-toggle button:hover {
  color: var(--fg);
}

.lang-toggle button[aria-pressed="true"] {
  color: var(--brand);
  border-color: rgba(0, 229, 255, 0.4);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--brand);
  color: var(--ink);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: rgba(0, 229, 255, 0.6);
  color: var(--brand);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.eyebrow .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--brand);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero .inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
  width: 100%;
}

h1.title {
  font-family: var(--display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 30rem;
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: none;
  position: relative;
  height: 440px;
}

.hero-visual .panel {
  position: absolute;
  inset: 0;
  transform: rotate(-6deg);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.hero-visual .tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 2rem;
}

.hero-visual .tile {
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 3.5rem;
}

.hero-visual .tile.accent-a {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(124, 58, 237, 0.2));
}

.hero-visual .tile.accent-b {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(0, 229, 255, 0.2));
}

.hero-visual .chip {
  position: absolute;
  bottom: -1rem;
  inset-inline-end: -0.5rem;
  transform: rotate(6deg);
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.hero-visual .chip small {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-visual .chip strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--brand);
}

.hero-visual .chip strong span {
  font-family: var(--body);
  font-size: 0.95rem;
  color: rgba(242, 240, 250, 0.45);
}

/* ---------- sections ---------- */
section.block {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

section.bordered {
  border-top: 1px solid var(--border);
}

h2.heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2.heading .sub {
  color: rgba(169, 163, 200, 0.7);
}

h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.section-head p {
  color: var(--muted);
  max-width: 20rem;
}

.grid-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.4);
}

.card .num {
  font-family: var(--display);
  font-size: 2.25rem;
  color: rgba(0, 229, 255, 0.8);
}

.card p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.glass {
  position: relative;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  padding: 2rem;
  overflow: hidden;
}

.glass .body {
  margin-top: 1.5rem;
  color: var(--muted);
  max-width: 44rem;
}

.mirror {
  margin-top: 2rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p {
  color: var(--muted);
  margin-top: 1.25rem;
}

.prose h3 {
  margin-top: 2.5rem;
  color: var(--fg);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

/* ---------- life path calculator ---------- */
.life-path-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1.5rem;
}

.life-path-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: min(100%, 16rem);
}

.life-path-field label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.life-path-field input[type="date"] {
  appearance: none;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font: inherit;
  color-scheme: dark;
}

.life-path-field input[type="date"]:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.life-path-result {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.life-path-result[hidden],
.life-path-error[hidden] {
  display: none;
}

.life-path-result strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--brand);
  line-height: 1;
}

.life-path-result p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.life-path-error {
  margin-top: 1rem;
  color: #ffb4b4;
  font-size: 0.95rem;
}

.life-path-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(169, 163, 200, 0.7);
}

/* ---------- contact ---------- */
.tally-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 1rem;
  background: transparent;
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(169, 163, 200, 0.7);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: rgba(169, 163, 200, 0.6);
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .grid-numbers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer .inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-numbers {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .hero .inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero-visual {
    display: block;
  }
  .glass {
    padding: 3rem;
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
  }
}

/* Hide the inactive language's copy */
[data-lang-en],
[data-lang-he] {
  display: none;
}

html[lang="en"] [data-lang-en],
html[lang="he"] [data-lang-he] {
  display: revert;
}

/* ---------- success stories ---------- */
.stories-grid-bg {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.stories-head {
  border-inline-start: 4px solid var(--brand);
  padding-inline-start: 1.5rem;
  margin-bottom: 3.5rem;
}

.stories-head .kicker {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--glow);
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
}

.story-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: background 0.3s;
}

.story-card:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.story-card:hover {
  background: rgba(0, 229, 255, 0.06);
}

.story-card:nth-child(even):hover {
  background: rgba(124, 58, 237, 0.09);
}

.story-card .index {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.25rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: rgba(242, 240, 250, 0.15);
  transition: color 0.3s;
  pointer-events: none;
}

.story-card:hover .index {
  color: rgba(0, 229, 255, 0.5);
}

.story-card:nth-child(even):hover .index {
  color: rgba(124, 58, 237, 0.7);
}

.story-card .name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.story-card .role {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
}

.story-card:nth-child(even) .role {
  color: #a78bfa;
}

.story-card .quote {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  font-style: italic;
}

.story-card .quote [data-lang-he] {
  font-style: normal;
}

@media (min-width: 640px) {
  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .story-card {
    padding: 2.25rem;
  }
}
