@import url("../assets/fonts/rubik/rubik.css");

/* ============================================================
   May i — prowebs · Design System Foundation
   Premium Neo-Brutalism / Dark Cyber-Tech
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anka";
  src: url("../assets/fonts/anka-bold.woff") format("woff");
  font-weight: 400 900;
  /* single physical weight (Bold) — nominal range */
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- palette ---- */
  --bg: #08080a;
  /* rich charcoal base */
  --bg-2: #0e0e12;
  /* raised panel */
  --bg-3: #131319;
  /* input / card */
  --line: #26262e;
  /* 1px grid / borders */
  --line-2: #33333d;
  /* stronger border */
  --ink: #f4f4ef;
  /* off-white text */
  --ink-2: #c8c8d0;
  /* secondary text */
  --mut: #ffffff;
  /* muted / meta */
  --green: #00ff66;
  /* digital / tech */
  --pink: #ff007f;
  /* style / fashion */
  --mustard: #d6fb4c;
  /* lime / attitude (replaced #f1c40f) */
  --green-ink: #04120a;
  /* text on green */

  /* ---- typography (LOCKED) ---- */
  --font-display: "Anka", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, "Helvetica Neue", Arial, sans-serif;

  --h1-fs: clamp(38px, 7.4vw, 70px);
  --h1-fw: 600;
  --h1-lh: 1.07;
  --h1-ls: 0em;
  --h2-fs: clamp(24px, 4vw, 30px);
  --h2-fw: 800;
  --h2-lh: 1.1;
  --h2-ls: -0.01em;
  --bt-fs: 16px;
  --bt-fw: 700;
  --bt-ls: 0.01em;
  --bd-fs: 17px;
  --bd-fw: 400;
  --bd-lh: 1.65;
  --ey-fs: 13px;
  --ey-fw: 600;
  --ey-ls: 0.22em;

  /* ---- spacing / layout ---- */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --grid: 72px;
  /* background grid cell */
  --radius: 0px;
  /* neo-brutalism = sharp */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit
}

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

ul,
ol {
  list-style: none
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--bd-fs);
  line-height: var(--bd-lh);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--green);
  color: var(--green-ink)
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px
}

/* ---- layout helpers ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter)
}

.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: -1px -1px;
}

/* ---- typographic primitives ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--ey-fs);
  font-weight: var(--ey-fw);
  letter-spacing: var(--ey-ls);
  line-height: 1;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s var(--ease) infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .35
  }
}

h1,
.h1 {
  font-family: var(--font-display);
  font-size: var(--h1-fs);
  font-weight: var(--h1-fw);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-ls)
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: var(--h2-fs);
  font-weight: var(--h2-fw);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-ls)
}

.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: var(--ink-2)
}

/* ---- buttons ---- */
/* CTA — dark pill with a light that continuously circles the border (brainai-exact),
   plus a circular arrow badge on the LEFT that rotates 45°→flat on hover. */
.btn {
  --c: var(--green);
  --fill: var(--bg-2);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: var(--bt-fs);
  font-weight: var(--bt-fw);
  letter-spacing: var(--bt-ls);
  color: var(--ink);
  padding: 6px;
  padding-inline-start: 24px;      /* roomy on the text side, tight on the icon */
  border-radius: 999px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* the rotating light that circles the border — always on */
.btn::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: 240%;
  aspect-ratio: 1;
  transform-origin: center;
  background: conic-gradient(from 0deg, transparent 0 35%, var(--c) 100%);
  animation: neon-rotating 2.4s linear infinite;
}

/* inner dark fill — leaves the thin lit ring at the edge */
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.5px;
  border-radius: 999px;
  background: var(--fill);
}

@keyframes neon-rotating {
  from { transform: translate(-50%, -50%) rotate(0turn); }
  to   { transform: translate(-50%, -50%) rotate(1turn); }
}

.btn__txt { white-space: nowrap; }

.btn__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  color: var(--c);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, color-mix(in oklab, var(--c) 22%, transparent), transparent 70%);
}

.btn__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  transform: rotate(45deg);           /* ↖ 45° top-left at rest */
  transition: transform .4s var(--ease);
}

.btn:hover { box-shadow: 0 0 34px -6px var(--c); transform: translateY(-2px); }
.btn:hover .btn__icon svg { transform: rotate(0deg); }   /* ← flat 90° on hover */

.btn .bk { display: none; }
.btn--pink { --c: var(--pink) }
.btn--mustard { --c: var(--mustard) }

