/* 
  OpenMReye V2 CSS
  Style: Minimalist Elegance (High-End Tech)
*/

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* This stops the zoomed-out bug! */
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
  /* Ultra-clean palette */
  --bg-page: #fbfbfd;
  --bg-surface: #ffffff;
  --text-dark: #1d1d1f;
  --text-body: #515154;
  --text-muted: #86868b;
  
  --brand-blue: #0066cc;
  --gradient-blue: linear-gradient(135deg, #007aff, #0051a8);
  --gradient-purple: linear-gradient(135deg, #5e5ce6, #3b39ad);
  --gradient-teal: linear-gradient(135deg, #32ade6, #1f7fa8);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Shadows & Layout */
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.08);
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  word-wrap: break-word;
  word-break: break-word;
}

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

.container-sm {
  max-width: 800px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.nav-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* HERO */
.hero {
  padding: 8rem 2rem 6rem;
  text-align: left;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 102, 204, 0.1);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero-title span {
  color: var(--brand-blue);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 0 4rem 0;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
  width: 100%;
}

.media-frame {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  display: inline-block;
  max-width: 100%;
}

.presentation-gif {
  border-radius: var(--radius-lg);
  max-width: 100%;
  display: block;
}

/* MISSION */
.mission-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  text-align: left;
}

.section-heading {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.large-body {
  font-size: 1.25rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ECOSYSTEM BENTO GRID */
.ecosystem-section {
  padding: 4rem 0 2rem 0;
}

.section-header-left {
  margin-bottom: 3rem;
}

.section-header-left p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.bento-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2rem 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.eye-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.gradient-blue { background: var(--gradient-blue); }
.gradient-purple { background: var(--gradient-purple); }
.gradient-teal { background: var(--gradient-teal); }

.card-dark {
  background: #1d1d1f;
  color: white;
}

.card-dark .monochrome {
  background: rgba(255,255,255,0.1);
  color: white;
}

.bento-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.status-badge {
  background: rgba(0,0,0,0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* CHIPS (BUTTONS) */
.chip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.chip {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #f5f5f7;
  color: var(--text-dark);
  transition: var(--transition);
}

.chip:hover {
  background: #e8e8ed;
}

.chip-primary {
  background: var(--text-dark);
  color: white;
}

.chip-primary:hover {
  background: #333336;
}

.chip-outline {
  background: transparent;
  border: 1px solid #d2d2d7;
}

.chip-outline:hover {
  border-color: var(--text-dark);
  background: transparent;
}

.resource-link {
  font-weight: 600;
  color: white;
  margin-top: auto;
  display: inline-block;
}

/* INFO SECTION (Refs & Awards) */
.info-section {
  padding: 2rem 0 8rem;
  background: var(--bg-surface);
}

.info-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
}

.section-heading-small {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.clean-list {
  list-style: none;
}

.clean-list li {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.list-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 8px;
}

.list-content {
  font-size: 1.05rem;
}

.list-content strong {
  color: var(--text-dark);
}

.authorship-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.text-arrow-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--brand-blue);
  font-weight: 500;
  font-size: 0.95rem;
}

.text-arrow-link::after {
  content: " →";
  transition: padding 0.2s;
}

.text-arrow-link:hover::after {
  padding-left: 5px;
}

/* AWARD CARD */
.award-card {
  background: #fbfbfd;
  padding: 3rem;
  border-radius: var(--radius-xl);
  text-align: left;
}

.award-label {
  color: var(--brand-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.award-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.award-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.award-img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

/* FOOTER */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.5rem;
}

.footer-logo {
  height: 32px;
  filter: grayscale(100%) opacity(0.5);
  transition: var(--transition);
}

.footer-logo:hover {
  filter: none;
}

.footer-github {
  font-weight: 500;
  color: var(--text-dark);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3rem;
  }
  .bento-card {
    padding: 1.5rem;
  }
}
