/* GPT Token Box — shared navigation + product page styles */

/* ---------- Navigation dropdown ---------- */
header nav .gptb-nav-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 10px;
  min-width: 214px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
  z-index: 60;
}

header nav .relative:hover>.gptb-nav-dropdown,
header nav .relative:focus-within>.gptb-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* When the host site already renders its own Products flyout, use that panel
   instead of drawing a second one on top of it. */
header nav .relative:has(> div[class*="absolute"][class*="top-full"])>.gptb-nav-dropdown {
  display: none;
}

header nav .gptb-nav-panel {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .5);
}

header nav .gptb-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: hsl(var(--foreground));
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

header nav .gptb-nav-link:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--primary));
  flex-shrink: 0;
}

header nav .gptb-nav-link:hover,
header nav .gptb-nav-link:focus {
  background: hsl(var(--accent) / .14);
  color: hsl(var(--primary));
  outline: none;
}

.gptb-mobile-link {
  display: none;
}

@media (max-width: 1023px) {
  .gptb-mobile-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    margin-right: 4px;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--primary));
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .gptb-mobile-link {
    font-size: 10px;
    padding: 4px 7px;
    margin-right: 2px;
  }
}

/* ---------- Mobile drawer (product page only) ---------- */
.gptb-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.gptb-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.gptb-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #0a0b0e;
  border-left: 1px solid hsl(var(--border));
  padding: 22px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .22s ease;
}

.gptb-drawer.is-open .gptb-drawer-panel {
  transform: translateX(0);
}

.gptb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  padding-bottom: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.gptb-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.gptb-drawer-panel>a {
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.gptb-drawer-panel>a:hover {
  color: hsl(var(--primary));
}

.gptb-drawer-panel>a.gptb-drawer-sub {
  padding: 10px 4px 10px 18px;
  font-size: 14px;
  color: hsl(var(--primary));
}

.gptb-drawer-panel>a.gptb-drawer-sub:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: hsl(var(--primary));
  vertical-align: middle;
}

.gptb-drawer-panel>a.gptb-drawer-cta {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 999px;
  border-bottom: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  text-align: center;
}

.gptb-locked {
  overflow: hidden;
}

/* ---------- Product page ---------- */
.gptb-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 78px;
  overflow: hidden;
}

.gptb-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gptb-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gptb-hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 9, .97) 0%, rgba(6, 7, 9, .82) 42%, rgba(6, 7, 9, .18) 100%),
    linear-gradient(0deg, rgba(6, 7, 9, .95) 0%, rgba(6, 7, 9, 0) 45%);
}

.gptb-hero-inner {
  position: relative;
  z-index: 1;
}

.gptb-hero-content {
  max-width: 640px;
}

.gptb-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 22px;
}

.gptb-crumbs a {
  color: rgba(255, 255, 255, .55);
  transition: color .15s ease;
}

.gptb-crumbs a:hover {
  color: #fff;
}

.gptb-crumbs-current {
  color: hsl(var(--primary));
  font-weight: 600;
}

.gptb-badge {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / .4);
  background: hsl(var(--primary) / .12);
  color: hsl(var(--primary));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gptb-hero-title {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.gptb-hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 30px;
}

.gptb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.gptb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid hsl(var(--primary));
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.gptb-btn:hover {
  background: hsl(var(--primary) / .88);
  transform: translateY(-1px);
}

.gptb-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.gptb-btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.gptb-btn--full {
  width: 100%;
  margin-top: 26px;
}

.gptb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gptb-hero-meta span {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
}

.gptb-band {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding: 30px 0;
}

.gptb-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.gptb-band-value {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1.1;
  margin-bottom: 6px;
}

.gptb-band-label {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

.gptb-section {
  padding: 88px 0;
}

.gptb-section--card {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.gptb-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.gptb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 16px;
}

.gptb-eyebrow--center {
  justify-content: center;
}

.gptb-eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.gptb-h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  color: hsl(var(--foreground));
  margin-bottom: 20px;
}

.gptb-h2--sm {
  font-size: clamp(24px, 2.6vw, 32px);
}

.gptb-lead {
  font-size: 16px;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
  margin-bottom: 16px;
}

.gptb-feature-list {
  display: grid;
  gap: 14px;
}

.gptb-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--background));
}

.gptb-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: hsl(var(--primary) / .12);
  color: hsl(var(--primary));
}

.gptb-feature h3 {
  font-size: 15px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 5px;
}

.gptb-feature p {
  font-size: 14px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.gptb-section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.gptb-section-head--left {
  margin-left: 0;
  text-align: left;
  margin-bottom: 44px;
}

.gptb-section-sub {
  font-size: 16px;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.gptb-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gptb-step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  background: hsl(var(--background));
}

.gptb-step:after {
  content: "";
  position: absolute;
  top: 44px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: hsl(var(--border));
}

.gptb-step:last-child:after {
  display: none;
}

.gptb-step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: hsl(var(--primary));
  margin-bottom: 14px;
}

