/* ==========================================================================
   lerner.click — portfolio
   ========================================================================== */

:root {
  --bg: #060913;
  --bg-2: #0b1020;
  --bg-3: #111831;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #9aa5c4;
  --dim: #6b7594;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --white: #ffffff;
  --grad: linear-gradient(120deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.no-scroll, html.no-scroll body { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: rgba(59, 130, 246, 0.45); color: #fff; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

/* ---------- Background layers ---------- */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.9;
}
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.mesh span {
  position: absolute; border-radius: 50%; opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.mesh span:nth-child(1) { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax; background: radial-gradient(circle, rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0.35) 30%, transparent 62%); }
.mesh span:nth-child(2) { width: 55vmax; height: 55vmax; right: -22vmax; top: 10vh; background: radial-gradient(circle, rgba(6, 182, 212, 0.85), rgba(6, 182, 212, 0.3) 30%, transparent 62%); animation-duration: 32s; animation-delay: -8s; }
.mesh span:nth-child(3) { width: 65vmax; height: 65vmax; left: 20vw; bottom: -40vmax; background: radial-gradient(circle, rgba(124, 58, 237, 0.9), rgba(124, 58, 237, 0.35) 30%, transparent 62%); animation-duration: 38s; animation-delay: -16s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8vw, 6vh, 0) scale(1.15); }
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.spotlight {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 1200px; height: 1200px; margin: -600px 0 0 -600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.10), transparent 50%);
  transform: translate3d(50vw, 30vh, 0);
  transition: transform 0.15s linear;
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; right: 0; height: 3px; width: 100%; z-index: 60;
  transform: scaleX(0); transform-origin: right;
  background: var(--grad); box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(6, 9, 19, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 40px rgba(0, 0, 0, 0.35);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: 0.01em; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.5)); }
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 10px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a.cta {
  color: #fff; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: background-position 0.5s, transform 0.3s, box-shadow 0.3s;
}
.nav-links a.cta:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.3s, opacity 0.3s; border-radius: 2px; }
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: var(--nav-h); inset-inline: 0; flex-direction: column; padding: 16px 24px 28px;
    background: rgba(6, 9, 19, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; text-align: center; padding: 14px; font-size: 17px; }
  .burger { display: grid; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 48px) 0 64px;
  position: relative; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; text-align: center; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.04); font-size: 14px; color: var(--muted);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.hero h1 { font-size: clamp(40px, 6vw, 76px); margin: 22px 0 18px; font-weight: 900; }
