/* ============================================================
   AMV NETZ — كرت إلكتروني
   ألوان الهوية الرسمية فقط: أخضر / أسود داكن / أسود عميق / أصفر / أبيض
   ============================================================ */

:root {
  --green:       #008847;
  --green-soft:  rgba(0, 136, 71, 0.35);
  --dark:        #101922;
  --deep:        #091010;
  --yellow:      #F8E200;
  --yellow-soft: rgba(248, 226, 0, 0.18);
  --white:       #ffffff;

  /* زجاجية البطاقات */
  --glass-bg:     rgba(16, 25, 34, 0.55);
  --glass-border: rgba(255, 255, 255, 0.10);

  --radius: 18px;
  --maxw: 520px; /* عرض الكرت — Mobile First */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', 'Noto Sans Arabic', Tahoma, sans-serif;
  background: var(--deep);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* ============================================================
   طبقات الخلفية المتحركة (خلف المحتوى بالكامل)
   ============================================================ */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--deep);
}

/* 1) الباترن المعتمد من الهوية (أساس ثابت) */
.bg__pattern {
  position: absolute;
  inset: 0;
  background: url('assets/backgrounds/bg-story.jpg') center / cover no-repeat;
  opacity: 0.9;
}

/* على الشاشات العريضة نستخدم نسخة المربع من الباترن المعتمد */
@media (min-aspect-ratio: 4/5) {
  .bg__pattern {
    background-image: url('assets/backgrounds/bg-square.jpg');
  }
}

/* 2) شبكة خطوط رفيعة تنزلق ببطء شديد (شفافية منخفضة حسب دليل الهوية) */
.bg__grid {
  position: absolute;
  inset: -80px; /* هامش حتى لا تظهر حافة أثناء الحركة */
  background-image:
    linear-gradient(rgba(0, 136, 71, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 136, 71, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 60s linear infinite;
}

@keyframes grid-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(64px, 64px); }
}

/* 3) Canvas نقاط الشبكة المضيئة (يُدار من script.js) */
.bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 4) وهج أخضر وأصفر خفيف "يتنفس" ببطء */
.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}

.bg__glow--green {
  width: 55vmax; height: 55vmax;
  top: -15vmax; inset-inline-start: -15vmax;
  background: radial-gradient(circle, var(--green-soft), transparent 70%);
  animation: glow-float-a 26s ease-in-out infinite alternate;
}

.bg__glow--yellow {
  width: 40vmax; height: 40vmax;
  bottom: -12vmax; inset-inline-end: -12vmax;
  background: radial-gradient(circle, var(--yellow-soft), transparent 70%);
  animation: glow-float-b 32s ease-in-out infinite alternate;
}

@keyframes glow-float-a {
  from { transform: translate(0, 0) scale(1);     opacity: 0.75; }
  to   { transform: translate(6vmax, 5vmax) scale(1.12); opacity: 1; }
}

@keyframes glow-float-b {
  from { transform: translate(0, 0) scale(1);     opacity: 0.6; }
  to   { transform: translate(-5vmax, -4vmax) scale(1.1); opacity: 0.9; }
}

/* 5) Overlay داكن يضمن وضوح النصوص فوق كل الطبقات */
.bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(9, 16, 16, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(9, 16, 16, 0.72), rgba(16, 25, 34, 0.80));
}

/* ============================================================
   6) الكرة الشبكية العالمية
   - تُرسم عبر Canvas (script.js): خطوط طول/عرض + نقاط مضيئة
   - تدور ببطء شديد حول محورها
   - حلقتان تقنيتان حولها بأسلوب الباترن المعتمد
   - داخل .bg (z-index: -1) فلا تغطي النصوص أو الأزرار إطلاقًا
   ============================================================ */

