/* Memory Robin - Custom Styles */

/* CSS Custom Properties */
:root {
  --deep-charcoal: #1e2a3a;
  --muted-plum: #6B4C7A;
  --robin-red: #e53e3e;
  --soft-lilac: #d8c8e8;
  --soft-sage: #c5d5c0;
  --stone: #f0e9e4;
  --warm-stone: #f5f3e8;
  --pocket-blue: #3AAFCF;
}

/* Base reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--deep-charcoal);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

/* Form input focus styles */
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--muted-plum);
  outline-offset: 2px;
}

/* Card styles */
.card {
  border-radius: 0.75rem;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: var(--stone);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Navigation */
.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--deep-charcoal);
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-link:hover { opacity: 0.7; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--muted-plum);
  color: white;
  padding: 0 2rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted-plum);
  padding: 0 2rem;
  height: 3rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid var(--muted-plum);
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Eyebrow text */
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--soft-sage);
}

/* Section headings */
.section-heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  color: var(--deep-charcoal);
}

.section-subheading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--deep-charcoal);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: var(--stone);
  border-radius: 1rem;
  max-width: 36rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-radius: 1rem 1rem 0 0;
  background: var(--muted-plum);
}

.modal-close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  line-height: 1;
  transition: opacity 0.2s;
}

.modal-close:hover { opacity: 0.7; }

.modal-body {
  padding: 1.75rem 2rem;
}

/* Form styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--deep-charcoal);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--deep-charcoal);
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--muted-plum);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231e2a3a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.checkbox-label.checked {
  border-color: var(--muted-plum);
  background: rgba(107,76,122,0.12);
}

.checkbox-label input { display: none; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 200;
  max-width: 24rem;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-left: 4px solid var(--soft-sage); }
.toast.error { border-left: 4px solid var(--robin-red); }

.toast-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.8125rem;
  color: rgba(30,42,58,0.7);
}

/* Stat cards */
.stat-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid var(--soft-lilac);
}

.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: white;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.9);
}

/* Robin product cards */
.robin-card {
  border-radius: 1rem;
  padding: 2rem;
  border: 2px solid;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

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

.robin-card-detail {
  margin-top: 1.5rem;
  border-radius: 1rem;
  padding: 2.5rem;
}

.robin-card-detail h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 1.5rem;
}

.robin-card-detail .detail-content {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: white;
  line-height: 1.8;
  opacity: 0.92;
}

.robin-card-detail .detail-content p {
  margin-bottom: 1rem;
}

.robin-card-detail .detail-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.robin-card-detail .detail-content ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.robin-card-detail .detail-content ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.7);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--muted-plum);
  font-weight: bold;
}

/* Roadmap */
.roadmap-item {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
}

.roadmap-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

.roadmap-badge.active {
  background: var(--muted-plum);
  color: white;
}

.roadmap-badge.next {
  background: var(--soft-lilac);
  color: var(--muted-plum);
}

.roadmap-badge.soon {
  background: var(--soft-sage);
  color: var(--deep-charcoal);
}

.roadmap-badge.future {
  background: var(--stone);
  color: var(--deep-charcoal);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 60;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .nav-link {
  font-size: 1.25rem;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-charcoal);
  margin: 5px 0;
  transition: all 0.3s;
}

/* Contact cards */
.contact-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-card a {
  color: var(--muted-plum);
  text-decoration: none;
  font-weight: 600;
}

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

/* Footer */
.site-footer {
  background: var(--deep-charcoal);
  color: rgba(255,255,255,0.7);
  padding: 4rem 1rem 2rem;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: white; }

/* Stats bar (Nobody Keeping Count) */
.count-stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .desktop-nav { display: none !important; }
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* Image rotation classes */
.rotate-slight-right { transform: rotate(2deg); }
.rotate-slight-left { transform: rotate(-2deg); }

/* Investor page responsive grids */
@media (min-width: 769px) {
  .investor-stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .investor-market-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .employers-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
