/* ==========================================================================
   المعلم الذكي — الأنماط المشتركة وصفحة الهبوط
   ========================================================================== */

:root {
  --ink: #0b1630;
  --ink-2: #33415c;
  --muted: #6b7a99;
  --line: #e4e9f2;
  --bg: #f6f8fc;
  --surface: #ffffff;

  --navy-900: #050b1f;
  --navy-800: #0a1433;
  --navy-700: #111e48;

  --teal: #11b5a4;
  --teal-600: #0c9486;
  --blue: #3b6cff;
  --violet: #8b5cf6;
  --amber: #f5b544;
  --rose: #f43f6e;

  --grad: linear-gradient(120deg, #11b5a4 0%, #3b6cff 55%, #8b5cf6 100%);
  --grad-warm: linear-gradient(120deg, #f5b544, #f43f6e);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(11, 22, 48, 0.06);
  --shadow: 0 12px 40px -12px rgba(11, 22, 48, 0.18);
  --shadow-lg: 0 30px 80px -20px rgba(11, 22, 48, 0.35);

  --font: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
}

::selection {
  background: rgba(17, 181, 164, 0.25);
}

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s linear infinite;
}

@keyframes gradShift {
  to {
    background-position: 200% center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
  isolation: isolate;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 180% 100%;
  box-shadow: 0 10px 30px -8px rgba(59, 108, 255, 0.55);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(59, 108, 255, 0.65);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.9s var(--ease);
  z-index: -1;
}

.btn-primary:hover::after {
  transform: translateX(-120%);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn-soft {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-soft:hover {
  border-color: rgba(59, 108, 255, 0.4);
  color: var(--blue);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.92rem;
}

.btn .icon {
  transition: transform 0.35s var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(-5px);
}

/* ---------- Navbar ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  transition:
    padding 0.4s var(--ease),
    background 0.4s,
    box-shadow 0.4s,
    backdrop-filter 0.4s;
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(5, 11, 31, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad);
  box-shadow: 0 8px 22px -6px rgba(59, 108, 255, 0.6);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  animation: pulseRing 2.8s var(--ease) infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.65;
  margin-top: -6px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  border-radius: 999px;
  transition:
    color 0.3s,
    background 0.3s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  place-items: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 110px;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 108, 255, 0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(17, 181, 164, 0.28), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
  to {
    background-position: 56px 56px;
  }
}

#particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.blob {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: blobFloat 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: #3b6cff;
  top: 10%;
  left: -120px;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: #11b5a4;
  bottom: -80px;
  right: 10%;
  animation-delay: -6s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: #8b5cf6;
  top: 30%;
  right: 40%;
  animation-delay: -12s;
  opacity: 0.35;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -40px) scale(1.12);
  }
  100% {
    transform: translate(-40px, 30px) scale(0.92);
  }
}

.cursor-glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 108, 255, 0.22), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}

.hero:hover .cursor-glow {
  opacity: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.badge-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
}

.badge-dot svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  animation: spinSlow 6s linear infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  text-wrap: balance;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.rotator {
  position: relative;
  display: inline-block;
  min-width: 2ch;
}

.rotator-word {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 5s linear infinite;
}

.rotator-caret {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  margin-inline-start: 6px;
  vertical-align: -0.08em;
  border-radius: 4px;
  background: var(--teal);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.hero-lead {
  max-width: 560px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
}

/* Hero document mockup */

.mockup {
  position: relative;
  perspective: 1400px;
}

.paper {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 22px 22px 26px;
  box-shadow:
    0 40px 90px -25px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(-1deg);
  transform-style: preserve-3d;
  animation: paperFloat 7s ease-in-out infinite;
  transition: transform 0.6s var(--ease);
}

.mockup:hover .paper {
  transform: rotateY(-4deg) rotateX(2deg);
}

@keyframes paperFloat {
  50% {
    translate: 0 -14px;
  }
}

.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
}

.paper-seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
}

.paper-seal svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.paper-title {
  margin: 14px auto 12px;
  width: fit-content;
  padding: 4px 18px;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.95rem;
}

.paper-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  animation: qIn 9s var(--ease) infinite;
}

.paper-q .num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
}

.paper-q .bar {
  flex: 1;
  height: 7px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8edf6, #f2f5fa);
  overflow: hidden;
  position: relative;
}

.paper-q .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: right;
  transform: scaleX(0);
  animation: barFill 9s var(--ease) infinite;
  animation-delay: inherit;
  opacity: 0.85;
}

.paper-q .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: tickOn 9s var(--ease) infinite;
  animation-delay: inherit;
}

.paper-q .tick svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  opacity: 0;
  animation: tickSvg 9s var(--ease) infinite;
  animation-delay: inherit;
}

.paper-q:nth-child(1) {
  animation-delay: 0.3s;
}
.paper-q:nth-child(2) {
  animation-delay: 0.9s;
}
.paper-q:nth-child(3) {
  animation-delay: 1.5s;
}
.paper-q:nth-child(4) {
  animation-delay: 2.1s;
}
.paper-q:nth-child(5) {
  animation-delay: 2.7s;
}