.bg__globe {
  position: absolute;
  /* الموبايل: أعلى الصفحة، خلف منطقة الهيرو، مقصوصة قليلًا من الأعلى بأناقة */
  top: -14vw;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 460px);
  aspect-ratio: 1 / 1;
  opacity: 0.5; /* حضور أنيق لا يزاحم قراءة النصوص */
  pointer-events: none;
}

.bg__globe canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* حلقات تقنية حول الكرة — دوائر متقطعة تدور ببطء (من لغة الباترن) */
.bg__globe-ring {
  position: absolute;
  border-radius: 50%;
}

.bg__globe-ring--outer {
  inset: -5%;
  border: 1px dashed rgba(0, 136, 71, 0.35);
  animation: ring-spin 120s linear infinite;
}

.bg__globe-ring--inner {
  inset: 3.5%;
  border: 1px solid rgba(248, 226, 0, 0.14);
  border-top-color: rgba(248, 226, 0, 0.4); /* قوس أصفر مضيء واحد */
  animation: ring-spin 80s linear infinite reverse;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* الشاشات الواسعة: الكرة جانبية أصغر مع حضور أخف */
@media (min-width: 640px) {
  .bg__globe {
    top: 30px;
    left: auto;
    inset-inline-end: -70px;
    transform: none;
    width: 400px;
    opacity: 0.4;
  }
}

/* ============================================================
   معالجة خاصة للموبايل: خلفية أنظف وأهدأ
   - نخفف الباترن حتى لا يزدحم خلف المحتوى
   - الكرة الشبكية تصبح العنصر البصري الرئيسي في الأعلى
   ============================================================ */

@media (max-width: 639px) {
  .bg__pattern {
    opacity: 0.45;
    background-position: center bottom;
  }

  .bg__grid {
    opacity: 0.6;
  }

  /* تدرّج علوي أنعم يبرز الكرة ويحافظ على وضوح الهيرو */
  .bg__overlay {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(9, 16, 16, 0.15), transparent 50%),
      linear-gradient(180deg, rgba(9, 16, 16, 0.66), rgba(16, 25, 34, 0.82));
  }
}

/* احترام تفضيل تقليل الحركة: خلفية ثابتة تمامًا */
@media (prefers-reduced-motion: reduce) {
  .bg__grid,
  .bg__glow--green,
  .bg__glow--yellow,
  .bg__globe-ring--outer,
  .bg__globe-ring--inner {
    animation: none;
  }
}

/* ============================================================
   الهيكل العام
   ============================================================ */

.card {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.section {
  margin-bottom: 28px;
}

.section__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* شرطة صفراء قصيرة قبل العنوان — من لغة الهوية (خط NETZ الأصفر) */
.section__title::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

/* ============================================================
   1) Hero
   ============================================================ */

.hero {
  text-align: center;
  padding-top: 8px;
  perspective: 1000px;
}

.hero__shield {
  width: 220px;
  max-width: 72vw;
  aspect-ratio: 2000 / 1550;
  margin: 0 auto 14px;
  overflow: hidden;
}

.hero__logo {
  /* يُقص الجزء النصي من ملف الشعار، ليبقى الدرع المتحرك وحده. */
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 0 28px rgba(0, 136, 71, 0.42));
}

.hero__name {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero__role {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-top: 2px;
}

.hero__slogan-ar {
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yellow);
}

.hero__slogan-de {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.hero__actions .btn { flex: 1; }

.hero__actions .btn {
  position: relative;
  overflow: hidden;
}

.hero__actions .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.28) 49%, transparent 64%);
  transform: translateX(-135%);
  animation: action-sheen 4.8s ease-in-out infinite;
  pointer-events: none;
}

/* الزر الموجود بصرياً في اليمين يبدأ خط الحركة فيه من الطرف الأيسر. */
.hero__actions .btn:first-child::before {
  animation-delay: -1.4s;
}

.hero__actions .btn:nth-child(2)::before {
  animation-delay: -3.1s;
}

