@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --navy: #0d1b2e;
  --navy-mid: #122038;
  --navy-light: #1a2f4e;
  --gold: #f5c518;
  --gold-dim: #c9a014;
  --gold-pale: #fdf0b0;
  --white: #f8f8f2;
  --gray: #8a9bb0;
  --gray-light: #c4cdd8;
  --card-bg: #162235;
  --border: rgba(245, 197, 24, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-pale); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(13, 27, 46, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo .owl-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--gray-light); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 0.5rem 1.25rem; border-radius: 6px;
  font-weight: 700 !important; font-size: 0.85rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-pale) !important; }

/* ── DROPDOWN ── */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0;
  min-width: 160px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li { border: none !important; }
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-light);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}
.dropdown-menu a:hover { color: var(--gold); background: rgba(245,197,24,0.05); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 3rem 5rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(245,197,24,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(245,197,24,0.04) 0%, transparent 50%);
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(245,197,24,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,197,24,0.1); border: 1px solid var(--border);
  color: var(--gold); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before { content: "●"; font-size: 0.5rem; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 .accent { color: var(--gold); display: block; }

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.15rem; font-weight: 300;
  color: var(--gray-light); max-width: 520px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--gold-pale); color: var(--navy); transform: translateY(-2px); }

.btn-secondary {
  background: transparent; color: var(--white);
  padding: 0.85rem 2rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-owl {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  z-index: 1; opacity: 0.12; font-size: 22rem; line-height: 1;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

/* ── SECTIONS ── */
section { padding: 6rem 3rem; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 1rem;
}

.section-intro {
  color: var(--gray-light); font-size: 1.05rem;
  max-width: 540px; line-height: 1.7; margin-bottom: 3.5rem;
}

/* ── WHY / PILLARS ── */
.why { background: var(--navy-mid); }

.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}

.pillar {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(245,197,24,0.4); }

.pillar-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(245,197,24,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}

.pillar h3 {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; margin-bottom: 0.5rem;
}
.pillar p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* ── PROJECTS ── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(245,197,24,0.4); }

.project-card-header {
  padding: 1.75rem 1.75rem 1rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}

.project-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(245,197,24,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}

.project-status {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 100px;
}
.status-active { background: rgba(74,222,128,0.12); color: #4ade80; }
.status-building { background: rgba(245,197,24,0.12); color: var(--gold); }
.status-planned { background: rgba(138,155,176,0.15); color: var(--gray); }
.status-beta { background: rgba(139,92,246,0.12); color: #a78bfa; }

.project-card-body { padding: 0 1.75rem 1.75rem; flex: 1; }
.project-card-body h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 700; margin-bottom: 0.5rem;
}
.project-card-body p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

.project-tags {
  padding: 1rem 1.75rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.tag {
  font-size: 0.75rem; color: var(--gray-light);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  padding: 0.25rem 0.65rem; border-radius: 4px;
}

.project-card-footer {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 1rem;
}
.project-card-footer a {
  font-size: 0.85rem; font-weight: 600;
  color: var(--gray-light);
  display: flex; align-items: center; gap: 0.35rem;
  transition: color 0.2s;
}
.project-card-footer a:hover { color: var(--gold); }

/* ── HOW IT WORKS ── */
.how { background: var(--navy-mid); }

.sprint-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; margin-top: 3rem; position: relative;
}

.sprint-steps::before {
  content: '';
  position: absolute; top: 2.5rem; left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--gold-dim), var(--border), transparent);
}

.step {
  text-align: center; padding: 2rem 1.5rem; position: relative;
}

.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 800;
  color: var(--gold); margin: 0 auto 1.25rem;
  position: relative; z-index: 1;
}

.step h3 {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 700; margin-bottom: 0.5rem;
}
.step p { color: var(--gray); font-size: 0.85rem; line-height: 1.5; }

/* ── JOIN ── */
.join-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
  position: relative; overflow: hidden;
}

.join-box::before {
  content: '🦉';
  position: absolute; right: -2rem; bottom: -2rem;
  font-size: 12rem; opacity: 0.05; pointer-events: none;
}

.join-box h2 { font-size: 2.5rem; }
.join-box p { color: var(--gray-light); margin-top: 1rem; line-height: 1.7; }

