:root {
  --ut-bg: #ffffff;
  --ut-fg: #0a0a0a;
  --ut-muted: #6b6b6b;
  --ut-border: #e5e5e5;
  --ut-font: "Inter", system-ui, -apple-system, sans-serif;
  --ut-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ut-page-width: 42rem;
  --ut-page-pad-x: 1.5rem;
  --ut-page-pad-top: 2.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body.ut-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ut-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ut-fg);
  background: var(--ut-bg);
  -webkit-font-smoothing: antialiased;
}

/* —— Page shell (all public pages) —— */
.ut-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ut-page-top {
  max-width: var(--ut-page-width);
  margin: 0 auto;
  padding: var(--ut-page-pad-top) var(--ut-page-pad-x) 0;
  width: 100%;
}

.ut-page-body {
  flex: 1;
  max-width: var(--ut-page-width);
  margin: 0 auto;
  padding: 0 var(--ut-page-pad-x) 4rem;
  width: 100%;
}

.ut-main {
  width: 100%;
}

.ut-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  min-height: 1.5rem;
}

.ut-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-family: var(--ut-font);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  color: var(--ut-fg);
}

.ut-logo-name {
  display: inline;
  font-size: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.ut-logo-uluwatu {
  font-weight: 700;
}

.ut-logo-tech {
  font-weight: 400;
}

.ut-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  flex-shrink: 0;
  min-width: 12.5rem;
}

.ut-nav-link {
  font-size: 0.85rem;
  color: var(--ut-muted);
  text-decoration: none;
  white-space: nowrap;
  text-align: right;
  min-width: 5.5rem;
}

.ut-nav-link:hover,
.ut-nav-link.is-active {
  color: var(--ut-fg);
}

.ut-eyebrow {
  font-family: var(--ut-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ut-muted);
  margin: 0 0 1rem;
}

.ut-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.ut-title--sm {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ut-lead {
  font-size: 1.125rem;
  color: var(--ut-muted);
  margin: 0 0 2.5rem;
  max-width: none;
}

.ut-flashes {
  margin-bottom: 1.5rem;
}

.ut-flash {
  padding: 0.75rem 1rem;
  border: 1px solid var(--ut-border);
  font-size: 0.9rem;
}

.ut-flash--success {
  border-color: var(--ut-fg);
}

.ut-flash--warning {
  color: var(--ut-muted);
}

/* —— Waitlist (full body width) —— */
.ut-waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.ut-waitlist-row {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.ut-waitlist-row--half {
  grid-template-columns: 1fr 1fr;
}

.ut-waitlist-row--action {
  grid-template-columns: 1fr auto;
}

.ut-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ut-border);
  border-radius: 0;
  font: inherit;
  background: var(--ut-bg);
  color: var(--ut-fg);
}

.ut-input--block {
  display: block;
}

.ut-input:focus {
  outline: none;
  border-color: var(--ut-fg);
}

.ut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--ut-fg);
  background: var(--ut-fg);
  color: var(--ut-bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.ut-btn--submit {
  min-width: 10.5rem;
}

.ut-btn:hover {
  opacity: 0.85;
}

.ut-btn--ghost {
  background: transparent;
  color: var(--ut-fg);
}

.ut-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ut-hint {
  font-size: 0.8rem;
  color: var(--ut-muted);
  margin: 0;
}

.ut-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.ut-pill-list li {
  font-family: var(--ut-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--ut-border);
  color: var(--ut-muted);
}

.ut-footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ut-border);
  font-size: 0.8rem;
  color: var(--ut-muted);
}

/* —— Campaign form (left-aligned, same column as landing) —— */
.ut-body--campaign .ut-page-body {
  padding-bottom: 4rem;
}

.ut-form-progress {
  height: 2px;
  background: var(--ut-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.ut-form-progress-bar {
  height: 100%;
  background: var(--ut-fg);
  width: 0%;
  transition: width 0.35s ease;
}

.ut-campaign-form {
  width: 100%;
}

.ut-form-step {
  display: none;
  width: 100%;
  animation: utFadeIn 0.4s ease;
}

.ut-form-step.is-active {
  display: block;
}

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

.ut-form-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.ut-form-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ut-border);
  background: var(--ut-bg);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ut-form-option:hover,
.ut-form-option.is-selected {
  border-color: var(--ut-fg);
  background: #f7f7f7;
}

.ut-form-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ut-form-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.ut-form-nav--spaced {
  margin-top: 2rem;
}

.ut-textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ut-border);
  font: inherit;
  resize: vertical;
  background: var(--ut-bg);
}

.ut-textarea:focus {
  outline: none;
  border-color: var(--ut-fg);
}

/* —— Waitlist / QR landing —— */
.ut-body--waitlist .ut-page-top {
  margin-bottom: 2rem;
}

.ut-body--waitlist .ut-header {
  margin-bottom: 0;
}

.ut-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ut-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ut-fg);
  margin-bottom: 1.25rem;
}

.ut-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.ut-feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.85rem;
  border: 1px solid var(--ut-border);
  background: linear-gradient(180deg, #fafafa 0%, var(--ut-bg) 100%);
}

.ut-feature-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.ut-feature-desc {
  font-size: 0.75rem;
  color: var(--ut-muted);
  line-height: 1.4;
}

.ut-hint--center {
  text-align: center;
  margin-top: 1rem;
}

.ut-form-option--custom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.ut-form-option--custom span {
  font-weight: 500;
}

.ut-input--inline {
  margin-top: 0.15rem;
}

.ut-waitlist-form .ut-form-step[data-step="0"] .ut-title {
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .ut-waitlist-row--half,
  .ut-waitlist-row--action {
    grid-template-columns: 1fr;
  }

  .ut-btn--submit {
    width: 100%;
    min-width: 0;
  }

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