/* ============================================================
   الأزرار
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;             /* حجم لمس مريح */
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 22px rgba(0, 136, 71, 0.4);
}

.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(0, 136, 71, 0.6);
}

.btn--secondary {
  background: var(--glass-bg);
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  border-color: rgba(248, 226, 0, 0.5);
  box-shadow: 0 4px 18px rgba(248, 226, 0, 0.15);
}

.btn--block { width: 100%; }

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

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   2) أزرار التواصل السريع
   ============================================================ */

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

.quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.quick__item span {
  text-align: center;
}

.quick__label {
  line-height: 1.2;
}

.quick__value {
  font-size: 0.66rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.quick__item--email {
  gap: 4px;
}

.quick__item .icon {
  width: 24px;
  height: 24px;
  fill: var(--green);
}

.quick__item:hover,
.quick__item:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(0, 136, 71, 0.3);
}

.quick__item:active { transform: scale(0.96); }

/* ============================================================
   3) بطاقات الخدمات
   ============================================================ */

/* مسافة إضافية واضحة تفصل قسم الخدمات عن قسم الثقة الذي يليه */
.section--services {
  margin-bottom: 44px;
}

.services {
  display: grid;
  /* عمودان دائمًا على الموبايل — الكروت الثمانية تظهر كاملة في 4 صفوف */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;      /* كل صف يأخذ ارتفاعه الطبيعي — لا قص ولا تداخل */
  align-items: stretch;
  gap: 12px;
}

/* أربعة أعمدة فقط على الشاشات الواسعة (صفّان) */
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;          /* ارتفاع ثابت مريح يمنع أي كرت من الانكماش */
  padding: 16px 8px;
  border-radius: var(--radius);
  /* خلفية شبه شفافة بدون blur هنا — أخف على المتصفحات وتمنع أخطاء الرسم/التداخل */
  background: rgba(16, 25, 34, 0.72);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  overflow: hidden;          /* لا يخرج أي محتوى عن حدود الكرت */
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service span {
  overflow-wrap: break-word; /* أسماء الخدمات الطويلة تلتف ولا تُقص */
  max-width: 100%;
}

.service:hover {
  border-color: rgba(0, 136, 71, 0.6);
  box-shadow: 0 0 16px rgba(0, 136, 71, 0.25);
}

.service__icon {
  width: 30px;
  height: 30px;
  fill: var(--green);
  filter: drop-shadow(0 0 6px rgba(0, 136, 71, 0.5));
}

/* ============================================================
   4) قسم الثقة
   ============================================================ */

.trust {
  list-style: none;
  display: grid;
  gap: 10px;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
}

.icon--check {
  fill: var(--yellow);
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 5px rgba(248, 226, 0, 0.5));
}

/* ============================================================
   5) من نحن
   ============================================================ */

.about {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
}

/* ============================================================
   6) الموقع
   ============================================================ */

.address {
  text-align: center;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

/* ============================================================
   8) Footer
   ============================================================ */

.footer {
  position: relative;
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
  overflow: hidden;
  isolation: isolate;
  animation: footer-body-float 9.5s ease-in-out infinite;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), var(--yellow), transparent);
  transform: translateX(-50%);
  animation: footer-line 4s ease-in-out infinite;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 10px 18px -18px;
  background:
    radial-gradient(circle at 18% 62%, rgba(0, 136, 71, 0.2), transparent 36%),
    radial-gradient(circle at 78% 34%, rgba(248, 226, 0, 0.16), transparent 28%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.03), rgba(0, 136, 71, 0.08), rgba(248, 226, 0, 0.04));
  filter: blur(1px);
  opacity: 0.95;
  pointer-events: none;
  z-index: -2;
  animation: footer-aura-shift 11s ease-in-out infinite alternate;
}

.footer__cta,
.footer__line,
.footer__sub {
  position: relative;
  z-index: 2;
}

