/* EngineerPro AI — GitHub Pages static site */

:root {
  --blue: #1862ff;
  --blue-600: #0b4ae6;
  --blue-700: #0839b8;
  --blue-50: #eef4ff;
  --blue-100: #d9e6ff;
  --navy: #0b1f3d;
  --ink: #14233a;
  --muted: #5a6b86;
  --ice: #f3f7ff;
  --paper: #ffffff;
  --line: rgba(24, 98, 255, 0.14);
  --line-strong: rgba(24, 98, 255, 0.28);
  --shadow: 0 18px 50px rgba(11, 31, 61, 0.08);
  --shadow-lg: 0 28px 80px rgba(11, 31, 61, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
  --header: 72px;
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --display: "Sora", "Be Vietnam Pro", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(24, 98, 255, 0.12), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(24, 98, 255, 0.08), transparent 50%),
    var(--ice);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 10000;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}
.lede, .tagline, h1 { max-width: 100%; overflow-wrap: break-word; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header);
  height: auto;
  display: flex;
  align-items: center;
  background: rgba(243, 247, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(11, 31, 61, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.brand:hover { text-decoration: none; color: var(--blue); }
.brand img { width: 36px; height: 36px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { letter-spacing: 0.16em; font-size: 0.78rem; }
.brand small {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: none;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.2rem 0.95rem;
}
.nav.is-open {
  display: flex;
  position: fixed;
  inset: var(--header) 0 0 0;
  background: rgba(255, 255, 255, 0.97);
  flex-direction: column;
  align-items: stretch;
  padding: 1.2rem;
  gap: 0.2rem;
  z-index: 40;
}
.nav a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.nav a:not(.btn):hover,
.nav a:not(.btn).is-active { color: var(--blue); }
.nav .btn { margin-top: 0.8rem; width: 100%; }

.nav-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--blue);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
  .nav {
    display: flex;
    position: static;
    inset: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0.2rem 0.95rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    border-bottom: 0;
  }
  .nav .btn { margin-top: 0; width: auto; }
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
  border-radius: 2px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-msg {
  background: linear-gradient(180deg, #00c6ff 0%, #0078ff 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 120, 255, 0.28);
  padding: 0.5rem 1.05rem 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  gap: 0.42rem;
  line-height: 1;
  border: 0;
}
.btn-msg svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}
.btn-msg:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 120, 255, 0.34);
}
.nav .btn-msg { color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-ghost:hover { color: var(--blue); }
.btn-lg { padding: 0.95rem 1.45rem; }

.hero {
  padding: 3.2rem 0 2.2rem;
  position: relative;
  overflow: visible;
}
.hero-grid > * { min-width: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  white-space: normal;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  line-height: 1.35;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.55rem);
  margin-bottom: 0.7rem;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.4rem;
}
.tagline {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  margin-top: 1rem;
  font-size: 1rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(24, 98, 255, 0.14), rgba(24, 98, 255, 0.02));
  transform: rotate(12deg);
}
.hero-visual img {
  width: min(340px, 100%);
  position: relative;
  filter: drop-shadow(0 24px 40px rgba(24, 98, 255, 0.18));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 2.4rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--blue);
  letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 0.88rem; }

