.intellect-hero {
  padding: 15px 0 58px;
}

.intellect-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 44px;
  align-items: center;
}

.intellect-hero-copy h1 {
  font-size: clamp(40px, 6.8vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}

.intellect-lead,
.intellect-section-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.intellect-lead {
  max-width: 690px;
  margin-bottom: 30px;
}

.intellect-preview-shell {
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 26px;
  background: rgba(3, 7, 18, 0.84);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
}

.intellect-preview-top,
.intellect-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 13px;
}

.intellect-preview-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.intellect-preview-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.intellect-preview-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.intellect-status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.11);
}

.intellect-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.intellect-preview-button img {
  display: block;
  width: 100%;
  height: auto;
}

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

.intellect-section-soft {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intellect-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intellect-feature-card {
  min-height: 245px;
}

.intellect-feature-card p {
  color: var(--muted);
}

.intellect-workflow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.intellect-workflow-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 22px;
  min-height: 155px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.intellect-workflow-step > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #bae6fd;
  font-size: 20px;
  font-weight: 900;
}

.intellect-workflow-step h3 {
  margin: 2px 0 7px;
}

.intellect-workflow-step p {
  margin: 0;
  color: var(--muted);
}

.intellect-workflow-line {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.8));
}

.intellect-credit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 50px;
  align-items: center;
}

.intellect-credit-layout h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin: 12px 0 22px;
}

.intellect-credit-points {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.intellect-credit-points > div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-left: 3px solid rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.055);
}

.intellect-credit-points span {
  color: var(--muted);
  font-size: 14px;
}

.intellect-credit-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 15, 31, 0.94));
  box-shadow: var(--shadow);
}

.intellect-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.intellect-panel-head h3 {
  margin: 0;
  font-size: 26px;
}

.intellect-credit-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.intellect-credit-stat {
  min-height: 105px;
  padding: 16px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.intellect-credit-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.intellect-credit-stat strong {
  font-size: 23px;
  letter-spacing: -0.04em;
}

.intellect-pricing-grid {
  align-items: stretch;
}

.intellect-pricing-grid .pricing-card {
  display: flex;
  flex-direction: column;
}

.intellect-pricing-grid .feature-list {
  flex: 1;
}

.intellect-plan-label {
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.intellect-subscription-notice {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 15px 18px;
  border-radius: 15px;
  color: #fde68a;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.28);
  text-align: center;
  font-weight: 750;
}

.intellect-final-cta {
  padding: 76px 0;
}

.intellect-final-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 34px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 197, 94, 0.14), transparent 35%),
    rgba(15, 23, 42, 0.82);
}

.intellect-final-card h2 {
  margin: 8px 0 5px;
}

.intellect-final-card p {
  color: var(--muted);
  margin: 0;
}

.intellect-preview-modal {
  width: min(96vw, 1380px);
  max-width: 1380px;
}

.intellect-preview-modal img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
}

.intellect-download-button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 1080px) {
  .intellect-hero-grid {
    grid-template-columns: 1fr;
  }

  .intellect-preview-shell {
    max-width: 900px;
  }

  .intellect-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intellect-workflow {
    grid-template-columns: 1fr;
  }

  .intellect-workflow-line {
    width: 1px;
    height: 24px;
    margin-left: 49px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.8));
  }

  .intellect-credit-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .intellect-nav-links {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  /* Keep the normal navigation links hidden on mobile */
  .intellect-nav-links > a {
    display: none;
  }

  /* Show only the installation button */
  .intellect-install-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .intellect-install-nav-button {
  padding: 9px 11px;
  font-size: 12px;
}

  .intellect-hero {
    padding-top: 46px;
  }

  .intellect-feature-grid {
    grid-template-columns: 1fr;
  }

  .intellect-final-card {
    align-items: stretch;
    flex-direction: column;
  }

  .intellect-final-card .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .intellect-nav-inner {
    align-items: center;
    gap: 10px;
  }

  .intellect-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    flex-shrink: 0;
  }

  .intellect-nav-actions .auth-user-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .intellect-nav-actions .btn {
    width: auto;
    padding: 11px 15px;
    white-space: nowrap;
  }

  /* Hide only the navigation Download button */
  .intellect-nav-actions > .btn.btn-primary {
    display: none !important;
  }

  .intellect-hero-copy h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .intellect-credit-stats {
    grid-template-columns: 1fr;
  }

  .intellect-preview-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .intellect-section {
    padding: 66px 0;
  }
}