.footer__cta::before,
.footer__line::before,
.footer__line::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.footer__cta {
  margin-bottom: 10px;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(90deg, var(--yellow), #ffffff 42%, var(--green), var(--yellow));
  background-size: 220% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: footer-shimmer 5.6s ease-in-out infinite;
}

.footer__cta::before {
  inset-inline-start: clamp(8px, 6%, 26px);
  top: -10px;
  width: 42px;
  aspect-ratio: 0.9;
  background: linear-gradient(180deg, rgba(248, 226, 0, 0.2), rgba(0, 136, 71, 0.12));
  clip-path: polygon(50% 0%, 100% 18%, 88% 74%, 50% 100%, 12% 74%, 0% 18%);
  border: 1px solid rgba(248, 226, 0, 0.22);
  box-shadow: 0 0 20px rgba(248, 226, 0, 0.08);
  animation: footer-shield-drift-left 8.2s ease-in-out infinite;
}

.footer__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 460px;
  margin: 0 auto;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
}

.footer__line::before {
  inset-inline-start: -6px;
  top: 50%;
  width: 36px;
  aspect-ratio: 0.9;
  background: linear-gradient(180deg, rgba(0, 136, 71, 0.18), rgba(248, 226, 0, 0.08));
  clip-path: polygon(50% 0%, 100% 18%, 88% 74%, 50% 100%, 12% 74%, 0% 18%);
  border: 1px solid rgba(0, 136, 71, 0.18);
  transform: translateY(-50%);
  opacity: 0.8;
  animation: footer-shield-orbit 10.8s ease-in-out infinite;
}

.footer__line::after {
  inset-inline-end: 2px;
  top: 54%;
  width: 62px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 226, 0, 0.9), transparent);
  transform-origin: left center;
  opacity: 0.72;
  animation: footer-scan-left 5.8s ease-in-out infinite;
}

.footer__brand {
  display: inline-block;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.8px;
  text-shadow: 0 0 14px rgba(0, 136, 71, 0.68);
  animation: footer-brand-pulse 4.8s ease-in-out infinite;
}

.footer__signal {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--yellow);
  filter: drop-shadow(0 0 6px rgba(248, 226, 0, 0.72));
  animation: footer-signal 2.8s ease-in-out infinite;
}

.footer__promise {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), #ffffff 48%, rgba(0, 136, 71, 0.96), rgba(255, 255, 255, 0.8));
  background-size: 210% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: footer-promise-shimmer 7s ease-in-out infinite;
}

.footer__promise::after {
  content: "";
  position: absolute;
  inset-inline: 8%;
  inset-block-end: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), var(--yellow), transparent);
  transform-origin: center;
  animation: footer-promise-line 4.6s ease-in-out infinite;
}

.footer__sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ============================================================
   شاشات أوسع: مساحة تنفس أكبر
   ============================================================ */

@media (min-width: 640px) {
  .card { padding: 44px 24px 56px; }
  .hero__shield { width: 190px; }
  .hero__name { font-size: 2rem; }
}

/* الحركات المضافة مع الحفاظ على مواصفات المظهر الأصلي. */
.hero__logo {
  transform-style: preserve-3d;
  transform-origin: center;
  animation: logo-horizontal-return 11.5s cubic-bezier(.45, 0, .2, 1) infinite;
  will-change: transform, filter;
}

.quick__item .icon,
.service__icon {
  transform-origin: center;
}

