/* ============================================
   UniDocApp - Metadata Editor
   Unified Theme (Encryption Style)
   ============================================ */

:root {
  --primary: #7C4DFF;
  --primary-light: #B388FF;
  --primary-dark: #5E35B1;
  --secondary: #00E5FF;
  --secondary-dark: #00B8D4;
  --tertiary: #FF4081;
  --accent-purple: #E040FB;
  --accent-amber: #FFB300;
  --accent-cyan: #00BCD4;
  --surface: #1A1B21;
  --surface-light: #252731;
  --background: #0D0E12;
  --background-alt: #111218;
  --text: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.4);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Background Animation ===== */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124,77,255,0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,229,255,0.08), transparent),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(255,64,129,0.06), transparent);
}

.bg-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(124,77,255,0.4);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(13,14,18,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-accent { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(124,77,255,0.1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-cta .material-icons-round { font-size: 18px; }

.nav-toggle {
  display: none;
  color: var(--text);
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(13,14,18,0.95);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-link:hover, .mobile-link.active {
  color: var(--text);
  background: rgba(124,77,255,0.1);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(124,77,255,0.12);
  border: 1px solid rgba(124,77,255,0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-badge .material-icons-round { font-size: 18px; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-icon {
  display: inline-flex;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: rgba(124,77,255,0.15);
  color: var(--primary);
}

.section-icon .material-icons-round { font-size: 32px; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.stat-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  color: var(--secondary);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab {
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  background: rgba(0,229,255,0.05);
}

/* ===== App Layout ===== */
.app-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== Panels ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ===== Drop Zone ===== */
.drop-zone {
  position: relative;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255,255,255,0.01);
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(124,77,255,0.05);
}

.drop-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
  transition: var(--transition);
}

.drop-zone:hover .drop-icon {
  color: var(--primary);
}

.drop-zone h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.drop-zone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.drop-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drop-formats {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ===== File List ===== */
.file-list {
  margin-top: 24px;
}

.file-list h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-light);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: var(--transition);
}

.file-item:hover {
  border-color: var(--border-light);
}

.file-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(124,77,255,0.2);
}

.file-item .file-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.file-item .file-size {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.file-item .file-status {
  font-size: 0.75rem;
  color: var(--accent-amber);
  white-space: nowrap;
}

.file-item .remove-file, .file-remove {
  background: rgba(255,64,129,0.1);
  color: var(--tertiary);
  border: 1px solid rgba(255,64,129,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.file-item .remove-file:hover, .file-remove:hover {
  background: rgba(255,64,129,0.2);
}

/* ============================================
   FORM PANEL - ENHANCED
   ============================================ */
.form-panel {
  min-height: 800px;
  display: flex;
  flex-direction: column;
}

.form-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.undo-redo-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

/* Placeholder state */
.placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  font-style: italic;
  font-size: 1.05rem;
}

/* Category Sections */
.category-section {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.category-section:hover {
  border-color: var(--border-light);
}

.category-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items螺旋: center;
  user-select: none;
  color: var(--text);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.category-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.category-header span {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.category-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-content.collapsed {
  display: none;
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--border-light);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field input[readonly] {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Character Counter */
.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.char-counter.over-limit {
  color: var(--tertiary);
  font-weight: 700;
}

/* ===== Buttons ===== */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn .material-icons-round { font-size: 20px; }

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,77,255,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(124,77,255,0.08);
  transform: translateY(-2px);
}

.btn-info {
  background: rgba(0,229,255,0.1);
  color: var(--secondary);
  border: 1px solid rgba(0,229,255,0.2);
}

.btn-info:hover {
  background: rgba(0,229,255,0.2);
  transform: translateY(-2px);
}

.btn-warning {
  background: rgba(255,64,129,0.1);
  color: var(--tertiary);
  border: 1px solid rgba(255,64,129,0.2);
}

.btn-warning:hover {
  background: rgba(255,64,129,0.2);
  transform: translateY(-2px);
}

.btn-success {
  background: rgba(56,161,105,0.15);
  color: #38a169;
  border: 1px solid rgba(56,161,105,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== Remove Buttons Section ===== */
.remove-buttons {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255, 64, 129, 0.03);
  border: 1px dashed rgba(255, 64, 129, 0.2);
  border-radius: var(--radius);
}

.remove-buttons h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--tertiary);
  display: flex;
  align-items: center;
  gap: 10自有;
}

/* ===== Progress & Status ===== */
.progress-container {
  margin-top: 24px;
}

.progress-bar {
  height: 8px;
  background: var(--surface-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.operation-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-size: 0.9rem;
}

.inline-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Notices ===== */
.notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice-error { color: #f56565; background: rgba(245,101,101,0.1); border: 1px solid rgba(245,101,101,0.2); }
.notice-success { color: #48bb78; background: rgba(72,187,120,0.1); border: 1px solid rgba(72,187,120,0.2); }
.notice-warning { color: #ed8936; background: rgba(237,137,54,0.1); border: 1px solid rgba(237,137,54,0.2); }
.notice-info { color: var(--secondary); background: rgba(0,229,255,0.05); border: 1px solid rgba(0,229,255,0.1); }

/* ===== Maintenance ===== */
.maintenance-container {
  text-align: center;
  padding: 64px 24px;
}

.maintenance-container .section-icon {
  margin-bottom: 24px;
}

.maintenance-container h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.maintenance-container p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.maintenance-progress-bar {
  height: 6px;
  max-width: 300px;
  margin: 0 auto 24px;
  background: var(--surface-light);
  border-radius: 3px;
  overflow: hidden;
}

.maintenance-progress-fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  animation: progressMove 2s infinite ease-in-out;
}

@keyframes progressMove {
  0% { width: 0%; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

.maintenance-eta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Tools Grid ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--border-light);
}

.category-card .category-header {
  padding: 16px 24px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: rgba(124,77,255,0.05);
  font-size: 0.95rem;
}

.category-body {
  padding: 24px;
}

.category-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ===== Info Section ===== */
.info-section {
  padding: 80px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.info-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

.info-text strong {
  color: var(--text);
}

.info-cta {
  margin-top: 32px;
}

.info-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.info-image svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== How to Use / Steps ===== */
.how-section {
  padding: 80px 0;
}

.steps {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-top: 48px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(124,77,255,0.3);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-connector {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin-top: 24px;
  flex-shrink: 0;
  animation: flowPulse 2s infinite;
}

@keyframes flowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== Privacy Section ===== */
.privacy-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.privacy-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,77,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.privacy-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.privacy-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,77,255,0.2), rgba(0,229,255,0.2));
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: white;
}

.privacy-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.privacy-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Features Section ===== */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,77,255,0.2), rgba(0,229,255,0.2));
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: white;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 80px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 24px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-question .material-icons-round {
  transition: transform 0.3s;
  color: var(--primary);
  font-size: 24px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: 24px;
}

.faq-item.active .faq-question .material-icons-round {
  transform: rotate(180deg);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 0 0 80px;
}

.cta-card {
  text-align: center;
  padding: 64px 40px;
  background: linear-gradient(135deg, rgba(124,77,255,0.12), rgba(0,229,255,0.06));
  border: 1px solid rgba(124,77,255,0.2);
  border-radius: var(--radius-lg);
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.cta-card p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(13,14,18,0.95);
  backdrop-filter: blur(20px);
  margin-top: 80px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--text);
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.4s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Feedback Modal ===== */
.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.feedback-modal {
  background: linear-gradient(135deg, rgba(18, 19, 26, 0.95), rgba(10, 11, 16, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 560px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(124, 77, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-modal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(124, 77, 255, 0.08) 0%, transparent 70%);
  animation: modalGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes modalGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -10px) rotate(180deg); }
}

.feedback-icon-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  animation: ringSpin 3s linear infinite;
}

.feedback-icon-ring:nth-child(2) {
  inset: -8px;
  border-top-color: var(--secondary);
  border-right-color: var(--tertiary);
  animation-duration: 4s;
  animation-direction: reverse;
}

.feedback-icon-ring:nth-child(3) {
  inset: -16px;
  border-top-color: var(--tertiary);
  border-right-color: var(--primary);
  animation-duration: 5s;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.feedback-icon {
  font-size: 52px;
  animation: iconBounce 2s ease-in-out infinite;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.5));
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

.feedback-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feedback-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.feedback-highlight {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(124, 77, 255, 0.1);
  border-radius: 100px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 8px 0 24px;
  border: 1px solid rgba(124, 77, 255, 0.2);
}

.feedback-benefits {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.feedback-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.feedback-benefit:hover {
  border-color: var(--border-light);
  background: rgba(124, 77, 255, 0.05);
  transform: translateY(-2px);
}

.feedback-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.feedback-btn-primary {
  background: linear-gradient(135deg, var(--primary), #6c3fd4);
  color: #fff;
  box-shadow: 0 0 30px rgba(124, 77, 255, 0.3);
}

.feedback-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(124, 77, 255, 0.4);
}

.feedback-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.feedback-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  color: var(--text);
  transform: translateY(-2px);
}

.feedback-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.feedback-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
}

.feedback-particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; background: var(--primary); }
.feedback-particle:nth-child(2) { top: 20%; right: 25%; animation-delay: 0.5s; background: var(--secondary); }
.feedback-particle:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 1s; background: var(--tertiary); }
.feedback-particle:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.5s; background: var(--primary); }
.feedback-particle:nth-child(5) { top: 50%; left: 50%; animation-delay: 2s; background: var(--secondary); }
.feedback-particle:nth-child(6) { top: 30%; right: 10%; animation-delay: 2.5s; background: var(--tertiary); }

@keyframes particleCoordinate {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

.feedback-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  z-index: 2;
}

.feedback-close:hover {
  background: rgba(255, 64, 129, 0.1);
  border-color: rgba(255, 64, 129, 0.3);
  color: var(--tertiary);
  transform: rotate(90deg);
}

/* ===== Utilities ===== */
.hidden { display: none !important; }

.placeholder {
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .app-layout { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 0 40px; }
  .stats-bar { gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 60px 24px 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .faq-answer { padding: 0 0 24px 0; }
  .faq-item.active .faq-answer { padding-bottom: 24px; }
  .tools-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .btn { padding: 8px 16px; font-size: 0.85rem; }
  .feedback-modal { padding: 32px 20px; }
  .feedback-title { font-size: 1.5rem; }
  .feedback-benefits { flex-direction: column; }
  .step-number { width: 40px; height: 40px; font-size: 1rem; }
}
