:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-strong: #101820;
  --text: #17202a;
  --muted: #61706d;
  --line: #dce3dd;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --gold: #c9972e;
  --rose: #b84a62;
  --shadow: 0 24px 80px rgba(15, 30, 35, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  background: rgba(247, 248, 244, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #fff;
}

.nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.nav a,
.language-switcher a {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.language-switcher a:hover {
  background: #fff;
  color: var(--text);
}

.language-switcher {
  justify-self: end;
  display: flex;
  gap: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: clamp(32px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.callout {
  display: grid;
  gap: 7px;
  max-width: 660px;
  margin-top: 30px;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
}

.callout strong {
  font-size: 18px;
}

.callout span {
  color: var(--muted);
  line-height: 1.5;
}

.waitlist-form,
.auth-card form,
.inline-form,
.link-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
}

button:hover,
.button-link:hover {
  background: var(--accent-strong);
}

.link-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.link-button:hover {
  background: transparent;
  color: var(--text);
}

.link-button.danger {
  color: #8d2941;
  font-weight: 800;
}

.link-button.danger:hover {
  color: var(--rose);
}

.notice {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  line-height: 1.45;
}

.notice.error {
  border-color: rgba(184, 74, 98, 0.35);
  background: #fff5f7;
  color: #8d2941;
}

.notice.success {
  border-color: rgba(15, 118, 110, 0.35);
  background: #f1fbf8;
  color: var(--accent-strong);
}

.product-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 520px);
  justify-self: end;
  padding: 18px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.browser-bar span:nth-child(1) {
  background: var(--rose);
}

.browser-bar span:nth-child(2) {
  background: var(--gold);
}

.browser-bar span:nth-child(3) {
  background: var(--accent);
}

.link-preview,
.bio-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.link-preview {
  display: grid;
  gap: 12px;
  background: #f5fbf9;
}

.link-preview strong,
.bio-preview strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 24px;
}

.label {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.link-preview p,
.bio-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.bio-preview {
  display: grid;
  gap: 14px;
  background: #fbfaf5;
}

.avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: #fff;
  font-size: 26px;
  font-weight: 850;
}

.mini-links {
  display: grid;
  gap: 8px;
}

.mini-links span {
  height: 36px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.policy-strip {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #fff;
  line-height: 1.4;
}

.page-section {
  display: grid;
  min-height: calc(100vh - 128px);
  place-items: center;
  padding: clamp(32px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.page-section.align-start {
  align-items: start;
  place-items: start center;
}

.narrow {
  width: min(100%, 760px);
}

.wide {
  width: min(100%, 1120px);
}

.narrow h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.narrow p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.auth-card,
.panel {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 30px);
}

.auth-card h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.panel {
  width: 100%;
  margin-top: 22px;
  box-shadow: none;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.inline-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.copy-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border-radius: 8px;
  background: #f5fbf9;
  border: 1px solid rgba(15, 118, 110, 0.25);
  padding: 14px;
}

code {
  overflow-wrap: anywhere;
  color: var(--accent-strong);
}

.prefix-input {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(120px, 1fr);
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.prefix-input > span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  background: #f5fbf9;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.prefix-input input {
  min-height: 44px;
  border: 0;
  border-radius: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.table-link {
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

.table-link:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.details-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.details-list div {
  display: grid;
  gap: 4px;
}

.details-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid rgba(23, 32, 42, 0.08);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .language-switcher {
    justify-self: start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .product-panel {
    justify-self: stretch;
  }

  .inline-form,
  .dashboard-grid,
  .prefix-input {
    grid-template-columns: 1fr;
  }

  .prefix-input > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    display: grid;
  }
}
