* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg1: #1a915d;
  --bg2: #0f370c;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --card: rgba(10, 18, 12, 0.42);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --primary1: #0085ff;
  --primary2: #0058aa;
  --warn1: rgba(255, 0, 0, 0.18);
  --warn2: rgba(255, 0, 0, 0.08);
  --info1: rgba(0, 133, 255, 0.16);
  --info2: rgba(0, 133, 255, 0.07);
  --pill-bg: rgba(255, 255, 255, 0.08);
  --pill-border: rgba(255, 255, 255, 0.12);
  --pill-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

body {
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom right, var(--bg1), var(--bg2));
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.header {
  position: relative;
  overflow: hidden;
  padding: 56px 18px;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://finton.cc/assets/img/background.jpg") 50% 40% /
    cover;
  filter: blur(6px) brightness(0.7);
  transform: scale(1.03);
  z-index: -2;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 18, 12, 0.55),
    rgba(10, 18, 12, 0.75)
  );
  z-index: -1;
}

.header__inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

h1 {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 8px;
  color: var(--muted);
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.pill,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  user-select: none;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  border-bottom: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill {
  height: 48px;
  padding: 0 18px;
  background: var(--pill-bg);
  box-shadow: var(--pill-shadow);
}

.pill:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.pill__label {
  color: var(--muted);
  font-size: 14px;
}

.pill__value {
  font-size: 15px;
}

.pill--copy {
  cursor: pointer;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.pill--copy:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.pill--copied {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.icon-svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.pill--copy i {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0.9;
}

.pill--button .icon-svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 48px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.card h2 {
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  line-height: 1.55;
}

.code-link,
.card code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-link {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
}

.code-link:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
}

.callouts {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.callout {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--pill-border);
}

.callout h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.callout--warn {
  background: linear-gradient(to bottom right, var(--warn1), var(--warn2));
}

.callout--info {
  background: linear-gradient(to bottom right, var(--info1), var(--info2));
}

.buttons {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  justify-content: center;
  padding: 12px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.01em;
}

.btn:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.btn i {
  font-size: 18px;
  line-height: 0;
}

.btn--primary {
  background: linear-gradient(to bottom right, var(--primary1), var(--primary2));
}

@media (max-width: 820px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 40px;
  }

  .meta {
    justify-content: flex-start;
  }
}

@media (min-width: 821px) {
  .meta {
    flex-wrap: nowrap;
  }
}