@media (prefers-reduced-motion: reduce) {
  .btn::before { animation: none; }
  .btn__icon svg { transition: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px)
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.brand .star {
  color: var(--green)
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 0 18px -8px var(--green), inset 0 0 20px -16px var(--green);
  transition: background var(--dur), box-shadow var(--dur), color var(--dur)
}

.nav-cta:hover {
  background: color-mix(in oklab, var(--green) 12%, var(--bg));
  box-shadow: 0 0 26px -4px var(--green);
  color: var(--green)
}

/* ============================================================
   SECTION — INTRO / VALUE
   ============================================================ */
.section-intro {
  position: relative;
  padding-block: clamp(90px, 16vh, 180px)
}

.section-intro .corner-idx {
  position: static
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 10vh, 110px);
  overflow: hidden
}

/* pitch-black continuous space base — one global backdrop for all sections */
body { background: #050507; }
.hero { background: transparent; }

/* global fixed starfield — never scrolls, so space is continuous across every section */
#space-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2
}

.hero__eyebrow {
  margin-bottom: 26px
}

.hero__title {
  max-width: 17ch;
  margin-bottom: 24px
}

/* headline accent + auto-typing caret */
.hero__title {
  max-width: none;
  text-align: center;
  margin-inline: auto;
  /* the <br> puts each half on its own line; pink half is nowrap so it never
     breaks; plain half only wraps on very narrow phones (no overflow). */
}
/* widen the intro so the (now longer) headline keeps both halves on one line
   each — override showcase.css's 900px cap (our selector is more specific). */
.hero .hero__intro { max-width: min(1220px, 96vw); }

/* bigger headline + a touch more line height (override showcase.css h1 size).
   size + container tuned so both halves stay one line each down to tablet. */
