/* DSphere AI Browser introduction page (products/aibrowser.html, us-en/aibrowser.html).
   Self-contained and aib- prefixed so it never collides with Webflow classes. */

/* Webflow IX sets .page-wrapper to opacity:0 at runtime as the start of a page-load fade that is
   wired to the template page’s original content, so on this page it may never fade back in.
   This stylesheet only loads on the AI Browser pages, so force the page visible here. */
.page-wrapper { opacity: 1 !important; }
.aib {
  --aib-text: #0f172a;
  --aib-soft: #5b6477;
  --aib-border: #dce4f4;
  --aib-bg: #f8faff;
  --aib-bg-soft: #eef3ff;
  --aib-primary: #563aff;
  --aib-primary-hover: #4428e6;
  --aib-accent: #19d3ff;
  --aib-radius: 16px;
  --aib-shadow: 0 14px 32px rgba(37, 58, 106, 0.08);
  color: var(--aib-text);
  background: var(--aib-bg);
  font-size: 16px;
  line-height: 1.7;
}

.aib *, .aib *::before, .aib *::after { box-sizing: border-box; }

.aib-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.aib-section { padding: 88px 0; }
.aib-section.is-tinted { background: #fff; border-top: 1px solid var(--aib-border); border-bottom: 1px solid var(--aib-border); }

.aib-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--aib-bg-soft); color: var(--aib-primary);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.aib-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--aib-primary), var(--aib-accent)); }

.aib-h2 { margin: 14px 0 12px; font-size: 36px; line-height: 1.25; font-weight: 700; color: var(--aib-text); }
.aib-lead { margin: 0 auto; max-width: 720px; color: var(--aib-soft); font-size: 17px; }
.aib-head { text-align: center; margin-bottom: 48px; }

/* Buttons */
.aib-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.aib-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 12px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.aib-btn:hover { transform: translateY(-1px); }
.aib-btn.is-primary { background: var(--aib-primary); color: #fff; border: 1px solid var(--aib-primary); }
.aib-btn.is-primary:hover { background: var(--aib-primary-hover); border-color: var(--aib-primary-hover); color: #fff; }
.aib-btn.is-ghost { background: #fff; color: var(--aib-text); border: 1px solid var(--aib-border); }
.aib-btn.is-ghost:hover { border-color: var(--aib-primary); color: var(--aib-primary); }
.aib-meta { margin-top: 14px; color: var(--aib-soft); font-size: 14px; }

/* Hero */
.aib-hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; }
.aib-hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -240px; height: 640px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(86, 58, 255, 0.16), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(25, 211, 255, 0.14), transparent 70%);
}
.aib-hero > .aib-container { position: relative; z-index: 1; }
.aib-hero h1 { margin: 18px auto 16px; max-width: 880px; font-size: 56px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; color: var(--aib-text); }
.aib-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--aib-primary), #2f7bff 55%, var(--aib-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aib-hero .aib-lead { font-size: 19px; }

.aib-shot { margin: 56px auto 0; max-width: 1040px; }
.aib-shot img, .aib-media img {
  display: block; width: 100%; height: auto; border-radius: var(--aib-radius);
  border: 1px solid var(--aib-border); box-shadow: 0 30px 60px rgba(37, 58, 106, 0.16); background: #fff;
}
.aib-caption { margin-top: 12px; color: var(--aib-soft); font-size: 13px; text-align: center; }

/* Steps */
.aib-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: aib-step; }
.aib-card {
  background: #fff; border: 1px solid var(--aib-border); border-radius: var(--aib-radius);
  padding: 28px; box-shadow: var(--aib-shadow);
}
.aib-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--aib-text); }
.aib-card p { margin: 0; color: var(--aib-soft); font-size: 15px; }
.aib-steps .aib-card::before {
  counter-increment: aib-step; content: "0" counter(aib-step);
  display: block; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--aib-primary); letter-spacing: 0.08em;
}

.aib-agents { margin-top: 40px; text-align: center; }
.aib-agents-label { color: var(--aib-soft); font-size: 14px; margin-bottom: 14px; }
.aib-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.aib-chips li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--aib-border); font-size: 14px; font-weight: 600; color: var(--aib-text); }
.aib-link { display: inline-block; margin-top: 18px; color: var(--aib-primary); font-weight: 600; text-decoration: none; }
.aib-link:hover { text-decoration: underline; }

/* Feature rows */
.aib-feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.aib-feature + .aib-feature { margin-top: 88px; }
.aib-feature.is-reversed .aib-feature-text { order: 2; }
.aib-feature-text h3 { margin: 12px 0; font-size: 30px; line-height: 1.3; font-weight: 700; color: var(--aib-text); }
.aib-feature-text > p { margin: 0 0 18px; color: var(--aib-soft); font-size: 16px; }
.aib-points { margin: 0; padding: 0; list-style: none; }
.aib-points li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--aib-soft); font-size: 15px; }
.aib-points li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--aib-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23563aff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.aib-points strong { color: var(--aib-text); }

