/* =========================================================
   קריפטו וועלט — Design tokens (מבוסס על Figma design system)
   ========================================================= */

@font-face {
  font-family: 'Discovery Fs';
  src: url('../assets/fonts/Discovery_Fs-Light.woff2') format('woff2'),
       url('../assets/fonts/Discovery_Fs-Light.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Discovery Fs';
  src: url('../assets/fonts/Discovery_Fs-Medium.woff2') format('woff2'),
       url('../assets/fonts/Discovery_Fs-Medium.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Talent FS';
  src: url('../assets/fonts/Talent_FS-Light.woff2') format('woff2'),
       url('../assets/fonts/Talent_FS-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Talent FS';
  src: url('../assets/fonts/Talent_FS-Bold.woff2') format('woff2'),
       url('../assets/fonts/Talent_FS-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #1c1c1c;
  --yellow: #ffc712;
  --blue: #4a4fd9;
  --light: #f6f7fa;
  --cream: #fff6e6;
  --white: #ffffff;
  --gradient: linear-gradient(115deg, #6d4fbe 0%, #5348bb 30%, #3a40b7 65%, #262a78 100%);

  --font-heading: 'Discovery Fs', sans-serif;
  --font-body: 'Talent FS', sans-serif;

  /* Figma scale (1920): H1 128 / H2 96 / H3 32 / P 24 */
  --fs-h1: clamp(46px, 6.67vw, 128px);
  --fs-h2: clamp(36px, 5vw, 96px);
  --fs-h2-xl: clamp(40px, 6.67vw, 128px);
  --fs-h3: clamp(22px, 1.67vw, 32px);
  --fs-body: clamp(16px, 1.25vw, 24px);
  --fs-small: clamp(15px, 1.05vw, 20px);

  --container: 1920px;
  --pad-x: clamp(16px, 1.2vw, 23px);
  --radius-lg: 30px;
  --radius-md: 24px;
  --radius-pill: 100px;

  --shadow-card: 0 20px 60px -20px rgba(28, 28, 28, 0.15);
  --shadow-soft: 0 10px 30px -10px rgba(74, 79, 217, 0.35);

  --ease-spring: cubic-bezier(.22, 1.2, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: .95;
  margin: 0;
}

p { line-height: 1.5; margin: 0; }

.accent { color: var(--blue); }

/* ---------- Arrow icon ---------- */
.arw {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform .35s var(--ease-spring);
}
.btn-sm .arw, .btn-link .arw, .footer-col .arw { width: 11px; height: 11px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.25vw, 24px);
  padding: clamp(13px, .83vw, 16px) clamp(22px, 1.67vw, 32px);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn:hover .arw { transform: translate(-3px, -3px); }

/* shine sweep */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(110%);
  pointer-events: none;
}
.btn:hover::after { animation: shine .8s ease; }
@keyframes shine {
  from { transform: translateX(110%); }
  to   { transform: translateX(-110%); }
}

.btn-yellow { background: var(--yellow); color: rgba(0,0,0,.85); }
.btn-yellow:hover { box-shadow: 0 14px 28px -8px rgba(255, 199, 18, .6); }

.btn-gradient { background: var(--gradient); color: var(--light); }
.btn-gradient:hover { box-shadow: var(--shadow-soft); }

.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { box-shadow: 0 14px 28px -10px rgba(0,0,0,.35); }

.btn-outline {
  background: var(--light);
  color: var(--dark);
  border: 1px solid rgba(0,0,0,.15);
}
.btn-sm { padding: 12px 26px; font-size: var(--fs-small); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-link .arw { transition: transform .35s var(--ease-spring); }
.btn-link:hover .arw { transform: translate(-3px, -3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(28,28,28,.18); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  max-width: 1920px;
  padding-left: clamp(16px, 3vw, 64px);
  padding-right: clamp(16px, 3vw, 64px);
  transition: padding .3s ease;
}
.site-header.scrolled .container { padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; }
.logo img { height: clamp(44px, 4.7vw, 78px); width: auto; transition: height .3s ease; }
.site-header.scrolled .logo img { height: clamp(40px, 3.6vw, 60px); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.2vw, 60px);
  background: var(--light);
  border-radius: var(--radius-pill);
  padding: clamp(12px, 1vw, 20px) clamp(24px, 2.8vw, 56px);
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: rgba(0,0,0,.8);
  white-space: nowrap;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav img { width: clamp(18px, 1.25vw, 24px); height: clamp(18px, 1.25vw, 24px); transition: transform .3s var(--ease-spring); }
.main-nav a:hover img { animation: wiggle .5s ease; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg) scale(1.15); }
  60% { transform: rotate(9deg) scale(1.1); }
}

.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--dark);
  position: relative;
  transition: all .3s var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4px, .8vw, 15px) 0 clamp(24px, 2vw, 40px);
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: url('../assets/images/bg-hero.webp') center / cover no-repeat, linear-gradient(160deg, #fff6e6, #eef0fb);
  padding: clamp(28px, 3.4vw, 66px) clamp(24px, 3.4vw, 66px) clamp(24px, 2.4vw, 46px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 40px);
  align-items: center;
}
.bsd {
  position: absolute;
  top: clamp(12px, 1.3vw, 25px);
  left: 50%;
  translate: -50%;
  font-size: var(--fs-body);
  color: rgba(0, 0, 0, .8);
  z-index: 4;
}
.hero-grid {
  position: absolute;
  left: -2%;
  top: 4%;
  width: 48%;
  height: 92%;
  object-fit: contain;
  object-position: left top;
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: .9; }
  50% { opacity: .5; }
}

.hero-text { position: relative; z-index: 3; padding-right: clamp(0px, .8vw, 15px); }
.hero-text h1 {
  font-size: clamp(44px, 6.1vw, 117px);
  line-height: .92;
  margin-bottom: clamp(18px, 1.9vw, 36px);
  text-wrap: balance;
}
.hero-text h1 .dot { color: var(--yellow); }
.hero-text p {
  font-size: var(--fs-body);
  color: rgba(0,0,0,.78);
  max-width: 26em;
  margin-bottom: clamp(22px, 1.9vw, 36px);
  margin-right: auto;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero visual composition */
.hero-visual {
  position: relative;
  z-index: 2;
  min-height: clamp(300px, 29vw, 560px);
}
.hero-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-visual .main-mock {
  position: absolute;
  width: 75%;
  top: 5%;
  right: 12%;
  border-radius: 4.5% / 5%;
  box-shadow: var(--shadow-card);
  z-index: 2;
}
.hero-visual .side-mock {
  position: absolute;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.hero-visual .side-mock.right { width: 33%; top: 20%; right: 71%; z-index: 1; }
.hero-visual .side-mock.left { width: 28%; bottom: 8%; left: 68%; z-index: 3; }

.coin {
  position: absolute;
  z-index: 4;
  filter: drop-shadow(0 14px 26px rgba(74,79,217,.35));
  pointer-events: none;
}
.hero-visual .coin-eth { width: 22%; top: -8%; right: 88%; z-index: 3; }
.hero-visual .coin-hype { width: 15%; top: 12%; left: 71%; z-index: 3; }
.hero-visual .coin-btc { width: 29%; bottom: -9%; left: 50%; z-index: 5; }
.hero-visual .coin-usdc { width: 23%; bottom: 6%; right: 74%; z-index: 1; }
.coin-sol-edge {
  width: clamp(90px, 14.5vw, 273px);
  bottom: -8%;
  right: calc(-1 * var(--pad-x) - 7vw);
  z-index: 6;
}

/* floating + pop-in */
.float-el {
  animation: float var(--fd, 6s) ease-in-out var(--fdel, 0s) infinite;
}
@keyframes float {
  0%, 100% { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(0deg); }
  50% { transform: translate(var(--px, 0px), calc(var(--py, 0px) - 9px)) rotate(1.4deg); }
}
@property --px {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
.coin { transition: --px .5s var(--ease-out); }
.pop { opacity: 0; scale: .3; }
.pop.in-view {
  animation: float var(--fd, 6s) ease-in-out var(--fdel, 0s) infinite,
             popIn .7s var(--ease-spring) var(--pd, 0s) forwards;
}
@keyframes popIn {
  from { opacity: 0; scale: .3; }
  70% { opacity: 1; scale: 1.12; }
  to { opacity: 1; scale: 1; }
}

/* stats bar */
.hero-stats {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(22px, 2.8vw, 54px);
  margin-top: clamp(6px, 1vw, 18px);
  padding-right: clamp(0px, 6.5vw, 125px);
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.15vw, 41px);
  font-weight: 600;
  color: var(--dark);
  direction: ltr;
}
.stat span { font-size: clamp(13px, 1vw, 19px); color: rgba(0,0,0,.65); }
.hero-stats .sep { width: 1px; height: clamp(36px, 2.7vw, 52px); background: rgba(0,0,0,.18); }

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  max-width: 1160px;
  margin: 0 auto clamp(36px, 3.7vw, 72px);
}
.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: clamp(14px, 1.25vw, 24px);
}
.section-head p { font-size: var(--fs-body); color: rgba(0,0,0,.7); max-width: 34em; margin: 0 auto; }
.section-head h2 .accent { display: block; }
.section { padding: clamp(48px, 4.7vw, 90px) 0; }
.section.tight { padding: clamp(36px, 3.2vw, 60px) 0; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-bottom: clamp(24px, 2.5vw, 40px); }
.legal-hero h1 { font-size: var(--fs-h2-xl); margin-bottom: 12px; max-width: 20em; }
.legal-hero .updated { font-size: var(--fs-small); color: rgba(0,0,0,.55); }
.legal-body { max-width: 860px; }
.legal-body h2 { font-size: var(--fs-h3); margin: clamp(28px, 2.5vw, 40px) 0 12px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { font-size: var(--fs-small); color: rgba(0,0,0,.78); margin-bottom: 12px; }
.legal-body ul { padding-inline-start: 22px; list-style: disc; margin-bottom: 12px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-body strong { font-weight: 600; color: var(--dark); }
.legal-note { background: var(--cream); border-radius: var(--radius-md); padding: clamp(16px, 1.6vw, 26px); margin: clamp(20px, 2vw, 32px) 0 0; }
.legal-note p { margin-bottom: 0; }

/* ---------- Features bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(230px, 14.9vw, 286px);
  gap: clamp(12px, .84vw, 16px);
  max-width: 1794px;
  margin: 0 auto;
}
.bento-card {
  border-radius: var(--radius-md);
  padding: clamp(22px, 1.7vw, 32px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .4s var(--ease-spring), box-shadow .4s ease;
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.bento-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: clamp(8px, .7vw, 14px); align-items: flex-start; }
.bento-card h3 { font-size: var(--fs-h3); }
.bento-card p { font-size: var(--fs-small); color: rgba(0,0,0,.7); line-height: 1.3; }
.bento-card .btn-link { margin-top: 4px; align-self: flex-end; }
.bento-card.c-learn .btn-link { align-self: center; }

.bento-card .cat-icon {
  position: absolute;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 16px 26px rgba(38,42,120,.25));
  transition: transform .5s var(--ease-spring);
}
.bento-card:hover .cat-icon { animation: iconBob .9s var(--ease-spring); }
@keyframes iconBob {
  0% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-12px) rotate(-5deg) scale(1.05); }
  60% { transform: translateY(2px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* spotlight qui suit la souris */
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(74, 79, 217, .10), transparent 45%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.bento-card.c-forum::after, .bento-card.c-news::after {
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 45%);
}
.bento-card.c-trade::after {
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .32), transparent 45%);
}
.bento-card:hover::after { opacity: 1; }

/* deco circles on colored cards */
.bento-card.c-forum::before, .bento-card.c-news::before,
.bento-card.c-games::before, .bento-card.c-trade::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  transition: transform .6s var(--ease-out);
}
.bento-card.c-forum::before {
  width: 44%; aspect-ratio: 1; left: -14%; top: -35%;
  background: transparent;
  border: clamp(30px, 3.4vw, 65px) solid rgba(255,255,255,.09);
}
.bento-card.c-news::before {
  width: 55%; aspect-ratio: 1; right: 32%; bottom: -80%;
  background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,.04) 60%, transparent 70%);
}
.bento-card.c-games::before {
  width: 150%; aspect-ratio: 1; left: -25%; top: -70%;
  background: radial-gradient(circle, rgba(255,255,255,.5), rgba(255,255,255,.15) 60%, transparent 70%);
}
.bento-card.c-trade::before {
  width: 90%; aspect-ratio: 1; left: -30%; top: -55%;
  background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,.08) 60%, transparent 70%);
}
.bento-card:hover::before { transform: scale(1.15); }

