:root {
  --bg: #0a0a0f;
  --bg-soft: #111018;
  --panel: rgba(17, 16, 24, 0.86);
  --panel-strong: rgba(14, 12, 18, 0.96);
  --line: rgba(212, 168, 71, 0.22);
  --line-strong: rgba(212, 168, 71, 0.42);
  --text: #e8e0d4;
  --text-soft: #b6ab9c;
  --text-muted: #8f8477;
  --crimson: #8b0000;
  --crimson-bright: #c0392b;
  --gold: #d4a847;
  --gold-soft: #c39a3f;
  --success: #6ea56f;
  --danger: #d36a5f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(139, 0, 0, 0.18), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 71, 0.1), transparent 22%),
    linear-gradient(180deg, #09090d 0%, #0c0b11 48%, #09080d 100%);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
}

.public-shell,
.auth-shell {
  position: relative;
  z-index: 1;
}

.public-header,
.auth-header {
  width: min(1520px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark__crest {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.18), rgba(212, 168, 71, 0.14));
  box-shadow: inset 0 0 30px rgba(212, 168, 71, 0.08);
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  color: var(--gold);
}

.brand-mark__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.brand-mark__name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-mark__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-mark__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.header-link,
.text-link {
  color: var(--text-soft);
  text-decoration: none;
}

.header-link:hover,
.text-link:hover {
  color: var(--gold);
}

.page-frame {
  width: min(1520px, calc(100vw - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(17, 16, 24, 0.92), rgba(10, 9, 14, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media {
  width: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.24), transparent 68%);
  filter: blur(18px);
}

.coming-soon {
  position: absolute;
  top: 28px;
  right: -58px;
  transform: rotate(24deg);
  padding: 10px 68px;
  background: linear-gradient(90deg, rgba(139, 0, 0, 0.92), rgba(192, 57, 43, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f7ebdf;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero-portrait {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  padding: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 168, 71, 0.26), transparent 45%),
    linear-gradient(145deg, rgba(212, 168, 71, 0.72), rgba(89, 16, 16, 0.9));
  box-shadow:
    0 0 0 1px rgba(212, 168, 71, 0.24),
    0 0 80px rgba(139, 0, 0, 0.34);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(232, 224, 212, 0.14);
}

.showcase-panel {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(14, 13, 18, 0.84);
  box-shadow: var(--shadow);
}

.showcase-copy {
  margin-bottom: 22px;
  text-align: center;
}

.showcase-copy h2 {
  margin-bottom: 0;
}

.showcase-frame {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(11, 10, 15, 0.94);
  box-shadow: 0 0 60px rgba(139, 0, 0, 0.12), 0 0 120px rgba(212, 168, 71, 0.04);
}

.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(232, 224, 212, 0.08);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-copy h2,
.auth-card h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 9vw, 5.7rem);
  max-width: 9ch;
}

.hero-copy h1 span,
.section-copy h2 span,
.auth-card h1 span {
  color: var(--gold);
}

.hero-copy p,
.section-copy p,
.how-note,
.signup-note,
.auth-subtitle,
.field-note,
.footer-copy {
  color: var(--text-soft);
  line-height: 1.75;
}

.hero-copy p {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.04rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary,
.auth-card button,
.signup-form button {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button-primary,
.auth-card button,
.signup-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-bright));
  color: #fff6ef;
  box-shadow: 0 18px 38px rgba(139, 0, 0, 0.24);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 18, 24, 0.72);
  color: var(--text);
}

.button-primary:hover,
.button-secondary:hover,
.auth-card button:hover,
.signup-form button:hover {
  transform: translateY(-1px);
}

.content-grid {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}

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

.feature-tile,
.section-panel,
.step {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(14, 13, 18, 0.78);
  box-shadow: var(--shadow);
}

.feature-tile {
  padding: 24px;
}

.feature-tile strong,
.step strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-tile p,
.step p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.section-panel {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 40px);
}

.section-copy h2 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.step {
  padding: 24px;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(212, 168, 71, 0.08);
  color: var(--gold);
  font-family: "Cinzel", serif;
}

.signup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: center;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.signup-form input,
.auth-card input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(232, 224, 212, 0.12);
  background: rgba(8, 8, 12, 0.82);
  color: var(--text);
  font: inherit;
}

.signup-form input:focus,
.auth-card input:focus {
  outline: none;
  border-color: rgba(212, 168, 71, 0.52);
  box-shadow: 0 0 0 4px rgba(212, 168, 71, 0.08);
}

.signup-feedback,
.auth-error,
.auth-note {
  margin-top: 12px;
  font-size: 0.95rem;
}

.signup-feedback[data-state="success"],
.auth-note {
  color: var(--success);
}

.signup-feedback[data-state="error"],
.auth-error {
  color: var(--danger);
}

.page-footer {
  width: min(1520px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 44px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-layout {
  width: min(1200px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 44px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.auth-story {
  padding-right: clamp(0px, 2vw, 24px);
}

.auth-story h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.96;
}

.auth-card {
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 3rem;
}

.auth-subtitle {
  margin: 12px 0 24px;
}

.auth-card form {
  display: grid;
  gap: 16px;
}

.field-stack {
  display: grid;
  gap: 10px;
}

.field-stack label {
  color: var(--text-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-footer {
  margin-top: 18px;
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 71, 0.24);
  background: rgba(212, 168, 71, 0.08);
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

@media (max-width: 900px) {
  .hero,
  .auth-layout,
  .signup-panel,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .signup-form {
    grid-template-columns: 1fr;
  }

  .coming-soon {
    position: static;
    transform: none;
    display: inline-flex;
    margin-bottom: 26px;
    border-radius: 999px;
    padding: 10px 16px;
  }
}

@media (max-width: 640px) {
  .public-header,
  .auth-header,
  .page-frame,
  .page-footer,
  .auth-layout {
    width: min(100vw - 24px, 100%);
  }

  .hero {
    padding: 22px;
    border-radius: 28px;
  }

  .hero-copy h1,
  .auth-card h1,
  .auth-story h2,
  .section-copy h2 {
    line-height: 1;
  }

  .auth-card {
    padding: 24px;
  }
}
