@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root,
.dark,
html,
body {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --bg-deep: #050507;
  --bg-surface: #0c0c0e;
  --bg-card: #111114;
  --bg-hover: #18181c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;

  --background: #060608 !important;
  --foreground: #f4f4f5 !important;
  --card: #0e0e11 !important;
  --card-foreground: #f4f4f5 !important;
  --popover: #0e0e11 !important;
  --popover-foreground: #f4f4f5 !important;
  --primary: #ffffff !important;
  --primary-foreground: #09090b !important;
  --secondary: #18181b !important;
  --secondary-foreground: #f4f4f5 !important;
  --muted: #18181b !important;
  --muted-foreground: #a1a1aa !important;
  --border: rgba(255, 255, 255, 0.1) !important;
  --input: rgba(255, 255, 255, 0.12) !important;
  --ring: #ffffff !important;
}

html,
body {
  font-family: var(--font-body);
  background-color: #060608 !important;
  color: #f4f4f5 !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

body {
  background: #060608 !important;
  background-color: #060608 !important;
  min-height: 100vh;
}

main,
section,
div[class*="bg-background"],
div[class*="bg-muted/"],
footer {
  background-color: #060608 !important;
}

#root {
  position: relative;
  z-index: 1;
}

header.sticky {
  background: rgba(10, 10, 12, 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 1px 0 0 rgba(255, 255, 255, 0.04) inset !important;
}

header nav a {
  color: #a1a1aa !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

header nav a:hover {
  color: #ffffff !important;
}

button,
.button,
a[class*="button"],
a[class*="btn"],
button[class*="bg-primary"],
a[class*="bg-primary"] {
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button[class*="bg-primary"],
a[class*="bg-primary"],
.btn-primary,
button[type="submit"] {
  background: #ffffff !important;
  color: #09090b !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(255, 255, 255, 0.3) inset !important;
}

button[class*="bg-primary"]:hover,
a[class*="bg-primary"]:hover,
.btn-primary:hover,
button[type="submit"]:hover {
  background: #e4e4e7 !important;
  color: #09090b !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15) !important;
}

button[class*="bg-primary"]:active,
a[class*="bg-primary"]:active {
  transform: translateY(0) !important;
}

button[class*="border"],
button[class*="bg-secondary"],
button[class*="bg-muted"],
a[class*="border"] {
  background: #18181b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f4f4f5 !important;
}

button[class*="border"]:hover,
button[class*="bg-secondary"]:hover,
button[class*="bg-muted"]:hover,
a[class*="border"]:hover {
  background: #27272a !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

div[class*="bg-card"],
div[class*="border rounded"],
article,
div[class*="card"] {
  background: #141417 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.25s ease !important;
}

div[class*="bg-card"]:hover,
div[class*="border rounded"]:hover,
article:hover {
  background: #18181c !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
  transform: translateY(-3px);
}

div[class*="bg-card"] img,
article img {
  border-radius: 10px 10px 6px 6px !important;
  transition: transform 0.3s ease;
}

div[class*="bg-card"]:hover img,
article:hover img {
  transform: scale(1.02);
}

input,
select,
textarea {
  background: #121215 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  color: #f4f4f5 !important;
  transition: all 0.2s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: #18181b !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

header input {
  background: #18181b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 9999px !important;
}

header input:focus {
  background: #202024 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

span[class*="text-primary"],
p[class*="text-primary"],
div[class*="text-primary"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

span[class*="bg-primary"],
span[class*="badge"],
div[class*="badge"] {
  background: #27272a !important;
  color: #f4f4f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  border-radius: 6px !important;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
  border: 2px solid #09090b;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.featured-categories-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
}

@media (min-width: 560px) {
  .featured-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (min-width: 1024px) {
  .featured-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

.featured-categories-grid .group>div {
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #141417 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.featured-categories-grid .group:hover>div {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.25) inset !important;
}

.featured-categories-grid .aspect-\[4\/3\] {
  aspect-ratio: 4 / 3 !important;
}

.featured-categories-grid .relative.aspect-\[4\/3\] > .absolute.inset-0:nth-child(2) {
  background-image: linear-gradient(
    180deg,
    rgba(8, 12, 24, 0.02) 0%,
    rgba(8, 12, 24, 0.32) 48%,
    rgba(8, 12, 24, 0.94) 100%
  ) !important;
}

.featured-categories-grid h3 {
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

@media (min-width: 640px) {
  .featured-categories-grid h3 {
    font-size: 1.4rem !important;
  }
}

.featured-categories-grid p {
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.featured-categories-grid span[class*="rounded-full"] {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 5px 10px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.05em !important;
}

.featured-categories-grid .group:hover span[class*="rounded-full"] {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: #ffffff !important;
}

.featured-categories-grid .absolute.inset-x-0.bottom-0 {
  padding: 18px !important;
}

@media (min-width: 640px) {
  .featured-categories-grid .absolute.inset-x-0.bottom-0 {
    padding: 22px !important;
  }
}

.featured-categories-grid .absolute.left-4.top-4 {
  left: 16px !important;
  top: 16px !important;
  font-size: 10px !important;
  padding: 4px 10px !important;
  background: rgba(0, 0, 0, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

section:has(.rounded-\[32px\]) {
  background: transparent !important;
  padding-top: 2rem !important;
  padding-bottom: 3.5rem !important;
}

.cta-custom-card,
.rounded-\[32px\] {
  border-radius: 24px !important;
  background: linear-gradient(145deg, #121215 0%, #18181d 55%, #0f0f12 100%) !important;
  background-color: #121215 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08) inset !important;
  position: relative;
  overflow: hidden;
}

.rounded-\[32px\]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.rounded-\[32px\] .inline-flex.rounded-full {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #a1a1aa !important;
  letter-spacing: 0.18em !important;
  font-size: 11px !important;
  padding: 4px 14px !important;
}

.rounded-\[32px\] h2 {
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
}

.rounded-\[32px\] p {
  color: #a1a1aa !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.rounded-\[32px\] a[href*="/products"] {
  background: #ffffff !important;
  color: #09090b !important;
  border: 1px solid #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15) !important;
  transition: all 0.25s ease !important;
}

.rounded-\[32px\] a[href*="/products"]:hover {
  background: #e4e4e7 !important;
  color: #000000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25) !important;
}

.rounded-\[32px\] a[href*="/contact"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f4f4f5 !important;
  font-weight: 600 !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.25s ease !important;
}

.rounded-\[32px\] a[href*="/contact"]:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.rounded-\[32px\] .grid.gap-3>div {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  color: #e4e4e7 !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.25s ease !important;
}

.rounded-\[32px\] .grid.gap-3>div::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.rounded-\[32px\] .grid.gap-3>div:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateX(4px) !important;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-transition-out 160ms ease both;
}

::view-transition-new(root) {
  animation: page-transition-in 320ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes page-transition-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-transition-out {
  to {
    opacity: 0;
  }
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#root main > section,
#root main > div {
  animation: content-enter 540ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

#root main > section:nth-child(2),
#root main > div:nth-child(2) {
  animation-delay: 90ms;
}

#root main > section:nth-child(3),
#root main > div:nth-child(3) {
  animation-delay: 160ms;
}

.featured-categories-grid > .contents {
  animation: content-enter 480ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.featured-categories-grid > .contents:nth-child(2) {
  animation-delay: 45ms;
}

.featured-categories-grid > .contents:nth-child(3) {
  animation-delay: 90ms;
}

.featured-categories-grid > .contents:nth-child(4) {
  animation-delay: 135ms;
}

.featured-categories-grid > .contents:nth-child(5) {
  animation-delay: 180ms;
}

.featured-categories-grid > .contents:nth-child(6) {
  animation-delay: 225ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Homepage photo carousel: incoming panels slide over the previous panel. */
.hero-photo-slide { pointer-events: none; }
.hero-photo-slide[aria-hidden="false"] { pointer-events: auto; }
.hero-photo-next { animation: hero-photo-next 650ms cubic-bezier(.22,.61,.36,1) both; }
.hero-photo-prev { animation: hero-photo-prev 650ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes hero-photo-next { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes hero-photo-prev { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-photo-next, .hero-photo-prev { animation: none; }
}
