/* ==========================================================================
   ANIMATE IMAGES ONLINE - PRODUCTION STYLESHEET
   Supports Dark/Light Theme, Responsive Studio Grid, Top: 100% Dropdowns, Zero-Overflow
   ========================================================================== */

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  
  /* Dark Mode Default Palette */
  --bg-primary: #0a0d1a;
  --bg-secondary: #111628;
  --bg-card: rgba(19, 25, 46, 0.75);
  --bg-card-hover: rgba(28, 36, 66, 0.9);
  --bg-input: #0e1324;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #05d9e8;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-cyan: #05d9e8;
  --brand-pink: #ff2a6d;
  --brand-purple: #7928ca;
  --brand-gradient: linear-gradient(135deg, #05d9e8 0%, #ff2a6d 100%);
  --brand-glow: 0 0 25px rgba(5, 217, 232, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-input: #f1f5f9;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #0284c7;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --brand-cyan: #0284c7;
  --brand-pink: #e11d48;
  --brand-purple: #9333ea;
  --brand-gradient: linear-gradient(135deg, #0284c7 0%, #e11d48 100%);
  --brand-glow: 0 0 20px rgba(2, 132, 199, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

img, svg, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(5, 217, 232, 0.12);
  border: 1px solid rgba(5, 217, 232, 0.3);
  border-radius: var(--radius-full);
  color: var(--brand-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   NAVIGATION BAR & DROPDOWN (Strict top: 100%)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--brand-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--brand-glow);
  color: #fff;
  font-size: 1.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-cyan);
}

/* Dropdown Menu - EXACT REQUIREMENT: top: 100%; */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition-fast);
  z-index: 1100;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(5, 217, 232, 0.1);
  color: var(--brand-cyan);
}

.dropdown-item .item-icon {
  font-size: 1.1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--border-color);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 0.6rem 0;
}

.mobile-nav-sublist {
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.mobile-nav-sublink {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   BREADCRUMB NAVIGATION
   ========================================================================== */
.breadcrumb-section {
  padding: 1rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--brand-cyan);
}

.breadcrumb-item.active {
  color: var(--brand-cyan);
  font-weight: 600;
}

/* ==========================================================================
   HERO & INTERACTIVE ANIMATION STUDIO
   ========================================================================== */
.hero-section {
  padding: 3rem 0 2rem 0;
  position: relative;
}

.hero-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 2.5rem auto;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 1rem 0 1rem 0;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Main Studio Workspace Grid */
.studio-workspace {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Studio Left: Canvas & Top Actions */
.studio-canvas-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-tool:hover {
  background: rgba(5, 217, 232, 0.15);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.btn-tool.active {
  background: var(--brand-cyan);
  color: #050814;
  border-color: var(--brand-cyan);
}

.btn-cta-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  box-shadow: var(--brand-glow);
}

.btn-cta-primary:hover {
  filter: brightness(1.1);
  color: #ffffff;
}

.canvas-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#animationCanvas {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  cursor: crosshair;
}

.upload-overlay-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: rgba(14, 19, 36, 0.9);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.upload-overlay-placeholder.drag-active {
  background: rgba(5, 217, 232, 0.2);
  border: 2px dashed var(--brand-cyan);
}

.upload-icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(5, 217, 232, 0.1);
  border: 1px solid rgba(5, 217, 232, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--brand-cyan);
}