/* placement (RTL grid: column 1 = right) */
.bento-card.c-learn { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-card.c-forum { grid-column: 3 / 7; grid-row: 1; }
.bento-card.c-wallet { grid-column: 3 / 5; grid-row: 2; }
.bento-card.c-trade { grid-column: 5 / 7; grid-row: 2; }
.bento-card.c-news { grid-column: 1 / 5; grid-row: 3; }
.bento-card.c-games { grid-column: 5; grid-row: 3; }
.bento-card.c-tools { grid-column: 6; grid-row: 3; }

/* card skins */
.bento-card.c-forum {
  background: var(--gradient);
  color: var(--light);
}
.bento-card.c-forum .bento-body { max-width: 48%; margin-right: 33%; }
.bento-card.c-forum .cat-icon { width: 19%; right: 12%; top: 50%; translate: 0 -50%; }

.bento-card.c-learn {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(255,199,18,.28), transparent 55%),
    radial-gradient(120% 80% at 10% 100%, rgba(74,79,217,.14), transparent 60%),
    linear-gradient(180deg, #fdf4e3 0%, #f2f3fb 70%, #fff 100%);
  justify-content: flex-end;
}
.bento-card.c-learn { overflow: visible; }
.bento-card.c-learn .cat-icon { width: 82%; top: -19%; left: 50%; translate: -50% 0; }
.bento-card.c-learn .bento-body { margin-bottom: 4%; }

.bento-card.c-trade { background: var(--yellow); }
.bento-card.c-trade p { color: rgba(0,0,0,.75); }
.bento-card.c-trade .bento-body { max-width: 60%; margin-right: 32%; }
.bento-card.c-trade .cat-icon { width: 22%; right: 5%; top: 46%; translate: 0 -50%; }
.bento-card.c-trade .btn-link { color: var(--dark); }

.bento-card.c-wallet { background: var(--white); border: 1px solid rgba(74,79,217,.45); }
.bento-card.c-wallet .cat-icon { width: 29%; left: 6%; top: 50%; translate: 0 -50%; }
.bento-card.c-wallet .bento-body { margin-right: 2%; max-width: 62%; }

.bento-card.c-tools { background: var(--white); border: 1px solid rgba(74,79,217,.45); }
.bento-card.c-tools .cat-icon { width: 42%; left: 10%; top: 30%; }

.bento-card.c-games {
  background: linear-gradient(200deg, #f2f3fd 0%, #e4e6fa 100%);
}
.bento-card.c-games .cat-icon { width: 44%; left: 10%; top: 16%; }
.bento-card.c-games .bento-body, .bento-card.c-tools .bento-body {
  margin-right: 4%;
  height: 100%;
  justify-content: center;
}
.bento-card.c-games .btn-link, .bento-card.c-tools .btn-link { margin-top: auto; }
.bento-card.c-games h3, .bento-card.c-tools h3 { margin-top: auto; }

.bento-card.c-news { background: var(--gradient); color: var(--light); }
.bento-card.c-news .bento-body { max-width: 50%; margin-right: 19%; }
.bento-card.c-news .cat-icon { width: 15%; left: 7%; top: 50%; translate: 0 -50%; }

.bento-card.c-forum h3, .bento-card.c-news h3 { color: var(--white); }
.bento-card.c-forum p, .bento-card.c-news p { color: rgba(246,247,250,.85); }
.bento-card.c-forum .btn-link, .bento-card.c-news .btn-link { color: var(--yellow); }

/* ---------- About ---------- */
.about-section {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(42% 65% at 88% 40%, rgba(255,199,18,.22), transparent 70%),
    radial-gradient(38% 60% at 100% 75%, rgba(109,79,190,.16), transparent 70%),
    radial-gradient(30% 50% at 0% 30%, rgba(74,79,217,.07), transparent 70%);
}
.about-grid {
  position: absolute;
  left: 72%;
  top: 4%;
  width: 24%;
  opacity: .8;
  pointer-events: none;
}
.about-coin { position: absolute; z-index: 1; }
.about-coin.btc { width: clamp(80px, 8.7vw, 167px); right: calc(-1 * clamp(30px, 3.2vw, 62px)); top: 52%; }
.about-coin.eth { width: clamp(120px, 14.6vw, 281px); left: calc(-1 * clamp(50px, 6.2vw, 119px)); top: 24%; }

.about {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: start;
  max-width: 1794px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.about-title h2 {
  font-size: var(--fs-h2);
  margin-bottom: clamp(24px, 2.4vw, 46px);
  max-width: clamp(300px, 28vw, 545px);
  margin-right: 0;
  margin-left: auto;
}
.about-title h2 .accent { display: block; }
.about-title .btn { margin-right: clamp(0px, 10vw, 200px); }
.about-text { padding-top: clamp(4px, 1vw, 20px); }
.about-text p {
  font-size: var(--fs-body);
  color: rgba(0,0,0,.82);
  line-height: 1.45;
  margin-bottom: 1.1em;
}
.about-text .btn { margin-top: clamp(8px, 1vw, 20px); }
.about-text .hl { color: var(--blue); }

/* ---------- Badge cloud ---------- */
.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.2vw, 22px);
  margin-bottom: clamp(-14px, -1vw, -8px);
  padding: 0 clamp(0px, 2vw, 40px) clamp(20px, 2.2vw, 42px);
  position: relative;
  z-index: 3;
}
.badge-cloud span {
  --rot: 0deg;
  display: inline-block;
  padding: clamp(12px, 1.25vw, 24px) clamp(26px, 3vw, 56px);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--blue);
  rotate: var(--rot);
  will-change: transform;
}
.badge-cloud span.in-view { animation: badgeBob var(--bd, 5s) ease-in-out var(--bdel, 0s) infinite; }
.badge-cloud span.filled {
  background: var(--gradient);
  color: var(--white);
  border: none;
}
.badge-cloud span:nth-child(1) { --rot: -7deg; --bd: 5.2s; }
.badge-cloud span:nth-child(2) { --rot: 5deg; --bd: 6.1s; --bdel: .4s; }
.badge-cloud span:nth-child(3) { --rot: -12deg; --bd: 5.6s; --bdel: .9s; }
.badge-cloud span:nth-child(4) { --rot: 9deg; --bd: 4.8s; --bdel: .2s; }
.badge-cloud span:nth-child(5) { --rot: -4deg; --bd: 6.4s; --bdel: 1.1s; }
.badge-cloud span:nth-child(6) { --rot: 11deg; --bd: 5s; --bdel: .6s; }
.badge-cloud span:nth-child(7) { --rot: -9deg; --bd: 5.8s; --bdel: .3s; }
.badge-cloud span:nth-child(8) { --rot: 6deg; --bd: 5.4s; --bdel: 1.3s; }
.badge-cloud span:nth-child(9) { --rot: -5deg; --bd: 6.2s; --bdel: .8s; }
.badge-cloud span:nth-child(10) { --rot: 8deg; --bd: 4.9s; --bdel: .5s; }
@keyframes badgeBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(1.2deg); }
}

