/* ============================================================
   Next Core Labs — Marketing site styles
   ============================================================ */
@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: var(--font-arabic); }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px) {
  .container { padding: 0 40px; }
}

/* ---------- Reveal primitive ----------
   No-op visually — content is always visible. The .reveal class is kept
   as a hook so a future build can wire in animations via JS (Web Animations
   API or a library that doesn't depend on the CSS animation engine).     */
.reveal { will-change: auto; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--purple-400);
}
[dir="rtl"] .eyebrow::before { display: none; }
[dir="rtl"] .eyebrow::after {
  content: "";
  width: 18px; height: 1px;
  background: var(--purple-400);
}

/* ---------- Section primitives ---------- */
.section {
  padding: 96px 0;
  position: relative;
}
@media (min-width: 900px) {
  .section { padding: 144px 0; }
}
.section-title {
  font-family: "Neutiva", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 14px 0 0;
  text-wrap: balance;
  max-width: 22ch;
}
.section-sub {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Neutiva", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 16px; padding: 15px 26px; }
.btn-primary {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 12px 32px rgba(91, 33, 182, 0.4);
}
.btn-primary:hover { background: var(--purple-500); }
.btn-primary:active { background: var(--purple-700); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--fg-strong);
  border-color: rgba(255,255,255,0.16);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.24);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-strong);
}
.btn-primary-on-purple {
  background: #fff;
  color: var(--purple-700);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.btn-primary-on-purple:hover { background: var(--purple-50); }
.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 7, 18, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center;
  height: 68px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}
@media (min-width: 900px) { .nav { padding: 0 40px; } }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-strong); font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-mark { height: 26px; width: auto; }
.nav-wordmark { font-family: "Neutiva", sans-serif; }
@media (max-width: 640px) { .nav-wordmark { display: none; } }

.nav-links {
  display: none; flex: 1;
  gap: 28px;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--fg-strong); }

.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 12px;
}
[dir="rtl"] .nav-right { margin-left: 0; margin-right: auto; }
.nav-lang {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: "Neutiva", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-dim);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.nav-lang:hover { border-color: rgba(255,255,255,0.18); }
.nav-lang .on { color: var(--fg-strong); }
.nav-lang .sep { opacity: 0.4; }

.nav-cta { padding: 9px 18px; font-size: 13px; }
@media (max-width: 700px) { .nav-cta { display: none; } }

.nav-menu {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: var(--fg-strong);
  cursor: pointer;
}
@media (min-width: 900px) { .nav-menu { display: none; } }

.nav-sheet {
  position: fixed; inset: 68px 0 0 0;
  background: rgba(0,0,0,0.6);
  z-index: 49;
}
.nav-sheet-inner {
  background: var(--bg-elevated);
  padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--line);
}
.nav-sheet-inner a:not(.btn) {
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--fg-strong);
  font-size: 17px;
}
.nav-sheet-inner a:not(.btn):hover { background: rgba(255,255,255,0.06); }
.nav-sheet-inner .btn { margin-top: 8px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 900px) {
  .hero { padding: 140px 0 180px; min-height: 720px; }
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.7;
}
.hero-orb-1 {
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  left: -10vw; top: -20vh;
  background: radial-gradient(circle, rgba(145, 92, 243, 0.55), transparent 65%);
  animation: orb-drift-a 22s ease-in-out infinite;
}
.hero-orb-2 {
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -20vw; bottom: -30vh;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.65), transparent 60%);
  animation: orb-drift-b 28s ease-in-out infinite;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(145, 92, 243, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 92, 243, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
}
@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.06); }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -40px) scale(1.08); }
}

.hero-mark {
  position: absolute;
  right: -60px; top: 50%; transform: translateY(-50%);
  z-index: -1;
  opacity: 0.16;
  animation: mark-breathe 12s ease-in-out infinite;
}
.hero-mark img { width: 540px; height: auto; }
@media (max-width: 900px) {
  .hero-mark { right: -120px; top: auto; bottom: -120px; transform: none; }
  .hero-mark img { width: 360px; }
}
[dir="rtl"] .hero-mark { right: auto; left: -60px; }
@media (max-width: 900px) {
  [dir="rtl"] .hero-mark { left: -120px; right: auto; }
}
@keyframes mark-breathe {
  0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); }
  50%      { transform: translateY(-50%) rotate(6deg) scale(1.04); }
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px) { .hero-inner { padding: 0 40px; } }

