/* ==========================================================================
   Variables & Base Setup
   ========================================================================== */

:root {
  --ink: #0A0A0A;
  --ink-soft: #262626;
  --ink-secondary: #5D5D5F;
  --ink-muted: #444444;
  --paper: #FFFFFF;
  --paper-2: #fafafa;
  --gray-bg: #F7F7F3;
  --accent: #7C3AED;
  --btn-primary: #68217A;
  --btn-hover: #4D185A;
  --btn-outline: #8B5CF6;
  --badge-icon: #7c3aed;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-border:
    0px 0px 0px 1px rgba(0, 0, 0, 0.06),
    0px 1px 2px -1px rgba(0, 0, 0, 0.06),
    0px 2px 4px 0px rgba(0, 0, 0, 0.04);
  --shadow-border-hover:
    0px 0px 0px 1px rgba(0, 0, 0, 0.08),
    0px 4px 10px -2px rgba(0, 0, 0, 0.08),
    0px 8px 20px -4px rgba(0, 0, 0, 0.06);
  --img-outline: rgba(0, 0, 0, 0.1);
  --tab-gray-bg: #F2F2F0;
  --tab-border-color: rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.02;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Staggered enter animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  animation: revealUp 700ms var(--ease) forwards;
  animation-delay: calc((var(--d, 0) - 1) * 110ms);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.section-title,
.hero-assistants-title {
  font-family: 'Domine', Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Background Color Helpers */
.bg-gray {
  background-color: var(--gray-bg) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition-property: background-color, box-shadow, scale, color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.btn-primary {
  background: var(--btn-primary);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.25), 0 6px 16px -4px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: var(--btn-hover);
  box-shadow: 0 1px 2px rgba(91, 33, 182, 0.3), 0 8px 20px -4px rgba(91, 33, 182, 0.4);
}

.btn-outline {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--btn-outline);
}

.btn-outline:hover {
  background: #EDE9FE;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  border: none;
  color: #404040;
  padding: 8px 16px;
}

.btn-ghost:hover {
  background-color: #F3F3F3;
  color: #404040;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.nav-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-hidden {
  display: none !important;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   Hero Block
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  padding: 128px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 600px;
  height: 350px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
      rgba(180, 0, 158, 0.15) 0%,
      rgba(104, 33, 122, 0.08) 40%,
      rgba(255, 255, 255, 0) 50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  opacity: 1;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 70px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 780px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.overline {
  font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* ==========================================================================
   Assistants Stage Section
   ========================================================================== */

.stack-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.stack-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stack-header .section-sub {
  max-width: 640px;
}

.stage {
  position: relative;
  width: 100%;
  background: transparent;
  border-radius: 24px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.tab-panel {
  opacity: 0;
  width: 100%;
}

.tab-panel.is-active {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.tab-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  object-position: top center;
  border-radius: 12px;
  outline: 1px solid var(--img-outline);
  outline-offset: -1px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Build AI-Native Enterprise Section
   ========================================================================== */

.assistants-section {
  width: 100%;
  padding: 64px 24px;
}

.hero-assistants {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero-assistants-title {
  margin-bottom: 48px;
}

.hero-assistants-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: -32px;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.text-highlight {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  display: inline;
  color: #1e40af;
  padding: 2px 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.h2-subpoint {
  font-family: sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: inherit;
  letter-spacing: inherit;
  display: inline;
  color: #1e40af;
  padding: 2px 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.assistant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.assistant-card {
  background: var(--paper-2);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  box-shadow: var(--shadow-border);
  transition-property: box-shadow, translate;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.assistant-card:hover {
  box-shadow: var(--shadow-border);
  translate: none;
}

/* Card Circle Icon Badges */
.card-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  color: var(--badge-icon);
  /* Sets SVG stroke color via currentColor */
}

.card-icon-badge svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.25px;
  /* Precision 1.25px stroke thickness */
}

/* Background Variations */
.icon-badge-1 {
  background-color: #EDE9FE;
}

.icon-badge-2 {
  background-color: #EDE9FE;
}

.icon-badge-3 {
  background-color: #EDE9FE;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ==========================================================================
   Generic Feature Block Section
   ========================================================================== */

.feature-block-section {
  width: 100%;
  background: var(--paper);
  padding: 64px 24px;
}

.feature-block-container {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-header .section-title {
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.25;
}

.section-header .section-sub {
  margin-top: 0;
  margin-bottom: 0;
}

/* Vertical Feature List */
.feature-list-vertical {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-list-vertical .feature-item {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-list-vertical .feature-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-list-vertical .feature-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feature-list-vertical .feature-subtext {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   Hover Carousel Component (hoverbtnnav)
   ========================================================================== */

.hoverbtnnav-carousel-wrapper {
  margin-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hoverbtnnav-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 8px;
}

.hoverbtnnav-tab-btn {
  background-color: var(--tab-gray-bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hoverbtnnav-tab-btn:hover,
.hoverbtnnav-tab-btn.active {
  background-color: var(--paper);
  border-color: var(--tab-border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hoverbtnnav-tab-title {
  display: block;
}

.hoverbtnnav-stage {
  position: relative;
  width: 100%;
  background: url("assets/empowers/desktop_background.webp") center / cover no-repeat;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-border);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hoverbtnnav-panel {
  display: none;
  width: 100%;
  height: 100%;
  animation: hoverbtnnavFadeIn 300ms var(--ease) forwards;
}

.hoverbtnnav-panel.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hoverbtnnav-panel-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hoverbtnnav-screen-img {
  max-width: 100%;
  max-height: 540px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: none !important;
  filter: none !important;
}

@keyframes hoverbtnnavFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Generic Split Feature Block Layout
   ========================================================================== */

.feature-block-container .overline {
  margin-bottom: 12px;
}

.split-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
  width: 100%;
}

.feature-block-content-col {
  display: flex;
  flex-direction: column;
}

.feature-block-content-col .section-title {
  margin-bottom: 20px;
}

.feature-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-block-media-col {
  position: relative;
  width: 100%;
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-block-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* ==========================================================================
   Product Explorer Section
   ========================================================================== */

.product-section {
  width: 100%;
  background: var(--paper);
  padding: 64px 24px;
}

.product-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.product-header {
  max-width: 720px;
  margin: 0 0 64px 0;
  text-align: left;
  padding-left: 24px;
}

.section-title-accent {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-soft);
  letter-spacing: 0.015em;
  margin-top: 4px;
}

.product-header .section-sub {
  margin: 20px 0 0;
}

.product-explorer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 128px;
  align-items: start;
}

.product-nav-col {
  position: relative;
}

.stack-nav-sticky {
  position: sticky;
  top: 120px;
}

.stack-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 40px;
  background-color: var(--accent);
  transition: transform 300ms var(--ease), height 300ms var(--ease);
  z-index: 2;
}

.stack-nav-list {
  list-style: none;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.stack-nav-item {
  padding: 16px 24px;
  min-height: 40px;
  cursor: pointer;
  transition-property: color;
  transition-duration: 200ms;
  transition-timing-function: ease;
  color: var(--ink-soft);
}

.stack-nav-item.is-active {
  color: var(--ink);
  font-weight: 600;
}

.stack-nav-title {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}

.product-panel {
  display: none;
}

.product-panel.is-active {
  display: block;
}

.product-panel-mobile-title {
  display: none;
  margin-bottom: 24px;
}

/* Vertical List Layout for Tab Details */
.product-list-vertical {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.product-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: #EDE9FE;
  color: var(--accent);
  font-size: 24px;
  flex-shrink: 0;
}

/* Target the SVG inside to set stroke width */
.product-list-icon svg {
  stroke-width: 1.25px;
}

.product-list-content {
  display: flex;
  flex-direction: column;
}

.product-list-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
  .split-feature-grid {
    gap: 60px;
  }
}

@media (max-width: 960px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .assistant-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hoverbtnnav-tabs-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Hug the image height on mobile instead of forcing min-height */
  .hoverbtnnav-stage {
    min-height: auto;
    height: auto;
    padding: 16px;
  }

  .hoverbtnnav-panel {
    height: auto;
  }

  .hoverbtnnav-screen-img {
    height: auto;
    max-height: none;
  }

  .split-feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-block-media-col {
    position: static;
    height: auto;
  }

  .feature-block-img {
    position: static;
    height: auto;
    max-height: 320px;
  }

  .product-explorer {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-header {
    padding-left: 0;
  }

  .product-nav-col {
    display: none;
  }

  .product-panel {
    display: block !important;
    margin-bottom: 48px;
  }

  .product-panel-mobile-title {
    display: block;
    font-family: 'Domine', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--ink);
  }
}

@media (max-width: 768px) {
  .hoverbtnnav-stage {
    padding: 12px;
  }

  .hoverbtnnav-tab-btn {
    padding: 14px 18px;
    font-size: 15px;
  }
}

/* ==========================================================================
   Early Access Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-border-hover);
  padding: 40px 32px 32px;
  animation: modalPopIn 220ms var(--ease) forwards;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--gray-bg);
  color: var(--ink-soft);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms var(--ease);
}

.modal-close:hover {
  background: #ECECEC;
}

.modal-title {
  font-family: 'Domine', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.modal-submit {
  margin-top: 8px;
  width: 100%;
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-error {
  font-size: 13px;
  color: #B91C1C;
  margin-top: -8px;
}

.modal-success {
  text-align: center;
  padding: 12px 0 4px;
}

.modal-success-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal-success .btn {
  margin-top: 12px;
}