html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  transition: color 0.2s ease;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
}

.brand-logo {
  width: 2.3rem;
  height: 2.3rem;
  flex-shrink: 0;
}

.brand-title {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: #0f172a;
}

.brand-title-main {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-title-sub {
  margin-top: 0.11rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #475569;
}

.brand-mark:hover .brand-title {
  color: #1d4ed8;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #f8fafc;
}

.site-background::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(1280px, 96vw) auto;
  background-image: url("world-map.min.svg");
  filter: grayscale(100%) contrast(92%);
}

.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.55));
}

.bg-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0;
  animation: floatOrb 18s ease-in-out infinite;
  transition: transform 0.2s ease-out;
}

.orb-1 {
  width: 38rem;
  height: 38rem;
  background: rgba(59, 130, 246, 0.35);
  top: -10rem;
  left: -8rem;
}

.orb-2 {
  width: 30rem;
  height: 30rem;
  background: rgba(99, 102, 241, 0.32);
  top: 30%;
  right: -6rem;
  animation-delay: -6s;
}

.orb-3 {
  width: 28rem;
  height: 28rem;
  background: rgba(20, 184, 166, 0.28);
  bottom: -8rem;
  left: 35%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -24px, 0) scale(1.08);
  }
}

/* Homepage card/panel style tuned for airy background */
.hero-carousel {
  background: rgba(255, 255, 255, 0.01) !important;
  border-color: transparent !important;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  box-shadow: none;
}

.hero-slides {
  display: grid;
}

.hero-slides > .hero-slide {
  grid-area: 1 / 1;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: fadeInSlide 0.35s ease;
}

.hero-slide-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 1rem;
}

.hero-sketch {
  display: flex;
  justify-content: center;
}

.hero-sketch-svg {
  width: 220px;
  height: 180px;
  stroke: #111111;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
}

.hero-sketch-svg .guide {
  stroke-width: 1.2;
  opacity: 0.5;
}

.hero-sketch-svg .shade {
  stroke-width: 1.1;
  opacity: 0.45;
}

.carousel-arrow {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 9999px;
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.carousel-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.35);
  transition: all 0.2s ease;
}

.carousel-dot.is-active {
  width: 1.3rem;
  background: rgba(37, 99, 235, 0.8);
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-panel {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(30, 41, 59, 0.08);
}

.home-card {
  background: rgba(255, 255, 255, 0.46) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(30, 41, 59, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.1);
  background: rgba(255, 255, 255, 0.58) !important;
}

header.bg-white,
footer.bg-white {
  background-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Unified button motion */
a.rounded-lg {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

a.rounded-lg:hover {
  transform: translateY(-1px);
}

a.rounded-lg.bg-slate-900:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  a.rounded-lg,
  .rounded-xl.border,
  .rounded-2xl.border,
  .rounded-lg.border {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .hero-slide-content {
    grid-template-columns: 1fr;
  }

  .hero-sketch {
    display: none;
  }
}
