/* =========================================================
   Masar Tech | مسار تك — Main Stylesheet
   ========================================================= */

:root {
  --navy-1: #16345C;
  --navy-2: #0D2242;
  --navy-3: #081428;
  --accent: #089ED2;
  --accent-light: #5FDBFF;
  --accent-soft: rgba(8, 158, 210, .14);
  --border: rgba(8, 158, 210, .28);
  --glass: rgba(255, 255, 255, .04);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, .68);
  --wa: #25D366;
  --wa-dark: #1DA851;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-glow: 0 0 40px rgba(8, 158, 210, .25);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 35%, var(--navy-3) 100%);
  background-color: var(--navy-3);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle pixel grid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 158, 210, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 158, 210, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 20%, transparent 75%);
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.35; }
a { color: var(--accent-light); text-decoration: none; transition: color .25s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

.text-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background glows ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
}
.glow-1 { width: 420px; height: 420px; background: var(--accent); top: -120px; left: -120px; }
.glow-2 { width: 360px; height: 360px; background: #1B5FA8; top: 45%; right: -140px; opacity: .3; }
.glow-3 { width: 300px; height: 300px; background: var(--accent); bottom: -120px; left: 30%; opacity: .18; }

/* ---------- Buttons ---------- */
.btn {
  font-weight: 700;
  border-radius: 12px;
  padding: .7rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0B7FB0);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(8, 158, 210, .35);
}
.btn-accent:hover,
.btn-accent:focus-visible { color: #fff; box-shadow: 0 10px 32px rgba(8, 158, 210, .55); }

.btn-outline-accent {
  color: #fff;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn-outline-accent:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }

.btn-whatsapp {
  background: var(--wa);
  color: #fff;
  border: 0;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { background: var(--wa-dark); color: #fff; }

/* ---------- Glass card ---------- */
.glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Navbar ---------- */
.navbar {
  min-height: var(--nav-h);
  padding: .6rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.navbar.scrolled,
.navbar:has(.navbar-collapse.show),
.navbar:has(.navbar-collapse.collapsing) {
  background: rgba(8, 20, 40, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.brand-logo { height: 46px; width: auto; }
@media (min-width: 992px) { .brand-logo { height: 54px; } }
.footer-logo { height: 64px; width: auto; }

.navbar-toggler {
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1.6rem;
  padding: .2rem .6rem;
  border-radius: 10px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--accent-soft); }

.navbar .nav-link {
  color: var(--muted);
  font-weight: 500;
  padding: .5rem 1rem !important;
  position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff; }
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 1rem;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0 .5rem; }
  .navbar .btn-whatsapp { width: 100%; }
}

/* ---------- Common section ---------- */
.section { padding: 80px 0; position: relative; }
@media (min-width: 992px) { .section { padding: 110px 0; } }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .6rem 0 .8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: .3rem .9rem;
  border-radius: 50px;
}

.icon-box {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.8rem;
  color: var(--accent-light);
  background: linear-gradient(135deg, rgba(8, 158, 210, .25), rgba(8, 158, 210, .05));
  border: 1px solid var(--border);
  box-shadow: inset 0 0 20px rgba(8, 158, 210, .15);
  position: relative;
}
/* little pixel square on icon */
.icon-box::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.icon-box.sm { width: 54px; height: 54px; font-size: 1.5rem; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-title { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; margin: 1.2rem 0 .6rem; }
.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.hero-text { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
@media (min-width: 992px) { .hero-text { margin-inline: 0; } }

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
@media (min-width: 992px) { .hero-stats { justify-content: flex-start; } }
.hero-stats li { display: flex; flex-direction: column; line-height: 1.3; }
.hero-stats strong { font-size: 1.7rem; font-weight: 900; color: #fff; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-visual { position: relative; aspect-ratio: 5 / 4; max-width: 460px; margin: 0 auto; }
.hero-arrow { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(8, 158, 210, .6)); }
.hero-arrow-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .3s ease forwards; }
.hero-arrow-head { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw .6s 1.9s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: floaty 5s ease-in-out infinite;
  white-space: nowrap;
}
.float-card i {
  font-size: 1.3rem;
  color: var(--accent-light);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 10px;
}
.float-card strong { display: block; font-size: .9rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-1 { top: 4%; left: 6%; }
.fc-2 { top: 48%; left: -2%; animation-delay: 1.2s; }
.fc-3 { bottom: 0; right: 18%; animation-delay: 2.4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 575.98px) {
  .float-card { padding: .5rem .7rem; }
  .float-card i { width: 32px; height: 32px; font-size: 1.1rem; }
  .float-card strong { font-size: .8rem; }
  .float-card small { font-size: .7rem; }
  .fc-2 { left: 0; }
}

/* floating pixel squares */
.pixels span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 3px;
  background: var(--accent);
  opacity: .35;
  box-shadow: 0 0 12px var(--accent);
  animation: blink 4s var(--d) ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: .15; transform: translateY(0); } 50% { opacity: .55; transform: translateY(-8px); } }

/* ---------- Services ---------- */
.service-card {
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.service-card h3 { font-size: 1.4rem; margin: 1.3rem 0 .6rem; }
.service-card > p { color: var(--muted); margin-bottom: 1.2rem; }
.service-card.featured { border-color: rgba(8, 158, 210, .6); box-shadow: var(--shadow-glow); }
.card-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
}

.feature-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.feature-list li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-weight: 500; }
.feature-list i { color: var(--accent-light); font-size: 1.1rem; }

/* ---------- Clinic ---------- */
.clinic-wrap {
  padding: 2rem 1.3rem;
  position: relative;
  overflow: hidden;
  border-color: rgba(8, 158, 210, .45);
}
@media (min-width: 768px) { .clinic-wrap { padding: 3.5rem; } }
.clinic-wrap::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(120px);
  opacity: .22;
  left: -120px;
  top: -80px;
  pointer-events: none;
}
.clinic-wrap h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: .8rem; }
.lead-muted { color: var(--muted); font-size: 1.08rem; }

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, #FFB547, #FF8A3D);
  color: #1b1200;
  font-weight: 800;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(255, 150, 60, .35);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.mini-feature {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(8, 158, 210, .18);
  height: 100%;
  font-weight: 500;
  font-size: .95rem;
}
.mini-feature i { color: var(--accent-light); font-size: 1.3rem; flex-shrink: 0; }

/* Phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 1rem 0; }
.phone {
  width: 270px;
  max-width: 78vw;
  aspect-ratio: 9 / 19;
  background: #050c18;
  border-radius: 42px;
  padding: 12px;
  border: 2px solid rgba(8, 158, 210, .5);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .03), 0 30px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(8, 158, 210, .3);
  position: relative;
  animation: floaty 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #050c18;
  border-radius: 20px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #F4F9FC, #E6F2F9);
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }

.app-ui { padding: 48px 14px 14px; color: #0D2242; font-size: .78rem; height: 100%; display: flex; flex-direction: column; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.app-top small { color: #6b7c93; display: block; }
.app-top strong { font-size: 1rem; }
.app-avatar {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 1.1rem;
}
.app-card {
  background: linear-gradient(135deg, var(--navy-1), var(--accent));
  color: #fff;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}
.app-card small { opacity: .8; display: block; }
.app-card strong { font-size: .95rem; }
.app-card span { font-size: .72rem; opacity: .9; }
.app-label { font-weight: 700; margin: 4px 0 8px; }
.app-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.app-slots span {
  text-align: center; padding: 6px 0; border-radius: 10px; background: #fff;
  border: 1px solid #d8e7f1; font-weight: 700;
}
.app-slots .on { background: var(--accent); border-color: var(--accent); color: #fff; }
.app-slots .off { opacity: .4; text-decoration: line-through; }
.app-cats { display: flex; gap: 6px; margin-bottom: auto; }
.app-cats span {
  flex: 1; background: #fff; border-radius: 12px; padding: 8px 4px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; border: 1px solid #d8e7f1; font-weight: 500;
}
.app-cats i { color: var(--accent); font-size: 1.1rem; }
.app-btn {
  margin-top: 12px; background: var(--navy-1); color: #fff; text-align: center;
  padding: 10px; border-radius: 12px; font-weight: 700;
}

.phone-float {
  position: absolute;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
  background: rgba(8, 20, 40, .75);
}
.phone-float i { font-size: 1.1rem; }
.pf-1 { top: 42%; right: 0; }
.pf-1 i { color: var(--accent-light); }
.pf-2 { bottom: 16%; left: 0; animation-delay: 1.5s; }
.pf-2 i { color: var(--wa); }
@media (max-width: 575.98px) {
  .phone-float { font-size: .75rem; padding: .45rem .7rem; }
}

/* ---------- Steps ---------- */
.step {
  padding: 2rem 1.5rem;
  position: relative;
  transition: transform .35s, border-color .35s;
}
.step:hover { transform: translateY(-6px); border-color: var(--accent); }
.step-num {
  position: absolute;
  top: 1rem;
  left: 1.3rem;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(8, 158, 210, .55);
}
.step h3 { font-size: 1.25rem; margin: 1.2rem 0 .5rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* connector line between steps on large screens */
@media (min-width: 992px) {
  .steps > div:not(:last-child) .step::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -1.5rem;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
  }
}

