@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size: 14px;
  --line-height: 1.4;
  --background: #ffffff;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --orange: #FF6B00;
  --orange-foreground: #ffffff;
  --secondary: #ffffff;
  --secondary-foreground: #030213;
  --muted: #ffffff;
  --muted-foreground: #717182;
  --accent: #ffffff;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #ffffff;
  --navy: #0B2259;
  --navy-foreground: #ffffff;
  --teal: #00829B;
  --teal-foreground: #ffffff;
  --section-spacing: 64px;
  --radius: 0.625rem;
}

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

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--foreground);
  line-height: var(--line-height);
  font-size: var(--font-size);
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
}

h4 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #666;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
}

/* Navigation Header */
.nav-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-fallback {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--orange), #ff7d1a);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}

.nav-logo .logo-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 107, 0, 0.3);
  text-decoration: none;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  background: white;
}

.nav-link:hover {
  background: rgba(255, 107, 0, 0.05);
  border-color: var(--orange);
}

.decision-model-btn {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.decision-model-btn:hover {
  background: #e55a00;
  border-color: #e55a00;
}

.contact-btn {
  border: 1px solid rgba(255, 107, 0, 0.3);
}

/* Main Header */
.main-header {
  background: #f8f9fa;
  color: #333;
  text-align: center;
  padding: 4rem 1rem 3rem 1rem;
  margin-bottom: 2rem;
}

.main-header h1 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.main-header p {
  color: #666;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.try-demo-btn {
  background: var(--orange);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4rem;
}

.try-demo-btn:hover {
  background: #e55a00;
  transform: translateY(-1px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

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

.step-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--orange);
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* Enterprise Cards */
.enterprise-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Step Container */
.step-container {
  margin-bottom: 3rem;
}

.step-container.hidden {
  display: none;
}

/* Step 2 specific background */
#step2 {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-number {
  background: var(--orange);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Input Section */
.input-section {
  margin-bottom: 2rem;
}

.input-section label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

#decisionInput {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s;
}

#decisionInput:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.char-counter {
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Buttons */
.primary-btn {
  background: linear-gradient(135deg, var(--orange), #ff7d1a);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(255, 107, 0, 0.2);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  background: white;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 1rem;
}

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

/* API Key Inputs */
.api-keys {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.api-key-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.api-key-input label {
  min-width: 120px;
  font-size: 0.875rem;
  font-weight: 500;
}

.api-key-input input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
}

.save-key-btn {
  background: var(--navy);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}

.save-key-btn:hover {
  background: #1e3a8a;
}

/* Factor Selection */
.factors-section {
  margin-bottom: 3rem;
}

.llm-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.llm-column h4 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.factor-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.factor-btn {
  background: white;
  border: 2px solid #e5e7eb;
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}

.factor-btn:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.05);
}

.factor-btn.selected {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.factor-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.no-factors-message {
  padding: 1rem;
  text-align: center;
  color: #6b7280;
  font-style: italic;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

/* Selected Factors */
.selected-factors {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 2rem;
}

.selected-factors h3 {
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-size: 1.125rem;
}

.selected-factor-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
}

.factor-text {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--navy);
}

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

.weight-item {
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.875rem;
}

.weight-item div:first-child {
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.weight-item strong {
  color: var(--navy);
  font-size: 1rem;
}

.progress-info {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--orange);
}

/* Pre-selected Factors */
.pre-selected-container {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.pre-selected-header h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.pre-selected-header p {
  color: #64748b;
  margin-bottom: 2rem;
}

.pre-selected-factors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pre-selected-factor {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
  transition: all 0.2s ease;
}

.pre-selected-factor:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.factor-number {
  background: var(--orange);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.factor-text {
  color: var(--navy);
  text-align: left;
}

.pre-selected-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Custom Factor Input */
.custom-factor-input {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.custom-factor-input h4 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1rem;
}

.custom-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.custom-input-group input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
}

.custom-input-group input:focus {
  outline: none;
  border-color: var(--orange);
}

.char-counter-small {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

/* Configuration Panel */
.config-panel {
  position: relative;
  margin-bottom: 2rem;
  text-align: right;
}

.config-toggle {
  background: linear-gradient(135deg, var(--orange), #ff7d1a);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.config-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.config-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 400px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 100;
  margin-top: 0.5rem;
}

.config-dropdown.hidden {
  display: none;
}

.config-section {
  margin-bottom: 1.5rem;
}

.config-section:last-child {
  margin-bottom: 0;
}

.config-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--navy);
}

.model-selectors {
  display: grid;
  gap: 1rem;
}

.model-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.model-selector label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.model-selector select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
}

