/* ============================================
   AI ANIMATION GENERATOR — GSAPify
   Premium creative tool UI
   ============================================ */

/* ---- Hero ---- */
.gen-hero {
  position: relative;
  background: linear-gradient(145deg, var(--gs-darker) 0%, #0d0d24 50%, var(--gs-darker) 100%);
  padding: 10rem 0 5rem;
  overflow: hidden;
}
.gen-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gs-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.gen-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}
.gen-hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--gs-primary) 0%, #00FFAA 50%, var(--gs-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gen-hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ---- App Shell ---- */
.gen-app {
  position: relative;
  background: #08080F;
  padding: 0;
}
.gen-app-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  grid-template-rows: 1fr auto auto;
  grid-template-areas:
    "left   right"
    "toggle toggle"
    "drawer drawer";
  min-height: 80vh;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--gs-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  margin: -3rem auto 0;
  position: relative;
  z-index: 5;
  max-width: 1400px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---- Left Panel: Prompt + Controls ---- */
.gen-panel-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  overflow-y: auto;
  max-height: 80vh;
}
.gen-panel-left::-webkit-scrollbar { width: 4px; }
.gen-panel-left::-webkit-scrollbar-track { background: transparent; }
.gen-panel-left::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Prompt section */
.gen-prompt-section {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gen-prompt-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gen-prompt-label i {
  color: var(--gs-primary);
  font-size: 0.8rem;
}
.gen-textarea {
  width: 100%;
  min-height: 120px;
  max-height: 250px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--gs-radius);
  color: #fff;
  font-family: var(--gs-font);
  font-size: 1rem;
  line-height: 1.6;
  padding: 14px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.gen-textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 102, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.08), inset 0 0 20px rgba(0, 255, 102, 0.03);
}
.gen-textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
  transition: opacity 0.3s;
}
.gen-textarea:focus::placeholder {
  opacity: 0.4;
}

/* Chips */
.gen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.gen-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: rgba(255, 255, 255, 1);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.gen-chip:hover {
  background: rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.25);
  color: var(--gs-primary);
}
.gen-chip i {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* Generate button */
.gen-btn-generate {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--gs-radius);
  background: var(--gs-primary);
  color: #0A0A14;
  font-family: var(--gs-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}
.gen-btn-generate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transition: left 0.6s ease;
}
.gen-btn-generate:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.3);
}
.gen-btn-generate:hover::before {
  left: 100%;
}
.gen-btn-generate:active {
  transform: scale(0.97);
}
.gen-btn-generate.is-loading {
  pointer-events: none;
  background: rgba(0, 255, 102, 0.6);
}
.gen-btn-generate .btn-text {}
.gen-btn-generate .btn-loader {
  display: none;
}
.gen-btn-generate.is-loading .btn-text { display: none; }
.gen-btn-generate.is-loading .btn-loader { display: flex; align-items: center; gap: 8px; }

/* Loading dots */
.gen-loading-dots {
  display: flex;
  gap: 4px;
}
.gen-loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0A0A14;
}

/* ---- Controls Section ---- */
.gen-controls {
  padding: 20px 24px;
  flex: 1;
}
.gen-controls-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gen-controls-title i {
  color: var(--gs-primary);
  font-size: 0.8rem;
}
.gen-control-group {
  margin-bottom: 16px;
}
.gen-control-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gen-control-value {
  font-family: var(--gs-mono);
  font-size: 0.75rem;
  color: var(--gs-primary);
  font-weight: 500;
}

/* Range sliders */
.gen-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}
.gen-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gs-primary);
  border: 2px solid #0A0A14;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gen-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.5);
}
.gen-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gs-primary);
  border: 2px solid #0A0A14;
  cursor: pointer;
}

/* Ease selector */
.gen-ease-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gen-ease-btn {
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-family: var(--gs-mono);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.gen-ease-btn:hover {
  background: rgba(0, 255, 102, 0.06);
  border-color: rgba(0, 255, 102, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
.gen-ease-btn.active {
  background: rgba(0, 255, 102, 0.1);
  border-color: rgba(0, 255, 102, 0.35);
  color: var(--gs-primary);
}

/* Toggle switches */
.gen-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.gen-toggle-track {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.gen-toggle-track::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  top: 3px;
  left: 3px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.gen-toggle.active .gen-toggle-track {
  background: rgba(0, 255, 102, 0.25);
}
.gen-toggle.active .gen-toggle-track::after {
  transform: translateX(16px);
  background: var(--gs-primary);
}
.gen-toggle-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* ---- Right Panel: Preview ---- */
.gen-panel-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  background: #0A0A14;
  position: relative;
  overflow: hidden;
}

/* Browser chrome frame */
.gen-preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gen-chrome-dots {
  display: flex;
  gap: 6px;
}
.gen-chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.gen-chrome-dots span:nth-child(1) { background: #FF5F57; }
.gen-chrome-dots span:nth-child(2) { background: #FFBD2E; }
.gen-chrome-dots span:nth-child(3) { background: #28C840; }
.gen-chrome-url {
  font-family: var(--gs-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 4px 12px;
}
.gen-chrome-actions {
  display: flex;
  gap: 8px;
}
.gen-chrome-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.gen-chrome-btn:hover {
  background: rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.2);
  color: var(--gs-primary);
}

/* Preview iframe */
.gen-preview-frame {
  flex: 1;
  position: relative;
  min-height: 400px;
}
.gen-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

/* Empty state */
.gen-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 2;
  pointer-events: none;
}
.gen-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 255, 102, 0.05);
  border: 1px solid rgba(0, 255, 102, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(0, 255, 102, 0.3);
  margin-bottom: 20px;
}
.gen-empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
}
.gen-empty-state p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.18);
}

/* Replay button (floating in preview) */
.gen-replay-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.25);
  color: var(--gs-primary);
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}
.gen-replay-btn:hover {
  background: rgba(0, 255, 102, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.25);
}
.gen-replay-btn.visible {
  display: flex;
}

