@font-face {
  font-family: "Tilda Sans";
  src: url("../fonts/TildaSans-VF.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
  font-style: normal;
}

body,
.font-sans,
.font-display {
  font-family: var(--font-base) !important;
}

::selection {
  background: var(--color-accent) !important;
  color: var(--color-text-strong) !important;
}

::-moz-selection {
  background: var(--color-accent) !important;
  color: var(--color-text-strong) !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-accent) !important;
  font-weight: 600 !important;
  letter-spacing: var(--tracking-tight) !important;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.text-gradient {
  background-image: linear-gradient(to right, #111827, #4b5563);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Keyboard/touch fallback for hover-only content */
.group:focus-within [class*="group-hover:opacity-100"] {
  opacity: 1 !important;
}

.group:focus-within [class*="group-hover:grayscale-0"] {
  filter: grayscale(0) !important;
}

@media (hover: none) {
  [class*="group-hover:opacity-100"] {
    opacity: 1 !important;
  }

  [class*="group-hover:grayscale-0"] {
    filter: grayscale(0) !important;
  }
}

/* Anchor offsets for fixed header + breadcrumbs */
#category-cabins,
#category-modules,
#category-partitions {
  scroll-margin-top: 9.5rem;
}

@media (max-width: 767px) {
  #category-cabins,
  #category-modules,
  #category-partitions {
    scroll-margin-top: 8rem;
  }
}

.home-fx-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-fx-card::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -14px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(60% 100% at 50% 50%, rgba(100, 116, 139, 0.14) 0%, rgba(51, 63, 72, 0) 75%);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-fx-card:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 8px 16px -16px rgba(71, 85, 105, 0.18), 0 3px 8px -8px rgba(148, 163, 184, 0.15);
}

.home-fx-card:hover::before {
  opacity: 1;
}

.home-fx-icon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #f9fafb 0%, #eef2f6 52%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -10px 18px rgba(148, 163, 184, 0.08),
    0 10px 24px -20px rgba(51, 63, 72, 0.45);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.home-fx-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -130%;
  width: 80%;
  height: 220%;
  background: linear-gradient(102deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(14deg);
  transition: left 0.8s cubic-bezier(0.2, 0.65, 0.22, 1);
  pointer-events: none;
}

.home-fx-card:hover .home-fx-icon::after {
  left: 145%;
}

.feature-pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #f9fafb 0%, #eef2f6 55%, #f8fafc 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -10px 18px rgba(148, 163, 184, 0.08),
    0 10px 24px -20px rgba(51, 63, 72, 0.45);
}

.feature-pill::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -130%;
  width: 80%;
  height: 220%;
  background: linear-gradient(102deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(14deg);
  transition: left 0.8s cubic-bezier(0.2, 0.65, 0.22, 1);
  pointer-events: none;
}

.group:hover .feature-pill::after {
  left: 145%;
}

.hero-cta {
  min-height: 3rem;
}

.hero-cta.hero-cta--primary {
  background: #ffffff !important;
  color: #1a1d24 !important;
  border: 1px solid transparent !important;
}

.hero-cta.hero-cta--primary:hover {
  background: #f1f5f9 !important;
  color: #1a1d24 !important;
  border-color: transparent !important;
}

.hero-cta.hero-cta--secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.hero-cta.hero-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.why-quiet-card {
  background: #1a1d24;
}

.home-logos {
  overflow: hidden;
}

.home-logos__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.25rem;
}