.gptb-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.gptb-step p {
  font-size: 14px;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

.gptb-scenario {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.gptb-scenario-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.gptb-scenario-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gptb-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.gptb-checks li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.gptb-checks li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: hsl(var(--primary) / .15);
  border: 1px solid hsl(var(--primary) / .45);
}

.gptb-checks li:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid hsl(var(--primary));
  border-bottom: 1.6px solid hsl(var(--primary));
  transform: rotate(-45deg);
}

.gptb-editions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.gptb-edition {
  position: relative;
  padding: 32px;
  border: 1px solid hsl(var(--border));
  border-radius: 22px;
  background: hsl(var(--background));
}

.gptb-edition--featured {
  border-color: hsl(var(--primary) / .55);
  box-shadow: 0 24px 60px hsl(var(--primary) / .07);
}

.gptb-edition-tag {
  position: absolute;
  top: -11px;
  left: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gptb-edition-name {
  font-size: 22px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.gptb-edition-desc {
  font-size: 14px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  margin-bottom: 22px;
  min-height: 44px;
}

.gptb-editions-note {
  max-width: 760px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.gptb-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  border-top: 1px solid hsl(var(--border));
}

.gptb-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid hsl(var(--border));
}

.gptb-spec span {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.gptb-spec strong {
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: right;
}

.gptb-box-list {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--card));
}

.gptb-box-list h3 {
  font-size: 14px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.gptb-box-list p {
  font-size: 14px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.gptb-faq-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.gptb-faq-head {
  margin-bottom: 0;
}

.gptb-faq {
  border-top: 1px solid hsl(var(--border));
}

.gptb-faq-item {
  border-bottom: 1px solid hsl(var(--border));
}

.gptb-faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 36px 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.gptb-faq-item summary::-webkit-details-marker {
  display: none;
}

.gptb-faq-item summary:after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: hsl(var(--primary));
}

.gptb-faq-item[open] summary:after {
  content: "\2212";
}

.gptb-faq-item p {
  padding: 0 40px 20px 0;
  font-size: 14px;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.gptb-cta {
  padding: 0 0 96px;
}

.gptb-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px;
  border-radius: 26px;
  border: 1px solid hsl(var(--primary) / .3);
  background:
    radial-gradient(120% 160% at 100% 0%, hsl(var(--primary) / .16) 0%, transparent 55%),
    hsl(var(--card));
}

.gptb-cta-panel .gptb-h2 {
  margin-bottom: 12px;
}

.gptb-cta-text {
  font-size: 15px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  max-width: 520px;
}

.gptb-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .gptb-two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gptb-steps {
    grid-template-columns: 1fr 1fr;
  }

  .gptb-step:after {
    display: none;
  }

  .gptb-scenario {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gptb-faq-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gptb-cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
  }

  .gptb-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .gptb-hero {
    min-height: 620px;
    padding: 130px 0 60px;
  }

  .gptb-hero-bg img {
    object-position: 62% center;
  }

  .gptb-hero-bg:after {
    background: linear-gradient(0deg, rgba(6, 7, 9, .97) 25%, rgba(6, 7, 9, .55) 100%);
  }

  .gptb-band-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }

  .gptb-section {
    padding: 62px 0;
  }

  .gptb-steps {
    grid-template-columns: 1fr;
  }

  .gptb-editions {
    grid-template-columns: 1fr;
  }

  .gptb-specs {
    grid-template-columns: 1fr;
  }

  .gptb-spec {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .gptb-spec strong {
    text-align: left;
  }

  .gptb-cta {
    padding-bottom: 64px;
  }
}

/* ---- Architecture diagram ---- */
.gptb-arch-section .gptb-section-head {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.gptb-arch-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.gptb-arch-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card) / .6);
  color: hsl(var(--muted-foreground));
  font-size: 12.5px;
  font-weight: 600;
}

.gptb-arch-legend span:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 10px hsl(var(--primary) / .8);
}

.gptb-arch-scroll {
  margin-top: 34px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}

.gptb-arch {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  font-family: inherit;
}

.gptb-arch text {
  font-family: inherit;
}

.gptb-arch-flow {
  animation: gptbFlow 2.4s linear infinite;
}

.gptb-arch-note {
  max-width: 660px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

@keyframes gptbFlow {
  to {
    stroke-dashoffset: -44;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gptb-arch-flow {
    animation: none;
  }
}

.gptb-arch-hint {
  display: none;
}

@media (max-width: 767px) {
  .gptb-arch-hint {
    display: block;
    margin: 26px 0 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
  }
}

/* ---- Drawer language switch ---- */
.gptb-drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.gptb-drawer-lang {
  flex: 1 1 0;
  min-width: 46px;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.gptb-drawer-lang:hover {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.gptb-drawer-lang.is-active {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
