:root {
  --bg: #070509;
  --bg-soft: #110c16;
  --panel: rgba(26, 16, 32, 0.88);
  --panel-strong: #1c1124;
  --text: #f1edf3;
  --muted: #b8a9c4;
  --dim: #82728f;
  --line: rgba(217, 191, 255, 0.18);
  --accent: #9b1d3f;
  --accent-bright: #d93b67;
  --violet: #8f67ff;
  --gold: #d9b56d;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background-color: #070509;
  background-image: url("assets/gothspace-bg-tile.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: 420px 420px;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.18);
}

a {
  color: inherit;
}

.mist {
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.08;
  pointer-events: none;
}

.mist-one {
  background: var(--accent-bright);
  left: -20rem;
  top: 8rem;
}

.mist-two {
  background: var(--violet);
  right: -18rem;
  bottom: 5rem;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(217, 181, 109, 0.18);
  box-shadow: 0 0 25px rgba(217, 181, 109, 0.12);
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.hero,
.section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: stretch;
  padding-top: 54px;
}

.hero-frame,
.profile-card,
.join-card,
.feature-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18, 12, 22, 0.88), rgba(6, 5, 8, 0.84));
  box-shadow: var(--shadow);
}

.hero-frame {
  padding: clamp(32px, 6vw, 70px);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.hero-logo {
  display: block;
  width: min(100%, 720px);
  margin: 0 0 18px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.hero-frame::before,
.join-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(217, 181, 109, 0.18);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.3rem, 9vw, 7.3rem);
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-copy {
  max-width: 720px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-color: rgba(255,255,255,0.14);
}

.button.ghost {
  color: var(--text);
  background: rgba(255,255,255,0.045);
}

.button:hover {
  transform: translateY(-1px);
}

.profile-card {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
}

.profile-banner {
  height: 170px;
  background:
    linear-gradient(135deg, rgba(155,29,63,0.38), rgba(143,103,255,0.18)),
    url("assets/gothspace-bg-tile.png");
  background-size: cover, 320px 320px;
  background-repeat: no-repeat, repeat;
  background-position: center center, top left;
}

.profile-body {
  padding: 28px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-top: -72px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0d0711;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-weight: 900;
  box-shadow: 0 16px 45px rgba(0,0,0,0.35);
  overflow: hidden;
}

.avatar-image-wrap {
  padding: 0;
}

.avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.status {
  display: inline-block;
  margin: 22px 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.035);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.feature-grid article {
  padding: 24px;
  border-radius: 22px;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(217,181,109,0.08);
  border: 1px solid rgba(217,181,109,0.24);
  font-size: 1.35rem;
}

.join-section {
  padding-bottom: 82px;
}

.join-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
}

.waitlist-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  font-family: Arial, sans-serif;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(255,255,255,0.055);
  font: inherit;
}

input:focus {
  border-color: rgba(217,181,109,0.55);
  box-shadow: 0 0 0 4px rgba(217,181,109,0.08);
}

.optional {
  color: var(--dim);
  font-weight: 400;
}

.hidden-field {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 22px 42px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--dim);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .hero {
    padding-top: 22px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-frame,
  .join-card {
    padding: 28px;
  }

  .hero-frame::before,
  .join-card::before {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-logo {
    width: 100%;
  }
}


/* v0.4 mobile polish */
@media (max-width: 700px) {
  .site-header {
    padding: 26px 22px 18px;
    gap: 1.35rem;
  }

  .brand {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .brand-icon {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .nav-links {
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    font-size: clamp(1rem, 4.4vw, 1.3rem);
  }

  .nav-links a {
    padding: 0.45rem 0.35rem;
    white-space: nowrap;
  }

  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-frame {
    padding: 26px;
    border-radius: 24px;
  }

  .hero-logo {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 24px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .profile-card {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .brand-icon {
    width: 58px;
    height: 58px;
  }

  .nav-links {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.65rem);
  }

  .hero-frame {
    padding: 22px;
  }
}

/* v0.5 trust pages */
.legal-section { padding-top: 44px; }
.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 12, 22, 0.90), rgba(6, 5, 8, 0.86));
  box-shadow: var(--shadow);
}
.legal-card h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  margin-bottom: 20px;
}
.legal-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin-top: 34px;
  margin-bottom: 8px;
}
.legal-card p { max-width: 72ch; }
.updated, .form-note {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--dim);
}
.form-note { margin: -2px 0 0; }
.form-note a, .footer-links a, .legal-card a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 181, 109, 0.35);
}
.form-note a:hover, .footer-links a:hover, .legal-card a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links p:last-child {
  display: flex;
  gap: 18px;
}
.contact-box {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}
.contact-box h2 { margin-top: 0; }
.contact-placeholder {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(217, 181, 109, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(217, 181, 109, 0.06);
  font-family: Arial, sans-serif;
}
@media (max-width: 700px) {
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
  .legal-card h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }
}