.home-logos__cell {
  width: clamp(110px, 12vw, 156px);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-logos__cell:nth-child(n + 7) {
  display: none;
}

.home-logos__item {
  width: auto;
  max-width: 100%;
  height: 25px;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.home-logos__item:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .home-logos__track {
    width: max-content;
    gap: 0 1.75rem;
    flex-wrap: nowrap;
    animation: home-logos-marquee 24s linear infinite;
  }

  .home-logos__cell:nth-child(n + 7) {
    display: inline-flex;
  }

  .home-logos__cell {
    width: 140px;
  }
}

@media (max-width: 1200px) and (hover: hover) and (pointer: fine) {
  .home-logos:hover .home-logos__track {
    animation-play-state: paused;
  }
}

@keyframes home-logos-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.experience-play {
  background: rgba(255, 255, 255, 0.9);
  color: #1a1d24;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.experience-badge {
  background: rgba(17, 24, 39, 0.55);
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.testimonial-slider {
  touch-action: pan-x;
  user-select: none;
}

.additional-option-icon,
.spec-icon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #f9fafb 0%, #eef2f6 52%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--color-accent-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -10px 18px rgba(148, 163, 184, 0.08),
    0 10px 24px -20px rgba(51, 63, 72, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.additional-option-card,
.spec-card {
  position: relative;
  overflow: hidden;
  cursor: default !important;
  transform: translateY(0);
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease, background 0.35s ease;
}

.additional-option-card::before,
.spec-card::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -16px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(
    60% 100% at 50% 50%,
    rgba(100, 116, 139, 0.14) 0%,
    rgba(51, 63, 72, 0) 78%
  );
  opacity: 0;
  transform: scale(0.9);
  filter: blur(8px);
  transition: opacity 0.42s ease, transform 0.42s ease;
  pointer-events: none;
}

.additional-option-card::after,
.spec-card::after {
  content: "";
  position: absolute;
  inset: -35% -20% auto -20%;
  height: 70%;
  background: radial-gradient(
    80% 60% at 50% 50%,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transition: opacity 0.38s ease, transform 0.42s ease;
  pointer-events: none;
}

.additional-option-icon::before,
.spec-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      120% 90% at 18% 14%,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.12) 36%,
      transparent 58%
    ),
    radial-gradient(
      120% 95% at 84% 82%,
      rgba(203, 213, 225, 0.34) 0%,
      rgba(203, 213, 225, 0.1) 38%,
      transparent 64%
    );
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
}

.additional-option-icon::after,
.spec-icon::after {
  content: "";
  position: absolute;
  top: -55%;
  left: -130%;
  width: 88%;
  height: 220%;
  background: linear-gradient(
    102deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.76) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(0.6px);
  transform: rotate(14deg);
  transition: left 0.8s cubic-bezier(0.2, 0.65, 0.22, 1);
  pointer-events: none;
  z-index: 1;
}

.additional-option-icon > i,
.spec-icon > i {
  position: relative;
  z-index: 2;
}

.additional-option-card:hover .additional-option-icon,
.spec-card:hover .spec-icon {
  transform: translateY(0);
  background: linear-gradient(145deg, #fafbfd 0%, #eef3f8 54%, #f8fbff 100%);
  color: var(--color-accent-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -14px 20px rgba(186, 198, 212, 0.16),
    0 10px 20px -16px rgba(100, 116, 139, 0.24);
}

.additional-option-card:hover,
.spec-card:hover {
  transform: translateY(-0.5px);
  border-color: rgba(226, 232, 240, 0.75) !important;
  box-shadow: 0 8px 16px -16px rgba(71, 85, 105, 0.18),
    0 3px 8px -8px rgba(148, 163, 184, 0.15);
}

.additional-option-card:hover::before,
.spec-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.additional-option-card:hover::after,
.spec-card:hover::after {
  opacity: 0.72;
  transform: translateY(0) scale(1);
}

.additional-option-card:hover .additional-option-icon::before,
.spec-card:hover .spec-icon::before {
  animation: liquid-glass 1.8s ease-in-out infinite alternate;
}

.additional-option-card:hover .additional-option-icon::after,
.spec-card:hover .spec-icon::after {
  left: 145%;
}

@keyframes liquid-glass {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(2%, -1.5%, 0) scale(1.02);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(-1.5%, 1.5%, 0) scale(1.01);
    opacity: 0.8;
  }
}