.hero-eyebrow { display: inline-flex; }
.hero-title {
  font-family: "Neutiva", sans-serif;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  margin: 18px 0 0;
  text-wrap: balance;
  max-width: 16ch;
}
.hero-title-accent {
  background: linear-gradient(90deg, #fff 0%, var(--purple-400) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 56ch;
}
.hero-ctas {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-meta {
  margin-top: 56px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-dim);
  font-family: "Neutiva", sans-serif;
}
.hero-meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 10px rgba(145, 92, 243, 0.7);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}
@media (min-width: 760px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  overflow: hidden;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(145, 92, 243, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.service-card:hover {
  background: var(--bg-raised);
  border-color: var(--line-strong);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-link {
  color: var(--purple-400);
  transform: translate(2px, -2px);
}

.service-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple-400);
  letter-spacing: 0.05em;
}
.service-name {
  font-family: "Neutiva", sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 0;
}
.service-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.service-bullets {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.service-bullets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--fg);
  white-space: nowrap;
}
.service-bullets li .icon { flex-shrink: 0; }
.service-bullets li .icon { color: var(--purple-400); }
.service-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex; justify-content: flex-end;
}
.service-link {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--fg-muted);
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; }
}
.about-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.about-stat-v {
  font-family: "Neutiva", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.02em;
  line-height: 1;
}
.about-stat-l {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-dim);
}

.about-founder {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.about-founder::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 100%, rgba(91, 33, 182, 0.20), transparent 60%);
  pointer-events: none;
}
.about-founder-portrait {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  display: flex; align-items: center; justify-content: center;
  font-family: "Neutiva", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.about-founder-glow {
  position: absolute; inset: -8px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(145, 92, 243, 0.45), transparent 70%);
  z-index: -1; filter: blur(12px);
}
.about-founder-quote {
  font-family: "Neutiva", sans-serif;
  font-size: 20px;
  line-height: 1.45;
  color: var(--fg-strong);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.about-founder-name {
  font-size: 15px; font-weight: 600;
  color: var(--fg-strong);
}
.about-founder-role {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 2px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.section-on-pattern {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(91,33,182,0.18), transparent 70%),
    var(--bg-sunken);
  position: relative;
}
.section-on-pattern::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/pattern-tile.png");
  background-size: 240px;
  opacity: 0.04;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.process-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
}
.process-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 20px 0;
}
@media (min-width: 900px) {
  .process-step {
    grid-template-columns: 1fr;
    grid-template-rows: 32px 1fr;
    gap: 24px;
    padding: 0;
  }
}
.process-rail {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
@media (min-width: 900px) {
  .process-rail { flex-direction: row; align-items: center; justify-content: flex-start; }
}
.process-rail-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--purple-600);
  box-shadow: 0 0 0 4px rgba(91, 33, 182, 0.22);
  flex-shrink: 0;
  z-index: 1;
}
.process-rail-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, var(--purple-600), transparent);
  margin-top: 2px;
}
@media (min-width: 900px) {
  .process-rail-line {
    width: auto; height: 1px;
    background: linear-gradient(90deg, var(--purple-600), transparent);
    margin-top: 0; margin-left: 8px;
  }
}
[dir="rtl"] .process-rail-line {
  background: linear-gradient(180deg, var(--purple-600), transparent);
}
@media (min-width: 900px) {
  [dir="rtl"] .process-rail-line {
    background: linear-gradient(-90deg, var(--purple-600), transparent);
    margin-left: 0; margin-right: 8px;
  }
}

.process-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple-400);
  letter-spacing: 0.05em;
}
.process-t {
  font-family: "Neutiva", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-strong);
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.process-d {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-top: 8px;
  max-width: 32ch;
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.section-cta {
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-600) 40%, var(--purple-500) 100%);
  position: relative;
  overflow: hidden;
}
.cta-pattern {
  position: absolute; inset: 0;
  background-image: url("assets/pattern-tile.png");
  background-size: 220px;
  opacity: 0.10;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  position: relative;
}
@media (min-width: 900px) {
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}

.section-title-on-purple { color: #fff; }
.section-sub-on-purple { color: rgba(255,255,255,0.85); }
.eyebrow-on-purple { color: rgba(255,255,255,0.85); }
.eyebrow-on-purple::before, [dir="rtl"] .eyebrow-on-purple::after {
  background: rgba(255,255,255,0.85);
}

.cta-contacts {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 10px;
}
.cta-contact-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: #fff;
  padding: 8px 0;
  font-family: "Neutiva", sans-serif;
  transition: opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.cta-contact-line:hover { opacity: 0.8; }

.cta-form {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.input {
  font-family: "Neutiva", sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  outline: none;
  width: 100%;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.input::placeholder { color: rgba(255,255,255,0.5); }
.input:focus {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
}
.input-area { resize: vertical; min-height: 100px; font-family: inherit; }

.cta-form-sent {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 0;
  text-align: center;
  color: #fff;
}
.cta-form-sent .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  margin-bottom: 8px;
}
.cta-form-sent-h {
  font-family: "Neutiva", sans-serif;
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.01em;
}
.cta-form-sent-p { color: rgba(255,255,255,0.85); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 2fr; gap: 80px; }
}
.footer-lockup { height: 32px; width: auto; }
.footer-tag {
  margin-top: 18px;
  font-family: "Neutiva", sans-serif;
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 28ch;
  letter-spacing: -0.005em;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-h {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-strong);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 8px;
}
.footer-link {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 2px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-link:hover { color: var(--fg-strong); }

.footer-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-dim);
}
.footer-region {
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============================================================
   Misc
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-orb-1, .hero-orb-2, .hero-mark, .hero-meta-dot { animation: none !important; }
}

