@font-face {
  font-family: "SnowflakeSans";
  src: url("/static/font/SnowflakeSans-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root { --font-family: "SnowflakeSans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

html {
  font-family: var(--font-family);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(900px, 92%);
}

.site-header {
  background: rgba(10, 10, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 120px;
  height: 36px;
}

.brand-name {
  font-weight: 600;
  display: block;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--color-text);
}

.nav-links a:hover {
  color: var(--color-secondary);
}

.hero {
  padding: calc(var(--section-padding) * 1.1) 0;
}

.hero-simple {
  background: radial-gradient(circle at top left, rgba(111, 45, 189, 0.25), transparent 55%),
    radial-gradient(circle at top right, rgba(75, 29, 111, 0.35), transparent 55%);
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.highlight-value {
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
}

.highlight-label {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.hero-panel {
  background: var(--color-surface);
  padding: var(--card-padding);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-side > * {
  width: 100%;
}

.hero-panel ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.tech-logo-carousel {
  background: rgba(22, 21, 35, 0.65);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  overflow: hidden;
}

.tech-logo-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  will-change: transform;
}

.tech-logo-item {
  flex: 0 0 auto;
  width: 120px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-logo-item img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
  opacity: 0.85;
}

.meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.section {
  padding: var(--section-padding) 0;
}

.section-contrast {
  background: rgba(20, 18, 30, 0.65);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-header.compact {
  margin-bottom: 1.5rem;
}

.section-header h2,
.section-header h1 {
  margin-bottom: 0.5rem;
}

.section-header-actions {
  flex: 1 1 auto;          /* take remaining space */
  display: flex;
  justify-content: flex-end; /* push content to the right */
  align-items: center;
}

.section-header-actions .button {
  margin-left: auto;
}

.section-link {
  margin-top: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
  display: block;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.solutions-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.solution-card {
  background: var(--color-surface);
  padding: var(--card-padding);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.solution-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(111, 45, 189, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.solution-media img {
  width: 100%;
  height: 275px;
  object-fit: contain;
}

.solution-body h3 {
  margin-bottom: 0.5rem;
}

.solution-body p {
  color: var(--color-muted);
}

.tech-stack-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tech-stack-card {
  background: var(--color-surface);
  padding: var(--card-padding);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 1rem;
}

.tech-stack-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(111, 45, 189, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.tech-stack-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.semantic-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.semantic-card {
  background: var(--color-surface);
  padding: var(--card-padding);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 1rem;
}

.semantic-list {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  color: var(--color-muted);
}

.semantic-image {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(111, 45, 189, 0.12);
  padding: 1rem;
}

.semantic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.info-card {
  background: var(--color-surface);
  padding: var(--card-padding);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
  margin-bottom: 0.75rem;
}

.api-docs-grid {
  margin-bottom: 2rem;
}

.api-docs-stack {
  margin-bottom: 2rem;
}

.api-docs-list {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: var(--color-muted);
}

.api-docs-code {
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15, 15, 20, 0.55);
  color: var(--color-text);
  font-size: 0.85rem;
  line-height: 1.4;
  overflow: auto;
  word-break: break-word;
  white-space: pre-wrap;
}

.api-docs-credentials {
  display: grid;
  gap: 0.25rem;
  color: var(--color-muted);
}

.api-docs-params {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.api-docs-params dt {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.api-docs-params dd {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.two-column {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  background: var(--color-surface);
  padding: var(--card-padding);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--color-primary);
  color: #fff;
  height: 50px;
  margin-top: 20px;
  box-shadow: 0 10px 26px rgba(75, 29, 111, 0.45);
}

.button.secondary {
  background: var(--color-secondary);
  color: #0b0b10;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  height: 50px;
  margin-top: 20px;
  color: var(--color-text);
}

.button:hover {
  transform: translateY(0px);
}

.controls {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;      /* never break to next line */
  align-items: flex-end;  /* aligns bottoms despite labels */
  overflow-x: auto;       /* if it doesn’t fit, scroll instead of wrapping */
}

.controls > * {
  flex: 0 0 auto;
}

.carousel-controls {
  margin-bottom: 1.5rem;
  justify-content: flex-end;
}

.search-box input:focus-visible,
.control-group select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0px rgba(255,255,255,0.35);
}

.search-box,
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;           /* allow shrinking */
}

.search-box input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-surface);
  color: var(--color-text);
  min-width: 0;
  width: clamp(160px, 22vw, 240px);
}

.control-group select {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-surface);
  color: var(--color-text);
  min-width: 0;
  width: clamp(120px, 14vw, 160px);
}

.control-group label,
.search-box label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.toggle-group {
  min-width: auto;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  position: relative;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-text);
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.toggle-switch input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: rgba(199, 125, 255, 0.65);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
  background: #f8f4ff;
}

.toggle-switch input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(111, 45, 189, 0.35);
}

.expanded-query {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(111, 45, 189, 0.16);
  color: var(--color-text);
  font-size: 0.95rem;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  background: var(--color-surface);
  padding: var(--card-padding);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card h3 {
  font-size: 1.1rem;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.product-image {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(111, 45, 189, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.product-image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.product-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.product-sku {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-debug-divider {
  margin: 2.5rem 0 1.5rem;
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.product-debug {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.product-debug summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.product-debug-content {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.product-debug-pre {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15, 15, 20, 0.55);
  color: var(--color-text);
  font-size: 0.85rem;
  line-height: 1.4;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumbs span::after {
  content: "/";
  margin-left: 0.4rem;
}

.breadcrumbs span:last-child::after {
  content: "";
}

.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.carousel-page .carousel-track {
  scrollbar-width: none;
}

.carousel-page .carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  background: var(--color-surface);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  scroll-snap-align: start;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.carousel-image {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(111, 45, 189, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.carousel-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.carousel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-secondary);
  color: #0b0b10;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.carousel-body h3 {
  font-size: 1.1rem;
}

.carousel-page .carousel-body h3 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.carousel-page .carousel-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.carousel-body p {
  color: var(--color-muted);
}

.carousel-price {
  font-weight: 600;
  color: var(--color-primary);
  margin: 0.25rem 0 0.75rem;
}

.status {
  padding: 1rem 0;
  color: var(--color-muted);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.hidden {
  display: none !important;
}

.contact-form {
  background: var(--color-surface);
  padding: var(--card-padding);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-surface);
  color: var(--color-text);
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-accent);
}

.site-footer {
  background: rgba(10, 10, 16, 0.9);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