/* ---------- Community strip ---------- */
.community {
  border-radius: var(--radius-lg);
  background: var(--gradient);
  color: var(--light);
  padding: clamp(48px, 6vw, 116px) 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.community > :not(.community-bg) { position: relative; z-index: 2; }

/* פס הפאנלים הנע — תמונה + מראה שלה = לולאה חלקה בלי תפר */
.community-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 1;
}
.community-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: .72;
}
/* une seule image, cadrée comme le cover du Figma, qui dérive doucement */
.community-pan {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 112%;
  max-width: none;
  height: auto;
  min-height: 104%;
  object-fit: cover;
  animation: panDominos 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes panDominos {
  from { transform: translateX(-2.7%); }
  to   { transform: translateX(2.7%); }
}
.community h2 {
  font-size: var(--fs-h2-xl);
  margin-bottom: clamp(14px, 1.25vw, 24px);
  color: var(--white);
}
.community p { font-size: var(--fs-body); color: rgba(246,247,250,.9); margin-bottom: clamp(28px, 3.3vw, 64px); }
.community .cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Cards: guides / news ---------- */
.cards-section { position: relative; overflow: clip; }
.section-coin {
  position: absolute;
  z-index: 1;
  filter: blur(3px) drop-shadow(0 14px 26px rgba(74,79,217,.3));
  opacity: .9;
  pointer-events: none;
}
.section-coin.left { width: clamp(110px, 11.5vw, 221px); left: calc(-1 * clamp(40px, 3vw, 58px)); bottom: 0; }
.section-coin.right { width: clamp(120px, 13vw, 248px); right: calc(-1 * clamp(50px, 3.8vw, 73px)); top: 40px; }

.news-section {
  background: linear-gradient(200deg, transparent 40%, rgba(255,231,166,.35) 100%);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(28px, 3vw, 58px);
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1794px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}
.section-header-row h2 { font-size: var(--fs-h2); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.2vw, 42px) clamp(24px, 2.2vw, 42px);
  max-width: 1794px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.article-card { display: flex; flex-direction: column; gap: clamp(14px, 1.3vw, 24px); }
.article-card .thumb {
  aspect-ratio: 570/317;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.article-card:hover .thumb img { transform: scale(1.07); }
.article-card h3 { font-size: var(--fs-h3); margin-bottom: 10px; line-height: 1.2; }
.article-card p { font-size: var(--fs-small); color: rgba(28,28,28,.75); }
.article-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.article-card .meta .date { font-size: var(--fs-small); color: rgba(28,28,28,.6); }

/* ---------- Contact + Footer (overlap) ---------- */
.contact-section {
  position: relative;
  z-index: 3;
  padding-top: clamp(40px, 4vw, 80px);
  margin-bottom: calc(-1 * clamp(160px, 18vw, 350px));
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(28,28,28,.3);
  padding: clamp(36px, 4.2vw, 80px) clamp(24px, 3.5vw, 68px) clamp(24px, 2.4vw, 46px);
  text-align: center;
  max-width: min(1522px, 79.3%);
  margin: 0 auto;
}
.contact-card h2 {
  font-size: var(--fs-h2);
  line-height: 1;
  margin-bottom: clamp(16px, 1.25vw, 24px);
}
.contact-card h2 .accent { display: block; }
.contact-card > p {
  font-size: var(--fs-body);
  color: rgba(0,0,0,.75);
  max-width: 40em;
  margin: 0 auto clamp(26px, 2.9vw, 56px);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1386px;
  margin: 0 auto;
  align-items: end;
}
.contact-form .field {
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.35);
  padding-bottom: 0;
}
.contact-form input {
  width: 100%;
  border: none;
  background: transparent;
  padding: clamp(14px, .9vw, 17px) 12px;
  font-size: var(--fs-body);
  font-family: inherit;
  font-weight: 300;
  text-align: center;
  color: var(--dark);
}
.contact-form input:focus { outline: none; }
.contact-form .field label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: clamp(10px, .84vw, 16px) clamp(22px, 1.7vw, 32px);
  border-radius: var(--radius-pill);
  background: var(--light);
  color: rgba(28,28,28,.6);
  font-size: var(--fs-body);
  pointer-events: none;
  white-space: nowrap;
  transition: all .35s var(--ease-out);
}
.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label {
  top: 0;
  transform: translate(-50%, -110%) scale(.72);
  background: transparent;
  color: var(--blue);
  padding: 2px 10px;
}
.contact-form .field:focus-within { border-color: var(--blue); }
.contact-form .btn { width: 100%; }
.form-note {
  margin-top: 12px;
  min-height: 0;
  font-size: var(--fs-small);
  color: var(--blue);
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: all .4s var(--ease-out);
}
.form-note.show { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; }
.footer-banner {
  border-radius: var(--radius-lg);
  background: url('../assets/images/bg-footer.webp') center / cover no-repeat, var(--gradient);
  color: var(--light);
  padding: calc(clamp(160px, 18vw, 350px) + clamp(30px, 3vw, 60px)) clamp(24px, 4.2vw, 80px) clamp(40px, 4.5vw, 86px);
}
.footer-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: clamp(32px, 7.5vw, 150px);
  flex-wrap: wrap;
}
.footer-top nav:first-of-type { margin-right: auto; }
.footer-brand img.logo-svg { height: clamp(72px, 8.6vw, 165px); width: auto; }
.footer-col ul { display: flex; flex-direction: column; gap: clamp(10px, .9vw, 17px); }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: rgba(246,247,250,.95);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--yellow); }
.footer-col a:hover .arw { transform: translate(-3px, -3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(14px, 1.2vw, 22px) clamp(24px, 2.4vw, 46px);
  font-size: var(--fs-small);
  color: rgba(28,28,28,.85);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .credit { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom .tsiwa { height: clamp(22px, 1.8vw, 34px); width: auto; }

/* ---------- Popup גרסת הרצה ---------- */
.beta-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 28, 28, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.beta-overlay[hidden] { display: none; }
.beta-overlay.open { opacity: 1; pointer-events: auto; }
.beta-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(28, 28, 28, .5);
  max-width: 620px;
  width: 100%;
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3.5vw, 48px) clamp(26px, 3vw, 40px);
  text-align: center;
  transform: scale(.88) translateY(18px);
  transition: transform .45s var(--ease-spring);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.beta-overlay.open .beta-modal { transform: none; }
.beta-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--light);
  color: rgba(0, 0, 0, .6);
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease;
}
.beta-close:hover { background: var(--cream); color: var(--dark); }
.beta-modal h3 {
  font-size: clamp(24px, 2.4vw, 38px);
  margin-bottom: clamp(14px, 1.4vw, 22px);
}
.beta-modal h3 .accent { display: block; font-size: .62em; margin-top: 8px; }
.beta-modal p { font-size: clamp(15px, 1vw, 18px); color: rgba(0, 0, 0, .78); margin-bottom: 12px; }
.beta-modal .beta-strong { font-weight: 700; color: var(--dark); margin-bottom: clamp(18px, 1.8vw, 28px); }
#betaForm { display: flex; flex-direction: column; gap: 12px; }
#betaForm input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
  border-radius: 12px;
  background: var(--light);
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  text-align: center;
  color: var(--dark);
}
#betaForm input:focus { outline: none; box-shadow: 0 0 0 2px var(--blue); }
#betaForm .btn { width: 100%; margin-top: 4px; }
#betaForm .btn.sent { background: linear-gradient(115deg, #0fb56b, #0a9e5c); }
.beta-note { min-height: 1.2em; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--blue); }
.beta-note.err { color: #d64545; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(74,79,217,.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .35s var(--ease-out);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transition:
    opacity .8s var(--ease-out) var(--rd, 0s),
    transform .8s var(--ease-spring) var(--rd, 0s),
    scale .55s var(--ease-spring) var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal[data-reveal="up"] { transform: translateY(46px); }
.reveal[data-reveal="down"] { transform: translateY(-46px); }
.reveal[data-reveal="right"] { transform: translateX(56px); }
.reveal[data-reveal="left"] { transform: translateX(-56px); }
.reveal[data-reveal="zoom"] { transform: scale(.82); }
.reveal[data-reveal="pop"] { scale: .4; }
.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  scale: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
    padding: 18px 20px 26px;
    box-shadow: 0 30px 50px -20px rgba(28,28,28,.25);
    animation: navDrop .35s var(--ease-out);
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
  }
  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    gap: 4px;
    padding: 10px;
  }
  .site-header.nav-open .main-nav a {
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 17px;
  }
  .site-header.nav-open .main-nav a:hover { background: var(--white); }
  .header-cta { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-grid { display: none; }
  .footer-top { flex-direction: column; }
  .footer-top .footer-brand { order: -1; }
}

