/* ===== AI Competitiveness Lab - Single Page Stylesheet ===== */

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

:root {
  --navy:       #00295C;
  --navy-light: #1F2432;
  --navy-deep:  #001A39;
  --navy-dark:  #101219;
  --crimson:    #C41E3A;
  --crimson-dark: #9E1830;
  --gold:       #D4A843;
  --sky:        #0F809A;
  --sky-light:  #5F7698;
  --white:      #FFFFFF;
  --off-white:  #E3ECF6;
  --gray-100:   #E3ECF6;
  --gray-200:   #D5D9E2;
  --gray-500:   #444444;
  --gray-700:   #2D2D2D;
  --gray-900:   #101219;

  --gradient-hero: linear-gradient(135deg, var(--navy) 0%, #1A3A6A 50%, var(--navy-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--crimson) 0%, var(--gold) 100%);
  --gradient-text: linear-gradient(135deg, var(--sky-light) 0%, var(--crimson) 100%);

  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --section-pad: clamp(3rem, 8vw, 7rem);
  --container-max: 1200px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.section-subheading {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gray-500);
  max-width: 680px;
  line-height: 1.6;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--crimson-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.btn-dark-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-dark-outline:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 41, 92, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-institution {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-uoft-crest img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-munk-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.nav-munk-label:hover {
  color: rgba(255,255,255,0.8);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.15em;
  line-height: 1;
}

.nav-logo .logo-icon .chev-1 { color: #3D4D9A; }
.nav-logo .logo-icon .chev-2 { color: #ACD9DA; }
.nav-logo .logo-icon .chev-3 { color: #3D4D9A; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy-dark) 100%);
  padding: calc(54px + var(--section-pad) - 40px) 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(74, 144, 217, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(196, 30, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.watermark-leaf {
  width: 100%;
  height: 100%;
  color: currentColor;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-light);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-authors {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sky-light);
  margin-bottom: 0.4rem;
}

.hero-affiliation {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cover {
  flex: 0 0 auto;
}

.hero-cover a {
  display: block;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-radius: 6px;
}

.hero-cover a:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-cover img {
  width: 480px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s var(--ease);
}

.hero-cover a:hover img {
  box-shadow: none;
}

/* --- Sections --- */
.section {
  padding: var(--section-pad) 0;
}

/* --- Key Findings Grid --- */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.finding-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.finding-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.finding-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.1);
  transform: translateY(-4px);
}

.finding-card:hover::before {
  transform: scaleX(1);
}

.finding-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

.finding-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.finding-card p {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* --- Authors Section --- */
.authors-section {
  background: var(--off-white);
}

.author-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border: 4px solid var(--sky-light);
}

.author-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.author-card .author-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.author-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--gray-700);
  text-align: left;
}

/* --- About Section --- */
.about-section {
  background: var(--off-white);
  border-top: 4px solid var(--sky-light);
  position: relative;
  overflow: hidden;
}

.about-watermark {
  position: absolute;
  top: 50%;
  right: 2%;
  width: 400px;
  height: 400px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  color: rgba(11, 29, 58, 0.05);
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-text {
  max-width: 800px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.about-text p + p {
  margin-top: 1rem;
}

/* --- Acknowledgments Section --- */
.ack-section {
  background: var(--white);
}

.ack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.ack-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.ack-group ul li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-700);
  padding-left: 1.1rem;
  position: relative;
}

.ack-group ul li::before {
  content: "\00BB";
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-weight: 700;
}

.ack-funders {
  margin-top: 3.5rem;
}

.ack-funders h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.funder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.funder-list a,
.about-section a {
  text-decoration: underline;
}

.ack-note {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.ack-note a {
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
}

.ack-note a:hover {
  text-decoration: underline;
}

/* --- Email Signup Section --- */
.signup-section {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-pad) 0;
}

.signup-section .section-label {
  color: var(--sky-light);
}

.signup-section .section-heading {
  color: var(--white);
}

.signup-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}

.signup-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--sky-light);
}

.signup-form button {
  white-space: nowrap;
}

.signup-thank-you {
  display: none;
  background: rgba(107, 171, 231, 0.15);
  border: 2px solid var(--sky-light);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  max-width: 520px;
  font-size: 1rem;
  color: var(--sky-light);
  font-weight: 600;
}

.signup-privacy-notice {
  margin-top: 1rem;
  max-width: 520px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.signup-privacy-notice a {
  color: var(--sky-light);
  text-decoration: underline;
}

.signup-privacy-notice a:hover {
  color: var(--white);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  padding: 3rem 0 2rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-brand img {
  height: 56px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.6;
}

.footer-contact {
  text-align: right;
  line-height: 1.7;
}

.footer-contact strong {
  color: rgba(255,255,255,0.8);
}

.footer-contact a {
  color: var(--sky-light);
  transition: color 0.2s var(--ease);
}
.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 1150px) {
  .nav-institution {
    display: none;
  }
}

@media (max-width: 968px) {
  .about-watermark {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-cover {
    order: -1;
  }

  .hero-cover img {
    width: 300px;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .author-cards {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .nav-links {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav-links,
  .nav-links.open {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .signup-form {
    flex-direction: column;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s var(--ease) forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }
