#sol-fomai {
  position: relative;
  --bg: #0a1f16;
  --bg-soft: #10301f;
  --surface: #ffffff;
  --surface-2: #f2faf5;
  --text: #12271c;
  --muted: #5d7568;
  --line: #d8ecdf;
  --primary: #0e9f6e;
  --primary-deep: #0b6e4f;
  --accent: #265dff;
  --max: 1180px;
  background: linear-gradient(180deg, #f7fdf9 0%, #edf7f1 100%);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

#sol-fomai .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

#sol-fomai > section {
  padding: 72px 0;
}

/* Hero */
#sol-fomai .hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(14, 159, 110, 0.32), transparent 42%),
    linear-gradient(130deg, var(--bg) 0%, #0c2a1c 40%, #114d33 100%);
  padding: 86px 0 92px;
  overflow: hidden;
}

#sol-fomai .hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

#sol-fomai .kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  color: #b6f0d4;
  border: 1px solid rgba(182, 240, 212, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

#sol-fomai h1 {
  font-size: clamp(30px, 4.3vw, 52px);
  line-height: 1.16;
  margin: 0 0 18px;
  font-weight: 800;
}

#sol-fomai .hero p {
  font-size: 18px;
  line-height: 1.72;
  margin: 0;
  color: #d5f2e2;
}

#sol-fomai .hero-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

#sol-fomai .hero-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
  color: #f0fff7;
}

#sol-fomai .hero-list {
  margin: 0;
  padding-left: 18px;
  color: #c4ecd8;
  line-height: 1.75;
  font-size: 15px;
}

/* Section head */
#sol-fomai .section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.2;
}

#sol-fomai .section-head p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

/* FOMs Cycle 5 모듈 */
#sol-fomai .cycle {
  background: #fff;
}

#sol-fomai .cycle-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

#sol-fomai .cycle-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px;
}

#sol-fomai .cycle-card.highlight {
  background: #0b6e4f;
  border-color: #0b6e4f;
  color: #fff;
}

#sol-fomai .cycle-no {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

#sol-fomai .cycle-card.highlight .cycle-no {
  color: #9df0cd;
}

#sol-fomai .cycle-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

#sol-fomai .cycle-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 14px;
}

#sol-fomai .cycle-card.highlight p {
  color: #d9f5e7;
}

/* 576 Qubit */
#sol-fomai .qubit {
  background: var(--bg);
  color: #fff;
}

#sol-fomai .qubit-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

#sol-fomai .qubit-number {
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #34d399, #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#sol-fomai .qubit-number-label {
  margin-top: 10px;
  font-size: 18px;
  color: #a7d9c0;
}

#sol-fomai .qubit-desc h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
}

#sol-fomai .qubit-desc p {
  margin: 0 0 18px;
  color: #cbe9da;
  line-height: 1.75;
  font-size: 16px;
}

#sol-fomai .gfactor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#sol-fomai .gfactor {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 14px;
}

#sol-fomai .gfactor strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #7ee8b8;
}

#sol-fomai .gfactor span {
  font-size: 13px;
  color: #bfe3d1;
  line-height: 1.55;
}

/* 실제 화면 슬라이드 */
#sol-fomai .showcase {
  background: #fff;
}

#sol-fomai .scene-slider {
  margin-top: 30px;
}

#sol-fomai .scene-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(18, 39, 28, 0.12);
  background: #f4f8f5;
}

#sol-fomai .scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

#sol-fomai .scene.active {
  opacity: 1;
  pointer-events: auto;
}

#sol-fomai .scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

#sol-fomai .scene figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 26px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 26, 17, 0.85) 55%);
  color: #fff;
}

#sol-fomai .scene figcaption strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

#sol-fomai .scene figcaption span {
  font-size: 14px;
  color: #cfe9db;
  line-height: 1.55;
}

#sol-fomai .scene-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(8, 26, 17, 0.45);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

#sol-fomai .scene-nav:hover {
  background: rgba(11, 110, 79, 0.9);
}

#sol-fomai .scene-nav.prev {
  left: 14px;
}

#sol-fomai .scene-nav.next {
  right: 14px;
}

#sol-fomai .scene-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

#sol-fomai .scene-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #c8dfd1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

#sol-fomai .scene-dots button.active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Feature spotlight */
#sol-fomai .feature-spotlight {
  background: #fff;
  padding: 96px 0;
}

#sol-fomai .feature-spotlight--alt {
  background: var(--surface-2);
}

#sol-fomai .feature-spotlight .wrap {
  max-width: 1440px;
}

#sol-fomai .feature-row {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: center;
}

#sol-fomai .feature-row--reverse {
  grid-template-columns: 1.25fr 0.75fr;
}

#sol-fomai .feature-row--reverse .feature-visual {
  order: -1;
}

#sol-fomai .feature-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#sol-fomai .feature-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
}

#sol-fomai .feature-text > p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

#sol-fomai .feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#sol-fomai .feature-list li {
  font-size: 15px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

#sol-fomai .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

#sol-fomai .feature-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  align-self: flex-start;
}

#sol-fomai .feature-tag--green {
  color: var(--primary-deep);
  background: #e6f9ef;
}

#sol-fomai .feature-tag--blue {
  color: #265dff;
  background: #edf2ff;
}

