:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  font-synthesis: none;
  --font-display: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Menlo, monospace;
  --black: #050609;
  --ink: #0c0e12;
  --ink-raised: #13161b;
  --surface: #101318;
  --surface-hover: #171b21;
  --line: rgba(231, 236, 242, 0.11);
  --line-strong: rgba(231, 236, 242, 0.22);
  --text: #f3f1ea;
  --muted: #9299a3;
  --gold: #efc66f;
  --gold-pale: #ffe6a7;
  --cyan: #69d8d0;
  --coral: #ff776c;
  --green: #83d69a;
  --magenta: #d99ae8;
  --violet: #8fa8ff;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--black);
  color: var(--text);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  caret-color: var(--gold);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #606771;
}

input:focus,
textarea:focus {
  border-color: rgba(239, 198, 111, 0.66);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(239, 198, 111, 0.08);
}

textarea {
  resize: vertical;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-mark::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(239, 198, 111, 0.56);
  content: "";
  transform: rotate(45deg);
}

.brand-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold-pale);
  box-shadow: 0 0 8px var(--gold), 0 0 22px rgba(239, 198, 111, 0.55);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand-mark span::before,
.brand-mark span::after {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 230, 167, 0.75);
  content: "";
  transform: translateY(-50%);
}

.brand-mark span::before { left: 1px; }
.brand-mark span::after { right: 1px; }

.brand-en,
.section-label,
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-text-button,
.icon-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.primary-button {
  border-color: var(--gold);
  background: var(--gold);
  color: #15120c;
  font-weight: 750;
  box-shadow: 0 8px 28px rgba(239, 198, 111, 0.12);
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.icon-text-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-button:hover:not(:disabled) {
  background: var(--gold-pale);
  box-shadow: 0 10px 34px rgba(239, 198, 111, 0.2);
}

.secondary-button,
.icon-text-button,
.icon-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.secondary-button:hover,
.icon-text-button:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.danger-button {
  border-color: var(--coral);
  background: var(--coral);
  color: #210d0a;
  font-weight: 750;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  padding: 0;
  place-items: center;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.icon-button svg,
.icon-text-button svg {
  width: 17px;
  height: 17px;
}

.form-message {
  min-height: 20px;
  margin: 8px 0;
  color: var(--coral);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #b9dce9;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