@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; padding: 34px 22px 28px; }
  .hero-grid { width: 90%; height: 50%; top: auto; bottom: 0; opacity: .5; }
  .hero-text { text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 62vw; margin-top: 8px; }
  .hero-visual .main-mock { width: 78%; right: 11%; top: 4%; }
  .coin-sol-edge { display: none; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-card { min-height: 210px; justify-content: flex-end; }
  .bento-card.c-learn, .bento-card.c-trade, .bento-card.c-wallet, .bento-card.c-forum,
  .bento-card.c-news { grid-column: 1 / -1; grid-row: auto; }
  .bento-card.c-games { grid-column: 1; grid-row: auto; }
  .bento-card.c-tools { grid-column: 2; grid-row: auto; }
  .bento-card.c-learn { min-height: 380px; padding-top: 46%; }
  .bento-card.c-learn .cat-icon { width: 70%; top: -4%; }
  .bento-card.c-forum .bento-body { max-width: 100%; margin-right: 0; padding-right: 30%; }
  .bento-card.c-news .bento-body { max-width: 100%; margin-right: 0; padding-left: 26%; }
  .bento-card.c-trade .bento-body { max-width: 100%; margin-right: 0; padding-right: 28%; }
  .bento-card.c-wallet .bento-body { max-width: 100%; padding-left: 34%; }

  .cards-grid { grid-template-columns: 1fr; gap: 34px; }
  .article-card .thumb { aspect-ratio: 570/300; }

  .community { padding: 52px 22px; }
  .community .cta-row { flex-direction: column; align-items: center; }
  .community .cta-row .btn { width: min(100%, 420px); }

  .contact-card { max-width: 100%; }
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .btn { grid-column: 1 / -1; margin-top: 10px; }
  .contact-card h2 { font-size: clamp(30px, 8vw, 44px); }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.c-games, .bento-card.c-tools { grid-column: 1; }
  .bento-card.c-tools .cat-icon, .bento-card.c-games .cat-icon { width: 30%; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .badge-cloud { gap: 8px; }
}

/* ---------- Barre de progression de lecture ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--blue) 60%, #6d4fbe);
  transform: scaleX(0);
  transform-origin: right;
  z-index: 300;
  pointer-events: none;
}

/* ---------- Titres assemblés mot à mot ---------- */
.wsplit .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) rotate(3deg);
  transition:
    opacity .5s var(--ease-out) calc(var(--wi, 0) * 70ms),
    transform .65s var(--ease-spring) calc(var(--wi, 0) * 70ms);
}
.reveal.in-view .wsplit .w,
.wsplit.in-view .w,
.reveal.in-view.wsplit .w {
  opacity: 1;
  transform: none;
}