#sol-fomai .feature-tag--orange {
  color: #ea580c;
  background: #fff7ed;
}

#sol-fomai .gif-slot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(18, 39, 28, 0.1);
  background: linear-gradient(135deg, #eefaf3 0%, #e2f3e9 100%);
  aspect-ratio: 16 / 10;
  border: 2px dashed #bfe0cc;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sol-fomai .gif-slot::after {
  content: attr(data-label);
  font-size: 13px;
  color: #8bbf9f;
  letter-spacing: 0.06em;
  font-weight: 500;
  pointer-events: none;
}

#sol-fomai .gif-slot:has(img),
#sol-fomai .gif-slot:has(video) {
  border: none;
  background: transparent;
  box-shadow: 0 24px 64px rgba(18, 39, 28, 0.12);
}

#sol-fomai .gif-slot:has(img)::after,
#sol-fomai .gif-slot:has(video)::after {
  display: none;
}

#sol-fomai .gif-slot img,
#sol-fomai .gif-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* AUTO REPORT — 넘길 수 있는 문서 스택 */
#sol-fomai .report-deck {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, #eefaf3 0%, #e2f3e9 100%);
  box-shadow: 0 24px 64px rgba(18, 39, 28, 0.12);
  padding: 28px 28px 18px;
  overflow: hidden;
}

#sol-fomai .report-deck-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  perspective: 1200px;
}

#sol-fomai .report-page {
  position: absolute;
  inset: 0 18% 0 12%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  transform-origin: left center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 10px 28px rgba(18, 39, 28, 0.12);
  overflow: hidden;
}

#sol-fomai .report-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: 12px;
  pointer-events: none;
  background: #fff;
}

#sol-fomai .report-page.is-front {
  z-index: 3;
  transform: translateX(0) rotate(0deg) scale(1);
  opacity: 1;
  box-shadow: 0 18px 40px rgba(18, 39, 28, 0.18);
  transition-delay: 0s;
}

#sol-fomai .report-page.is-back-1 {
  z-index: 2;
  transform: translateX(28px) rotate(1.2deg) scale(0.97);
  opacity: 1;
}

#sol-fomai .report-page.is-back-2 {
  z-index: 1;
  transform: translateX(52px) rotate(2.4deg) scale(0.94);
  opacity: 0.95;
}

#sol-fomai .report-page.is-exit {
  z-index: 4;
  transform: translateX(-18%) rotate(-6deg) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

#sol-fomai .report-page:focus-visible {
  outline: 2px solid #2f9e66;
  outline-offset: 3px;
}

#sol-fomai .report-deck-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

#sol-fomai .report-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #c5e0d0;
  background: #fff;
  color: #2f6b4a;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#sol-fomai .report-nav:hover {
  background: #eefaf3;
  border-color: #2f9e66;
}

#sol-fomai .report-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

#sol-fomai .report-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #b7d7c4;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

#sol-fomai .report-dots button.active {
  width: 22px;
  background: #2f9e66;
}

#sol-fomai .report-hint {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #6f977f;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  #sol-fomai .report-deck {
    padding: 18px 16px 14px;
  }

  #sol-fomai .report-page.is-back-1 {
    transform: translateX(18px) rotate(1deg) scale(0.97);
  }

  #sol-fomai .report-page.is-back-2 {
    transform: translateX(34px) rotate(1.8deg) scale(0.94);
  }
}

/* 도입 사례 */
#sol-fomai .case {
  background: #fff;
}

#sol-fomai .case-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#sol-fomai .panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

#sol-fomai .panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

#sol-fomai .panel p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.72;
}

#sol-fomai .panel ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

/* CTA */
#sol-fomai .cta {
  background: linear-gradient(135deg, #0b6e4f 0%, #0e9f6e 45%, #265dff 100%);
  color: #fff;
  text-align: center;
}

#sol-fomai .cta h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.2;
}

#sol-fomai .cta p {
  margin: 0 0 28px;
  color: #e0f7eb;
  font-size: 18px;
  line-height: 1.72;
}

#sol-fomai .fomai-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

#sol-fomai .fomai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  transition: background 0.2s, color 0.2s;
}

#sol-fomai .fomai-btn.primary {
  background: #fff;
  color: #0b6e4f;
  border-color: #fff;
}

#sol-fomai .fomai-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

#sol-fomai .fomai-btn.primary:hover {
  background: #eefaf3;
}

@media (max-width: 1024px) {
  #sol-fomai .hero-grid,
  #sol-fomai .cycle-grid,
  #sol-fomai .qubit-grid,
  #sol-fomai .feature-row,
  #sol-fomai .case-grid,
  #sol-fomai .gfactor-grid {
    grid-template-columns: 1fr;
  }

  #sol-fomai .feature-row--reverse .feature-visual {
    order: unset;
  }

  #sol-fomai .feature-spotlight {
    padding: 60px 0;
  }

  #sol-fomai .fomai-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #sol-fomai .scene figcaption {
    padding: 26px 16px 12px;
  }

  #sol-fomai .scene figcaption strong {
    font-size: 15px;
  }

  #sol-fomai .scene figcaption span {
    font-size: 12px;
  }

  #sol-fomai .scene-nav {
    width: 34px;
    height: 34px;
  }
}