.config-section input[type="range"] {
  width: 100%;
  margin-top: 0.5rem;
}

.cost-display {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--navy);
}

/* Alignment Indicator */
.alignment-indicator {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-radius: 12px;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.alignment-indicator.hidden {
  display: none;
}

/* Cost Summary */
.cost-summary {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--orange);
}

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

.cost-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.cost-item-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.cost-item-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

/* Factor Weights Log */
.factor-weights-log {
  margin-bottom: 2rem;
}

.weight-history-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--teal);
}

.weight-history-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.weight-history-factor {
  font-weight: 600;
  color: var(--navy);
}

.weight-history-details {
  font-size: 0.875rem;
  color: #6b7280;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

/* Model Performance */
.model-performance {
  margin-bottom: 2rem;
}

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

.model-stat-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.model-stat-name {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.model-stat-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.model-stat-row {
  display: flex;
  justify-content: between;
  align-items: center;
  font-size: 0.875rem;
}

.model-stat-label {
  color: #6b7280;
}

.model-stat-value {
  font-weight: 500;
  color: var(--navy);
}

/* Loading */
.loading {
  text-align: center;
  padding: 3rem 1rem;
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f4f6;
  border-top: 3px solid var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.iteration-info {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Decision Results */
#decisionResults.hidden {
  display: none;
}

.confidence-section {
  text-align: center;
  margin-bottom: 2rem;
}

.confidence-badge {
  display: inline-block;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.confidence-label {
  display: block;
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.confidence-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
}

.decision-section {
  margin-bottom: 2rem;
}

.section-label {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.decision-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.decision-text {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.analysis-details, .iteration-log {
  margin-bottom: 2rem;
}

.analysis-item, .iteration-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
}

.iteration-item {
  border-left: 4px solid var(--teal);
}

.actions {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.actions::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), #ff7d1a);
  margin: 1rem 0 0.5rem 0;
}

/* Progress Bar */
.progress-bar {
  background: rgba(255, 255, 255, 0.3);
  height: 6px;
  border-radius: 3px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--orange), #ff7d1a);
  height: 100%;
  width: 33.33%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.progress-step {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.progress-step.active {
  color: white;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .nav-container {
    padding: 0 0.5rem;
  }

  .nav-menu {
    display: flex;
    gap: 0.25rem;
    flex: 1;
    justify-content: space-between;
    max-width: 280px;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    flex: 1;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .nav-link svg {
    width: 12px;
    height: 12px;
    margin-left: 0.25rem;
  }

  .main-header h1 {
    font-size: 2rem;
  }

  .main-header p {
    font-size: 1.1rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }

  .try-demo-btn {
    margin-bottom: 3rem;
  }

  .config-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
  }

  #decisionInput {
    min-height: 100px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .factor-btn {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .primary-btn, .secondary-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .nav-menu {
    gap: 0.5rem;
    ```text
flex: 1;    justify-content: flex-end;
    max-width: 400px;
  }

  .nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-logo .logo-text {
    font-size: 0.8rem;
  }

  .main-header {
    padding: 2rem 1rem;
  }

  .main-header h1 {
    font-size: 2rem;
  }

  .enterprise-card {
    padding: 1.5rem;
  }

  .llm-factors {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .weights-display {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  /* Touch-friendly buttons */
  .factor-btn, .primary-btn, .secondary-btn {
    min-height: 44px; /* iOS recommended touch target */
  }

  /* Better mobile navigation */
  .nav-logo .logo-text {
    display: block;
  }

  .nav-logo .logo-icon {
    width: 32px;
    height: 32px;
  }

  /* Improved mobile form inputs */
  input, textarea, select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* Feature Highlights Section */
.feature-highlights {
  background: white;
  padding: 1rem 0 0 0;
  margin-top: -1rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange), #ff7d1a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
}

/* Trust Signals Bar */
.trust-signals {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  border: 1px solid #e5e7eb;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.trust-status {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.2;
}

/* Main Footer Content */
.footer-content {
  padding: 3rem 0 2rem;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.footer-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: normal;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .trust-items {
    gap: 1.5rem;
  }

  .trust-item {
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    gap: 1rem;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.selected-factor-item:last-child {
    margin-bottom: 0;
}

.decide-button-container {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.decide-button-container .primary-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.custom-factor-card {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--navy);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-factors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.decide-btn-top {
    margin-left: auto;
}

.decide-button-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid var(--orange);
}

.decide-button-container .primary-btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.decide-button-container .primary-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #9ca3af;
}

.decide-button-help {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.custom-factor-input {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.custom-factor-input h4 {
    margin-bottom: 1rem;
    color: var(--navy);
    font-weight: 600;
}

.custom-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.custom-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.char-counter-small {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
}

/* Custom Factor Cards */
.custom-factor-cards {
    margin-bottom: 2rem;
}

.custom-factor-card {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    transition: all 0.2s ease;
}

.custom-factor-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.custom-factor-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-factor-label {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.custom-factor-text {
    flex: 1;
    font-weight: 600;
    color: var(--navy);
}

.remove-custom-factor {
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
}

.remove-custom-factor:hover {
    background: #c82333;
    transform: scale(1.1);
}

.selected-factors-section {
    margin-top: 2rem;
}

.selected-factors-section .decide-button-container {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed var(--orange);
}

.selected-factors-section .decide-button-container .primary-btn {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Mobile responsiveness for progress bar */
@media (max-width: 768px) {
  .progress-bar {
    margin: 2rem 0;
  }

  .progress-steps {
    justify-content: space-around;
  }

  .progress-step {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Page styles for new pages */
.page-header {
  text-align: center;
  padding: 4rem 0 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: #64748b;
}

/* Solutions page styles */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.solution-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.solution-icon {
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.solution-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.solution-card p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.case-example {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  text-align: left;
}

/* Pricing page styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border: 2px solid var(--orange);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.price span {
  font-size: 1rem;
  color: #64748b;
  font-weight: 400;
}

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

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

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

.pricing-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Security page styles */
.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.security-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.security-icon {
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.security-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.security-card p {
  color: #64748b;
  line-height: 1.6;
}

.compliance-status {
  background: #fef3c7;
  color: #d97706;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Documentation page styles */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.docs-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.docs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.docs-icon {
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.docs-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.docs-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.docs-link:hover {
  color: #e55a00;
}

.docs-card.coming-soon {
  opacity: 0.7;
}

.coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fef3c7;
  color: #d97706;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* About page styles */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-mission {
  text-align: center;
  margin-bottom: 4rem;
}

.about-mission h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.about-mission p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #374151;
}

.about-founder {
  margin-bottom: 4rem;
}

.about-founder h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2rem;
  text-align: center;
}

.founder-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.founder-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.founder-image {
  flex-shrink: 0;
}

.founder-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.founder-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.founder-title {
  font-size: 1.125rem;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 0;
}

.founder-content p {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.founder-links {
  margin-top: 1.5rem;
}

.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--orange);
  border-radius: 6px;
  transition: all 0.2s;
}

.founder-link:hover {
  background: var(--orange);
  color: white;
}

.about-values {
  margin-bottom: 4rem;
}

.about-values h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2rem;
  text-align: center;
}

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

.value-card {
  text-align: center;
  padding: 1.5rem;
}

.value-icon {
  color: var(--orange);
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.value-card p {
  color: #64748b;
  line-height: 1.6;
}

.about-careers h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.about-careers > p {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 2rem;
}

.careers-section {
  margin-bottom: 3rem;
}

.careers-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.careers-list {
  list-style: none;
  padding: 0;
}

.careers-list li {
  padding: 0.5rem 0;
  color: #374151;
  position: relative;
  padding-left: 1.5rem;
}

.careers-list li:before {
  content: "•";
  color: var(--orange);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

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

.contact-item {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.contact-item strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--orange);
  text-decoration: none;
}

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

/* Mobile responsiveness for new pages */
@media (max-width: 768px) {
  .page-header {
    padding: 2rem 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .solutions-grid,
  .pricing-grid,
  .security-features,
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .pricing-card.featured {
    transform: none;
  }

  .values-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-mission,
  .about-values {
    margin-bottom: 3rem;
  }

  .founder-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .founder-photo {
    width: 100px;
    height: 100px;
  }
}