.aib-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.aib-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aib-tag { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--aib-primary); text-transform: uppercase; }

/* Use cases */
.aib-case .aib-prompt {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--aib-bg);
  border: 1px dashed var(--aib-border); color: var(--aib-text); font-size: 14px;
}

/* Comparison */
.aib-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.aib-product {
  display: flex; flex-direction: column; min-width: 0; padding: 32px;
  background: #fff; border: 1px solid var(--aib-border); border-radius: 20px;
  box-shadow: var(--aib-shadow);
}
.aib-product.is-ai { border-color: #c5baff; background: linear-gradient(160deg, #f2efff, #fff 45%); }
.aib-product-audience {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--aib-bg-soft); color: var(--aib-soft); font-size: 13px; font-weight: 600;
}
.aib-product.is-ai .aib-product-audience { background: #e7e0ff; color: var(--aib-primary); }
.aib-product h3 { margin: 20px 0 6px; color: var(--aib-text); font-size: 26px; line-height: 1.35; }
.aib-product-name { margin: 0; color: var(--aib-soft); font-size: 13px; overflow-wrap: anywhere; }
.aib-product-summary { margin: 18px 0 0; color: var(--aib-text); font-size: 16px; }
.aib-product-details { margin: 28px 0; }
.aib-product-details > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--aib-border); }
.aib-product-details dt { color: var(--aib-soft); font-size: 14px; font-weight: 600; }
.aib-product-details dd { margin: 0; color: var(--aib-text); font-size: 15px; }
.aib-product-details a { color: var(--aib-primary); text-decoration: underline; text-underline-offset: 3px; }
.aib-product-footer { display: flex; flex-direction: column; align-items: flex-start; margin-top: auto; }
.aib-product-footer .aib-btn { width: 100%; }
.aib-product-footer .aib-link { align-self: center; font-size: 14px; }
.aib-product a:focus-visible { outline: 2px solid var(--aib-primary); outline-offset: 4px; }
@media (max-width: 767px) {
  .aib-compare-grid { grid-template-columns: 1fr; gap: 20px; }
  .aib-product { padding: 24px; }
  .aib-product h3 { font-size: 24px; }
  .aib-product-details > div { grid-template-columns: 1fr; gap: 6px; }
}

.aib-table-wrap { overflow-x: auto; border-radius: var(--aib-radius); border: 1px solid var(--aib-border); background: #fff; box-shadow: var(--aib-shadow); }
.aib-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.aib-table th, .aib-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--aib-border); }
.aib-table tr:last-child th, .aib-table tr:last-child td { border-bottom: 0; }
.aib-table thead th { background: var(--aib-bg); font-size: 16px; color: var(--aib-text); }
.aib-table thead th.is-this { color: var(--aib-primary); }
.aib-table tbody th { width: 18%; color: var(--aib-soft); font-weight: 600; }
.aib-table td { color: var(--aib-text); }
.aib-table a { color: var(--aib-primary); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.aib-table a:hover { text-decoration: underline; }

/* Closing CTA */
.aib-cta {
  position: relative; overflow: hidden; margin: 0 auto; padding: 72px 32px; border-radius: 24px; text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(86, 58, 255, 0.55), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(25, 211, 255, 0.35), transparent 50%),
    #0d1230;
  color: #fff;
}
.aib-cta .aib-h2 { color: #fff; margin-top: 0; }
.aib-cta .aib-lead { color: rgba(255, 255, 255, 0.78); }
.aib-cta .aib-btn.is-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.aib-cta .aib-btn.is-ghost:hover { border-color: #fff; color: #fff; }
.aib-cta .aib-meta { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 991px) {
  .aib-section { padding: 64px 0; }
  .aib-hero { padding: 72px 0 56px; }
  .aib-hero h1 { font-size: 40px; }
  .aib-h2 { font-size: 28px; }
  .aib-feature, .aib-feature.is-reversed { grid-template-columns: 1fr; gap: 28px; }
  .aib-feature.is-reversed .aib-feature-text { order: 0; }
  .aib-feature + .aib-feature { margin-top: 64px; }
  .aib-grid-4, .aib-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .aib-container { padding: 0 16px; }
  .aib-hero h1 { font-size: 32px; }
  .aib-hero .aib-lead { font-size: 16px; }
  .aib-steps, .aib-grid-4, .aib-grid-3 { grid-template-columns: 1fr; }
  .aib-card { padding: 22px; }
  .aib-feature-text h3 { font-size: 24px; }
  .aib-cta { padding: 48px 20px; border-radius: 18px; }
  .aib-btn { width: 100%; }
}
