/* Harar Dev Center — public site styles.
   Monochrome system: black → white with grays in between. */

:root {
  --bg: #000;
  --bg-1: #0a0a0a;
  --bg-2: #111;
  --bg-3: #181818;
  --line: #1f1f1f;
  --line-2: #2e2e2e;
  --fg: #fafafa;
  --fg-2: #d4d4d4;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --danger: #f87171;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 12px;
  --container: 1120px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.8125rem; }
.label { font-size: 0.75rem; color: var(--dim); letter-spacing: 0.02em; margin-bottom: 12px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 10001; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; }

/* ---------- Announcement ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 20px; font-size: 0.8125rem; font-family: var(--mono);
  background: var(--fg); color: var(--bg); text-align: center;
}
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce .dot { background: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 28px; height: auto; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block; padding: 6px 12px; border-radius: 8px;
  text-decoration: none; font-size: 0.875rem; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links a.active { color: var(--fg); background: var(--bg-3); }
.nav-links .btn { margin-left: 8px; color: var(--bg); }
.nav-links .btn:hover { background: var(--fg-2); color: var(--bg); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--fg); margin: 4px auto; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--fg-2); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--dim); background: var(--bg-2); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 0.8125rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-2);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.link-arrow { display: inline-flex; gap: 6px; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.link-arrow span { transition: transform 0.15s; }
a:hover .link-arrow span, .link-arrow:hover span { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.section-head p { color: var(--muted); max-width: 440px; }
.section-head .label { margin-bottom: 8px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 112px;
}
.hero::before {
  /* grid, echoing the logo */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 24px; }
.eyebrow::before { content: '~/'; color: var(--dim); }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02;
  background: linear-gradient(180deg, #fff 30%, #8a8a8a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 24px;
}
.hero .lead { font-size: 1.0625rem; color: var(--muted); max-width: 520px; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.terminal {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 30px 80px -20px rgba(255, 255, 255, 0.06);
  overflow: hidden; min-width: 0;
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 0.8125rem; line-height: 2; color: var(--fg-2); overflow-x: auto; }
.terminal-body .row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; white-space: nowrap; }
.terminal-body .k { color: var(--dim); }
.terminal-body a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.terminal-body a:hover { text-decoration-color: var(--fg); }
.prompt { color: var(--fg); }
.prompt::before { content: '$ '; color: var(--dim); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--fg); vertical-align: -2px; animation: pulse 1.1s steps(1) infinite; }

@media (max-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about-grid .big { font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--fg-2); letter-spacing: -0.01em; }
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: 24px; }
.pillar h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.pillar h3 .mono { color: var(--dim); font-weight: 400; font-size: 0.75rem; }
.pillar p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Cards grid (courses) ---------- */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1); overflow: hidden; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-2); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.4s, transform 0.6s; }
.card:hover .card-media img { filter: grayscale(0); transform: scale(1.03); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .mono { color: var(--dim); font-size: 0.75rem; }
.card-body h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.card-body p { color: var(--muted); font-size: 0.875rem; flex: 1; }
.card-body .link-arrow { margin-top: 8px; }

/* ---------- Team ---------- */
.member { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); overflow: hidden; }
.member-photo { aspect-ratio: 1; background: var(--bg-2); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1); transition: filter 0.4s; }
.member:hover .member-photo img { filter: grayscale(0); }
.member-body { padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.member-body h3 { font-size: 1rem; font-weight: 600; }
.member-body .role { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: 2px 0 10px; }
.member-body p { font-size: 0.875rem; color: var(--muted); }
.member-links { display: flex; gap: 6px; margin-top: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.875rem;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--dim); }

/* ---------- Registration cards ---------- */
.reg-card {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.reg-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.reg-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reg-card h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.meta-list { list-style: none; display: grid; gap: 6px; color: var(--muted); }
.meta-list li { display: flex; gap: 10px; align-items: baseline; }
.meta-list i { width: 14px; color: var(--dim); }
.reg-card .link-arrow { margin-top: auto; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track button { flex: none; width: 300px; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); padding: 0; cursor: zoom-in; }
.marquee-track img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.4s; }
.marquee-track button:hover img { filter: grayscale(0); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .marquee-track button { width: 220px; } }

/* ---------- Podcast teaser ---------- */
.pod-teaser {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px;
  padding: 40px; border: 1px solid var(--line-2); border-radius: 16px; text-decoration: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg-1);
  transition: border-color 0.2s;
}
.pod-teaser:hover { border-color: var(--muted); }
.pod-mark { display: flex; align-items: center; gap: 12px; }
.keycap {
  font-family: var(--sans); font-weight: 800; letter-spacing: 0.02em; color: #fff;
  padding: 10px 18px; border: 2px solid #d9d9d9; border-radius: 8px; background: #000;
  box-shadow: 0 4px 0 #3a3a3a; text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}
.pod-mark .plus { font-size: 1.5rem; font-weight: 800; }
.pod-mark .talk { font-family: 'Alfa Slab One', Georgia, serif; font-size: 2rem; color: #ffc21a; text-shadow: 2px 2px 0 #8c1c13; }
.pod-teaser h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; margin: 6px 0 4px; }
@media (max-width: 800px) { .pod-teaser { grid-template-columns: 1fr; gap: 24px; padding: 28px; } }

/* ---------- Page header (subpages) ---------- */
.page-head { padding: 88px 0 56px; position: relative; }
.page-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 16px; }
.page-head p { color: var(--muted); max-width: 560px; font-size: 1.0625rem; }

/* ---------- Event detail ---------- */
.event { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.event h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 10px 0 20px; }
.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.kv dt { font-family: var(--mono); font-size: 0.6875rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.kv dd { color: var(--fg-2); }
.event-desc { color: var(--fg-2); margin-bottom: 24px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2); padding: 0; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.3s, transform 0.4s; }
.gallery button:hover img { filter: grayscale(0); transform: scale(1.04); }
@media (max-width: 860px) { .event { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.94); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 8px; cursor: default; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-1); color: var(--fg); font-size: 1.5rem; cursor: pointer; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field .field-label { font-size: 0.8125rem; font-weight: 500; color: var(--fg-2); }
.field .req { color: var(--dim); font-family: var(--mono); font-size: 0.75rem; margin-left: 4px; }
.input, .field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg-1); border: 1px solid var(--line-2); color: var(--fg); font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: center; font-size: 0.9375rem; color: var(--fg-2); }
.check input { width: 18px; height: 18px; accent-color: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.form-msg { font-size: 0.875rem; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); }
.form-msg.error { color: var(--danger); border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.05); }
.hp { position: absolute; left: -9999px; }

.register-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; padding-bottom: 96px; }
.register-panel { border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-1); padding: 32px; }
@media (max-width: 860px) { .register-layout { grid-template-columns: 1fr; gap: 32px; } .register-panel { padding: 22px; } }

.state { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: 16px; }
.state .big-icon { font-size: 2rem; margin-bottom: 14px; }
.state h2 { font-size: 1.375rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.state p { color: var(--muted); margin: 0 auto 24px; max-width: 420px; }

.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Coming soon ---------- */
.center-page { min-height: calc(100vh - var(--nav-h) - 220px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.center-page h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 18px 0 14px; }
.center-page p { color: var(--muted); margin-bottom: 32px; }
.center-page .actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-tag { margin-top: 12px; }
.footer-list { list-style: none; display: grid; gap: 8px; font-size: 0.875rem; }
.footer-list a { text-decoration: none; color: var(--fg-2); }
.footer-list a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer-list i { width: 18px; color: var(--dim); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; margin-top: 56px; padding-top: 20px; color: var(--dim); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