/* ============================================================
   Hero 3D scene
   ============================================================ */
.hero-mark.hero-mark-3d {
  /* Override flat-mark defaults: 3D scene gets full opacity & a bigger footprint */
  opacity: 1;
  animation: none;
  right: -8vw;
  width: 70vw;
  max-width: 880px;
  aspect-ratio: 1 / 1;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  filter: drop-shadow(0 30px 80px rgba(91, 33, 182, 0.45));
}
.hero-3d { width: 100%; height: 100%; display: block; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }

@media (max-width: 900px) {
  .hero-mark.hero-mark-3d {
    right: -20vw;
    top: auto;
    bottom: -18vw;
    transform: none;
    width: 110vw;
    max-width: 560px;
    opacity: 0.7;
  }
}
[dir="rtl"] .hero-mark.hero-mark-3d {
  right: auto;
  left: -8vw;
}
@media (max-width: 900px) {
  [dir="rtl"] .hero-mark.hero-mark-3d {
    left: -20vw;
    right: auto;
  }
}

/* ============================================================
   Page-wide 3D canvas (PageScene.jsx)
   One fixed-position WebGL surface that flies a camera through 5 scenes
   as the user scrolls. Sits behind all page content.
   ============================================================ */
.page-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
  /* Slight vignette so content reads well on top */
  mask-image: radial-gradient(120% 100% at 50% 50%, #000 60%, rgba(0,0,0,0.55) 100%);
}
.page-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Make sure all interactive content stacks ABOVE the canvas */
.nav, main, .footer { position: relative; z-index: 1; }

/* The hero section uses the canvas as its visual anchor — let the 3D bleed
   through by softening hero-bg orbs over the canvas. */
.hero { background: transparent; }
.hero .hero-bg { opacity: 0.45; }
.hero .hero-grid { opacity: 0.35; }

/* Sections sit on top of the canvas but their cards/elevated surfaces stay
   opaque for legibility. The section itself stays transparent so the 3D
   shows through gaps between cards. */
.section { background: transparent; }

/* Process section has its own subtle pattern overlay — keep it but let
   the canvas show faintly. */
.section-on-pattern {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(91,33,182,0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(145,92,243,0.10), transparent 70%) !important;
}

/* CTA section: keep its dramatic purple ground but let the 3D burst peek through */
.section-cta {
  background: linear-gradient(135deg, rgba(91,33,182,0.92) 0%, rgba(145,92,243,0.85) 100%) !important;
}

/* Boost card depth a touch so they "float" on the 3D backdrop */
.service-card,
.about-founder {
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  background: rgba(17, 11, 28, 0.72) !important;
}
.service-card:hover {
  background: rgba(26, 18, 38, 0.85) !important;
}

/* ============================================================
   Tilt3D — wraps cards in a smooth perspective-tilted shell
   ============================================================ */
.service-grid,
.about-grid,
.about-stats,
.process-grid {
  perspective: 1400px;
  transform-style: preserve-3d;
}
.tilt3d {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
/* Disable the existing per-card hover transform so Tilt3D owns the motion */
.tilt3d .service-card,
.tilt3d .about-founder {
  transform: none !important;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out) !important;
}
.tilt3d:hover .service-card,
.tilt3d:hover .about-founder {
  box-shadow:
    0 30px 80px -20px rgba(91, 33, 182, 0.55),
    0 10px 30px -10px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}
.service-card-wrap,
.about-founder-wrap {
  display: block;
}

/* About-stat cards: subtle individual lift on hover (no full tilt — too noisy in a row of 3) */
.about-stat {
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
  will-change: transform;
}
.about-stat:hover {
  transform: translateY(-4px);
}

/* Process steps: gentle scale-on-hover (the rail is sequential — no rotation) */
.process-step {
  transition: transform var(--dur-base) var(--ease-out);
  will-change: transform;
}
.process-step:hover { transform: translateY(-3px); }

/* Smooth scrolling everywhere (anchor jumps + JS scroll glides) */
html { scroll-behavior: smooth; }

/* All button-like elements get a soft 3D press feel */
.btn,
.service-link,
.cta-form button {
  transition:
    transform var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out) !important;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
