/* ============================================
   Why Page Specific Styles - Specifys.ai
   ============================================
   Styles specific to the why.html page
   Extracted from main-compiled.css.backup.old
*/

.why-page {
  width: 100%;
  overflow-x: hidden;
  padding-top: 60px;
}

.why-section {
  width: 100%;
  padding: 80px 20px 100px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Center section title and subtitle in all why-sections */
.why-section .section-title,
.why-section .section-subtitle {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 20px;
}

.why-section.cta-section {
  padding: 120px 20px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0s, transform 0.8s ease 0s;
}

.section-title.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: #FF6B35;
  margin-bottom: 40px;
  font-family: "Inter", sans-serif;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.section-subtitle.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 25px;
  border: none;
  border-radius: 0;
  background: white;
  box-shadow: none;
  opacity: 0;
  transform: translateY(30px);
  text-align: center;
}

.section-container.revealed {
  opacity: 1;
  transform: translateY(0);
}

.content-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.content-image {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.content-layout.revealed .content-image {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in from left for content-image in content-layout (not prompt-section) */
.why-section:not(.prompt-section) .content-layout .content-image {
  opacity: 0 !important;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-section:not(.prompt-section) .content-layout.revealed .content-image {
  opacity: 1 !important;
  transform: translateX(0);
}

.content-text .section-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.content-layout.revealed .content-text .section-container {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in from right for content-text in content-layout (not prompt-section) */
.why-section:not(.prompt-section) .content-layout .content-text {
  opacity: 0 !important;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-section:not(.prompt-section) .content-layout.revealed .content-text {
  opacity: 1 !important;
  transform: translateX(0);
}

/* Also hide section-container inside content-text initially - it will animate with parent */
.why-section:not(.prompt-section) .content-layout .content-text .section-container {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-section:not(.prompt-section) .content-layout.revealed .content-text .section-container {
  opacity: 1;
  transform: translateX(0);
}

.content-text-centered .section-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.content-text-centered.revealed .section-container {
  opacity: 1;
  transform: translateY(0);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  max-width: 1400px;
  margin: 30px auto 0;
  width: 100%;
}

.content-layout.reverse {
  grid-template-columns: 1fr 1fr;
}

.content-layout.reverse .content-image {
  order: 1;
}

.content-layout.reverse .content-text {
  order: 2;
}

.content-text .section-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  font-family: "Inter", sans-serif;
  margin-bottom: 10px;
  text-align: center;
}

/* Vibe Coding Logos */
.vibe-coding-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-placeholder {
  padding: 20px;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-placeholder.jumping {
  animation: logoJump 0.5s ease;
}

@keyframes logoJump {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.logo-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.story-section {
  margin-bottom: 30px;
}

.story-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
}

.section-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  font-family: "Inter", sans-serif;
  margin-bottom: 10px;
  text-align: center;
}

.cta-container {
  margin-top: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .content-layout.reverse .content-image {
    order: 1;
  }
  
  .content-layout.reverse .content-text {
    order: 2;
  }
  
  .why-section {
    padding: 40px 20px;
  }
  
  .vibe-coding-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .vibe-coding-logos {
    grid-template-columns: 1fr;
  }
  
  .section-container {
    padding: 20px;
  }
}

/* ============================================
   Prompt Section Styles (The Promise That Falls Short)
   ============================================
*/

.why-section.prompt-section {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.prompt-animation-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Center section title and subtitle in prompt-section */
.why-section.prompt-section .section-title,
.why-section.prompt-section .section-subtitle {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-section.prompt-section .section-title.revealed,
.why-section.prompt-section .section-subtitle.revealed {
  opacity: 1;
  transform: translateY(0);
}

.content-text-centered {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.content-text-centered.revealed {
  opacity: 1;
  transform: translateY(0);
}

.content-text-centered::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 5%, rgba(255, 255, 255, 0.85) 10%, rgba(255, 255, 255, 0.7) 20%, rgba(255, 255, 255, 0.5) 35%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.15) 65%, rgba(255, 255, 255, 0.05) 80%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  border-radius: 20px;
  opacity: 1;
}

/* ============================================
   Planning Visual Styles (The Right Way to Build)
   ============================================
*/

.planning-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.mermaid-diagram {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mermaid-diagram .mermaid {
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mermaid-diagram .mermaid svg {
  max-width: 100%;
  height: auto;
}

.variables-table {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.variables-table table {
  width: 100%;
  border-collapse: collapse;
}

.variables-table th,
.variables-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
}

.variables-table th {
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
}

.variables-table td {
  color: #333;
  font-family: "Inter", sans-serif;
}

.variables-table tbody tr:last-child td {
  border-bottom: none;
}

.variables-table tbody tr:hover {
  background: rgba(255, 107, 53, 0.05);
}

/* ============================================
   Questions Box Preview Styles
   ============================================
*/

.questions-box-preview {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: scale(0.85);
  transform-origin: center;
}

.questions-header-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.current-question-preview {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.mode-toggle-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
  font-family: "Inter", sans-serif;
}

.mode-label-preview {
  color: #666;
}

.mode-label-preview.active {
  color: #FF6B35;
  font-weight: 600;
}

.toggle-switch-preview {
  width: 40px;
  height: 20px;
  background: #FF6B35;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.toggle-switch-preview::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  right: 2px;
  transition: transform 0.3s ease;
}

.question-detail-preview {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
  font-family: "Inter", sans-serif;
}

.input-container-preview {
  background: rgba(255, 107, 53, 0.05);
  border-radius: 10px;
  padding: 15px;
}

.input-instruction-preview {
  font-size: 0.75rem;
  color: rgba(255, 107, 53, 0.7);
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}

.input-area-preview {
  margin-bottom: 12px;
}

.input-textarea-preview {
  width: 100%;
  min-height: 60px;
  padding: 10px;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  resize: none;
  background: white;
  box-sizing: border-box;
}

.input-controls-preview {
  display: flex;
  justify-content: center;
}

.send-btn-preview {
  padding: 8px 20px;
  background: linear-gradient(135deg, #FF6B35, #FF8551);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

.send-btn-preview:hover {
  background: linear-gradient(135deg, #FF8551, #FF6B35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ============================================
   Process Flow Styles (How It Works)
   ============================================
*/

.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 20px 10px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 100px;
  max-width: 160px;
}

.process-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FF6B35, #FF8551);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.process-step:hover .process-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  line-height: 1.2;
}

.process-arrow {
  font-size: 1.2rem;
  color: #FF6B35;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  flex-shrink: 0;
  animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

/* ============================================
   Spec Cards Showcase Orange Theme (What You Get)
   ============================================
*/

.spec-cards-showcase-orange {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.spec-card-square-orange {
  position: relative;
  aspect-ratio: 1;
  background: #333;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 12px;
}

.spec-card-square-orange:hover,
.spec-card-square-orange.active {
  background: #333;
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.spec-icon-orange {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  color: white;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-icon-orange i {
  color: white;
  font-size: 3.5rem;
  opacity: 1;
}

.spec-card-square-orange:hover .spec-icon-orange,
.spec-card-square-orange.active .spec-icon-orange {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 1;
}

.spec-content-orange {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.spec-card-square-orange:hover .spec-content-orange,
.spec-card-square-orange.active .spec-content-orange {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 5;
}

.spec-content-orange h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.spec-content-orange p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  line-height: 1.4;
  font-family: "Inter", sans-serif;
}

/* ============================================
   Scroll Down Indicator (between sections)
   ============================================
*/

.scroll-down-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #FF6B35;
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.6s ease 1.8s, color 0.2s ease;
  pointer-events: none;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
  -webkit-appearance: none;
  appearance: none;
}

.scroll-down-indicator:focus {
  outline: none;
}

.scroll-down-indicator::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.why-section.section-revealed .scroll-down-indicator {
  opacity: 0.85;
  pointer-events: auto;
  animation: scrollDownBounce 1.8s ease-in-out 1.8s infinite;
}

.why-section.section-revealed .scroll-down-indicator:hover,
.why-section.section-revealed .scroll-down-indicator:focus-visible {
  opacity: 1;
  color: #FF8551;
}

.why-section.section-revealed .scroll-down-indicator:focus-visible {
  outline: 2px solid rgba(255, 107, 53, 0.45);
  outline-offset: 4px;
  border-radius: 50%;
}

.why-section.section-revealed.arrow-dismissed .scroll-down-indicator {
  opacity: 0;
  pointer-events: none;
  animation: none;
  transition: opacity 0.35s ease;
}

@keyframes scrollDownBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (max-width: 768px) {
  .scroll-down-indicator {
    bottom: 10px;
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-section.section-revealed .scroll-down-indicator {
    animation: none;
  }
}

/* ============================================
   CTA Container Centered
   ============================================
*/

.cta-container-centered {
  margin-top: 50px;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-centered {
  margin-top: 50px;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================
   Additional Responsive Styles
   ============================================
*/

@media (max-width: 1024px) {
  .spec-cards-showcase-orange {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
  }
  
  .spec-icon-orange {
    font-size: 3rem;
  }
  
  .spec-icon-orange i {
    font-size: 3rem;
  }
  
  .spec-content-orange {
    padding: 0.8rem;
  }
  
  .spec-content-orange h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .spec-content-orange p {
    font-size: 0.7rem;
  }
  
  .planning-visual {
    flex-direction: column;
  }
  
  .mermaid-diagram {
    padding: 20px;
    min-height: 200px;
  }
  
  .questions-box-preview {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .why-section.prompt-section {
    min-height: 400px;
  }
  
  .content-text-centered {
    padding: 40px 15px;
  }
  
  .process-flow {
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
  }
  
  .process-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  
  .process-step {
    max-width: 100%;
    width: 100%;
  }
  
  .process-icon {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
  
  .process-step h4 {
    font-size: 1.1rem;
  }
  
  .process-arrow {
    font-size: 1.3rem;
    min-width: 25px;
  }
  
  .spec-cards-showcase-orange {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .spec-cards-showcase-orange {
    grid-template-columns: 1fr;
  }
  
  .process-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .process-step h4 {
    font-size: 1rem;
  }
  
  .process-arrow {
    font-size: 1.2rem;
    min-width: 20px;
  }
  
  .mermaid-diagram {
    padding: 15px;
    min-height: 150px;
  }
  
  .variables-table {
    padding: 15px;
  }
  
  .variables-table th,
  .variables-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