@keyframes qIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  6%,
  88% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes barFill {
  0%,
  6% {
    transform: scaleX(0);
  }
  18%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes tickOn {
  0%,
  20% {
    background: transparent;
    border-color: var(--line);
  }
  24%,
  100% {
    background: var(--teal);
    border-color: var(--teal);
  }
}

@keyframes tickSvg {
  0%,
  21% {
    opacity: 0;
  }
  25%,
  100% {
    opacity: 1;
  }
}

.paper-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.paper-options span {
  padding: 6px 4px;
  text-align: center;
  border-radius: 8px;
  background: #f4f6fb;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-2);
}

.paper-options span:nth-child(2) {
  animation: optionPick 9s var(--ease) infinite;
  animation-delay: 3.5s;
}

@keyframes optionPick {
  0%,
  10% {
    background: #f4f6fb;
    color: var(--ink-2);
  }
  14%,
  80% {
    background: var(--teal);
    color: #fff;
  }
  90%,
  100% {
    background: #f4f6fb;
    color: var(--ink-2);
  }
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: var(--shadow-lg);
  animation: chipFloat 6s ease-in-out infinite;
  z-index: 2;
}

.float-chip .dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
}

.float-chip .dot svg {
  width: 17px;
  height: 17px;
}

.chip-a {
  top: -26px;
  left: -30px;
}

.chip-a .dot {
  background: var(--grad);
}

.chip-b {
  bottom: 40px;
  right: -40px;
  animation-delay: -2s;
}

.chip-b .dot {
  background: var(--grad-warm);
}

.chip-c {
  bottom: -26px;
  left: 30px;
  animation-delay: -4s;
}

.chip-c .dot {
  background: linear-gradient(120deg, #11b5a4, #22c55e);
}

@keyframes chipFloat {
  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.scroll-hint::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: #fff;
  animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Stats strip ---------- */

.stats {
  position: relative;
  margin-top: -56px;
  z-index: 5;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.stat {
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--line);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.stat-label {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Sections ---------- */

.section {
  padding: 120px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 108, 255, 0.08);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
}

.section-head h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  --mx: 50%;
  --my: 50%;
  --c1: #11b5a4;
  --c2: #3b6cff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.4s;
  overflow: hidden;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c2) 12%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--c2) 35%, transparent);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--c2) 70%, transparent);
  transition: transform 0.5s var(--ease);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card:hover .service-icon {
  transform: translateZ(30px) rotate(-8deg) scale(1.08);
}

.service-num {
  position: absolute;
  top: 18px;
  inset-inline-end: 24px;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
  color: color-mix(in srgb, var(--c2) 9%, transparent);
  transition:
    color 0.4s,
    transform 0.5s var(--ease);
}

.service-card:hover .service-num {
  color: color-mix(in srgb, var(--c2) 18%, transparent);
  transform: translateY(-4px);
}

.service-card h3 {
  margin: 22px 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.service-card li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.service-card li svg {
  width: 16px;
  height: 16px;
  stroke: var(--c2);
  stroke-width: 2.5;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--c2);
}

.service-link svg {
  transition: transform 0.4s var(--ease);
}

.service-card:hover .service-link svg {
  transform: translateX(-6px);
}

/* Steps */

.steps-section {
  background: linear-gradient(180deg, var(--bg), #eef2fb);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.steps-line {
  position: absolute;
  top: 44px;
  inset-inline: 16%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.steps-line span {
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.8s var(--ease) 0.3s;
}

.steps.in .steps-line span {
  transform: scaleX(1);
}

.step {
  position: relative;
  text-align: center;
  padding: 0 10px;
}

.step-num {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 22px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--blue);
  transition: transform 0.5s var(--ease);
}

.step:hover .step-num {
  transform: translateY(-6px) rotate(-4deg);
}

.step-num svg {
  width: 38px;
  height: 38px;
}

.step-num b {
  position: absolute;
  top: -10px;
  inset-inline-end: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 6px 14px -4px rgba(59, 108, 255, 0.6);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  display: flex;
  gap: 18px;
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(17, 181, 164, 0.1);
  color: var(--teal-600);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Marquee */

.marquee {
  position: relative;
  padding: 26px 0;
  background: var(--navy-800);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.marquee-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
}

@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}

/* CTA */

.cta {
  padding: 100px 0 120px;
}

.cta-box {
  position: relative;
  padding: 70px 40px;
  border-radius: 32px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(17, 181, 164, 0.5), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(139, 92, 246, 0.5), transparent 60%),
    var(--navy-800);
  overflow: hidden;
  isolation: isolate;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle, 0deg), #11b5a4, #3b6cff, #8b5cf6, #f5b544, #11b5a4);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinBorder {
  to {
    --angle: 360deg;
  }
}

.cta-box h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 900;
}

.cta-box p {
  margin: 0 auto 32px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

/* Footer */

.footer {
  padding: 40px 0;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
}

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

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-zoom {
  transform: scale(0.92);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .mockup {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 72px;
    inset-inline: 16px;
    flex-direction: column;
    padding: 12px;
    border-radius: 18px;
    background: rgba(10, 20, 51, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.3s,
      transform 0.3s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-toggle {
    display: grid;
  }

  .nav .btn-nav {
    display: none;
  }

  .hero {
    padding: 120px 0 100px;
  }

  .stats-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3)::before {
    display: none;
  }

  .services-grid,
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps-line {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .chip-b {
    right: -6px;
  }

  .chip-a {
    left: -6px;
  }

  .cta-box {
    padding: 50px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .paper-q {
    opacity: 1;
    transform: none;
  }
}
