/* Features Page Styles */

/* ===================================
   PAGE BACKGROUND (Parallax)
   =================================== */

.page-content {
  position: relative;
  background-color: var(--brand-blue);
  background-image: url("/assets/for-creative-pros/wallpaper-background-white.svg");
  background-size: var(--cutting-mat-bg-size);
  background-position: center top;
  background-repeat: repeat;
}

/* ===================================
   HERO (Secondary Hero Style)
   =================================== */

.secondary-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 120px var(--layout-inset-fluid, 10vw) var(--spacing-2xl);
  max-width: none;
  width: 100%;
  min-height: 850px;
  margin: 0;
  box-sizing: border-box;
  z-index: 0;
}

.secondary-hero > * {
  position: relative;
  z-index: 1;
}

.secondary-hero .pill-tag {
  display: inline-block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 16px;
}

.secondary-hero h1 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
}

.secondary-hero .hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(223, 223, 223, 0.8);
}

.secondary-hero .hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Hero with Image Layout */
.secondary-hero--with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  text-align: left;
}

.secondary-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.secondary-hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.secondary-hero__image img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

/* Hero with Background Image */
.secondary-hero--bg-image {
  position: relative;
  margin-top: -80px;
  padding-top: 200px;
  background-image: url("/assets/new/disciplines/features-hero.webp");
  background-position: calc(100% + 120px) top;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.secondary-hero--bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--brand-blue) 0%, var(--brand-blue) 20%, transparent 60%);
  pointer-events: none;
}

/* Wave divider after hero */
.features-wave-divider {
  position: relative;
  margin-top: -100px;
  z-index: 5;
  pointer-events: none;
  background: transparent;
}

.features-wave-divider svg {
  display: block;
  width: 100%;
  height: 100px;
  overflow: visible;
}

/* ===================================
   WHAT IS MONODESK
   =================================== */

.what-is-section {
  padding: var(--spacing-2xl) var(--spacing-xl);
  max-width: 1100px;
  margin: 0 auto;
  background: var(--background);
  box-shadow: 0 0 0 100vmax var(--background);
  clip-path: inset(0 -100vmax);
}

.what-is-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.what-is-text h2 {
  margin-bottom: 20px;
  color: var(--type);
}

.what-is-text p {
  margin-bottom: 16px;
  color: var(--type-60);
}

.what-is-text p:first-of-type {
  font-size: 20px;
  color: var(--type);
}

.what-is-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: transparent;
}

.what-is-image img {
  width: 70%;
  height: auto;
  display: block;
}

.what-is-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.what-is-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================================
   HOW FEATURES WORK TOGETHER
   =================================== */

.workflow-section {
  padding: var(--spacing-2xl) var(--spacing-xl);
  max-width: 1320px;
  margin: 0 auto;
}

.workflow-section > h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  counter-reset: step;
}

.workflow-step {
  text-align: center;
  padding: var(--spacing-md);
  position: relative;
}

.workflow-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-highlighter);
  color: var(--brand-fun-green);
  font-weight: 700;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.workflow-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 14px;
}

/* Connector line between steps */
.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--spacing-md) + 24px);
  left: calc(50% + 24px);
  right: calc(-50% - var(--spacing-md) + 24px);
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.workflow-step p {
  color: var(--type-light-60);
}

/* ===================================
   INDIVIDUAL FEATURES
   =================================== */

.features-grid-section {
  padding: var(--spacing-2xl) var(--spacing-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid-section > h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--brand-white);
}

/* Bento grid */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-row {
  display: flex;
  gap: 16px;
  min-height: 420px;
}

.bento-card {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.06);
}

/* Asymmetric default sizes */
.bento-row:nth-child(1) .bento-card:first-child {
  flex: 1.3;
}
.bento-row:nth-child(1) .bento-card:last-child {
  flex: 1;
}
.bento-row:nth-child(2) .bento-card:first-child {
  flex: 1;
}
.bento-row:nth-child(2) .bento-card:last-child {
  flex: 1.3;
}

/* Reactive hover: expand hovered, shrink sibling */
.bento-row:hover .bento-card {
  flex: 0.85;
}
.bento-row:hover .bento-card:hover {
  flex: 1.6;
}

.bento-card-media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bento-card-media video,
.bento-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.bento-card-text {
  padding: 24px;
}

.bento-card-text h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--brand-white);
}

.bento-card-text p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--type-light-60);
}

.bento-card .feature-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bento-card .feature-tags::-webkit-scrollbar {
  display: none;
}

.bento-card .feature-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--type-light-60);
  white-space: nowrap;
}

/* Teams: full-width horizontal card */
.bento-card--wide {
  flex-direction: row;
  min-height: 280px;
}

.bento-card--wide .bento-card-media {
  flex: none;
  width: 50%;
  padding: 16px;
  overflow: visible;
}

.bento-card--wide .bento-card-media img,
.bento-card--wide .bento-card-media video {
  object-fit: contain;
}

.bento-card--wide .bento-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

/* ===================================
   FAQ
   =================================== */

.faq-parallax-wrapper {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-2xl) 0;
}

.faq-parallax-img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.faq-section {
  padding: var(--spacing-2xl) var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
  background: var(--background);
  position: relative;
  border-radius: var(--radius-xl);
  z-index: 1;
}

.faq-section > h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--type);
}

.faq-item {
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--type);
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--type-60);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--type-60);
}

/* ===================================
   CTA BANNER
   =================================== */

.cta-banner {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-xl);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  margin-bottom: 24px;
  font-size: 18px;
  color: rgba(223, 223, 223, 0.8);
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .secondary-hero {
    padding: 100px var(--spacing-sm) var(--spacing-lg);
    min-height: 100dvh;
  }

  .secondary-hero h1 {
    font-size: 36px;
    max-width: 65%;
  }

  .secondary-hero .hero-subtitle {
    font-size: 16px;
    max-width: 65%;
  }

  .secondary-hero .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .secondary-hero--with-image {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .secondary-hero__text {
    align-items: center;
  }

  .secondary-hero__image {
    order: -1;
    margin-bottom: var(--spacing-md);
  }

  .secondary-hero__image img {
    max-height: 300px;
  }

  .secondary-hero--bg-image {
    min-height: 600px;
    background-position: right calc(100% - 40px);
    background-size: auto 30%;
  }

  .features-wave-divider {
    margin-top: -60px;
  }

  .features-wave-divider svg {
    height: 60px;
  }

  .what-is-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .workflow-steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }

  .workflow-step:not(:last-child)::after {
    display: none;
  }

  .bento-row {
    flex-direction: column;
    min-height: auto;
  }

  .bento-card {
    min-height: 360px;
  }

  .bento-row:hover .bento-card,
  .bento-row:hover .bento-card:hover {
    flex: 1;
  }

  .bento-card--wide {
    flex-direction: column;
    min-height: auto;
  }

  .bento-card--wide .bento-card-media {
    width: 100%;
    min-height: 200px;
  }

  .what-is-section,
  .workflow-section,
  .features-grid-section,
  .cta-banner {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }

  .faq-section {
    margin-left: 16px;
    margin-right: 16px;
    max-width: calc(100% - 32px);
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}