/* FX INTELLECT AUTO-HIDING NAVIGATION: START */
body.intellect-nav-auto-hide-enabled .nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 300ms ease,
    opacity 300ms ease,
    box-shadow 300ms ease;
  will-change: transform, opacity;
}

body.intellect-nav-auto-hide-enabled .nav:not(.nav-hidden) {
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

body.intellect-nav-auto-hide-enabled .nav.nav-hidden {
  opacity: 0;
  transform: translateY(calc(-100% - 2px));
  pointer-events: none;
}

body.intellect-nav-auto-hide-enabled .nav.nav-hidden:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.intellect-nav-reveal-zone {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 28px;
  z-index: 1210;
  pointer-events: none;
  background: transparent;
}

body.intellect-nav-is-hidden .intellect-nav-reveal-zone {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  body.intellect-nav-auto-hide-enabled .nav {
    transition: none;
  }
}

@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  body.intellect-nav-auto-hide-enabled .nav,
  body.intellect-nav-auto-hide-enabled .nav.nav-hidden,
  body.intellect-nav-auto-hide-enabled .nav.nav-hidden:focus-within {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .intellect-nav-reveal-zone {
    display: none !important;
    pointer-events: none !important;
  }
}

/* FX INTELLECT AUTO-HIDING NAVIGATION: END */

/* FX INTELLECT DESKTOP TYPEWRITER: START */
@media (min-width: 821px) and (hover: hover) and (pointer: fine) {
  .intellect-hero-heading {
    opacity: 1;
    transition: opacity 600ms ease;
    will-change: opacity;
  }

  .intellect-hero-heading.intellect-heading-hidden {
    opacity: 0;
    pointer-events: none;
  }

  .intellect-hero-heading h1.intellect-heading-typing::after {
    content: "";
    display: inline-block;
    width: 0.075em;
    height: 0.9em;
    margin-left: 0.08em;
    vertical-align: -0.06em;
    background: currentColor;
    animation: intellectHeadingCursorBlink 760ms steps(1, end) infinite;
  }
}

@keyframes intellectHeadingCursorBlink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@media (min-width: 821px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .intellect-hero-heading {
    transition: none;
  }

  .intellect-hero-heading h1.intellect-heading-typing::after {
    display: none;
    animation: none;
  }
}

@media (max-width: 820px), (hover: none), (pointer: coarse) {
  .intellect-hero-heading,
  .intellect-hero-heading.intellect-heading-hidden {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .intellect-hero-heading h1::after {
    display: none !important;
  }
}
/* FX INTELLECT DESKTOP TYPEWRITER: END */

/* FX INTELLECT MOBILE NAV COLLISION FIX: START */
@media (max-width: 620px) {
  /* Free horizontal space: the logo itself is enough branding on phones. */
  .intellect-nav-inner .brand span {
    display: none;
  }

  .intellect-nav-inner .brand {
    flex-shrink: 0;
  }

  /* The full greeting is available in the account/dashboard; don't spend
     scarce nav width on "Hi, Firstname Lastname". */
  .intellect-nav-actions .auth-user-label {
    display: none !important;
  }

  /* Prevent either control group from expanding into the logo. */
  .intellect-nav-links {
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .intellect-nav-actions {
    flex-shrink: 0;
  }

  .intellect-install-nav-button {
    padding: 8px 10px;
    font-size: 11px;
  }

  .intellect-nav-actions .btn {
    padding: 9px 11px;
    font-size: 12px;
  }
}
/* FX INTELLECT MOBILE NAV COLLISION FIX: END */