/* ---------- Why us ---------- */
.why-item {
  text-align: center;
  padding: 1.8rem 1rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(8, 158, 210, .3);
  height: 100%;
  transition: background .3s, border-color .3s;
}
.why-item:hover { background: var(--accent-soft); border-style: solid; border-color: var(--accent); }
.why-item i {
  font-size: 2.2rem;
  color: var(--accent-light);
  display: inline-block;
  margin-bottom: .6rem;
  filter: drop-shadow(0 0 10px rgba(8, 158, 210, .6));
}
.why-item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.why-item p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 575.98px) {
  .why-item { padding: 1.3rem .7rem; }
  .why-item h3 { font-size: 1rem; }
  .why-item p { font-size: .85rem; }
}

/* ---------- Portfolio ---------- */
.project-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: #fff;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-glow); color: #fff; }
.project-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .project-img img { transform: scale(1.07); }
.project-info { padding: 1.1rem 1.3rem 1.3rem; }
.project-type {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: .15rem .7rem;
  border-radius: 50px;
  margin-bottom: .4rem;
}
.project-info h3 { font-size: 1.15rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  color: #fff;
  transition: border-color .3s, transform .3s;
}
a.contact-item:hover { border-color: var(--accent); transform: translateX(-4px); color: #fff; }
.contact-item small { display: block; color: var(--muted); font-size: .85rem; }
.contact-item strong { font-size: 1.05rem; word-break: break-word; }
.ci-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--accent-soft);
  color: var(--accent-light);
  border: 1px solid var(--border);
}
.ci-icon.wa { background: rgba(37, 211, 102, .15); color: var(--wa); border-color: rgba(37, 211, 102, .35); }

.contact-form { padding: 1.6rem; }
@media (min-width: 768px) { .contact-form { padding: 2.3rem; } }
.form-label { font-weight: 700; font-size: .95rem; }
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, .05);
  border: 1px solid rgba(8, 158, 210, .25);
  color: #fff;
  border-radius: 12px;
  padding: .75rem 1rem;
}
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235FDBFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.form-select option { background: var(--navy-2); color: #fff; }
.form-control::placeholder { color: rgba(255, 255, 255, .4); }
.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, .08);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 .25rem rgba(8, 158, 210, .2);
}
.form-note { text-align: center; color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
.form-success {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .4);
  color: #b8f5cf; border-radius: 12px; padding: .8rem 1rem; margin-top: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 12, 24, .7);
  padding: 60px 0 0;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 50%;
  transform: translateX(50%);
  width: 180px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}
.footer h4 { font-size: 1.1rem; margin-bottom: 1rem; }
.footer-about { color: var(--muted); max-width: 380px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-light); padding-right: 4px; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); color: #fff; font-size: 1.1rem; transition: all .3s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  color: var(--muted);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 575.98px) { .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Floating WhatsApp & back to top ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #fff;
  font-size: 1.8rem;
  z-index: 1030;
  box-shadow: 0 8px 25px rgba(37, 211, 102, .45);
  transition: transform .3s;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ring 2s ease-out infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8, 20, 40, .8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.2rem;
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Scroll animations ---------- */
.js .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--delay, 0s);
}
.js .fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .fade-up { opacity: 1; transform: none; }
  .hero-arrow-line, .hero-arrow-head { stroke-dashoffset: 0; }
}
