:root {
  /* 60-30-10 brand model (marketing site — no user picker) */
  --theme-60: #060608; /* dominant canvas */
  --theme-30: #f4f1ea; /* secondary: text / warm neutrals */
  --theme-10: #d4af5a; /* accent: CTAs, links, highlights */

  --bg-deep: var(--theme-60);
  --bg-mid: #0e0d12;
  --gold: var(--theme-10);
  --gold-bright: #f0d78c;
  --gold-muted: #b8943f;
  --text: var(--theme-30);
  --text-muted: color-mix(in srgb, var(--theme-30) 72%, transparent);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 70% 10%, color-mix(in srgb, var(--theme-10) 16%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, color-mix(in srgb, var(--gold-muted) 12%, transparent), transparent 50%),
    linear-gradient(165deg, var(--theme-60) 0%, #0c0b10 45%, #121018 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.hero-3d:active {
  cursor: grabbing;
}

.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 72% 48%, transparent 0%, color-mix(in srgb, var(--theme-60) 25%, transparent) 55%, var(--theme-60) 100%),
    linear-gradient(90deg, var(--theme-60) 0%, color-mix(in srgb, var(--theme-60) 88%, transparent) 34%, transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--theme-60) 40%, transparent) 0%, transparent 28%, transparent 70%, color-mix(in srgb, var(--theme-60) 55%, transparent) 100%);
}

.hero-hint {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1.25rem, 4vw, 2.25rem);
  max-width: 18rem;
  text-align: right;
  transition: opacity 0.7s ease;
  color: color-mix(in srgb, var(--theme-30) 55%, transparent);
}

.hero-hint.is-faded {
  opacity: 0;
}

.hero-tip {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .hero-fade {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--theme-60) 75%, transparent) 0%, transparent 32%),
      linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--theme-60) 90%, transparent) 100%),
      radial-gradient(ellipse 80% 55% at 50% 55%, transparent 0%, color-mix(in srgb, var(--theme-60) 50%, transparent) 70%, var(--theme-60) 100%);
  }

  .hero-hint {
    left: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
    text-align: center;
    max-width: none;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d,
  .hero-hint,
  .hero-tip {
    display: none;
  }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.brand img {
  width: clamp(3.25rem, 8vw, 4.25rem);
  height: auto;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold-bright), var(--gold) 50%, var(--gold-muted));
  color: #120f0a;
  box-shadow: 0 0 0 0 rgba(240, 215, 140, 0);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--theme-10) 28%, transparent);
}

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--theme-10) 45%, transparent);
  color: var(--gold-bright);
}

.btn-ghost:hover:not(.is-soon) {
  border-color: var(--gold-bright);
  background: color-mix(in srgb, var(--theme-10) 8%, transparent);
  transform: translateY(-1px);
}

.btn.is-soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.about {
  padding: clamp(3.5rem, 10vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid color-mix(in srgb, var(--theme-10) 12%, transparent);
}

.about-inner {
  max-width: 36rem;
  animation: riseIn 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--gold-bright);
}

.about p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.join {
  padding: clamp(3.5rem, 10vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid color-mix(in srgb, var(--theme-10) 12%, transparent);
}

.join-inner {
  max-width: 36rem;
  animation: riseIn 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.join h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--gold-bright);
}

.join-lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.join-lead a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.join-lead a:hover {
  color: var(--text);
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.form-grid label.span-2 {
  grid-column: 1 / -1;
}

.form-grid label em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.75;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--theme-10) 35%, transparent);
  background: color-mix(in srgb, var(--bg-mid) 85%, transparent);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
}

.form-grid textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.form-grid input:focus-visible,
.form-grid select:focus-visible,
.form-grid textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-color: var(--gold);
}

.form-grid select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 1.15rem, calc(100% - 0.75rem) 1.15rem;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.join-form .btn {
  align-self: flex-start;
  min-width: 10rem;
  cursor: pointer;
}

.join-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.form-status.is-ok {
  color: #b8d4a8;
}

.form-status.is-err {
  color: #e8a0a0;
}

.site-footer {
  padding: 1.75rem clamp(1.25rem, 5vw, 4rem) 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--theme-10) 12%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 520px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .join-form .btn {
    width: 100%;
    align-self: stretch;
  }
}