/* NEXUS PRODUCT PAGE STYLES */

.nexus-hero {
  min-height: 80vh;
  display: flex; flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 160px 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.nexus-hero .hero-actions {
  justify-content: center;
}

.nexus-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.nexus-hero p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.35s;
}

/* PROMPT BOX */
.nexus-prompt-box {
  margin-top: 64px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px 20px;
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
  text-align: left;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}

.prompt-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ykb);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-text-container {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 68px;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--ykb);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 0 4px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-family: var(--font-body);
}

.prompt-chip::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23002FA7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>') no-repeat center;
  background-size: contain;
}

.prompt-chip.writing {
  border-style: dashed;
  background: transparent;
  color: var(--text-secondary);
}

.prompt-chip.writing::before {
  opacity: 0.5;
}

.prompt-cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background-color: var(--text-primary);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* PRODUCT SHOWCASE */
.showcase-section {
  padding: 120px 48px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.showcase-section.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.showcase-grid.reverse {
  direction: rtl;
}
.showcase-grid.reverse > * {
  direction: ltr;
}

.showcase-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.showcase-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

.feature-list li strong {
  color: var(--text-primary);
  min-width: 140px;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ykb-soft);
  color: var(--ykb);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* APP MOCKUP CONTAINER */
.app-frame {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.4s ease;
}

.app-frame:hover {
  transform: translateY(-8px);
}

.app-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* FORMAT GRID */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.format-card {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.format-icon {
  font-size: 24px;
  font-weight: 700;
  color: var(--ykb);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .nexus-hero { padding: 120px 24px 80px; }
  .showcase-section { padding: 80px 24px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 48px; }
  .format-grid { grid-template-columns: 1fr; }
}

/* VIEW TOGGLE */
.view-toggle {
  display: inline-flex;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 24px;
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#extraction-img {
  transition: opacity 0.15s ease;
}
