:root {
  --bg: #15153b;
  --bg-2: #2a2458;
  --panel: rgba(68, 66, 118, 0.78);
  --panel-strong: rgba(29, 28, 69, 0.88);
  --text: #f4f6ff;
  --muted: #d2d7f7;
  --line: rgba(255, 255, 255, 0.12);
  --pink: #ff5fb6;
  --blue: #5d8dff;
  --gold: #ffca57;
  --green: #6adf88;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(18, 19, 47, 0.86), rgba(42, 36, 88, 0.92)),
    url("2.png") center/cover fixed no-repeat;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 95, 182, 0.35), transparent 18%),
    radial-gradient(circle at 8% 92%, rgba(93, 141, 255, 0.28), transparent 16%),
    linear-gradient(180deg, rgba(17, 17, 44, 0.44), rgba(24, 23, 58, 0.44));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

input,
textarea,
button {
  font: inherit;
}

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(27, 27, 61, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.brand-text strong,
h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.84rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.command-search {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.command-search input,
.stack-form input,
.stack-form textarea,
.admin-grid input,
.admin-grid textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.command-search input::placeholder,
.stack-form input::placeholder,
.admin-grid input::placeholder,
.admin-grid textarea::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.command-search button,
.button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.command-search button:hover,
.button:hover {
  transform: translateY(-2px);
}

.command-search button,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 16px 30px rgba(94, 113, 255, 0.28);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.hero-layout,
.page-stack {
  padding: 2rem 0 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.full-hero {
  grid-template-columns: 1fr;
}

.hero-card,
.panel,
.modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card,
.panel,
.modal-card {
  padding: 1.7rem;
}

.hero-main h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.page-hero.compact h1 {
  max-width: 14ch;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #ffd6ec;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-lead,
.panel p,
.hint,
.form-status,
code,
li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead {
  max-width: 60ch;
  font-size: 1rem;
}

.hero-actions,
.admin-actions-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-main-wide {
  min-height: 76vh;
  display: grid;
  align-content: center;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-line {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-strip article,
.member-card-panel,
.info-card,
.join-banner,
.login-panel,
.member-welcome {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-strip strong {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-side {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(70, 69, 118, 0.82), rgba(55, 53, 102, 0.82));
}

.soft-glow {
  position: absolute;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  filter: blur(18px);
}

.soft-glow-pink {
  top: -2rem;
  right: -1rem;
  background: rgba(255, 95, 182, 0.42);
}

.soft-glow-blue {
  left: -1rem;
  bottom: -2rem;
  background: rgba(93, 141, 255, 0.36);
}

.promise-list {
  position: relative;
  display: grid;
  gap: 1rem;
}

.promise-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promise-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.icon-chip {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  font-family: "Sora", sans-serif;
}

.blue-chip { background: #ebf0ff; color: var(--blue); }
.pink-chip { background: #ffe0f0; color: var(--pink); }
.gold-chip { background: #fff0cb; color: #b78500; }

.section-grid,
.three-columns,
.team-showcase,
.member-panels {
  display: grid;
  gap: 1.2rem;
}

.section-grid {
  grid-template-columns: 1.1fr 0.9fr;
  padding-bottom: 4rem;
}

.section-grid-wide {
  width: min(calc(100% - 2rem), 1320px);
}

.feature-panel-large {
  min-height: 22rem;
}

.overview-points {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.overview-points span {
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-panel h2,
.logo-panel h2,
.info-card h2,
.team-member h2,
.member-welcome h2,
.join-banner h2 {
  margin-top: 0;
}

.logo-panel {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.9);
}

.logo-panel img {
  width: min(100%, 320px);
  border-radius: 28px;
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-showcase-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foundation-panel {
  display: grid;
  gap: 1.2rem;
}

.section-headline {
  display: grid;
  gap: 0.3rem;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cofounder-row {
  display: grid;
}

.foundation-member {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.foundation-member-wide {
  max-width: 32rem;
}

.team-member {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.avatar-frame {
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
  padding: 0.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}

.avatar-frame.large {
  width: 6rem;
  height: 6rem;
}

.avatar-initial {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.member-body {
  display: grid;
  gap: 0.3rem;
}

.member-icon-line {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.role-tag,
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.gold { background: rgba(255, 202, 87, 0.16); color: #ffd976; }
.pink { background: rgba(255, 95, 182, 0.16); color: #ffb5d8; }
.blue { background: rgba(93, 141, 255, 0.18); color: #bdd0ff; }
.green { background: rgba(106, 223, 136, 0.15); color: #c5ffcf; }

.hierarchy-panel {
  padding-top: 1.3rem;
}

.hierarchy-list {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.member-layout {
  display: grid;
  gap: 1.2rem;
}

.member-layout-wide {
  gap: 1.4rem;
}

.login-panel-wide {
  display: grid;
  gap: 1.1rem;
}

.member-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.member-benefits article {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.member-benefits strong {
  display: block;
  margin-bottom: 0.35rem;
}

.member-space {
  display: grid;
  gap: 1.2rem;
}

.member-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-welcome-wide {
  display: grid;
  gap: 0.4rem;
}

.mini-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.mini-heading h3 {
  margin: 0;
}

.member-timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-list {
  display: grid;
  gap: 0.8rem;
}

.timeline-list div {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-left: 3px solid rgba(93, 141, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.stack-form,
.admin-grid {
  display: grid;
  gap: 1rem;
}

.stack-form label,
.admin-grid label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid label:has(textarea) {
  grid-column: span 2;
}

.join-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.join-controls {
  display: grid;
  gap: 0.8rem;
}

code {
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.14);
  overflow-wrap: anywhere;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 10, 25, 0.76);
}

.modal.hidden,
.hidden {
  display: none !important;
}

.modal-card {
  width: min(100%, 28rem);
  position: relative;
  background: var(--panel-strong);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .hero-layout,
  .section-grid,
  .three-columns,
  .team-showcase,
  .team-showcase-secondary,
  .foundation-grid,
  .member-panels,
  .member-benefits,
  .join-banner,
  .admin-grid,
  .hero-strip,
  .hero-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 1rem), var(--max));
  }

  .site-header,
  .hero-card,
  .panel,
  .modal-card {
    padding: 1.15rem;
  }

  .command-search {
    flex-direction: column;
    align-items: stretch;
  }

  .command-search button,
  .button {
    width: 100%;
  }
}
