:root {
  --purple: #630ed4;
  --purple-hover: #520bb0;
  --purple-dark: #2a0360;
  --purple-soft: #f3ebff;
  --night: #1e1b24;
  --text: #4a4455;
  --muted: #9ca3af;
  --bg: #faf9fc;
  --card: #ffffff;
  --gold: #c9a227;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(42, 3, 96, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 10% -10%, #ede4ff 0%, transparent 55%),
    linear-gradient(180deg, #f4efff 0%, var(--bg) 280px);
  color: var(--night);
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font-family: inherit;
}

.stage {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 16px;
  display: grid;
  gap: 36px;
  align-items: center;
}

.intro .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.intro .brand img {
  border-radius: 10px;
}

.eyebrow {
  margin: 22px 0 8px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead,
.hint {
  color: var(--text);
  line-height: 1.55;
}

.lead {
  margin: 0 0 20px;
  max-width: 26rem;
}

.hint {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 18px rgba(99, 14, 212, 0.28);
}

.btn-primary:hover {
  background: var(--purple-hover);
}

.btn-ghost {
  background: var(--purple-soft);
  color: var(--purple);
}

.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone {
  width: min(390px, 100%);
  height: min(640px, calc(100vh - 200px));
  min-height: 520px;
  background: var(--bg);
  border-radius: 36px;
  box-shadow: var(--shadow), 0 0 0 10px #2a0360;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.appbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 14px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-hover));
}

.hello {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.app-name {
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.app-name img {
  border-radius: 5px;
}

.appbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn,
.clubs-chip,
.tab,
.chip,
.event-card,
.row,
.cat,
.stat {
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fff;
  display: grid;
  place-items: center;
}

.icon-btn svg,
.tab svg,
.clubs-chip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clubs-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.screen {
  flex: 1;
  overflow: auto;
  padding: 14px 14px 88px;
}

.chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(30, 27, 36, 0.06);
}

.chip.is-on {
  background: var(--purple-soft);
  color: var(--purple);
}

.event-card,
.row,
.cat,
.profile-card {
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(42, 3, 96, 0.06);
}

.event-card h3,
.row strong,
.cat strong {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.meta,
.row span,
.cat span {
  color: var(--text);
  font-size: 0.78rem;
}

.event-card .join {
  margin-top: 10px;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.search-fake {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  border: none;
  box-shadow: 0 8px 20px rgba(42, 3, 96, 0.06);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 800;
  flex-shrink: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cover {
  height: 92px;
  margin: -14px -14px 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, var(--purple), #9d4edd);
}

.photo {
  width: 88px;
  height: 88px;
  margin: -44px auto 8px;
  border-radius: 999px;
  border: 6px solid #fff;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
}

.profile-card {
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.stat {
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.stat b {
  display: block;
  font-size: 1.05rem;
}

.stat small {
  font-size: 0.68rem;
  font-weight: 700;
}

.fab {
  position: absolute;
  right: 18px;
  bottom: 86px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--purple);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(99, 14, 212, 0.35);
  z-index: 3;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 68px;
  background: #fff;
  border-top: 1px solid #efe8f8;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
}

.tab.is-on {
  color: var(--purple);
}

.signup {
  width: min(560px, calc(100% - 32px));
  margin: 12px auto 24px;
}

.signup-card,
.footer {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.signup-card h2 {
  margin: 0 0 6px;
}

.signup-card p {
  margin: 0 0 16px;
  color: var(--text);
}

.signup-card label {
  display: block;
  margin: 10px 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
}

.signup-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e8dff6;
  background: var(--bg);
}

.signup-card .btn-primary {
  width: 100%;
  margin-top: 4px;
}

.footer {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto 32px;
  text-align: center;
}

.footer p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.85rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}

.caption {
  width: min(390px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.caption-kicker {
  margin: 0 0 4px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.caption h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.caption p:last-child {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (min-width: 860px) {
  .stage {
    grid-template-columns: 1fr auto;
    padding-top: 48px;
  }
}

@media (max-width: 859px) {
  .intro {
    text-align: center;
  }

  .intro .brand,
  .intro-actions {
    justify-content: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .phone {
    height: min(640px, calc(100vh - 180px));
  }
}