section { padding: 4.2rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.kicker {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 1.1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card p + p { margin-top: 0.75rem; }

.icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
  margin-bottom: 0.85rem;
  font-family: var(--display);
  font-weight: 700;
}

.path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.course-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.course-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
.course-card:hover .course-thumb img {
  transform: scale(1.04);
}
.course-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--blue-50);
  overflow: hidden;
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.course-card-body {
  padding: 1rem 1.2rem 1.2rem;
}
.hex {
  width: 52px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  position: absolute;
  left: 12px;
  bottom: 12px;
  box-shadow: 0 8px 18px rgba(11, 31, 61, 0.22);
}
.course-card h3 { margin: 0 0 0.2rem; font-size: 1.08rem; }
.course-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.course-card .meta {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}
.course-card .go { display: none; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--blue-50);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
}
.chip {
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.page-hero { padding: 2.6rem 0 1.4rem; }
.course-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.2rem;
  align-items: center;
}
.course-cover {
  margin: 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--blue-50);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.course-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.tagline-en {
  font-family: var(--display);
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.callout {
  background: linear-gradient(135deg, #1862ff, #3b82f6);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.callout h2, .callout h3 { color: #fff; }
.callout p { color: rgba(255, 255, 255, 0.9); }
.callout .btn-ghost {
  background: #fff;
  color: var(--blue-700);
  border-color: transparent;
}
.callout .hero-actions { margin-top: 0.4rem; }
.callout .btn-primary {
  background: #fff;
  color: var(--blue-700);
  box-shadow: none;
}

.instructors .avatar {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-100), #fff);
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
  padding: 0;
}
.instructors .avatar.is-blank {
  background: #fff;
}
.instructors .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.person .soon,
.person .person-tags,
.person .company-tag {
  align-self: flex-start;
}
.person-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0.55rem;
}
.person h3 { margin: 0.45rem 0 0.15rem; }
.person-role {
  font-weight: 600;
  color: var(--navy) !important;
  margin-bottom: 0.35rem !important;
}
.person .btn { margin-top: auto; align-self: flex-start; }
.soon {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.pager a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  min-width: min(100%, 240px);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.pager a:hover { border-color: var(--blue); }
.pager small { color: var(--muted); display: block; }

.footer {
  margin-top: 2rem;
  padding: 2.4rem 0 1.6rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.footer h3 { font-size: 0.95rem; }
.footer a { color: var(--ink); }
.footer p, .footer li { color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0.35rem 0; }
.legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual img { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .course-card:hover { transform: none; }
  .course-card:hover .course-thumb img { transform: none; }
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-4,
  .split,
  .footer-grid,
  .stats { grid-template-columns: 1fr 1fr; }
  .course-hero-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .course-cover { order: -1; }
}

@media (max-width: 640px) {
  .hero { padding-top: 1.6rem; }
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 240px; overflow: hidden; }
  .hero h1 { font-size: 1.75rem; }
  .split { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .nav-toggle { flex-shrink: 0; }
  section { padding: 3rem 0; }
  .logo-strip ul { gap: 0.7rem 1.1rem; }
  .logo-strip p { letter-spacing: 0.06em; }
  .sched-grid { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; }
}

.nav-hot {
  position: relative;
}
.nav-hot::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(24, 98, 255, 0.16);
  transform: translateY(-1px);
}

.logo-strip {
  margin-top: 2.2rem;
  padding: 1.15rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.logo-strip p {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.logo-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.6rem;
  margin: 0;
  padding: 0;
}
.logo-strip li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
}
.logo-strip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  color: var(--navy);
}

.diagram {
  margin: 0 0 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.45rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.diagram img {
  width: 100%;
  height: auto;
  display: block;
}

.sched-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.sched-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sched-card .when {
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.88rem;
}
.sched-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--blue-50);
}
.sched-copy {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.3rem 0.35rem;
}
.sched-main {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}
.sched-main:hover { text-decoration: none; color: inherit; }
.sched-card:hover { border-color: var(--blue); }
.sched-card h3 { margin: 0; font-size: 1.05rem; }
.sched-go {
  color: var(--blue) !important;
  font-weight: 700;
  font-size: 0.9rem;
}
.sched-card .soon { align-self: flex-start; }
.sched-card p { margin: 0; }
.sched-card.is-open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.sched-card .slots {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.92rem;
}
.sched-card .slots li { padding: 0.12rem 0; }
.sched-card .open {
  margin-top: auto;
  padding: 0.7rem 1.3rem 1.25rem;
}
.intake-line {
  margin: 1rem 0 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.intake-line strong { color: var(--blue-700); }

.company-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.35rem;
}
.company-tag img { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .sched-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sched-grid { grid-template-columns: 1fr; }
}

.msg-fab {
  position: fixed;
  right: calc(1.1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #00c6ff 0%, #0078ff 100%);
  box-shadow: 0 10px 28px rgba(0, 120, 255, 0.42);
  text-decoration: none;
  animation: msgPulse 2.4s ease-in-out infinite;
}
.msg-fab svg {
  width: 30px;
  height: 30px;
  display: block;
}
.msg-fab:hover {
  text-decoration: none;
  color: #fff;
  transform: scale(1.06);
  animation-play-state: paused;
}
.msg-fab:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@keyframes msgPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0, 120, 255, 0.42), 0 0 0 0 rgba(0, 120, 255, 0.45); }
  55% { box-shadow: 0 10px 28px rgba(0, 120, 255, 0.42), 0 0 0 14px rgba(0, 120, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .msg-fab { animation: none; }
}
@media (max-width: 640px) {
  .msg-fab {
    width: 56px;
    height: 56px;
    right: calc(0.85rem + env(safe-area-inset-right, 0px));
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
  .msg-fab svg { width: 28px; height: 28px; }
}
