/* Axionix.icu — Core Styles (HTML/CSS/Vanilla JS) */

:root {
  --primary: #0a2540;
  --accent: #00c2cb;
  --accent-2: #2ecc71;
  --white: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --surface: #eff6ff;
  --border: #cbd5e1;
  --danger: #ef4444;
  --gradient-1: linear-gradient(135deg, #0a2540 0%, #00c2cb 100%);
  --gradient-2: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);

  --shadow-sm: 0 8px 20px rgba(2, 6, 23, 0.08);
  --shadow-md: 0 18px 45px rgba(2, 6, 23, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;

  /* Header palette */
  --header-bg: rgba(6, 18, 34, 0.98);
  --header-bg-scrolled: rgba(6, 18, 34, 0.98);
  --header-border: rgba(148, 163, 184, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--gradient-2);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Custom scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(10, 37, 64, 0.35);
}
*::-webkit-scrollbar {
  width: 12px;
}
*::-webkit-scrollbar-track {
  background: rgba(10, 37, 64, 0.35);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), rgba(0, 194, 203, 0.55));
  border-radius: 999px;
  border: 2px solid rgba(10, 37, 64, 0.35);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(3.25rem, 5vw, 5rem) 0;
}

.section-title {
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-lead {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.75);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 194, 203, 0.1);
  border: 1px solid rgba(0, 194, 203, 0.25);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease,
    border-color 180ms ease, opacity 180ms ease;
  font-weight: 800;
  letter-spacing: 0.01em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 194, 203, 0.35);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #042f2e;
  box-shadow: 0 14px 28px rgba(0, 194, 203, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(0, 194, 203, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(248, 250, 252, 0.65);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 250, 252, 0.92);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.22);
}

.btn-link {
  background: transparent;
  color: var(--primary);
  border-color: rgba(203, 213, 225, 0.85);
}

.btn-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-pulse {
  animation: pulse 1.7s ease-in-out infinite;
}

/* Header / Nav */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #022c2f;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 200ms ease, box-shadow 200ms ease;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 46px rgba(2, 6, 23, 0.32);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: grid;
  gap: 0.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 194, 203, 0.14);
  border: 1px solid rgba(0, 194, 203, 0.45);
  color: var(--accent);
}

.logo-text .axi {
  font-weight: 900;
  color: var(--white);
}
.logo-text .onix {
  font-weight: 900;
  color: var(--accent);
}

.tagline {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.78);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  color: rgba(248, 250, 252, 0.88);
  font-weight: 700;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: rgba(248, 250, 252, 0.12);
  color: var(--white);
}

.nav-links a.active {
  background: rgba(0, 194, 203, 0.22);
  border: 1px solid rgba(0, 194, 203, 0.48);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 194, 203, 0.18);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(248, 250, 252, 0.25);
  background: rgba(248, 250, 252, 0.08);
  color: var(--white);
}

.hamburger i {
  font-size: 1.1rem;
}

/* Mobile nav panel */
.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  z-index: 1200;
}
.mobile-panel.open {
  display: block;
}
.mobile-drawer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: rgba(10, 37, 64, 0.98);
  border-left: 1px solid rgba(203, 213, 225, 0.18);
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}
.mobile-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.18);
}
.mobile-drawer nav {
  padding-top: 0.9rem;
  display: grid;
  gap: 0.4rem;
}
.mobile-drawer a {
  color: rgba(248, 250, 252, 0.9);
  font-weight: 800;
  padding: 0.85rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.12);
  background: rgba(248, 250, 252, 0.06);
}
.mobile-drawer a.active {
  border-color: rgba(0, 194, 203, 0.35);
  background: rgba(0, 194, 203, 0.14);
}
.mobile-drawer .drawer-cta {
  margin-top: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  color: var(--white);
  background: radial-gradient(1000px 500px at 20% 20%, rgba(0, 194, 203, 0.16), transparent 55%),
    radial-gradient(900px 450px at 80% 35%, rgba(46, 204, 113, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(10, 37, 64, 1), rgba(10, 37, 64, 0.96));
  overflow: hidden;
}

.hero .grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hero h1 {
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero p {
  margin: 0 0 1.6rem;
  color: rgba(248, 250, 252, 0.86);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid rgba(203, 213, 225, 0.18);
  background: rgba(248, 250, 252, 0.06);
  padding: 1.2rem;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.26);
}

.hero-card .mini {
  display: grid;
  gap: 0.8rem;
}

.hero-card .mini .row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-card .mini i {
  color: var(--accent);
  margin-top: 0.2rem;
}

.hero-card .mini strong {
  display: block;
  font-weight: 900;
}

.hero-card .mini span {
  color: rgba(248, 250, 252, 0.8);
}

.ecg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
}

