/* Xinference home-page specific styles */

.xinf-hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.xinf-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.xinf-hero__bg::before,
.xinf-hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--blue-50);
  filter: blur(90px);
}
/* Both blobs pushed into corners, well clear of the centered
   .xinf-hero__text column, and dimmed so they never fight the tagline. */
.xinf-hero__bg::before { top: -16%; left: -10%; width: 420px; height: 420px; opacity: 0.35; }
.xinf-hero__bg::after { bottom: -18%; right: -8%; width: 380px; height: 380px; opacity: 0.32; }

/* Hero (Relevance-AI style): compact two-column top row, tagline on the
   left, one-line intro + CTAs on the right, product mock full-width below.
   Columns are center-aligned on their shared row so the tagline block and
   the sub-copy + CTA block read as one level band instead of the old
   end-aligned layout, which pinned everything to the bottom and made the
   two columns look staggered against each other. */
.xinf-hero__top {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}

.xinf-hero__title {
  font-family: var(--font-sans);
  /* Left column now carries more width (1.25fr) and is the visual lead of
     the hero, so the tagline is sized up accordingly. Still clamped to
     never overflow its column: "Sovereign inference." stays one line. */
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}
.xinf-hero__title em {
  font-style: italic; color: var(--blue-500); font-weight: 500;
}
.xinf-hero__title .gradient {
  /* legacy class name retained (referenced by home.jsx): flat brand-blue fill, no color blend */
  color: var(--blue-500);
}
.xinf-hero__aside {
  display: flex; flex-direction: column; gap: 26px;
}
.xinf-hero__sub {
  margin: 0; max-width: 44ch;
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55;
  color: var(--ink-500); letter-spacing: -0.01em;
}
.xinf-hero__cta {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px;
}

/* Product mock : full-width, sits below the two-column row. */
.xinf-hero__mock {
  position: relative; z-index: 1;
  margin: 56px auto 0;
  max-width: 1120px;
  width: 100%;
}
.xinf-hero__disclaimer {
  position: relative; z-index: 1;
  margin: 16px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-label);
}

@media (max-width: 860px) {
  .xinf-hero__top {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
  .xinf-hero__mock { margin-top: 44px; }
}

/* --- Hero visuals (the animated showcase under the hero) --- */
.hero-viz-wrap {
  border: 1px solid var(--color-hairline);
  border-radius: var(--r-2xl);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-viz-tabs {
  display: flex; gap: 4px; padding: 12px;
  border-bottom: 1px solid var(--color-hairline);
  background: var(--color-panel);
}
.hero-viz-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-600); font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 140ms var(--ease-out);
}
.hero-viz-tabs button:hover { background: var(--color-chip); color: var(--ink-900); }
.hero-viz-tabs button[data-active="true"] {
  background: var(--ink-900); color: var(--white);
}
.hero-viz-tabs button[data-active="true"]:hover { background: var(--ink-900); }
.hero-viz-body { padding: 24px; min-height: 360px; }
.hero-viz-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  border-top: 1px solid var(--color-hairline);
  background: var(--color-panel);
  font-size: 12px; color: var(--ink-500);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 320px minmax(240px, auto);
  gap: 12px;
}
.product-card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--color-hairline);
  padding: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 240ms var(--ease-out);
}
.product-card:hover {
  border-color: rgba(0, 69, 176, 0.30);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.product-card.is-feature {
  grid-column: 1 / 2; grid-row: 1 / 3;
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--ink-900);
}
.product-card.is-feature:hover { background: var(--ink-800); border-color: var(--blue-500); }
.product-card h3 {
  font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700;
  padding-right: 90px;
}
.product-card.is-feature h3 { font-size: 36px; max-width: 14ch; }
.product-card p { color: var(--ink-500); margin-top: 12px; font-size: 14px; line-height: 1.55; }
.product-card.is-feature p { color: rgba(255,255,255,0.65); font-size: 16px; max-width: 36ch; }
.product-card__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-900);
}
.product-card.is-feature .product-card__cta { color: var(--white); }
.product-card.is-feature .product-card__cta:hover { color: var(--blue-300); }
.product-card__viz { margin-top: 20px; flex: 1; min-height: 0; position: relative; }
.product-card__tag {
  position: absolute; top: 20px; right: 20px;
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .product-card.is-feature { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Section header */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px;
}
.sec-head h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 700;
  max-width: 18ch;
}
.sec-head__right {
  text-align: right; max-width: 36ch;
  color: var(--ink-500); font-size: 16px;
}
@media (max-width: 760px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head__right { text-align: left; }
}

