/* LYVR — marketing/info site */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --ink: #16202c;
  --muted: #5b6b7c;
  --line: #dbe3ec;
  --brand: #2b6ff0;
  --brand-teal: #0d9488;
  --brand-gradient: linear-gradient(135deg, #4e8cfb 0%, #1e97c4 55%, #0fae9c 100%);
  --navy: #0a2540;
  --shadow: 0 1px 2px rgba(16, 32, 44, .06), 0 8px 24px rgba(16, 32, 44, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.brand-word {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  margin: 0;
  color: var(--ink);
}
.site-nav { display: flex; gap: 2px; margin-left: 8px; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--bg); color: var(--ink); }
.nav-link.active { color: var(--brand); background: #eaf1ff; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 111, 240, .30);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.topbar .btn { margin-left: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 24px 64px;
  background: linear-gradient(160deg, #f3f6fb 0%, #eef2f7 55%, #e3eefc 100%);
}
.hero-blob {
  position: absolute;
  top: -220px;
  right: -220px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: var(--brand-gradient);
  opacity: .14;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-teal);
  background: #e4fbf5;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin: 0 0 18px;
}
h1 .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------- sections ---------- */
section { padding: 72px 24px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ads gallery */
.ads-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ads-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.ads-gallery::-webkit-scrollbar { height: 8px; }
.ads-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.ads-gallery img {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(78vw, 280px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* final CTA */
.cta {
  background: linear-gradient(150deg, #0a2540 0%, #123a63 45%, #0d9488 140%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  max-width: 1032px;
  margin: 0 auto 72px;
  padding: 64px 24px;
}
.cta h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin: 0 0 14px; }
.cta p { color: rgba(255, 255, 255, .82); font-size: 17px; margin: 0 0 30px; }
.cta .btn-primary { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* footer */
footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--muted);
  font-size: 13.5px;
}
footer .foot-brand { font-weight: 700; letter-spacing: 2px; color: var(--ink); }

/* ---------- simple page head (Contact / News / Developers) ---------- */
.page-head { padding: 64px 24px 24px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0; letter-spacing: -.3px; }

/* ---------- contact form ---------- */
.contact-section { max-width: 560px; margin: 0 auto; padding: 0 24px 96px; }
.required-note { font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.req { color: #c62828; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 7px; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: flex-start; margin-top: 6px; }
.sent-note { text-align: center; font-size: 17px; color: var(--brand-teal); font-weight: 700; padding: 48px 0; }

/* ---------- placeholder pages (News) ---------- */
.placeholder { max-width: 520px; margin: 0 auto; padding: 96px 24px 160px; text-align: center; color: var(--muted); }
.placeholder h1 { color: var(--ink); font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 0 0 12px; }

/* ---------- developer log in ---------- */
.dev-login-section { display: flex; justify-content: center; padding: 96px 24px 160px; }
.dev-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.dev-login-card h1 { font-size: clamp(22px, 3.5vw, 26px); font-weight: 800; margin: 0 0 24px; text-align: center; }
.dev-login-form { display: flex; flex-direction: column; gap: 18px; }
.dev-login-form label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 7px; }
.dev-login-form input {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.dev-login-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.dev-login-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.dev-login-actions .btn { padding: 10px 16px; font-size: 13.5px; }
.dev-login-error { color: #c62828; font-size: 13.5px; font-weight: 600; margin: 0; }
.dev-welcome { text-align: center; font-size: 17px; font-weight: 700; color: var(--brand-teal); margin: 0; }

/* ---------- developer dashboard ---------- */
.dev-dashboard { padding: 56px 24px 96px; }
.dev-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dev-avatar svg { width: 34px; height: 34px; }
.dev-greeting { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 40px; }
.dev-greeting-text h1 { font-size: clamp(22px, 3.5vw, 28px); font-weight: 800; margin: 0 0 4px; }
.dev-greeting-text h1 span:first-child {
  background: #eaf1ff;
  color: var(--brand);
  padding: 2px 10px;
  border-radius: 999px;
}
.dev-title { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.dev-edit-link {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.dev-logout {
  margin-left: auto;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.dev-logout:hover { color: var(--ink); }

.dev-panels { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.dev-col { display: flex; flex-direction: column; gap: 24px; }
.dev-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.dev-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dev-panel-head h2 { font-size: 16px; font-weight: 800; margin: 0; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.dev-search {
  font: inherit;
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  max-width: 140px;
}
.dev-search:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.dev-task-list, .dev-directory-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dev-task-item, .dev-directory-item {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
}
.dev-task-name, .dev-directory-name { font-weight: 700; }
.dev-task-due, .dev-task-people, .dev-directory-dept, .dev-directory-contact { color: var(--muted); align-self: center; }
.dev-directory-sub { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.dev-directory-empty { color: var(--muted); font-size: 13.5px; padding: 8px 0; }

.dev-panel-news { min-height: 320px; }
.dev-news-list { display: flex; flex-direction: column; gap: 14px; }
.dev-news-card {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  padding: 12px;
}

@media (max-width: 760px) {
  .dev-panels { grid-template-columns: 1fr; }
  .dev-task-item, .dev-directory-item { grid-template-columns: 1fr; gap: 4px; }
  .dev-greeting { flex-wrap: wrap; }
}

/* ---------- new post page ---------- */
.new-post-card { max-width: 480px; }
.new-post-author { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.new-post-name { font-weight: 700; font-size: 14.5px; }
.new-post-title { color: var(--muted); font-size: 13px; }
.new-post-photo-btn { display: inline-flex; align-items: center; cursor: pointer; }

@media (max-width: 600px) {
  .topbar-inner { gap: 6px; }
  .brand-word { font-size: 15px; letter-spacing: 3px; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  section { padding: 56px 20px; }
}
