:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --paper: #ffffff;
  --soft: #f5f5f7;
  --panel: #fbfbfd;
  --blue: #0066cc;
  --blue-hover: #004f9f;
  --danger: #b42318;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 46px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(251, 251, 253, 0.78);
  border-bottom: 1px solid rgba(210, 210, 215, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #1d1d1f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav button,
.ghost,
.primary,
.link-button,
.icon-button {
  border: 0;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.nav button {
  padding: 8px 12px;
  color: rgba(29, 29, 31, 0.76);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.nav button.active,
.nav button:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.actions {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px 4px 4px;
  border: 1px solid rgba(210, 210, 215, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.avatar-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.avatar small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.primary {
  padding: 8px 15px;
  color: white;
  background: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.primary:hover {
  background: var(--blue-hover);
}

.ghost {
  padding: 8px 15px;
  color: var(--blue);
  background: transparent;
  font-size: 17px;
  font-weight: 500;
}

.ghost:hover,
.link-button:hover {
  color: var(--blue-hover);
}

.link-button {
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-size: 21px;
  font-weight: 500;
}

.icon-button {
  display: none;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
  font-size: 18px;
}

.page {
  padding: 0 0 44px;
}

.hero {
  display: grid;
  gap: 32px;
  min-height: calc(100vh - 46px);
  padding: clamp(54px, 8vw, 90px) clamp(18px, 5vw, 72px) 28px;
  text-align: center;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--ink);
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.22;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
}

.hero-stage {
  position: relative;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.hero-photo {
  min-height: clamp(320px, 46vw, 560px);
  border-radius: 28px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

.hero-photo-main {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.42)),
    url("./assets/hero-campus.svg");
}

.hero-note {
  position: absolute;
  right: 28px;
  bottom: 28px;
  min-width: 230px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  color: white;
  background: rgba(29, 29, 31, 0.56);
  text-align: left;
  backdrop-filter: blur(18px);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  font-size: 26px;
  font-weight: 650;
}

.hero-note span {
  margin-top: 4px;
  opacity: 0.78;
}

.home-band,
.home-split,
.quick-row {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 0 clamp(18px, 4vw, 36px);
}

.home-band {
  margin-top: 28px;
}

.band-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #86868b;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.band-copy h2,
.feature-panel h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.06;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 14px;
  margin-top: 14px;
}

.feature-panel {
  min-height: 430px;
  padding: 30px;
  border-radius: 24px;
  background: var(--panel);
}

.image-panel {
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  background-position: center;
  background-size: cover;
}

.community-image {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.58)),
    url("./assets/community.svg");
}

.community-image .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.mini-feed {
  display: grid;
  gap: 12px;
}

.mini-feed .post {
  padding: 20px;
  background: white;
}

.mini-feed .post h3 {
  font-size: 24px;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.quick-action {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
}

.quick-action:hover {
  background: #fff;
}

.quick-action strong {
  font-size: 24px;
  font-weight: 650;
}

.quick-action span {
  color: var(--muted);
}

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at 18% 18%, rgba(10, 132, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(255, 159, 10, 0.18), transparent 30%),
    linear-gradient(180deg, #fff, var(--soft));
}

.login-art {
  display: contents;
}

.login-photo {
  width: min(100%, 760px);
  min-height: 220px;
  margin: 0 auto 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.22)),
    url("./assets/login-campus.svg") center/cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

.login-art .mark {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  font-size: 13px;
}

.login-art h1 {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.login-art p {
  max-width: 620px;
  margin: 14px auto 34px;
  color: var(--muted);
  text-align: center;
  font-size: 21px;
  line-height: 1.35;
}

.login-panel {
  width: min(100%, 440px);
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

.login-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 650;
  text-align: center;
}

.login-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
  background: rgba(255, 255, 255, 0.9);
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.14);
}

.error {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 82px) clamp(18px, 4vw, 36px) 26px;
}

.section-head h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 36px);
}

.card,
.panel {
  border-radius: var(--radius);
  background: var(--panel);
}

.card {
  overflow: hidden;
}

.thumb {
  display: block;
  min-height: 190px;
  background: #ececf0;
}

.thumb img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  font-weight: 650;
}

.card-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.meta,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: #e8e8ed;
  font-size: 12px;
  font-weight: 600;
}

.feed {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 36px);
}

.post {
  padding: 26px;
}

.post h3 {
  margin: 13px 0 9px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 650;
  line-height: 1.1;
}

.post p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.two-col {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 36px);
}

.panel {
  padding: 24px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.stats {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 36px);
}

.stat {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 650;
}

.stat span {
  color: var(--muted);
}

.empty {
  padding: 42px;
  color: var(--muted);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.mobile-only {
  display: none;
}

@media (max-width: 1060px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .home-split,
  .quick-row,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    justify-content: space-between;
  }

  .brand {
    position: static;
  }

  .actions {
    position: static;
  }

  .nav {
    position: absolute;
    top: 47px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(251, 251, 253, 0.96);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
  }

  .nav.open {
    display: flex;
  }

  .nav button {
    text-align: left;
  }

  .icon-button,
  .mobile-only {
    display: inline-grid;
  }

  .actions .primary,
  .actions .avatar {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-note {
    position: static;
    margin-top: 12px;
    color: var(--ink);
    background: var(--panel);
  }

  .hero-note span {
    color: var(--muted);
  }
}
