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

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-primary-light: #3b82f6;
  --color-secondary: #0ea5e9;
  --color-accent: #06b6d4;
  --color-background: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-elevated: #ffffff;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-border: #e2e8f0;
  --color-success: #10b981;

  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--spacing-3xl) 0;
  /* Changed to dark blue gradient background */
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #2563eb 50%, #3b82f6 75%, #60a5fa 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveGrid 20s linear infinite;
  opacity: 0.3;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  /* Updated badge colors for dark background */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  /* Changed text color to white for dark background */
  color: white;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  /* Changed subtitle color for dark background */
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.5;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  /* Changed button to white with blue text for contrast */
  background: white;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.cta-button:hover {
  /* Updated hover state */
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  /* Changed arrow color to white */
  color: white;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  /* Updated hover color */
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%) scale(1.1);
}

/* Bento Grid */
.bento-section {
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
  /* Added white background for content section */
  background: var(--color-background);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-card,
  .form-card {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .status-card {
    grid-column: span 2;
    grid-row: span 1;
  }

  .form-card {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.bento-card {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

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

/* Feature Cards */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.card-description {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  cursor: help;
  position: relative;
  flex-shrink: 0;
}

.info-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  white-space: normal;
  width: 250px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
  line-height: 1.4;
}

.info-icon::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-text-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.info-icon:hover::before,
.info-icon:hover::after {
  opacity: 1;
}

/* Status Card */
.status-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.status-content {
  position: relative;
  z-index: 1;
}

.status-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.status-text {
  font-size: 1.0625rem;
  line-height: 1.6;
  /* Added margin bottom for checklist */
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

/* Added animated checklist styles */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.checklist-item.active {
  opacity: 1;
}

.checklist-item.checked {
  opacity: 1;
}

.checklist-item.fading {
  opacity: 0.4;
}

.checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.checklist-item.active .checkbox {
  border-color: rgba(255, 255, 255, 0.8);
}

.checklist-item.checked .checkbox {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.checkmark {
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.checklist-item.checked .checkmark {
  opacity: 1;
  transform: scale(1);
}

.checklist-text {
  flex: 1;
}

/* Feature Highlights */
.feature-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-highlight-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9375rem;
  font-weight: 500;
}

.feature-highlight-item svg {
  flex-shrink: 0;
}

/* Form Card */
.form-card {
  background: var(--color-surface-elevated);
}

.form-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.form-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

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

.form-group input {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--color-background);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.broker-input-wrapper {
  position: relative;
}

.broker-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.broker-suggestions.show {
  display: block;
}

.broker-suggestion-item {
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9375rem;
}

.broker-suggestion-item:hover {
  background: var(--color-surface);
}

.selected-brokers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.broker-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.broker-tag-remove {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease;
}

.broker-tag-remove:hover {
  background: rgba(255, 255, 255, 0.3);
}

.submit-button {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.submit-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-button:active {
  transform: translateY(0);
}

.success-message {
  display: none;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: #f0fdf4;
  border: 2px solid var(--color-success);
  border-radius: var(--radius-sm);
  color: #166534;
  margin-top: var(--spacing-lg);
}

.success-message.show {
  display: flex;
}

.success-message svg {
  flex-shrink: 0;
  color: var(--color-success);
}

.success-message p {
  margin: 0;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--color-surface-elevated);
  border-top: 1px solid var(--color-border);
  /* Reduced footer padding */
  padding: var(--spacing-lg) 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-text {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.footer-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  margin: 10% auto;
  padding: var(--spacing-2xl);
  border-radius: var(--spacing-md);
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.modal-content h2 {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}
.modal-content p {
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
}
.modal-content a {
  color: var(--color-primary);
  text-decoration: none;
}
.modal-content a:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}
.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .hero {
    padding: var(--spacing-2xl) 0;
    min-height: 100svh;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .status-title {
    font-size: 1.5rem;
  }

  .form-title {
    font-size: 1.5rem;
  }
}