/* Stack features (Inference Stack section) */
.stack-grid {
  display: grid; grid-template-columns: 1.3fr 2fr;
  gap: 12px;
  background: var(--ink-900);
  border-radius: var(--r-xl);
  padding: 40px;
  color: var(--white);
}
.stack-grid h3 {
  font-size: 40px; line-height: 1.02; letter-spacing: -0.02em; font-weight: 700;
  max-width: 12ch;
}
.stack-grid p { color: rgba(255,255,255,0.65); margin-top: 16px; max-width: 30ch; }
.stack-grid__features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-xl); overflow: hidden;
}
.stack-feature {
  background: var(--ink-900); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 240ms;
}
.stack-feature:hover { background: var(--ink-800); }
.stack-feature__icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: rgba(0, 69, 176, 0.22);
  color: var(--blue-300);
  display: inline-flex; align-items: center; justify-content: center;
}
.stack-feature__title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.stack-feature__desc { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.stack-feature__link { color: var(--blue-300); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
@media (max-width: 900px) {
  .stack-grid { grid-template-columns: 1fr; padding: 28px; }
  .stack-grid__features { grid-template-columns: 1fr; }
}

/* Deployment split (Cloud / Self-hosted / Hybrid) */
.deploy-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.deploy-card {
  background: white; border: 1px solid var(--color-hairline);
  border-radius: var(--r-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 360px;
}
.deploy-card .overline { color: var(--blue-500); }
.deploy-card h3 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }
.deploy-card p { color: var(--ink-500); font-size: 15px; line-height: 1.55; }
.deploy-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-700); margin-top: 4px; }
.deploy-card ul li { display: flex; gap: 8px; align-items: flex-start; }
.deploy-card ul li::before { content: ""; width: 6px; height: 6px; background: var(--blue-500); border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.deploy-card .deploy-card__cta { margin-top: auto; }
.deploy-card.is-highlight {
  background: var(--ink-900); color: var(--white); border-color: var(--ink-900);
}
.deploy-card.is-highlight p { color: rgba(255,255,255,0.65); }
.deploy-card.is-highlight ul { color: rgba(255,255,255,0.8); }
.deploy-card.is-highlight .overline { color: var(--blue-300); }
@media (max-width: 900px) { .deploy-grid { grid-template-columns: 1fr; } }
.deploy-grid--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .deploy-grid--2col { grid-template-columns: 1fr; } }

/* Use cases grid */
.usecase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.usecase-card {
  background: white; border: 1px solid var(--color-hairline);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 240ms var(--ease-out);
  min-height: 220px;
}
.usecase-card:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.usecase-card__icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--color-chip); color: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
}
.usecase-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.usecase-card p { color: var(--ink-500); font-size: 14px; line-height: 1.55; }
.usecase-card .stat { font-family: var(--font-mono); font-size: 13px; color: var(--blue-600); margin-top: auto; }
@media (max-width: 900px) { .usecase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .usecase-grid { grid-template-columns: 1fr; } }

/* Quote cards */
.quote-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
  grid-auto-rows: minmax(220px, auto);
}
.quote-card {
  background: white; border: 1px solid var(--color-hairline);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all 240ms var(--ease-out);
}
.quote-card:hover { border-color: rgba(0, 69, 176, 0.30); transform: translateY(-2px); }
.quote-card.is-big { grid-column: 1 / 2; grid-row: 1 / 3; }
.quote-card.is-metric {
  background: var(--blue-500); color: white; border-color: var(--blue-500);
  align-items: flex-start;
}
.quote-card.is-metric:hover { background: var(--blue-600); border-color: var(--blue-600); }
.quote-card.is-dark {
  background: var(--ink-900); color: var(--white); border-color: var(--ink-900);
}
.quote-card .quote {
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -0.01em;
}
.quote-card.is-big .quote { font-size: clamp(22px, 2.4vw, 30px); }
.quote-card .attribution {
  display: flex; align-items: center; gap: 12px; margin-top: 24px;
  font-size: 13px;
}
.quote-card .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-500);
  color: white; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.quote-card .role { color: var(--ink-500); }
.quote-card.is-dark .role,
.quote-card.is-metric .role { color: rgba(255,255,255,0.65); }
.quote-card .big-stat {
  font-size: 64px; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 0.95;
}
.quote-card .big-stat-sub { margin-top: 8px; font-size: 15px; opacity: 0.85; }
@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .quote-card.is-big { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) { .quote-grid { grid-template-columns: 1fr; } }

