:root {
  color-scheme: dark;
  --page: #070a0f;
  --surface: #10151d;
  --surface-2: #151c26;
  --surface-3: #1a2330;
  --border: #293444;
  --border-strong: #3b4a5e;
  --text: #f4f7fb;
  --muted: #aab6c6;
  --subtle: #7f8da0;
  --accent: #f4bd50;
  --accent-hover: #ffcc69;
  --accent-ink: #171006;
  --success: #43d98b;
  --focus: #8fb7ff;
  --danger: #ff858b;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 0;
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% -12%, rgba(73, 94, 128, 0.18), transparent 32%),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    var(--page);
  background-size: auto, 100% 48px, auto;
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
select,
[role="button"] {
  cursor: pointer;
}

button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

:where(button, input, select, a, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--page);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  width: min(100% - 32px, 1440px);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(244, 189, 80, 0.48);
  border-radius: 11px;
  object-fit: cover;
}

.brand__copy {
  min-width: 0;
}

.brand__name,
.brand__tagline {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__name {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand__tagline {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
}

.draft-state {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(67, 217, 139, 0.2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(67, 217, 139, 0.045);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.draft-state__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(67, 217, 139, 0.09);
}

.section-kicker {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiet-button,
.primary-button,
.mobile-tab,
.device-toolbar button {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 800;
  touch-action: manipulation;
}

.quiet-button {
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
}

.quiet-button:hover {
  border-color: rgba(255, 133, 139, 0.7);
  color: var(--danger);
}

.primary-button {
  width: 100%;
  min-height: 52px;
  padding: 11px 18px;
  border-color: #b98320;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #ffc85a, #e8a92e);
  box-shadow: 0 10px 28px rgba(232, 169, 46, 0.14);
}

.primary-button:hover:not(:disabled) {
  border-color: #d49b32;
  background: linear-gradient(180deg, #ffd271, #edb341);
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(90vw, 430px);
  padding: 11px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  background: #151c27;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.46);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .site-header__inner {
    width: min(100% - 24px, 1440px);
  }

  .draft-state {
    min-width: 36px;
    padding-inline: 10px;
  }

  .draft-state span:last-child {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
