/* ═══════════════════════════════════════════════
   LILA Lab — Brand Styles
   Palette: Teal #006D77, Gold #E29578, Sand #FFDDD2
   Fonts: Inter (UI), Libre Baskerville (accent)
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2D3748;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #006D77; text-decoration: none; transition: color 0.2s; }
a:hover { color: #E29578; }
img { max-width: 100%; height: auto; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.section-sub {
  text-align: center;
  font-size: 1.1rem;
  color: #4A5568;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

/* ── Section Layout ── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-light { background: #FFFFFF; }
.section-dark { background: #F7FAFC; }
.section-accent { background: #006D77; color: #FFFFFF; }
.section-accent .section-title,
.section-accent .section-sub { color: #FFFFFF; }
.section-accent a { color: #FFDDD2; }
.section-accent a:hover { color: #FFFFFF; }
.section-quote {
  background: linear-gradient(135deg, #FFDDD2 0%, #FEF0E8 50%, #FFE4D6 100%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.section-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 300px at 10% 30%, rgba(0,109,119,0.04) 0%, transparent 70%),
    radial-gradient(circle 400px at 90% 70%, rgba(226,149,120,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}
.nav-logo { display: flex; align-items: baseline; gap: 2px; }
.nav-logo-mark {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #006D77;
  letter-spacing: 1px;
}
.nav-logo-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: #E29578;
  letter-spacing: 1px;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4A5568;
}
.nav-links a:hover { color: #006D77; }
.nav-gh {
  background: #006D77;
  color: #FFFFFF !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(135deg, #006D77 0%, #0A8A96 50%, #0F9BA8 100%);
  color: #FFFFFF;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(226,149,120,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,221,210,0.1) 0%, transparent 50%),
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.08) 0%, transparent 0%),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.08) 0%, transparent 0%),
    radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.08) 0%, transparent 0%),
    radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.08) 0%, transparent 0%),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.08) 0%, transparent 0%),
    radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.08) 0%, transparent 0%);
  background-size: 200px 200px;
  pointer-events: none;
}
.hero-content { position: relative; text-align: center; max-width: 800px; }
.hero-title { margin-bottom: 0.5rem; }
.hero-eni {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 4px;
}
.hero-sub {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: #FFDDD2;
  letter-spacing: 8px;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin: 1rem 0;
  line-height: 1.5;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: #FFDDD2;
  margin: 0.5rem 0 0.25rem;
  line-height: 1.5;
  letter-spacing: 1px;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0.75rem auto 2rem;
  line-height: 1.7;
}
.hero-desc strong { color: #FFFFFF; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: #E29578;
  color: #FFFFFF;
  border-color: #E29578;
}
.btn-primary:hover { background: #D48364; border-color: #D48364; color: #FFFFFF; }
.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  background: #E29578;
  color: #FFFFFF;
}
.btn-small:hover { background: #D48364; color: #FFFFFF; }

/* ── XENI Explainer Grid ── */
.xeni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.xeni-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.2s;
}
.xeni-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.xeni-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.xeni-label { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: #006D77; }
.xeni-desc { font-size: 0.9rem; color: #4A5568; line-height: 1.5; }

/* ── XENI Naming System ── */
.naming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.naming-card {
  padding: 2rem;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.2s;
}
.naming-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.naming-level {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #006D77;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}
.naming-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2D3748;
}
.naming-desc {
  font-size: 0.9rem;
  color: #4A5568;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.naming-pattern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.naming-example {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #F7FAFC;
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
}
.naming-letter {
  font-weight: 700;
  color: #006D77;
}
.naming-eni {
  font-weight: 700;
  color: #006D77;
}
.naming-domain {
  font-weight: 700;
  color: #E29578;
  margin-left: 0.25rem;
}
.naming-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #718096;
  margin-left: auto;
}
.naming-cta {
  font-size: 0.85rem;
  color: #E29578;
  font-weight: 600;
  margin-top: 1rem;
}
.naming-summary {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: #FFFAF7;
  border: 1px solid #E29578;
}
.naming-summary p {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.6;
}
.naming-summary strong { color: #006D77; }
.naming-summary em { color: #E29578; font-style: normal; }

/* ── Pipeline Showcase ── */
.pipeline-showcase { display: flex; flex-direction: column; gap: 1rem; }
.pipeline-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
}
.pipeline-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.pipeline-card.active { border-left: 4px solid #006D77; }
.pipeline-card.future { border-left: 4px solid #CBD5E0; }
.pipeline-card.yourlang {
  border-left: 4px solid #E29578;
  background: #FFFAF7;
}
.pipeline-letter {
  font-family: 'Libre Baskerville', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #006D77;
  min-width: 60px;
  text-align: center;
  line-height: 1;
}
.pipeline-letter-your { color: #E29578; }
.pipeline-info { flex: 1; }
.pipeline-info h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.pipeline-lang { font-weight: 400; color: #718096; }
.pipeline-status { margin-bottom: 0.5rem; }
.pipeline-code {
  margin-top: 0.75rem;
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0.75rem;
  overflow-x: auto;
}
.pipeline-code code { font-size: 0.8rem; color: #2D3748; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-active { background: #C6F6D5; color: #22543D; }
.badge-done { background: #C6F6D5; color: #22543D; }
.badge-submitted { background: #BEE3F8; color: #2A4365; }
.badge-future { background: #FEFCBF; color: #744210; }
.badge-planned { background: #E9D8FD; color: #44337A; }
.badge-proposed { background: #FED7D7; color: #742A2A; }
.badge-yourlang { background: #FEEBC8; color: #7B341E; }

/* ── Research Papers Grid ── */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.paper-card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  transition: box-shadow 0.2s;
}
.paper-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.paper-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  color: #006D77;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.paper-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.paper-card p { font-size: 0.85rem; color: #4A5568; margin-bottom: 0.75rem; }
.research-cta, .contribute-cta { text-align: center; margin-top: 1.5rem; }
.research-cta .btn-outline { border-color: #006D77; color: #006D77; }
.research-cta .btn-outline:hover { background: #006D77; color: #FFFFFF; }

/* ── Contribution Grid ── */
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contrib-card {
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.contrib-card:hover { background: rgba(255,255,255,0.18); }
.contrib-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.contrib-card h3 { font-size: 1rem; margin-bottom: 0.3rem; color: #FFDDD2; }
.contrib-card p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.contribute-cta .btn-primary { background: #FFFFFF; color: #006D77; border-color: #FFFFFF; }
.contribute-cta .btn-primary:hover { background: #FFDDD2; border-color: #FFDDD2; }

/* ── Ethos Quote ── */
.ethos-block { max-width: 720px; margin: 0 auto; text-align: center; }
.ethos-text {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: #2D3748;
  line-height: 1.7;
  quotes: "“" "”" "‘" "’";
}
.ethos-text::before { content: "“"; font-size: 2em; color: #006D77; line-height: 0; vertical-align: -0.3em; margin-right: 0.1em; }
.ethos-text::after { content: "”"; font-size: 2em; color: #006D77; line-height: 0; vertical-align: -0.1em; margin-left: 0.1em; }
.ethos-attribution { margin-top: 1rem; font-size: 0.9rem; color: #718096; }

/* ── Channels Grid ── */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.channel-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
  position: relative;
}
.channel-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #006D77;
  color: #2D3748;
}
.channel-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.channel-name { font-weight: 600; font-size: 0.9rem; }
.channel-handle { font-size: 0.8rem; color: #718096; }
.channel-arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1rem;
  color: #CBD5E0;
  transition: transform 0.2s;
}
.channel-card:hover .channel-arrow { transform: translateX(3px); color: #006D77; }
.channel-note { text-align: center; font-size: 0.85rem; color: #718096; }
.channel-note a { font-weight: 500; }

/* ── Footer ── */
.footer {
  background: #1A202C;
  color: #A0AEC0;
  padding: 3rem 1.5rem 1.5rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #006D77, #E29578, #FFDDD2, #E29578, #006D77);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h3 {
  font-family: 'Libre Baskerville', serif;
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.85rem; }
.footer-links h4, .footer-contact h4 {
  color: #FFFFFF;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.footer-links a, .footer-contact a {
  display: block;
  color: #A0AEC0;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.footer-links a:hover, .footer-contact a:hover { color: #FFFFFF; }
.footer-bottom {
  border-top: 1px solid #2D3748;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #4A5568;
}
.footer-bottom p { margin-bottom: 0.25rem; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-gh { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
  .hero { min-height: 70vh; }
  .pipeline-card { flex-direction: column; gap: 0.75rem; }
  .pipeline-letter { text-align: left; font-size: 2rem; min-width: auto; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 1rem; }
}

@media (max-width: 480px) {
  .nav-links a:not(.nav-gh) { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
  .contrib-grid { grid-template-columns: 1fr 1fr; }
  .channels-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .naming-grid { grid-template-columns: 1fr; }
  .naming-example { flex-wrap: wrap; }
  .naming-label { margin-left: 0; margin-top: 0.25rem; }
}