.hero .hero__intro .hero__title {
  font-size: clamp(38px, 5.3vw, 68px);
  line-height: 1.18;
}
/* let the headline + subtitle be selectable (override .hero__intro pointer-events:none) */
.hero .hero__intro .hero__title,
.hero .hero__intro .hero__sub {
  pointer-events: auto;
  user-select: text;
}
.hero .hero__intro .hero__sub { color: #fff; }
/* keep the pink words + growing dots on one line (no orphan dots) */
.hero__title .hl-pink { white-space: nowrap; }
.hero__title .dots { display: inline-block; }

/* ---- cursor spotlight: pink reveal THROUGH the text glyphs ----
   default state (cursor offscreen) = white title + pink accent, as before.
   inside the moving circle: white text fills pink, pink text fills white. */
.hero__title,
.hero__sub {
  background:
    radial-gradient(circle 200px at var(--mx, -1000px) var(--my, -1000px),
      var(--pink) 0, var(--pink) 42%, transparent 72%),
    linear-gradient(#fff, #fff);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* the actual pink splash — a gooey metaball trail (canvas) that follows the
   cursor. z-index:0 puts it at the very back of the hero: behind the gallery
   (z1), the text (z2) and the loading screen (z4) — only the hero's own grid
   background sits behind it. The SVG #goo filter blurs + thresholds the blobs
   so they merge into one continuous liquid shape; JS fades each out over ~1.5s. */
.hero__splash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: url(#goo);
}
.goo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- custom accessibility button (replaces UserWay's locked gold icon) ----
   color follows the active section: green on the loading screen, pink on hero.
   set data-accent="green|pink|mustard" on any <section> to extend. */
:root { --a11y-accent: var(--pink); --a11y-ink: #fff; }
:root[data-accent="green"]   { --a11y-accent: var(--green);   --a11y-ink: var(--green-ink); }
:root[data-accent="pink"]    { --a11y-accent: var(--pink);    --a11y-ink: #fff; }
:root[data-accent="mustard"] { --a11y-accent: var(--mustard); --a11y-ink: #14140a; }

.a11y-fab {
  position: fixed;
  top: 14px;
  inset-inline-end: 16px;
  z-index: 2147483647;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--a11y-accent);
  box-shadow: 0 6px 22px -8px rgba(0, 0, 0, .55);
  transition: background .35s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.a11y-fab:hover { transform: scale(1.07); box-shadow: 0 8px 26px -6px var(--a11y-accent); }
.a11y-fab:focus-visible { outline: 3px solid var(--a11y-accent); outline-offset: 3px; }
.a11y-fab svg { width: 26px; height: 26px; fill: var(--a11y-ink); }
@media (prefers-reduced-motion: reduce) { .a11y-fab { transition: background .35s linear; } }

/* hide UserWay's own launcher everywhere (we drive our own fab); JS hide misses on mobile */
#userwayAccessibilityIcon { display: none !important; }

/* when the pink splash is on the pink accent word, flip the whole word white
   (JS toggles .lit when a live blob overlaps it) so it stays readable */
#hero-title .hl-pink.lit,
#hero-title .hl-pink.lit .dots {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

/* accent word (+ its dots) is the inverse: pink base, white spotlight */
.hero__title .hl-pink,
.hero__title .hl-pink .dots {
  background:
    radial-gradient(circle 200px at var(--mx, -1000px) var(--my, -1000px),
      #fff 0, #fff 42%, transparent 72%),
    linear-gradient(var(--pink), var(--pink));
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__title .type-caret {
  display: inline-block;
  width: .07em;
  height: 1em;
  margin-inline-start: .08em;
  background: var(--pink);
  vertical-align: -0.08em;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.hero__sub {
  max-width: 44ch;
  margin-bottom: 38px
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center
}

.hero__meta {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--mut);
  font-size: 13px;
  letter-spacing: .02em
}

.hero__meta b {
  color: var(--ink);
  font-weight: 700
}

.hero__meta .dot {
  color: var(--green)
}

/* corner index motif */
.corner-idx {
  position: absolute;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--mut);
  opacity: .7
}

.corner-idx--tr {
  top: 20px;
  inset-inline-end: var(--gutter)
}

.corner-idx--bl {
  bottom: 20px;
  inset-inline-start: var(--gutter);
  color: var(--mustard)
}

/* ============================================================
   FOOTER (hard credit — required on every page)
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  margin-top: 0
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center
}

.credit {
  font-size: 13px;
  color: var(--mut)
}

.credit a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  transition: color var(--dur), border-color var(--dur)
}

.credit a:hover {
  color: var(--green);
  border-color: var(--green)
}

@media(max-width:640px) {
  .hero__meta {
    gap: 16px
  }

  .site-footer .container {
    justify-content: center;
    text-align: center
  }

  /* headline: shrink to fit the phone, let the pink half wrap (no clipping) */
  .hero .hero__intro {
    max-width: 100%;
    padding-inline: 20px;
    /* nudge headline+CTA down slightly (kept small — the gallery cards settle at
       a random orbit position each load, so the gap below can't be pinned exactly) */
    top: calc(clamp(104px, 17vh, 196px) + 14px);
  }
  .hero .hero__intro .hero__title {
    font-size: clamp(26px, 8.2vw, 40px);
    line-height: 1.16;
  }
  .hero__title .hl-pink { white-space: normal; }
}
/* accessibility launcher (UserWay) — 10% smaller */
.a11y-fab,
.uwy .uai { transform: scale(.9) !important; transform-origin: center !important; }

/* ============================================================
   FLOATING WHATSAPP (kadabra-style: bare pink icon + "היוש")
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  display: flex;             /* RTL page: first child (icon) sits rightmost */
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .3s var(--ease);
}

.wa-float__icon {
  display: grid;
  place-items: center;
  color: var(--pink);
  transition: color .8s var(--ease);
}

.wa-float__icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  filter: drop-shadow(0 0 14px color-mix(in oklab, currentColor 55%, transparent));
}

.wa-float__text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--pink);
  white-space: nowrap;
  transition: color .8s var(--ease);
}

/* loader phase: green (matches the loading UI), turns brand-pink when the page lands */
body.loading .wa-float__icon,
body.loading .wa-float__text { color: var(--green); }

.wa-float:hover { transform: translateY(-2px); }

@media (max-width: 640px) {
  .wa-float { bottom: 16px; right: 16px; }
  .wa-float__icon svg { width: 30px; height: 30px; }
}

/* ============================================================
   COOKIE CONSENT — "קפה ועוגייה לפני שנתחיל?"
   ============================================================ */
.cookie {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 95;
  width: min(400px, calc(100vw - 44px));
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  padding: 22px 22px 20px;
  opacity: 0;
  translate: 0 24px;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
}
.cookie.show { opacity: 1; translate: 0 0; }

.cookie__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie__icon {
  display: grid;
  place-items: center;
  color: var(--mustard);
}
.cookie__icon svg { width: 26px; height: 26px; }
.cookie__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.cookie__text {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.cookie__actions { display: flex; gap: 10px; }
.cookie__btn {
  flex: 1;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, color .25s;
}
.cookie__btn:hover { transform: translateY(-1px); }
.cookie__btn--accept {
  background: var(--pink);
  border: 1px solid var(--pink);
  color: #fff;
}
.cookie__btn--accept:hover { box-shadow: 0 0 24px -6px var(--pink); }
.cookie__btn--decline {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.cookie__btn--decline:hover { border-color: var(--ink-2); color: #fff; }

@media (max-width: 640px) {
  .cookie { right: 16px; bottom: 84px; }  /* clear of the WhatsApp float */
}

/* ---- footer legal links ---- */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--mut);
}
.footer-legal a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  transition: color var(--dur), border-color var(--dur);
}
.footer-legal a:hover { color: var(--green); border-color: var(--green); }

/* footer social icons — same neon language as the site buttons */
.footer-social { display: flex; align-items: center; gap: 14px; }
.fsoc {
  --c: var(--ink-2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--c);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.fsoc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fsoc:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 0 22px -6px var(--c); }
.fsoc--ig:hover { --c: var(--pink); }
.fsoc--fb:hover { --c: var(--green); }
.fsoc--tt:hover { --c: var(--mustard); }
.fsoc--in:hover { --c: var(--pink); }