.join-details h3 {
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}

.req-list { list-style: none; }
.req-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--gray-light);
}
.req-list li::before {
  content: '✓'; color: var(--gold); font-weight: 700;
  flex-shrink: 0; margin-top: 0.05rem;
}

.join-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--navy-mid); border-top: 1px solid var(--border);
  padding: 3rem; text-align: center;
  color: var(--gray); font-size: 0.85rem;
}
footer .footer-logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--white); margin-bottom: 0.5rem;
}
footer .footer-logo span { color: var(--gold); }
footer p { margin-top: 0.5rem; }
footer a { color: var(--gray); }
footer a:hover { color: var(--gold); }

/* PROFESSOR X-OWL */
.prof-section { background: var(--navy); }
.prof-inner { display: grid; grid-template-columns: 420px 1fr; gap: 5rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.prof-inner--flipped { grid-template-columns: 1fr 420px; }
.prof-img-wrap { position: relative; }
.prof-img { border-radius: 16px; border: 2px solid var(--border); width: 100%; }
.prof-img-glow { position: absolute; inset: -1px; border-radius: 16px; background: linear-gradient(135deg, rgba(245,197,24,0.15), transparent 60%); pointer-events: none; }
.prof-tagline { color: var(--gold); font-size: 1rem; display: block; margin-bottom: 1.5rem; }
.prof-bio { color: var(--gray-light); font-size: 0.95rem; line-height: 1.85; margin-bottom: 0.9rem; }
.prof-bio strong { color: var(--white); }
.prof-quote { margin-top: 1.8rem; padding: 1.4rem 1.6rem; background: var(--card-bg); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; font-style: italic; color: var(--gray-light); font-size: 0.92rem; line-height: 1.7; }
.prof-quote cite { display: block; margin-top: 0.7rem; color: var(--gold); font-style: normal; font-size: 0.78rem; font-weight: 600; }

/* ── FOUNDER TEASER ── */
.founder-teaser { background: var(--navy-mid); }
.founder-teaser p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 540px;
  margin-top: 1rem;
}
.founder-teaser strong { color: var(--white); }

/* GROUP PHOTO */
.group-section { background: var(--navy-mid); }
.group-photo-wrap { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); max-width: 1000px; }
.group-photo { width: 100%; display: block; }
.group-photo-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.5rem; background: linear-gradient(transparent, rgba(13,27,46,0.95)); color: var(--gray-light); font-size: 0.83rem; display: flex; align-items: center; gap: 0.5rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-52%) translateX(-8px); }
}

/* ── RESPONSIVE ── */
/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger--open span:nth-child(2) { opacity: 0; }
.nav-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(13, 27, 46, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.85rem 1.5rem; font-size: 1rem; }
  section { padding: 4rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-owl { display: none; }
  .join-box { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
  .sprint-steps::before { display: none; }
  .join-box h2 { font-size: 1.75rem; }
  .prof-inner,
  .prof-inner--flipped { grid-template-columns: 1fr; gap: 2rem; }
  .prof-image-wrap { max-width: 280px; margin: 0 auto; }
  .prof-img-wrap { max-width: 280px; margin: 0 auto; }
  .nav-dropdown.open .dropdown-menu {
    display: block;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-width: unset;
  }
  .dropdown-menu a { padding: 0.85rem 1.5rem 0.85rem 2.75rem; font-size: 1rem; }
}

/* ── BLOG POST CONTENT (rendered markdown) ── */
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.01em;
  margin: 2.75rem 0 1rem;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--white); margin: 2rem 0 0.6rem;
}
.post-content p { margin-bottom: 1rem; }
.post-content ul, .post-content ol { margin: 0 0 1.1rem 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a { color: var(--gold); }
.post-content strong { color: var(--white); }

.post-content code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: #93C5FD;
  background: rgba(147,197,253,0.08);
  padding: 1px 6px; border-radius: 4px;
}
.post-content pre {
  background: #0B1120;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}
.post-content pre code {
  background: none; padding: 0;
  color: #c9d5e6; font-size: 0.8rem; line-height: 1.7;
}

.post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}
.post-content th {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.post-content td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.post-content td code { white-space: nowrap; }

.post-content blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(245,197,24,0.05);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
  color: var(--gray-light);
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
