@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(90deg, #111827 0%, #475569 52%, #94a3b8 100%);
  -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(102deg, rgba(15, 23, 42, 0.86) 0%, rgba(22, 36, 64, 0.72) 34%, rgba(30, 41, 59, 0.34) 60%, rgba(15, 23, 42, 0.08) 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;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  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(-3px);
  border-color: rgba(100, 116, 139, 0.18) !important;
  box-shadow: 0 28px 60px -44px rgba(15, 23, 42, 0.18), 0 10px 18px -18px rgba(51, 65, 85, 0.14);
}

.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(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 60%, rgba(241, 245, 249, 0.94) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -12px 18px rgba(148, 163, 184, 0.08),
    0 18px 30px -24px rgba(45, 53, 56, 0.28);
}

.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: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.94) 100%) !important;
  color: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 22px 42px -28px rgba(15, 23, 42, 0.34);
}

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

.hero-cta.hero-cta--secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

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

.why-quiet-card {
  background:
    radial-gradient(circle at top right, rgba(100, 116, 139, 0.16), transparent 34%),
    linear-gradient(160deg, #111827 0%, #172033 52%, #243247 100%);
}

#why-us .home-fx-card,
#why-quiet-store .home-fx-card,
#why-us .why-quiet-card,
#why-quiet-store .why-quiet-card,
#why-us .bg-\[\#F6D23A\],
#why-quiet-store .bg-\[\#F6D23A\] {
  border: 1px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

#why-us .home-fx-card:hover,
#why-quiet-store .home-fx-card:hover,
#why-us .why-quiet-card:hover,
#why-quiet-store .why-quiet-card:hover,
#why-us .bg-\[\#F6D23A\]:hover,
#why-quiet-store .bg-\[\#F6D23A\]:hover {
  border-color: rgba(100, 116, 139, 0.22) !important;
  box-shadow: 0 28px 60px -44px rgba(15, 23, 42, 0.18), 0 10px 18px -18px rgba(51, 65, 85, 0.14);
}

#why-us .why-quiet-card .bg-white\/10,
#why-quiet-store .why-quiet-card .bg-white\/10 {
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

#why-us .why-quiet-card .bg-white\/10:hover,
#why-quiet-store .why-quiet-card .bg-white\/10:hover {
  border-color: rgba(148, 163, 184, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.14) !important;
}

.home-logos {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  isolation: isolate;
}

.home-logos__track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  width: max-content;
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 1;
  will-change: transform;
  transform: translate3d(0, -50%, 0);
}

.home-logos__track--clone {
  z-index: 0;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 50%;
  will-change: transform;
}

.home-logos__cell {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  min-width: 0;
}

.home-logos__cell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.home-logos__item {
  display: block;
  width: auto;
  max-width: 154px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 767px) {
  .home-logos__cell {
    padding: 0 1rem;
  }

  .home-logos__item {
    max-width: 136px;
    height: 24px;
  }
}

.home-logos__cell a:hover .home-logos__item,
.home-logos__cell a:focus-visible .home-logos__item,
.home-logos__cell > .home-logos__item:hover {
  filter: grayscale(0) opacity(1);
  transform: none;
}

.header-max-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

#header .header-messenger-link {
  transition: color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

#header .header-messenger-link:hover,
#header .header-messenger-link:focus-visible {
  color: #1a1d24 !important;
  opacity: 0.75;
  transform: translateY(-1px);
}

.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;
  }
}
