/* ============================================================
   Home Page — Technologies, Roadmap, FAQ, CEO
   ============================================================ */

.home-tech,
.home-roadmap,
.home-faq,
.home-ceo {
  --home-brand: #D7923C;
  --home-brand-dark: #8D4B00;
  --home-brand-light: #F8B05E;
  margin-top: var(--section-spacing);
  margin-bottom: var(--section-spacing);
}

/* Single gap between stacked home sections (matches site rhythm) */
.why-us + .home-tech,
.home-tech + .home-roadmap,
.home-roadmap + .home-faq,
.home-faq + .home-ceo {
  margin-top: 0;
}

/* ── TECHNOLOGIES (tabbed) ── */
.home-tech {
  background: #fff;
}

.home-tech-tabs-wrap {
  width: 100%;
  margin-top: 40px;
}

.home-tech-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-bottom: 48px;
}

.home-tech-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1.5px solid var(--home-brand);
  background: #fff;
  color: var(--home-brand);
  font-family: var(--font-family);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.25s ease;
}

.home-tech-tab:hover:not(.is-active) {
  background: rgba(248, 176, 94, 0.12);
  transform: translateY(-1px);
}

.home-tech-tab.is-active,
.home-tech-tab[aria-selected="true"] {
  background: var(--orange-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(215, 146, 60, 0.35);
}

.home-tech-panels {
  position: relative;
  width: 100%;
  min-height: 0;
}

.home-tech-panel {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-tech-panel.is-active {
  display: block;
}

.home-tech-panel:not(.is-active) {
  display: none;
}

.home-tech-panel.is-active.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 32px 24px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-tech-item {
  --tech-item-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 100px;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--tech-item-index) * 55ms);
}

.home-tech-item.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-tech-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-tech-item:hover img {
  transform: scale(1.08) translateY(-4px);
}

.home-tech-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  max-width: 130px;
}

@media (prefers-reduced-motion: reduce) {
  .home-tech-tab,
  .home-tech-panel,
  .home-tech-item,
  .home-tech-item img {
    transition: none !important;
  }

  .home-tech-panel.is-active,
  .home-tech-item.is-shown,
  .home-tech-item {
    opacity: 1;
    transform: none;
  }
}

/* ── ROADMAP ── */
.home-roadmap {
  background: #fff;
}

.home-roadmap-intro {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--type-body-sm-size);
  color: var(--text-muted);
  line-height: var(--type-body-sm-lh);
}

.home-roadmap-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  position: relative;
}

.home-roadmap-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--home-brand-dark), var(--home-brand-light), var(--home-brand-dark));
  opacity: 0.35;
  z-index: 0;
}

.home-roadmap-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

.home-roadmap-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--orange-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(215, 146, 60, 0.35);
  flex-shrink: 0;
}

.home-roadmap-step h4 {
  font-size: var(--type-h3-size);
  font-weight: var(--type-h3-weight);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.home-roadmap-step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.home-roadmap-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--tag-bg-strong);
  color: var(--home-brand-dark);
  border: 1px solid var(--tag-border);
}

/* ── FAQ (home) ── */
.home-faq {
  --ai-brand: var(--home-brand);
  --ai-brand-dark: var(--home-brand-dark);
  --ai-brand-light: var(--home-brand-light);
  background: #fff;
}

.home-faq-header {
  margin-bottom: 36px;
}

.home-faq-header .section-title {
  margin-bottom: 10px;
}

.home-faq-sub {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--type-body-sm-size);
  color: var(--text-muted);
  line-height: var(--type-body-sm-lh);
  text-align: center;
}

.home-faq-accordion,
.home-faq .ai-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
}

.home-faq .ai-faq-panel {
  position: relative;
  background: #fff;
  border: 1px solid rgba(215, 146, 60, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(18, 18, 18, 0.04);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.home-faq .ai-faq-panel::before {
  display: none;
}

.home-faq .ai-faq-panel.is-open {
  border-color: rgba(215, 146, 60, 0.38);
  box-shadow: 0 8px 28px rgba(215, 146, 60, 0.1);
  transform: none;
}

.home-faq .ai-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  transition: background 0.25s ease;
}

.home-faq .ai-faq-trigger:hover {
  background: rgba(248, 176, 94, 0.06);
}

.home-faq .ai-faq-trigger-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.home-faq .ai-faq-index {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--home-brand-dark);
  background: rgba(248, 176, 94, 0.14);
  border: 1px solid rgba(215, 146, 60, 0.2);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.home-faq .ai-faq-panel.is-open .ai-faq-index {
  background: var(--orange-gradient);
  color: #fff;
  border-color: transparent;
  transform: none;
}

.home-faq .ai-faq-question {
  flex: 1;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  transition: color 0.3s ease;
}

.home-faq .ai-faq-panel.is-open .ai-faq-question {
  color: var(--home-brand-dark);
}

.home-faq .ai-faq-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 176, 94, 0.16);
  color: var(--home-brand-dark);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-faq .ai-faq-icon svg {
  width: 16px;
  height: 16px;
}

.home-faq .ai-faq-icon-v {
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.home-faq .ai-faq-panel.is-open .ai-faq-icon {
  background: var(--home-brand-dark);
  color: #fff;
  transform: rotate(45deg);
}

.home-faq .ai-faq-panel.is-open .ai-faq-icon-v {
  transform: scaleY(0);
  opacity: 0;
}

.home-faq .ai-faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-faq .ai-faq-body[hidden] {
  display: none;
}

.home-faq .ai-faq-panel.is-open .ai-faq-body {
  display: grid;
  grid-template-rows: 1fr;
}

.home-faq .ai-faq-body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px 0 82px;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-faq .ai-faq-panel.is-open .ai-faq-body-inner {
  padding: 0 24px 20px 82px;
  opacity: 1;
  transform: translateY(0);
}

.home-faq .ai-faq-body-inner p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 900px;
}

/* ── CEO ── */
.home-ceo {
  background: #fff;
}

.home-ceo-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  margin-top: 8px;
}

.home-ceo-visual {
  position: relative;
}

.home-ceo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 6px;
  background: linear-gradient(161deg, rgba(255, 236, 215, 0.5) 35%, #ffe3c0 98%);
  box-shadow: 0 18px 48px rgba(141, 75, 0, 0.12);
}

.home-ceo-frame img {
  width: 100%;
  height: auto;
  min-height: 360px;
  object-fit: cover;
  border-radius: 12px;
}

.home-ceo-badge {
  position: absolute;
  bottom: -18px;
  right: 24px;
  background: linear-gradient(135deg, var(--home-brand-dark), var(--home-brand));
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(215, 146, 60, 0.35);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-ceo-content .section-tag {
  display: inline-block;
  margin-bottom: 10px;
}

.home-ceo-name {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 8px 0 4px;
  line-height: 1.2;
}

.home-ceo-role {
  font-size: 17px;
  font-weight: 500;
  color: var(--home-brand);
  margin-bottom: 20px;
}

.home-ceo-quote {
  position: relative;
  margin: 0 0 20px;
  padding: 20px 20px 20px 24px;
  background: var(--cream);
  border-left: 4px solid var(--home-brand);
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.65;
}

.home-ceo-bio {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.home-ceo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.home-ceo-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.home-ceo-meta-item strong {
  color: var(--home-brand-dark);
  font-weight: 600;
}

.home-ceo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  background: var(--orange-gradient);
  color: #fff;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-ceo-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .home-roadmap-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }

  .home-roadmap-steps::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .home-tech-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 36px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .home-tech-tab {
    flex: 0 0 auto;
    min-width: max-content;
    font-size: 14px;
    padding: 10px 16px;
  }

  .home-tech-logos {
    justify-content: space-evenly;
    gap: 28px 20px;
  }

  .home-tech-item img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .home-roadmap-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-ceo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-ceo-badge {
    right: 16px;
    bottom: -14px;
    padding: 10px 16px;
    font-size: 11px;
  }

  .home-faq .ai-faq-trigger {
    padding: 16px 18px;
    gap: 12px;
  }

  .home-faq .ai-faq-trigger-main {
    gap: 12px;
  }

  .home-faq .ai-faq-index {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .home-faq .ai-faq-body-inner,
  .home-faq .ai-faq-panel.is-open .ai-faq-body-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 480px) {
  .home-tech-logos {
    gap: 24px 16px;
  }

  .home-tech-item span {
    font-size: 13px;
  }
}
