:root {
  --ink: #132019;
  --muted: #617067;
  --paper: #f2f0e8;
  --paper-deep: #e7e4d9;
  --night: #0a130e;
  --green: #8ef08d;
  --line: rgba(19, 32, 25, 0.16);
  --night-line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  pointer-events: none;
}

.ambient-one {
  width: 28rem;
  height: 28rem;
  top: -13rem;
  left: 5%;
  background: #b7f4a5;
}

.ambient-two {
  width: 22rem;
  height: 22rem;
  top: 25rem;
  right: -8rem;
  background: #d3efb7;
}

.site-header,
main > section,
footer {
  padding-left: clamp(1.35rem, 5vw, 5.5rem);
  padding-right: clamp(1.35rem, 5vw, 5.5rem);
}

.site-header {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 850;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.brand sup {
  color: #4d9f55;
  font-size: 0.55em;
  position: relative;
  top: -0.25em;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  transform: rotate(-30deg);
}

.brand-mark span {
  background: currentColor;
  border-radius: 999px;
}

.brand-mark span:nth-child(2) {
  transform: translateY(-4px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.network {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.network i {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #5cc86b;
  box-shadow: 0 0 0 4px rgba(92, 200, 107, 0.13);
}

.wallet-button,
.place-card button,
.primary-action {
  border: 0;
  color: white;
  background: var(--ink);
  cursor: pointer;
}

.wallet-button {
  min-width: 7.75rem;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.hero {
  min-height: calc(100vh - 6rem);
  padding-top: clamp(5rem, 12vh, 9rem);
  padding-bottom: 4rem;
  position: relative;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.hero h1,
.create-intro h2,
.protocol-heading h2,
.status-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 65rem;
  font-size: clamp(4.5rem, 11vw, 10rem);
}

.hero h1 em {
  color: #3d9852;
  font-weight: 500;
}

.hero-copy {
  max-width: 37rem;
  margin: 2.2rem 0 0 clamp(0rem, 24vw, 18rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-actions {
  margin: 2.2rem 0 0 clamp(0rem, 24vw, 18rem);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background: #253b2f;
}

.text-action {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.85rem;
  font-weight: 750;
}

.manifesto {
  position: absolute;
  right: clamp(1.35rem, 5vw, 5.5rem);
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.manifesto strong {
  color: #328144;
}

.create-section,
.positive-section,
.status-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.create-section {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4.5rem;
}

.section-label span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
}

.section-label p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.create-intro h2,
.protocol-heading h2,
.status-copy h2 {
  font-size: clamp(3.2rem, 6vw, 6.5rem);
}

.create-intro p,
.protocol-heading p,
.status-copy > p:last-child {
  max-width: 34rem;
  margin-top: 2rem;
  color: var(--muted);
}

.place-card {
  padding: clamp(1.4rem, 3vw, 2.3rem);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(19, 32, 25, 0.11);
  border-radius: 0.45rem;
  box-shadow: 0 1.8rem 5rem rgba(31, 48, 38, 0.08);
}

.place-card > label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--ink);
}

.input-row input {
  min-width: 0;
  padding: 1rem 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.1rem;
}

.input-row button {
  align-self: center;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.privacy-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.privacy-note span {
  color: #45a656;
}

.place-result {
  margin-top: 1.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #d9f4dc;
  background: var(--night);
  border-radius: 0.25rem;
}

.place-result[hidden] {
  display: none;
}

.place-result span {
  display: block;
  color: #89a58f;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.place-result code {
  display: block;
  max-width: 28rem;
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  white-space: nowrap;
}

.copy-button {
  color: var(--night) !important;
  background: var(--green) !important;
  white-space: nowrap;
}

.protocol-section {
  padding-top: 7rem;
  padding-bottom: 8rem;
  color: #eef3ed;
  background: var(--night);
}

.section-label.light {
  color: #aebdb2;
}

.protocol-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: end;
}

.protocol-heading h2 {
  color: white;
}

.protocol-heading p {
  color: #a6b3a9;
}

.night-grid {
  margin-top: 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.night-grid article {
  min-height: 25rem;
  padding: 2rem;
  border-right: 1px solid var(--night-line);
}

.night-grid article:first-child {
  border-left: 1px solid var(--night-line);
}

.night-number {
  color: #738378;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.moon {
  margin: 3rem 0;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
}

.night-grid h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.night-grid p {
  color: #99a69c;
  font-size: 0.88rem;
}

.positive-section {
  background: var(--paper);
}

.positive-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.large-quote {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.flow {
  max-width: 34rem;
  margin-left: auto;
}

.flow div {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--line);
}

.flow span {
  color: #438b4d;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.flow strong {
  font-size: 0.85rem;
}

.flow i {
  display: block;
  margin: 0.45rem 0;
  text-align: center;
  color: #68936f;
  font-style: normal;
}

.status-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  color: white;
  background: #183123;
}

.status-copy > p:last-child {
  color: #aebfb2;
}

.status-list {
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.status-list div {
  padding: 1.15rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.status-list strong {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.ready {
  color: var(--green);
}

.building {
  color: #e5c873;
}

footer {
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #839087;
  background: var(--night);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.footer-brand {
  color: white;
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  padding: 0.85rem 1rem;
  color: white;
  background: #1c3125;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.3rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .network,
  .manifesto {
    display: none;
  }

  .site-header {
    height: 5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 7rem;
  }

  .hero-copy,
  .hero-actions {
    margin-left: 0;
  }

  .hero-actions,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .create-grid,
  .protocol-heading,
  .positive-layout,
  .status-section {
    grid-template-columns: 1fr;
  }

  .night-grid {
    grid-template-columns: 1fr;
  }

  .night-grid article,
  .night-grid article:first-child {
    min-height: auto;
    border-left: 1px solid var(--night-line);
    border-bottom: 1px solid var(--night-line);
  }

  .moon {
    margin: 2rem 0;
  }

  .flow {
    max-width: none;
    margin-left: 0;
  }

  footer {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .wallet-button {
    min-width: auto;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-action {
    justify-content: space-between;
  }

  .create-section,
  .positive-section,
  .status-section,
  .protocol-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .input-row button {
    justify-self: start;
  }

  .place-result {
    align-items: stretch;
    flex-direction: column;
  }

  .place-result code {
    max-width: 14rem;
  }
}