.hero h1 .grad { background: var(--grad); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 8s ease infinite; }
@keyframes hue { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 620px; }
@media (max-width: 960px) { .hero .lead { margin-inline: auto; } }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 960px) { .hero-actions { justify-content: center; } }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s; position: relative; overflow: hidden;
}
.btn-primary { color: #fff; background: var(--grad); background-size: 200% 100%; box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5); background-position: 100% 0; }
.btn-ghost { border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; perspective: 1200px; }
.hero-logo { width: min(420px, 78%); filter: drop-shadow(0 24px 40px rgba(37, 99, 235, 0.45)); animation: float 6s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); } 50% { transform: translateY(-16px); } }
.orbit { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.12); animation: spin 40s linear infinite; }
.orbit.o1 { width: 88%; aspect-ratio: 1; }
.orbit.o2 { width: 112%; aspect-ratio: 1; animation-direction: reverse; animation-duration: 60s; border-color: rgba(255, 255, 255, 0.07); }
.orbit i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 18px rgba(56, 189, 248, 0.9); }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-float {
  position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: rgba(13, 18, 38, 0.88); border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: float 7s ease-in-out infinite; display: flex; gap: 8px; align-items: center;
}
.chip-float b { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.chip-float.c1 { top: 8%; right: 2%; animation-delay: -2s; }
.chip-float.c2 { bottom: 12%; right: 6%; animation-delay: -4s; }
.chip-float.c3 { top: 42%; left: -2%; animation-delay: -1s; }
@media (max-width: 960px) { .chip-float, .orbit.o2 { display: none; } .hero-visual { min-height: 300px; } .hero-logo { width: min(300px, 65%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 20px 22px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.045); border: 1px solid var(--card-border);
}
.stat strong { display: block; font-size: 34px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--dim); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, #38bdf8); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Logo marquee ---------- */
.marquee { padding: 28px 0 16px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }
.marquee .tile {
  position: relative; width: 140px; height: 84px; flex: none;
  border-radius: 16px; background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  opacity: 0.9; transition: transform 0.35s var(--ease), opacity 0.35s, box-shadow 0.35s;
}
.marquee .tile:hover {
  transform: scale(1.09); opacity: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
/* the image fills the plate exactly; its own padding is the breathing room,
   and object-fit keeps the logo inside that box whatever its proportions */
.marquee .tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; padding: 13px 15px;
  object-fit: contain; object-position: center;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
#what, #process, #contact { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker { color: #38bdf8; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; align-items: center; }
.filter {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03);
  color: var(--muted); font-weight: 600; font-size: 14px; transition: 0.3s var(--ease); position: relative;
}
.filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.filter.active { color: #fff; background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12); }
.filter small { opacity: 0.6; margin-inline-start: 8px; font-weight: 500; unicode-bidi: isolate; display: inline-block; }
.search { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03); min-width: 220px; }
.search input { background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; width: 100%; }
.search input::placeholder { color: var(--dim); }
.search svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
@media (max-width: 640px) { .search { width: 100%; margin: 0; } }

/* ---------- Gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  --c1: #2563eb; --c2: #06b6d4;
  position: relative; border-radius: var(--radius); padding: 1px; cursor: pointer;
  background: var(--card-border);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), box-shadow 0.4s;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(240px circle at var(--px, 50%) var(--py, 50%), var(--c2), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 60px -30px var(--c2); }
.card-inner {
  border-radius: calc(var(--radius) - 1px); background: linear-gradient(160deg, rgba(14, 20, 40, 0.92), rgba(9, 13, 28, 0.94));
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
}
.card-visual {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  /* לוחית בהירה: הלוגואים נבנו לרקע לבן, ולכן אזור הלוגו בכרטיס בהיר —
     עם נגיעה עדינה בצבע הפרויקט כדי לשמור על הזהות. fallback לדפדפנים בלי color-mix. */
  background: linear-gradient(150deg, #ffffff, #e6ecf6);
  background:
    radial-gradient(120% 100% at 18% 0%, color-mix(in srgb, var(--c2) 28%, transparent), transparent 62%),
    radial-gradient(120% 110% at 92% 100%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 64%),
    linear-gradient(150deg, #ffffff, #e6ecf6);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}
.card-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(62% 60% at 50% 48%, rgba(255, 255, 255, 0.95), transparent 74%);
  opacity: 0.85; transition: opacity 0.5s;
}
.card:hover .card-visual::before { opacity: 1; }
.card-visual::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(circle at center, #000, transparent 78%); -webkit-mask-image: radial-gradient(circle at center, #000, transparent 78%); }
.card-visual .logo-tile {
  position: absolute; inset: 14% 18%; z-index: 1;
  transition: transform 0.6s var(--ease);
}
.card:hover .logo-tile { transform: scale(1.07); }
.card-visual .logo-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.18));
}
.card-visual .platforms { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 6px; z-index: 1; }
.card-visual .platforms i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(15, 23, 42, 0.12); display: grid; place-items: center; color: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.card-visual .platforms svg { width: 15px; height: 15px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-body h3 { font-size: 21px; }
.card-body .domain { color: #38bdf8; font-size: 13px; font-weight: 600; direction: ltr; font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; opacity: 0.9; }
.card-body .tagline { color: var(--muted); font-size: 14px; margin-top: -4px; }
.card-body .desc { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--card-border); color: var(--muted); font-weight: 500; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 14px; font-weight: 600; }
.card-foot .more { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.card-foot .more svg { width: 16px; height: 16px; transition: transform 0.3s; }
.card:hover .card-foot .more svg { transform: translateX(-4px); }
.card-foot a.open { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; transition: 0.25s; }
.card-foot a.open:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.card-foot a.open svg { width: 14px; height: 14px; }
/* כרטיס מסונן יוצא לגמרי מהזרימה — position:absolute השאיר אותו מרחף מעל הגריד */
.card.hide { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.grid.filtering .card:not(.hide) { animation: cardIn 0.42s var(--ease) backwards; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; display: none; }
.empty.show { display: block; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1024px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); position: relative; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(56, 189, 248, 0.4); }
.pillar::after { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.pillar:hover::after { opacity: 1; }
.pillar .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35); }
.pillar .ico svg { width: 24px; height: 24px; color: #fff; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
@media (max-width: 1024px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step { padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); position: relative; }
.step::before { counter-increment: step; content: '0' counter(step); font-size: 44px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; display: block; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Tech marquee ---------- */
.tech { padding: 40px 0 96px; }
.tech-row { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.tech-row + .tech-row { margin-top: 14px; }
.tech-track { display: flex; gap: 12px; width: max-content; animation: marquee 45s linear infinite; }
.tech-row.rev .tech-track { animation-direction: reverse; animation-duration: 55s; }
.tech-track span { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03); font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.tech-track span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- Contact ---------- */
.contact-box {
  position: relative; border-radius: 32px; padding: clamp(36px, 6vw, 72px); text-align: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.2)); border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-box::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 60%, rgba(56, 189, 248, 0.35) 75%, transparent 90%); animation: spin 14s linear infinite; }
.contact-box::after { content: ''; position: absolute; inset: 1px; border-radius: 31px; background: rgba(8, 12, 28, 0.9); }
.contact-box > * { position: relative; z-index: 1; }
.contact-box h2 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 14px; }
.contact-box p { color: var(--muted); font-size: 18px; max-width: 620px; margin-inline: auto; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 32px; border-top: 1px solid var(--card-border); color: var(--dim); font-size: 14px; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .brand { font-size: 16px; }
footer .brand img { width: 30px; height: 30px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; overscroll-behavior: contain; transition: opacity 0.35s, visibility 0s 0.35s; }
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.35s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 12, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); touch-action: none; }
.modal-card {
  --c1: #2563eb; --c2: #06b6d4;
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 28px;
  background: #0b1020; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  transform: translateY(24px) scale(0.97); transition: transform 0.45s var(--ease);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 16px; inset-inline-start: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); display: grid; place-items: center; color: #fff; z-index: 3; transition: 0.25s; border: 1px solid rgba(255, 255, 255, 0.15); }
.modal-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-hero {
  position: relative; padding: 56px 40px 40px; display: flex; align-items: center; gap: 34px; overflow: hidden;
  background:
    radial-gradient(100% 130% at 12% 0%, var(--c2), transparent 62%),
    radial-gradient(90% 120% at 96% 100%, var(--c1), transparent 64%),
    linear-gradient(150deg, #121b34, #080d1c);
}
.modal-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(34% 62% at 11% 50%, rgba(255, 255, 255, 0.14), transparent 72%); }
.modal-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(circle at 25% 50%, #000, transparent 88%); -webkit-mask-image: radial-gradient(circle at 25% 50%, #000, transparent 88%); }
.modal-hero > * { position: relative; z-index: 1; }
.modal-hero .logo-tile {
  position: relative; width: 176px; height: 140px; flex: none; padding: 14px; border-radius: 20px;
  background: linear-gradient(150deg, #ffffff, #e8edf6); border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.modal-hero .logo-tile img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; object-position: center; }
.modal-hero h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
.modal-hero .tagline { color: rgba(255, 255, 255, 0.85); font-size: 17px; margin-top: 4px; }
.modal-hero .domain { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 13px; direction: ltr; }
.modal-hero .domain svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .modal-hero { flex-direction: column; text-align: center; padding: 64px 22px 32px; } .modal-hero .logo-tile { width: 156px; height: 116px; } }
.modal-body { padding: 32px 40px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
@media (max-width: 760px) { .modal-body { grid-template-columns: 1fr; padding: 26px 22px 32px; } }
.modal-body h4 { font-size: 14px; color: #38bdf8; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.modal-body .long { color: var(--text); font-size: 16.5px; line-height: 1.8; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.features li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.features li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000 0 0); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.modal-side { display: flex; flex-direction: column; gap: 26px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-actions .btn { padding: 12px 20px; font-size: 15px; }
.plat-list { display: flex; gap: 8px; flex-wrap: wrap; }
.plat-list span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--card-border); font-size: 13.5px; }
.plat-list svg { width: 15px; height: 15px; color: #38bdf8; }
.modal-nav { display: flex; justify-content: space-between; gap: 12px; padding: 0 40px 32px; }
@media (max-width: 760px) { .modal-nav { padding: 0 22px 26px; } }
.modal-nav button { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--card-border); transition: 0.25s; max-width: 48%; }
.modal-nav button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.modal-nav button svg { width: 14px; height: 14px; flex: none; }
.modal-nav button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  #bg-canvas { display: none; }
}