/* Cross-link section */
.crosslink {
  background: var(--ink-900);
  color: var(--white); border-radius: var(--r-2xl); overflow: hidden;
  position: relative;
}
.crosslink__inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  padding: clamp(40px, 6vw, 80px);
  align-items: center;
}
.crosslink .overline { color: var(--blue-300); }
.crosslink h2 {
  /* Sized so the approved Xagent tagline fits two lines at desktop widths. */
  font-size: clamp(32px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -0.02em;
  font-weight: 700; margin-top: 16px;
}
.crosslink h2 em { font-style: italic; font-weight: 500; color: var(--blue-300); }
.crosslink p { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,0.75); max-width: 44ch; }
.crosslink__cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.crosslink__cta .btn-primary { background: white; color: var(--ink-900); }
.crosslink__cta .btn-primary:hover { background: var(--blue-100); }
.crosslink__cta .btn-ghost { color: white; border-color: rgba(255,255,255,0.30); }
.crosslink__cta .btn-ghost:hover { background: rgba(255,255,255,0.10); }
.crosslink__visual { position: relative; }
@media (max-width: 900px) { .crosslink__inner { grid-template-columns: 1fr; } }

/* Final CTA : left-aligned to the same column as every other section,
   for consistent alignment site-wide (no centered block over left content). */
.final-cta {
  text-align: left;
  padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(80px, 12vw, 150px);
  padding-left: max(24px, calc((100% - 1192px) / 2));
  padding-right: max(24px, calc((100% - 1192px) / 2));
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; z-index: 0;
  top: 40%; left: 18%; transform: translate(-50%, -50%);
  width: 460px; height: 460px; border-radius: 50%;
  background: var(--blue-50);
  filter: blur(100px);
  opacity: 0.55;
}
.final-cta > * { position: relative; z-index: 1; max-width: 1192px; }
.final-cta h2 {
  font-size: clamp(44px, 6vw, 88px); line-height: 1.0;
  letter-spacing: -0.02em; font-weight: 700;
  max-width: 20ch; margin: 0;
}
.final-cta h2 em { font-style: italic; color: var(--blue-500); font-weight: 500; }
.final-cta p { margin-left: 0 !important; margin-right: 0 !important; }
.final-cta__cta {
  margin-top: 40px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start;
}

/* Tabs (used inside use-cases section) */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--color-panel);
  border-radius: var(--r-pill);
}
.tabs button {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: var(--ink-600);
  transition: all 140ms var(--ease-out);
}
.tabs button[data-active="true"] {
  background: white; color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

/* ===== Developers / OSS band ===== */
.dev-band {
  background: var(--ink-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.dev-band::before,
.dev-band::after {
  content: ""; position: absolute; pointer-events: none;
  border-radius: 50%;
  background: var(--blue-700);
  filter: blur(100px);
}
.dev-band::before { top: -10%; right: 4%; width: 480px; height: 480px; opacity: 0.35; }
.dev-band::after { bottom: -20%; left: 2%; width: 380px; height: 380px; opacity: 0.22; }
.dev-band > * { position: relative; z-index: 1; }
.dev-band__grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: start;
}
.dev-band__copy em { color: var(--blue-300); }
.dev-band__viz { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dev-band__metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.dev-band__metric { padding: 20px; position: relative; }
.dev-band__metric + .dev-band__metric { border-left: 1px solid rgba(255,255,255,0.08); }
.dev-band__num {
  font-size: 36px; font-weight: 700; letter-spacing: -0.02em;
  color: white; line-height: 1; font-variant-numeric: tabular-nums;
}
.dev-band__lbl { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 6px; letter-spacing: 0.02em; }

.dev-band__terminal {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dev-band__term-bar {
  padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dev-band__pre {
  font-family: var(--font-mono); font-size: 12.5px;
  line-height: 1.7; color: #E0E0E0;
  padding: 16px 20px; margin: 0;
  white-space: pre-wrap;
}
.dev-band__links {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.dev-band__link {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  background: #0F0F0F;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85);
  transition: background 140ms;
}
.dev-band__link:hover { background: #161616; color: white; }
.dev-band__link-icon {
  width: 28px; height: 28px; border-radius: var(--r-md);
  background: rgba(0, 69, 176, 0.22); color: var(--blue-300);
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .dev-band__grid { grid-template-columns: 1fr; gap: 40px; }
  .dev-band__metrics { grid-template-columns: 1fr 1fr; }
  .dev-band__metric:nth-child(3) { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .dev-band__metric:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); }
  .dev-band__links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .dev-band__metrics { grid-template-columns: 1fr; }
  .dev-band__metric:nth-child(2),
  .dev-band__metric:nth-child(3),
  .dev-band__metric:nth-child(4) { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .dev-band__links { grid-template-columns: 1fr; }
}
