html {
  scroll-behavior: smooth; }

.site-title {
  font-size: 1.25rem;
  line-height: 2.5rem; }

.nav-link {
  padding: 0;
  font-size: 1.25rem;
  line-height: 2.5rem;
  color: rgba(0, 0, 0, 0.5); }

.nav-link:hover,
.nav-link:focus,
.active .nav-link {
  color: rgba(0, 0, 0, 0.8); }

.nav-item + .nav-item {
  margin-left: 1rem; }

.cover {
  border-radius: 10px; }

.cover-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #27344b !important;
  background: #e8e8e8;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 22px 42px -30px rgba(96, 105, 125, 0.2); }

.cover-bg::before,
.cover-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none; }

.cover-bg::before {
  background: none;
  z-index: 0; }

.cover-bg::after {
  background: none;
  z-index: 0; }

.cover-bg > .row {
  position: relative;
  z-index: 1; }

.hero-copy {
  color: #27344b;
}

.hero-copy [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

.cover-bg .h1,
.cover-bg h2 {
  color: #1d2940 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82); }

.cover-bg p {
  color: rgba(89, 104, 132, 0.92) !important;
  text-shadow: none; }

.avatar {
  max-width: 216px;
  max-height: 216px;
  margin-top: 10px;
  text-align: center;
  margin-left: auto;
  margin-right: auto; }

.avatar img {
  /* Safari 6.0 - 9.0 */
  filter: grayscale(0%); }

footer a:not(.nav-link) {
  color: inherit;
  border-bottom: 1px dashed;
  text-decoration: none;
  cursor: pointer; }

@media (min-width: 48em) {
  .site-title {
    float: left; }
  .site-nav {
    float: right; }
  .avatar {
    margin-bottom: -62px;
    margin-left: 0; } }

/* ========================================
   Glass Buttons — wabi.ai style
   ======================================== */

@property --glass-angle-1 {
  syntax: '<angle>';
  initial-value: -75deg;
  inherits: false;
}

@property --glass-angle-2 {
  syntax: '<angle>';
  initial-value: -45deg;
  inherits: false;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  perspective: 800px;
}

/* Wrapper */
.glass-btn-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  border-radius: 999vw;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-btn-wrap:hover {
  transform: translateY(-2px);
}

.glass-btn-wrap:has(.glass-btn:active) {
  transform: translateY(0) rotateX(25deg);
}

/* The glass button */
.glass-btn {
  all: unset;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 999vw;
  height: 44px;
  padding: 0 32px;
  border-bottom: 0 !important;
  text-decoration: none;

  backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));

  background: linear-gradient(-75deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.08));

  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
    inset 0 0 0.1em 0.25em rgba(255, 255, 255, 0.2);

  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-btn:hover {
  transform: scale(1.015);
  text-decoration: none;
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.03),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.58),
    0 0.75em 1.4em -0.95em rgba(0, 0, 0, 0.22),
    inset 0 0 0.05em 0.1em rgba(255, 255, 255, 0.32);
  --glass-angle-1: -125deg;
}

.glass-btn:active {
  transition-duration: 0.1s;
}

/* Text */
.glass-btn span {
  position: relative;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  color: #323232;
  text-shadow: 0 0.05em 0.05em rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 999vw;
}

/* Outer border ring */
.glass-btn::after {
  content: '';
  position: absolute;
  z-index: 1;
  border-radius: 999vw;
  width: calc(100% + 3px);
  height: calc(100% + 3px);
  inset: -1.5px 0 0 -1.5px;
  padding: 1.5px;

  background:
    conic-gradient(from var(--glass-angle-1) at 50% 50%,
      rgba(0, 0, 0, 0.45), transparent 5% 40%,
      rgba(0, 0, 0, 0.45) 50%, transparent 60% 95%,
      rgba(0, 0, 0, 0.45)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65));

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;

  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1), --glass-angle-1 0.5s;
}

