:root {
  --primary-blue: #1e40af;
  --primary-blue-hover: #1e3a8a;
  --accent-blue: #3b82f6;
  --light-blue: #eff6ff;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #059669;
  --success-bg: #d1fae5;
  --warning: #d97706;
  --error: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-brand:hover {
  color: var(--primary-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand .ai {
  color: var(--primary-blue);
  font-weight: 700;
}

.nav nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.2s;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav nav a:hover {
  color: var(--primary-blue);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero, .hero-section {
  text-align: center;
  padding: 4rem 1rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.upload-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.upload-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.upload-card.drag-over {
  border-color: var(--accent-blue);
  background: var(--light-blue);
  box-shadow: var(--shadow-md);
}

.upload-card.drag-over .file-label {
  border-color: var(--primary-blue);
  background: var(--bg);
}

.upload-card h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.file-input {
  display: none;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 1.5rem;
}

.file-label:hover {
  border-color: var(--accent-blue);
  background: var(--light-blue);
}

.file-icon {
  font-size: 2rem;
}

.file-list {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.file-list h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.file-list ul {
  list-style: none;
  padding: 0;
}

.file-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.file-label-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-label-row {
  display: grid;
  grid-template-columns: auto auto 1fr 200px;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  cursor: grab;
  transition: all 0.2s ease;
}

.file-label-row:active {
  cursor: grabbing;
}

.file-label-row.drag-over-row {
  border-color: var(--accent-blue);
  background: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.drag-handle {
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: grab;
  user-select: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.file-label-row:hover .drag-handle {
  opacity: 1;
  color: var(--primary-blue);
}

.drag-handle:active {
  cursor: grabbing;
}

.file-number {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 25px;
}

.file-name {
  color: var(--text-primary);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-label-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text-primary);
  transition: all 0.2s;
}

.period-label-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.label-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.form-group {
  margin: 1.5rem 0;
}

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

.text-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.info-box {
  background: var(--light-blue);
  border: 1px solid var(--accent-blue);
  border-radius: 12px;
  padding: 2rem;
}

.info-box h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  padding: 0.5rem 0;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.95rem;
}


.btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover:not(:disabled) {
  background: var(--primary-blue-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-primary {
  background: var(--primary-blue);
  width: 100%;
}

.btn-secondary {
  background: var(--accent-blue);
}

.status-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  display: none;
  font-weight: 500;
}

.status-message.status-info {
  display: block;
  background: var(--light-blue);
  border: 1px solid var(--accent-blue);
  color: var(--primary-blue);
}

.status-message.status-success {
  display: block;
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.status-message.status-error {
  display: block;
  background: #fee2e2;
  border: 1px solid var(--error);
  color: var(--error);
}

.progress-container {
  margin-top: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  height: 8px;
}

.progress-bar {
  height: 100%;
  background: var(--primary-blue);
  animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.info-section {
  margin: 4rem 0;
}

.info-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 700;
}

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

.info-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.info-item h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.info-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer {
  margin-top: auto;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0.25rem 0;
}

.footer-link {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.privacy-section h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.privacy-section h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.privacy-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.privacy-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.privacy-section li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.privacy-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Contact Page Styles */
.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

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

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.info-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.info-section h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.info-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.info-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.info-section li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.inline-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.inline-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* About Page Styles */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.about-section h2 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.about-section li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.about-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

.feature-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: var(--light-blue);
  border-color: var(--accent-blue);
}

.feature-item h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

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

.process-step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-blue);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.process-step h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.tech-list li {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--primary-blue);
}

.cta-section {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--bg) 100%);
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.cta-section h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: var(--bg);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.hero .subtitle {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.drop {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 4rem 3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
}

.drop:hover, .drop.dragover {
  border-color: var(--accent-blue);
  background: var(--light-blue);
  box-shadow: var(--shadow-md);
}

.drop button {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.drop button:hover {
  background: var(--primary-blue-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.controls label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.controls select,
.controls input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s;
}

.controls select:focus,
.controls input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filelist {
  margin-bottom: 2rem;
}

.file-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.file-item:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.action-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.action-section h3 {
  color: var(--primary-blue);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.action-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.actions-single,
.actions-multi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.actions-single button,
.actions-multi button {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.actions-single button:hover:not(:disabled),
.actions-multi button:hover:not(:disabled) {
  background: var(--primary-blue-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.actions-single button:disabled,
.actions-multi button:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.action-section input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.action-section input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.consolidate-help {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--light-blue);
  border-left: 3px solid var(--primary-blue);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.consolidate-help strong {
  color: var(--primary-blue);
}

.period-labels-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.period-labels-section label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.period-labels-section input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.period-labels-section input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.status {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
  font-weight: 500;
}

.status.info {
  display: block;
  background: var(--light-blue);
  border: 1px solid var(--accent-blue);
  color: var(--primary-blue);
}

.status.success {
  display: block;
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.status.error {
  display: block;
  background: #fee2e2;
  border: 1px solid var(--error);
  color: var(--error);
}

.download {
  margin-top: 1.5rem;
}

.download a {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.download a:hover {
  background: #047857;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.feature {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
  font-size: 1.125rem;
  font-weight: 700;
}

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

ol {
  padding-left: 1.75rem;
  color: var(--text-secondary);
}

ol li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  line-height: 1.7;
}

ol li strong {
  color: var(--text-primary);
  font-weight: 700;
}

details {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--bg-secondary);
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

details p {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

code {
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
  color: var(--primary-blue);
  font-size: 0.9em;
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  
  .nav-container {
    padding: 0.75rem 1rem;
    position: relative;
  }
  
  .nav-brand {
    font-size: 1.1rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-link {
    font-size: 0.95rem;
    padding: 0.75rem 2rem;
    border-bottom: none;
  }
  
  .nav-link:hover {
    background: var(--bg-secondary);
  }
  
  .nav nav a {
    margin-left: 0;
  }
  
  .hero h1, .page-header h1 {
    font-size: 1.75rem;
  }
  
  .hero p, .page-header p {
    font-size: 1rem;
  }
  
  .hero .subtitle {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
  }
  
  .container {
    padding: 1.5rem 1rem;
  }
  
  .card, .upload-card {
    padding: 1.25rem;
  }
  
  .upload-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .file-label {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
  
  .actions-single,
  .actions-multi {
    grid-template-columns: 1fr;
  }
  
  .controls {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-section {
    padding: 2rem 1rem 2rem;
  }
  
  .info-box {
    padding: 1.5rem;
  }
}

/* ===========================
   NEW PAGE STYLES
   =========================== */

/* Hero Section - Home Page */
.hero-section {
  text-align: center;
  padding: 4rem 2rem 4rem;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--bg) 100%);
  border-radius: 16px;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

/* Content Sections */
.content-section {
  margin-bottom: 4rem;
}

.section-heading {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Two Column Section */
.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  padding: 3rem;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-blue);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Built For Section */
.built-for-section {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  border-radius: 12px;
}

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

.built-for-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.built-for-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.built-for-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.built-for-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Trust Section */
.trust-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}

.trust-content {
  max-width: 800px;
  margin: 0 auto;
}

.trust-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.trust-text {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* CTA Footer Section */
.cta-footer-section {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.cta-footer-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* How It Works - Process Cards */
.how-it-works-content {
  max-width: 900px;
  margin: 0 auto;
}

.process-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.process-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.process-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.process-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.process-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.export-list {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.export-list li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.process-arrow {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-blue);
  margin: 1rem 0;
}

/* Features Page */
.features-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.feature-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.feature-block ul {
  list-style: none;
  padding: 0;
}

.feature-block li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}


/* Pricing Page */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.pricing-card-featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.plan-price {
  margin-bottom: 2rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

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

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.plan-features li {
  color: var(--text-secondary);
  line-height: 2;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.plan-features li:last-child {
  border-bottom: none;
}

/* Legal Pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.legal-section h2 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-section li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* Security Page */
.security-content {
  max-width: 900px;
  margin: 0 auto;
}

.security-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.security-section h2 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.security-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.security-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.security-section li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* Contact Form */
.contact-new-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: var(--bg);
}

.form-help-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.form-footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-info-card p {
  margin: 0;
}

.contact-info-card a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* About Page - New Content */
.about-new-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-story {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about-story p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.mission-section {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--bg) 100%);
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.mission-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.mission-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.values-section {
  margin-bottom: 2.5rem;
}

.values-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.backing-section {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2.5rem;
}

.backing-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-heading {
    font-size: 1.75rem;
  }
  
  .two-column-section {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .built-for-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card-featured {
    transform: scale(1);
  }
  
  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }
  
  .contact-new-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .features-content {
    grid-template-columns: 1fr;
  }
}

/* Page Selector */
.page-selector {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.page-selector h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-item {
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.page-item:hover {
  border-color: var(--accent-blue);
  background: var(--light-blue);
}

.page-item.recommended {
  border-color: var(--success-green);
  background: rgba(22, 163, 74, 0.05);
}

.page-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.page-label-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.page-label-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--light-blue);
}

.badge {
  background: #16a34a;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.page-list {
  margin-top: 1rem;
}