/* ---- Code Output Drawer ---- */
.gen-code-drawer {
  grid-area: drawer;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0C0C18;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gen-code-drawer.open {
  max-height: 500px;
}

/* Code drawer toggle */
.gen-code-toggle {
  grid-area: toggle;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.gen-code-toggle:hover {
  background: rgba(0, 255, 102, 0.04);
  color: rgba(255, 255, 255, 0.6);
}
.gen-code-toggle i {
  transition: transform 0.3s ease;
}
.gen-code-toggle.open i {
  transform: rotate(180deg);
}

/* Code tabs */
.gen-code-tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gen-code-tab {
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--gs-font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.gen-code-tab:hover {
  color: rgba(255, 255, 255, 0.6);
}
.gen-code-tab.active {
  color: var(--gs-primary);
  border-bottom-color: var(--gs-primary);
}

/* Code content */
.gen-code-content {
  padding: 0;
  max-height: 380px;
  overflow-y: auto;
  position: relative;
}
.gen-code-content::-webkit-scrollbar { width: 6px; }
.gen-code-content::-webkit-scrollbar-track { background: transparent; }
.gen-code-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.gen-code-block {
  display: none;
  margin: 0;
  padding: 20px 24px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--gs-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}
.gen-code-block.active {
  display: block;
}

/* Code action buttons */
.gen-code-actions {
  display: flex;
  gap: 8px;
  padding: 0 24px 0 0;
  margin-left: auto;
  align-items: center;
}
.gen-code-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.gen-code-action:hover {
  background: rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.2);
  color: var(--gs-primary);
}
.gen-code-action.copied {
  background: rgba(0, 255, 102, 0.15);
  border-color: rgba(0, 255, 102, 0.35);
  color: var(--gs-primary);
}
.gen-code-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Syntax Highlighting ---- */
.gen-code-block .hl-keyword { color: #c678dd; }
.gen-code-block .hl-string { color: #98c379; }
.gen-code-block .hl-number { color: #d19a66; }
.gen-code-block .hl-comment { color: rgba(255,255,255,0.25); font-style: italic; }
.gen-code-block .hl-function { color: #61afef; }
.gen-code-block .hl-property { color: #e06c75; }
.gen-code-block .hl-method { color: #61afef; }
.gen-code-block .hl-tag { color: #e06c75; }
.gen-code-block .hl-attr { color: #d19a66; }
.gen-code-block .hl-value { color: #98c379; }
.gen-code-block .hl-punctuation { color: rgba(255,255,255,0.4); }

/* ---- History Sidebar (collapsed by default) ---- */
.gen-history {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.gen-history-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
}
.gen-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gen-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gen-history-item:hover {
  background: rgba(0, 255, 102, 0.04);
  border-color: rgba(0, 255, 102, 0.15);
  color: rgba(255, 255, 255, 0.7);
}
.gen-history-item i {
  color: var(--gs-primary);
  opacity: 0.5;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ---- SEO Sections Below the Tool ---- */

/* How It Works */
.gen-how-it-works {
  background: var(--gs-darker);
  padding: 6rem 0;
}
.gen-step-card {
  text-align: center;
  padding: 32px 24px;
}
.gen-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gs-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gs-primary);
  margin: 0 auto 20px;
}
.gen-step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.gen-step-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* Showcase Grid */
/* Content Sections */
.gen-content-section {
  background: var(--gs-darker);
}
.gen-content-section.gen-content-alt {
  background: var(--gs-dark);
}
.gen-content-section code {
  font-family: var(--gs-mono);
  font-size: 0.85em;
}
.gen-callout {
  background: rgba(0, 255, 102, 0.04);
  border: 1px solid rgba(0, 255, 102, 0.12);
}
.gen-callout ul li {
  line-height: 1.7;
}

/* Feature Cards (Why Use) */
.gen-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--gs-radius-lg);
  padding: 28px 24px;
  height: 100%;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.gen-feature-card:hover {
  border-color: rgba(0, 255, 102, 0.15);
  transform: translateY(-3px);
}
.gen-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 255, 102, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gs-primary);
  margin-bottom: 16px;
}
.gen-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.gen-feature-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin: 0;
}
.gen-feature-card code {
  font-family: var(--gs-mono);
  color: var(--gs-primary);
  font-size: 0.82em;
}

/* Capability Cards (What You Can Create) */
.gen-capability-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--gs-radius-lg);
  padding: 24px 20px;
  height: 100%;
  transition: border-color 0.3s ease;
}
.gen-capability-card:hover {
  border-color: rgba(0, 255, 102, 0.15);
}
.gen-capability-card i {
  font-size: 1.4rem;
  color: var(--gs-primary);
  margin-bottom: 12px;
  display: block;
}
.gen-capability-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.gen-capability-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0;
}

/* Platform Cards (Framework Support) */
.gen-platform-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--gs-radius-lg);
  padding: 24px 20px;
  height: 100%;
  transition: border-color 0.3s ease;
}
.gen-platform-card:hover {
  border-color: rgba(0, 255, 102, 0.15);
}
.gen-platform-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.gen-platform-card p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0;
}
.gen-platform-card code {
  font-family: var(--gs-mono);
  color: var(--gs-primary);
  font-size: 0.82em;
}

