:root {
  --bg-base: #0b0f19;
  --bg-surface: rgba(20, 27, 45, 0.7);
  --bg-surface-solid: #141b2d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --accent: #10b981;
  --accent-hover: #059669;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #a5b4fc, #6366f1, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo i {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: white;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

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

.btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  user-select: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-success {
  background: var(--accent);
  border-color: transparent;
}

.btn-success:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-icon {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
}

/* Main Container */
.app-container {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Upload Zone overlay when empty */
.upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 5;
  overflow-y: auto;
  transition: opacity 0.3s ease;
  scroll-behavior: smooth;
}

.upload-card {
  max-width: 500px;
  width: 100%;
  background: var(--bg-surface);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.upload-card:hover, .upload-card.dragover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-8px); opacity: 1; }
}

.upload-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.upload-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Page List Sidebar (Left) */
.pages-sidebar {
  width: 250px;
  border-right: 1px solid var(--border-color);
  background: var(--bg-surface-solid);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 4;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.15);
}

.sidebar-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pages-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.page-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.page-item.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.page-thumb-container {
  width: 70px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.page-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-info {
  flex: 1;
  min-width: 0;
}

.page-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px;
  transition: var(--transition);
}

.page-btn:hover {
  color: #ef4444;
}

/* Canvas / Editor Space */
.editor-workspace {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #111827, #070a12);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.canvas-container {
  position: relative;
  cursor: grab;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform-origin: center center;
}

.canvas-container:active {
  cursor: grabbing;
}

#storyboardCanvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background-color: #1f2937;
}

/* Inline Edit Overlay on Canvas */
.inline-editor-input {
  position: absolute;
  background: #1e293b;
  border: 2px solid var(--primary);
  border-radius: 4px;
  color: white;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 20;
}

/* Sidebar controls (Right) */
.sidebar {
  width: 320px;
  border-left: 1px solid var(--border-color);
  background: var(--bg-surface-solid);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 4;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tab-btn i {
  font-size: 0.95rem;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: none;
}

.tab-content.active {
  display: block;
}

.control-group {
  margin-bottom: 1.25rem;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.control-group label.checkbox-label {
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0;
}

.control-group label span.value {
  color: var(--primary);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

input[type="number"], input[type="text"], select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  transition: var(--transition);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.9rem;
  padding-right: 2rem;
  cursor: pointer;
}

select option {
  background-color: #141b2d;
  color: var(--text-main);
}

input[type="number"]:focus, input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 8px var(--primary-glow);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Zoom Indicator Overlay */
.zoom-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(20, 27, 45, 0.85);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zoom-overlay button {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 2px 6px;
}

.zoom-overlay button:hover {
  color: var(--primary);
}

/* Frame Preview Cards */
.previews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.preview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.preview-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.preview-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.preview-thumb-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  position: relative;
}

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-index {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-meta {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-name-input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 0;
  width: 100%;
}

.preview-name-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.mini-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: var(--transition);
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.mini-btn-primary {
  background: var(--primary);
  border-color: transparent;
  color: white;
}

.mini-btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

/* Guide text */
.guide-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.guide-tip i {
  color: var(--primary);
  margin-right: 0.25rem;
}

/* Status Toast */
.status-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 100;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.status-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.status-toast.success i {
  color: var(--accent);
}

.status-toast.error i {
  color: #ef4444;
}

/* AI Adaptive Learning UI */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: var(--transition);
}

.ai-badge.active {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(99,102,241,0.2));
  border: 1px solid rgba(16,185,129,0.4);
  color: #10b981;
  animation: ai-pulse 2.5s ease-in-out infinite;
}

.ai-badge.inactive {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0.12); }
}

.ai-panel {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(99,102,241,0.06));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 0.6rem;
}

.ai-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

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

.ai-stat {
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
}

.ai-stat-label {
  color: var(--text-dark);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-stat-value {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.78rem;
  margin-top: 2px;
}

.btn-confirm {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
  opacity: 0.5;
  pointer-events: none;
}

.btn-confirm.ready {
  opacity: 1;
  pointer-events: all;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.btn-confirm.ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.45);
}

.btn-confirm-bad {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.btn-confirm-bad.ready {
  box-shadow: 0 4px 15px rgba(239,68,68,0.3) !important;
}

.btn-confirm-bad.ready:hover {
  box-shadow: 0 6px 20px rgba(239,68,68,0.45) !important;
}

.ai-confidence-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.ai-confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #6366f1);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Sidebar Toggle Buttons for Mobile */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  background: var(--primary);
  border: none;
  color: white;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

#togglePagesBtn {
  left: 1.5rem;
}

#toggleControlsBtn {
  right: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .pages-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }
  
  .sidebar {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    transform: translateX(100%);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .pages-sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  header {
    padding: 0.75rem 1rem;
  }
  
  .logo span {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-actions .btn span {
    display: none;
  }
  .header-actions .btn {
    padding: 0.6rem;
    border-radius: var(--radius-sm);
  }
}

/* Landing Page Styles */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 15, 30, 0.5);
  backdrop-filter: blur(10px);
}
.landing-header .logo {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #a5b4fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-nav {
  display: flex;
  gap: 1.5rem;
}
.landing-nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.landing-nav-link:hover {
  color: var(--primary);
}
.mobile-warning-banner {
  display: none;
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .mobile-warning-banner {
    display: flex;
  }
}
.landing-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  align-items: center;
}
@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
  }
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.badge-new {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  text-align: left;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-upload-card {
  display: flex;
  justify-content: center;
  width: 100%;
}
.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}
.landing-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}
.landing-section.alt-bg {
  max-width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.02) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.section-heading {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -0.01em;
  background: linear-gradient(to right, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 768px) {
  .section-heading {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
}
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.how-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.how-step:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}
.step-num {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
.how-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}
.how-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.features-landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (max-width: 768px) {
  .features-landing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.feature-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  text-align: left;
}
.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  text-align: left;
}
.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.landing-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(5, 5, 10, 0.5);
  width: 100%;
}
.landing-footer p {
  color: var(--text-dark);
  font-size: 0.85rem;
}