/* ---------- Hero : reflet sur l'accent + point qui pulse ---------- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-text h1 .accent {
    background: linear-gradient(100deg, var(--blue) 25%, #8b90ff 50%, var(--blue) 75%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 5.5s ease-in-out 2s infinite;
  }
}
@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}
.hero-text h1 .dot {
  display: inline-block;
  animation: dotPulse 2.6s ease-in-out 1s infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ---------- Bouton d'envoi : état succès ---------- */
.contact-form button.sent {
  background: linear-gradient(115deg, #0fb56b, #0a9e5c);
  animation: sentPop .5s var(--ease-spring);
}
@keyframes sentPop {
  0% { scale: 1; }
  50% { scale: 1.07; }
  100% { scale: 1; }
}

/* ---------- No-anim mode (?noanim) ---------- */
body.no-anim *, body.no-anim *::before, body.no-anim *::after {
  animation: none !important;
  transition: none !important;
}
body.no-anim .reveal, body.no-anim .pop { opacity: 1 !important; transform: none !important; scale: 1 !important; }
body.no-anim .wsplit .w { opacity: 1 !important; transform: none !important; }

/* Animations de survol forcées pour tous les visiteurs, y compris avec
   "Effets d'animation" désactivé dans l'OS — décision explicite d'Israel. */