@keyframes logo-horizontal-return {
  0%, 12%, 100% {
    transform: rotateY(0deg);
    filter: drop-shadow(0 0 28px rgba(0, 136, 71, 0.42));
  }
  45% {
    transform: rotateY(180deg);
    filter: drop-shadow(0 0 34px rgba(248, 226, 0, 0.52));
  }
  55% {
    transform: rotateY(180deg);
    filter: drop-shadow(0 0 34px rgba(248, 226, 0, 0.52));
  }
  88% {
    transform: rotateY(0deg);
    filter: drop-shadow(0 0 28px rgba(0, 136, 71, 0.42));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .quick__item .icon,
  .service__icon {
    animation: none;
  }
}

/* طبقة الحركة الاحترافية: حدود مضيئة دقيقة وظهور هادئ للمحتوى. */
@property --edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.edge-trace {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.edge-trace::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--edge-angle),
    transparent 0deg 54deg,
    rgba(0, 190, 98, 0.92) 76deg,
    transparent 104deg 214deg,
    rgba(248, 226, 0, 0.86) 238deg,
    transparent 264deg 360deg
  );
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: edge-sweep 6.4s linear infinite;
}

.edge-trace:hover::after,
.edge-trace:focus-visible::after {
  animation-duration: 2.4s;
}

.btn.edge-trace::after {
  opacity: 0.9;
}

.quick__item.edge-trace::after,
.service.edge-trace::after {
  animation-duration: 7.2s;
}

.trust__item.edge-trace::after,
.about.edge-trace::after {
  opacity: 0.72;
  animation-duration: 8.2s;
}

.section__title {
  position: relative;
  padding-bottom: 7px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.section__title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), var(--yellow), transparent);
  transform-origin: center;
  animation: title-scan 3.8s ease-in-out infinite;
}

.quick__item .icon,
.service__icon,
.icon--check {
  filter: drop-shadow(0 0 8px rgba(0, 136, 71, 0.58));
}

.icon--check {
  filter: drop-shadow(0 0 7px rgba(248, 226, 0, 0.62));
}

.motion-reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(.2, .75, .2, 1),
    filter 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes edge-sweep {
  to { --edge-angle: 360deg; }
}

@keyframes title-scan {
  0%, 100% { opacity: 0.45; transform: scaleX(0.52); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes action-sheen {
  0%, 26% { transform: translateX(-135%); }
  58%, 100% { transform: translateX(135%); }
}

@keyframes footer-shimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0 50%; }
}

@keyframes footer-line {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scaleX(0.45); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@keyframes footer-brand-pulse {
  0%, 100% { opacity: 0.78; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

@keyframes footer-signal {
  0%, 100% { opacity: 0.45; transform: scale(.72) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

@keyframes footer-promise-shimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0 50%; }
}

@keyframes footer-promise-line {
  0%, 100% { opacity: 0.35; transform: scaleX(.55); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes footer-body-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes footer-aura-shift {
  0% { transform: translate3d(-10px, 0, 0) scale(0.98); opacity: 0.82; }
  50% { transform: translate3d(8px, -4px, 0) scale(1.02); opacity: 1; }
  100% { transform: translate3d(-4px, 6px, 0) scale(1); opacity: 0.9; }
}

@keyframes footer-shield-drift-left {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(0.94);
    opacity: 0.48;
  }
  50% {
    transform: translate3d(12px, 8px, 0) rotate(5deg) scale(1.06);
    opacity: 0.88;
  }
}

@keyframes footer-shield-orbit {
  0%, 100% {
    transform: translate3d(0, -50%, 0) rotate(-6deg) scale(0.9);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(22px, -56%, 0) rotate(6deg) scale(1.08);
    opacity: 0.92;
  }
}

@keyframes footer-scan-left {
  0% {
    transform: translateX(24px) scaleX(0.25);
    opacity: 0;
  }
  30% {
    opacity: 0.92;
  }
  68% {
    transform: translateX(-58px) scaleX(1);
    opacity: 0.82;
  }
  100% {
    transform: translateX(-72px) scaleX(0.28);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edge-trace::after,
  .section__title::after,
  .hero__actions .btn::before,
  .footer::before,
  .footer::after,
  .footer,
  .footer__cta,
  .footer__cta::before,
  .footer__brand,
  .footer__signal,
  .footer__promise,
  .footer__promise::after,
  .footer__line::before,
  .footer__line::after {
    animation: none;
  }

  .motion-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