.ecg svg {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: min(1400px, 120vw);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 194, 203, 0.22));
}

.ecg path {
  stroke: rgba(0, 194, 203, 0.9);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: heartbeat 4.2s linear infinite;
}

.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(203, 213, 225, 0.18);
  color: rgba(248, 250, 252, 0.9);
  animation: float 4.8s ease-in-out infinite;
}
.float-icon.i1 {
  left: 7%;
  top: 18%;
  animation-duration: 4.6s;
}
.float-icon.i2 {
  right: 10%;
  top: 24%;
  animation-duration: 5.4s;
}
.float-icon.i3 {
  right: 16%;
  bottom: 18%;
  animation-duration: 5s;
}

/* Stats strip */
.stats {
  margin-top: -2.1rem;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: var(--shadow-md);
}
.stat {
  padding: 0.9rem 0.9rem;
  border-radius: 18px;
  background: rgba(239, 246, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.65);
}
.stat strong {
  display: block;
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.stat span {
  color: var(--muted);
  font-weight: 700;
}

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: rgba(248, 250, 252, 0.98);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 203, 0.45);
  box-shadow: 0 22px 55px rgba(0, 194, 203, 0.16);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 194, 203, 0.12);
  border: 1px solid rgba(0, 194, 203, 0.25);
  color: var(--primary);
}
.card h3 {
  margin: 0.9rem 0 0.4rem;
  font-family: "Oxanium", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.card a.learn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  color: var(--primary);
}
.card a.learn i {
  color: var(--accent);
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(203, 213, 225, 0.75);
  background: rgba(248, 250, 252, 0.95);
  box-shadow: var(--shadow-sm);
}
.feature i {
  color: var(--accent);
  margin-top: 0.2rem;
}
.feature h3 {
  margin: 0 0 0.35rem;
  font-family: "Oxanium", system-ui, sans-serif;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

/* Doctors */
.doctor-card .top {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(10, 37, 64, 0.06);
  border: 1px solid rgba(203, 213, 225, 0.85);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
}
.doctor-card .meta {
  display: grid;
  gap: 0.15rem;
}
.doctor-card .meta strong {
  font-weight: 900;
}
.stars {
  color: #f59e0b;
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  background: var(--gradient-1);
  color: var(--white);
  border-radius: 26px;
  padding: clamp(1.25rem, 3vw, 1.7rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(248, 250, 252, 0.18);
  box-shadow: 0 22px 65px rgba(2, 6, 23, 0.24);
}
.cta-banner h2 {
  margin: 0;
  font-family: "Oxanium", system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.cta-banner p {
  margin: 0.25rem 0 0;
  color: rgba(248, 250, 252, 0.85);
}

/* Testimonials */
.testimonial-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(248, 250, 252, 0.98);
  box-shadow: var(--shadow-sm);
}
.testimonial-track {
  display: flex;
  transition: transform 420ms ease;
}
.testimonial {
  min-width: 100%;
  padding: 1.4rem 1.4rem;
  display: grid;
  gap: 0.8rem;
}
.testimonial p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}
.testimonial .who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-weight: 800;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 900;
  color: var(--primary);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.98);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(0, 194, 203, 0.75);
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.14);
}
.error-text {
  color: var(--danger);
  font-weight: 800;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* Multi-step */
.steps {
  display: grid;
  gap: 1rem;
}
.progress {
  background: rgba(10, 37, 64, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.85);
}
.progress > div {
  height: 12px;
  width: 0%;
  background: var(--gradient-1);
  transition: width 250ms ease;
}
.step {
  display: none;
}
.step.active {
  display: block;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

/* Page hero */
.page-hero {
  background: linear-gradient(180deg, rgba(10, 37, 64, 1), rgba(10, 37, 64, 0.95));
  color: var(--white);
  padding: 3.5rem 0 2.75rem;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  margin: 0 0 0.55rem;
  font-family: "Oxanium", system-ui, sans-serif;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.page-hero p {
  margin: 0;
  color: rgba(248, 250, 252, 0.85);
  max-width: 70ch;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.15rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 3px;
  background: rgba(0, 194, 203, 0.35);
  border-radius: 999px;
}
.milestone {
  position: relative;
  padding: 0.2rem 0 1.2rem 1.1rem;
}
.milestone::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 194, 203, 0.18);
}
.milestone h3 {
  margin: 0 0 0.2rem;
  font-family: "Oxanium", system-ui, sans-serif;
}
.milestone p {
  margin: 0;
  color: var(--muted);
}

/* Filters / search */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.filter-btn {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.95);
  cursor: pointer;
  min-height: 44px;
  font-weight: 900;
  color: var(--primary);
}
.filter-btn.active {
  border-color: rgba(0, 194, 203, 0.55);
  background: rgba(0, 194, 203, 0.13);
}
.search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.98);
  min-height: 44px;
}
.search input {
  border: none;
  outline: none;
  background: transparent;
  min-width: 240px;
}
.search i {
  color: var(--muted);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(2, 6, 23, 0.7);
  padding: 1.25rem;
}
.modal.open {
  display: grid;
  place-items: center;
}
.modal-card {
  width: min(760px, 96vw);
  border-radius: 26px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 26px 85px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.modal-head h3 {
  margin: 0;
  font-family: "Oxanium", system-ui, sans-serif;
}
.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(239, 246, 255, 0.85);
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: rgba(10, 37, 64, 0.98);
  color: rgba(248, 250, 252, 0.92);
  padding: 3rem 0 0;
  border-top: 1px solid rgba(203, 213, 225, 0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.2rem;
  padding-bottom: 2rem;
}
.footer-grid h3 {
  margin: 0 0 0.8rem;
  font-family: "Oxanium", system-ui, sans-serif;
}
.footer-grid a {
  color: rgba(248, 250, 252, 0.78);
}
.footer-grid a:hover {
  color: rgba(248, 250, 252, 0.98);
}
.footer-links {
  display: grid;
  gap: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, 0.12);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: rgba(248, 250, 252, 0.74);
  font-weight: 700;
}
.footer-bottom a {
  color: rgba(248, 250, 252, 0.74);
  text-decoration: underline;
  text-decoration-color: rgba(0, 194, 203, 0.35);
  text-underline-offset: 3px;
}

/* Utility: reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.65);
  background: rgba(248, 250, 252, 0.92);
  box-shadow: var(--shadow-sm);
  display: none;
  place-items: center;
  cursor: pointer;
  z-index: 1500;
}
.back-to-top.show {
  display: grid;
}

/* Loading screen */
.loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 37, 64, 0.98);
  display: grid;
  place-items: center;
  transition: opacity 250ms ease, visibility 250ms ease;
}
.loading.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-card {
  width: min(520px, 92vw);
  border-radius: 26px;
  border: 1px solid rgba(203, 213, 225, 0.16);
  background: rgba(248, 250, 252, 0.06);
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 26px 85px rgba(0, 0, 0, 0.35);
}
.loader-card .pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent-2);
  display: inline-block;
  animation: pulse 1.2s ease-in-out infinite;
}
.loader-card p {
  margin: 0.75rem 0 0;
  color: rgba(248, 250, 252, 0.82);
  font-weight: 800;
}