/* Inspiration Cards (Find Inspiration) */
.gen-inspiration-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--gs-radius-lg);
  padding: 28px 22px;
  height: 100%;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.gen-inspiration-card:hover {
  border-color: rgba(0, 255, 102, 0.2);
  transform: translateY(-3px);
}
.gen-inspiration-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 255, 102, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gs-primary);
  margin-bottom: 16px;
}
.gen-inspiration-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.gen-inspiration-card p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 12px;
}
.gen-inspiration-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gs-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.gen-inspiration-card:hover .gen-inspiration-link {
  gap: 8px;
}

/* FAQ Section */
.gen-faq {
  background: var(--gs-dark);
  padding: 6rem 0;
}
.gen-faq .accordion-item {
  background: rgba(0, 255, 102, 0.05);
  border: 1px solid rgba(0, 255, 102, 0.1);
  border-radius: var(--gs-radius) !important;
  margin-bottom: 8px;
  overflow: hidden;
}
.gen-faq .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 18px 20px;
  box-shadow: none;
}
.gen-faq .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(80%) sepia(50%) saturate(1000%) hue-rotate(80deg);
}
.gen-faq .accordion-button:not(.collapsed) {
  background: rgba(0, 255, 102, 0.03);
  color: var(--gs-primary);
}
.gen-faq .accordion-body {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  padding-top: 0;
}

/* CTA Section */
.gen-cta {
  background: var(--gs-darker);
  padding: 6rem 0;
  text-align: center;
}

/* ---- Section Headers ---- */
.gen-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.gen-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.gen-section-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 540px;
  margin: 0 auto;
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 1199px) {
  .gen-app-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "left"
      "right"
      "toggle"
      "drawer";
    min-height: auto;
  }
  .gen-panel-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: none;
  }
  .gen-panel-right {
    min-height: 450px;
  }
  .gen-preview-frame {
    min-height: 450px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .gen-hero {
    padding: 8rem 0 3rem;
  }
  .gen-hero h1 {
    font-size: 2rem;
  }
  .gen-prompt-section {
    padding: 16px;
  }
  .gen-controls {
    padding: 16px;
  }
  .gen-panel-right {
    min-height: 350px;
  }
  .gen-preview-frame {
    min-height: 350px;
  }
  .gen-ease-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gen-code-block {
    font-size: 0.75rem;
    padding: 14px 16px;
  }
  .gen-code-tabs {
    padding: 0 16px;
    overflow-x: auto;
  }
  .gen-how-it-works,
  .gen-content-section,
  .gen-faq,
  .gen-cta {
    padding: 4rem 0;
  }
}

/* ---- Utility: Toast ---- */
.gen-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: var(--gs-radius);
  color: var(--gs-primary);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

/* ---- Mobile tab bar ---- */
.gen-mobile-tabs {
  display: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.gen-mobile-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.4);
  font-family: var(--gs-font);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}
.gen-mobile-tab.active {
  color: var(--gs-primary);
  border-bottom-color: var(--gs-primary);
}

@media (max-width: 767px) {
  .gen-mobile-tabs {
    display: flex;
  }
  .gen-app-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
      "left"
      "right"
      "toggle"
      "drawer";
    margin-top: 0;
  }
  .gen-panel-left,
  .gen-panel-right {
    display: none;
  }
  .gen-panel-left.mobile-active,
  .gen-panel-right.mobile-active {
    display: flex;
  }
}