/* Inner shine */
.glass-btn::before {
  content: '';
  position: absolute;
  z-index: 2;
  border-radius: 999vw;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  top: 1px;
  left: 1px;

  background: linear-gradient(var(--glass-angle-2),
    transparent 0%,
    rgba(255, 255, 255, 0.5) 35% 52%,
    transparent 58%);
  background-size: 200% 200%;
  background-position: 0%;

  pointer-events: none;
  transition: background-position 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-btn:hover::before {
  background-position: 34%;
}

/* Shadow element */
.glass-btn-shadow {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: calc(100% + 2em);
  height: calc(100% + 2em);
  top: -1em;
  left: -1em;
  overflow: visible;
  opacity: 0.78;
  filter: blur(clamp(2px, 0.125em, 12px));
  transition: filter 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-btn-shadow::after {
  content: '';
  position: absolute;
  border-radius: 999vw;
  width: calc(100% - 2.25em);
  height: calc(100% - 2.25em);
  inset: 1.5em 0 0 1.125em;
  padding: 0.125em;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.glass-btn-wrap:has(.glass-btn:hover) .glass-btn-shadow {
  filter: blur(clamp(2px, 0.0625em, 6px));
  opacity: 1;
}

.hero-actions .glass-btn {
  height: clamp(60px, 7vw, 68px);
  padding: 0 clamp(3rem, 4.8vw, 4rem);
}

.hero-actions .glass-btn span {
  font-size: clamp(17px, 2vw, 18px);
}

.header-lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-inline: 0.75rem;
}

.glass-btn-wrap--lang .glass-btn {
  min-width: 78px;
  height: 42px;
  padding: 0 1.35rem;
}

.glass-btn-wrap--lang .glass-btn span {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #56627a;
}

.site-nav .nav {
  gap: 0.95rem;
}

.site-nav .nav-item {
  display: flex;
  align-items: center;
}

.glass-btn-wrap--icon.glass-btn-wrap--header-icon .glass-btn {
  width: 46px;
  height: 46px;
}

.glass-btn-wrap--icon .glass-btn {
  width: 48px;
  height: 48px;
  padding: 0;
}

.glass-btn-wrap--icon .glass-btn i {
  position: relative;
  z-index: 4;
  font-size: 1.24rem;
  color: #323232;
  text-shadow: 0 0.05em 0.05em rgba(0, 0, 0, 0.05);
}

.footer-nav {
  margin-top: 1.25rem;
  margin-bottom: 1.9rem;
}

.footer-glass-nav {
  display: flex;
  justify-content: center;
  gap: 0.95rem;
  flex-wrap: wrap;
}

footer .h4 {
  color: #46526b;
  margin-bottom: 0;
}

footer .text-small {
  color: #5b6880;
  line-height: 1.8;
}

footer .container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #e8e8e8;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2) 0%, transparent 50%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 22px 42px -30px rgba(96, 105, 125, 0.2);
}

@media (max-width: 991.98px) {
  .header-lang-nav {
    width: 100%;
    justify-content: center;
    margin: 0.1rem 0 0;
  }

  .site-nav .nav {
    gap: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .hero-actions {
    justify-content: center;
  }

  .header-lang-nav {
    gap: 0.65rem;
  }

  .glass-btn-wrap--lang .glass-btn {
    min-width: 72px;
    height: 38px;
    padding: 0 1.1rem;
  }

  .glass-btn-wrap--lang .glass-btn span {
    font-size: 0.84rem;
  }

  .glass-btn-wrap--icon.glass-btn-wrap--header-icon .glass-btn {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-color-scheme: dark) {
  .cover-bg {
    color: #e8eef9 !important;
    background: linear-gradient(145deg, rgba(28, 36, 52, 0.96), rgba(14, 19, 29, 0.98));
    background-image:
      radial-gradient(circle at 18% 22%, rgba(121, 135, 163, 0.16) 0%, transparent 44%),
      radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
      linear-gradient(145deg, rgba(28, 36, 52, 0.96), rgba(14, 19, 29, 0.98));
    border-color: rgba(147, 158, 182, 0.16);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -18px 30px rgba(3, 5, 10, 0.34),
      0 26px 48px -38px rgba(0, 0, 0, 0.78);
  }

  .hero-copy {
    color: #e7eef9;
  }

  .cover-bg .h1,
  .cover-bg h2 {
    color: #eef2fa !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.38);
  }

  .cover-bg p {
    color: rgba(157, 170, 193, 0.92) !important;
  }

  .glass-btn-wrap:hover {
    transform: none;
  }

  .glass-btn-wrap:has(.glass-btn:active) {
    transform: rotateX(25deg);
  }

  .glass-btn {
    background: linear-gradient(-75deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02));
    box-shadow:
      inset 0 0.125em 0.125em rgba(255, 255, 255, 0.04),
      inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.08),
      0 0.25em 0.5em -0.125em rgba(0, 0, 0, 0.5),
      inset 0 0 0.1em 0.25em rgba(255, 255, 255, 0.03);
  }

  .glass-btn:hover {
    transform: scale(0.975);
    box-shadow:
      inset 0 0.125em 0.125em rgba(255, 255, 255, 0.03),
      inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.07),
      0 0.18em 0.18em -0.08em rgba(0, 0, 0, 0.42),
      inset 0 0 0.06em 0.12em rgba(255, 255, 255, 0.04);
  }

  .glass-btn span {
    color: #e0e0e0;
    text-shadow: none;
  }

  .glass-btn-wrap--lang .glass-btn span {
    color: #e0e0e0;
  }

  .glass-btn::after {
    background:
      conic-gradient(from var(--glass-angle-1) at 50% 50%,
        rgba(255, 255, 255, 0.3), transparent 5% 40%,
        rgba(255, 255, 255, 0.3) 50%, transparent 60% 95%,
        rgba(255, 255, 255, 0.3)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
  }

  .glass-btn::before {
    display: none;
    content: none;
  }

  .glass-btn-wrap--cta .glass-btn::before {
    content: "";
    display: block;
    background: linear-gradient(var(--glass-angle-2),
      transparent 0%,
      rgba(255, 255, 255, 0.5) 35% 52%,
      transparent 58%);
    background-size: 200% 200%;
    background-position: 0%;
  }

  .glass-btn-wrap--cta .glass-btn:hover::before {
    background-position: 25%;
  }

  .glass-btn-shadow {
    opacity: 1;
  }

  .glass-btn-shadow::after {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  }

  .glass-btn-wrap--icon .glass-btn i {
    color: #e0e0e0;
    text-shadow: none;
  }

  footer .h4 {
    color: #e6edf9;
  }

  footer .text-small {
    color: #96a2b8;
  }

  footer .container {
    background: linear-gradient(145deg, rgba(25, 32, 46, 0.96), rgba(14, 19, 29, 0.98));
    background-image:
      radial-gradient(circle at 20% 30%, rgba(121, 135, 163, 0.14) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
      linear-gradient(145deg, rgba(25, 32, 46, 0.96), rgba(14, 19, 29, 0.98));
    border-color: rgba(147, 158, 182, 0.16);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 24px 44px -34px rgba(0, 0, 0, 0.74);
  }
}