.sample-presets-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.sample-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sample-pill {
  padding: 0.35rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sample-pill:hover, .sample-pill.active {
  background: rgba(5, 217, 232, 0.15);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* Split Comparison Slider Bar */
.split-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.split-slider-container span {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.split-slider-container input[type="range"] {
  flex: 1;
  accent-color: var(--brand-cyan);
}

/* Studio Right: Effect & Adjustment Controls Panel */
.studio-controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Custom Scrollbar for Controls */
.studio-controls-col::-webkit-scrollbar {
  width: 5px;
}
.studio-controls-col::-webkit-scrollbar-track {
  background: transparent;
}
.studio-controls-col::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.control-panel-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Effect Cards Grid */
.effect-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.effect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

.effect-card:hover {
  border-color: rgba(5, 217, 232, 0.5);
  background: rgba(5, 217, 232, 0.05);
}

.effect-card.active {
  border-color: var(--brand-cyan);
  background: rgba(5, 217, 232, 0.12);
  box-shadow: 0 0 12px rgba(5, 217, 232, 0.2);
}

.effect-icon {
  font-size: 1.35rem;
}

.effect-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Overlays / Atmospheric Chips */
.overlay-chips-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.overlay-chip {
  padding: 0.4rem 0.7rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.overlay-chip:hover, .overlay-chip.active {
  background: rgba(255, 42, 109, 0.15);
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}

/* Sliders & Parametric Controls */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.slider-group:last-child {
  margin-bottom: 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-val {
  color: var(--brand-cyan);
}

.range-input {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  outline: none;
  accent-color: var(--brand-cyan);
}

.select-input, .text-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.select-input:focus, .text-input:focus {
  border-color: var(--brand-cyan);
}

/* Aspect Ratio Buttons */
.aspect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.aspect-btn {
  padding: 0.45rem 0.3rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
}

.aspect-btn:hover, .aspect-btn.active {
  background: rgba(5, 217, 232, 0.15);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* Text Overlay Sub-Form */
.text-controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   VIDEO TOOLS SECTION (Before Features, No Horizontal Scroll)
   ========================================================================== */
.video-tools-section {
  padding: 4rem 0 2rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.tools-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  width: 100%;
}

.tool-card-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.tool-card-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
  color: var(--brand-cyan);
}

.tool-card-link .tool-icon {
  font-size: 1.25rem;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.tool-card-link .tool-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
  padding: 4.5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 217, 232, 0.4);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(5, 217, 232, 0.1);
  border: 1px solid rgba(5, 217, 232, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--brand-cyan);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-it-works-section {
  padding: 4.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .step-number {
  color: rgba(0, 0, 0, 0.06);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SEO EDUCATIONAL CONTENT (~400 words)
   ========================================================================== */
.seo-content-section {
  padding: 4.5rem 0;
}

.seo-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.seo-article-card h2 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
}

.seo-article-card h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem 0;
}

.seo-article-card p {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  font-size: 0.96rem;
  line-height: 1.7;
}

.seo-article-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.seo-article-card li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   FAQ SECTION (Schema FAQ Accordion)
   ========================================================================== */
.faq-section {
  padding: 4.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--brand-cyan);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--brand-cyan);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   CALL TO ACTION (CTA) SECTION
   ========================================================================== */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.cta-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-cta-white {
  background: #ffffff;
  color: #0a0d1a;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition-fast);
}

.btn-cta-white:hover {
  transform: scale(1.05);
  color: #000000;
}

.btn-cta-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: background var(--transition-fast);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   FOOTER (Multiple Columns)
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--brand-cyan);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.footer-legal-links a {
  color: var(--text-secondary);
}

.footer-legal-links a:hover {
  color: var(--brand-cyan);
}

.trademark-disclaimer {
  max-width: 800px;
  line-height: 1.5;
  font-size: 0.78rem;
}

/* ==========================================================================
   EXPORT MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.modal-backdrop.modal-open {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.btn-close-modal {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.export-form-group {
  margin-bottom: 1.2rem;
}

.export-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--brand-gradient);
  transition: width 0.15s ease;
}

.export-result-box {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 520px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
}

.cookie-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--brand-cyan);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cookie-accept {
  padding: 0.5rem 1.15rem;
  background: var(--brand-cyan);
  color: #050814;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.btn-cookie-dismiss {
  padding: 0.5rem 1.15rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 85px;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 3000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: slideInRight 0.25s ease-out;
}

.toast-success {
  border-color: #00ff66;
}

.toast-error {
  border-color: #ff2a6d;
}

.toast-fade-out {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile Friendly, No Overflow)
   ========================================================================== */
@media (max-width: 1024px) {
  .studio-workspace {
    grid-template-columns: 1fr;
  }
  .studio-controls-col {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .theme-text {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero-section {
    padding: 2rem 0 1.5rem 0;
  }
  .studio-workspace {
    padding: 1rem;
  }
  .canvas-stage {
    min-height: 340px;
  }
  .tools-responsive-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
