:root {
  --bg: #070707;
  --surface: #0d0d0d;
  --surface-2: #121212;

  --border: rgba(255, 255, 255, 0.10);

  --text: #f5f5f5;
  --muted: #8b8b8b;

  --max: 1180px;
  --radius: 24px;
}


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
}


body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.055),
      transparent 32%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}


a {
  color: inherit;
  text-decoration: none;
}


button {
  font: inherit;
}


.page {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}


/* =========================
   MAIN
========================= */

.main-layout {

  display: grid;

  /*
    DESKTOP:
    LEFT  = mascot + narrative
    RIGHT = Uniswap
  */

  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 480px);

  gap:
    clamp(55px, 7vw, 110px);

  align-items: center;

  max-width: 1120px;

  margin: 0 auto;

  padding:
    65px 20px
    90px;
}


/* =========================
   COPY COLUMN
========================= */

.copy-column {

  min-width: 0;

  display: flex;

  flex-direction: column;

  align-items: flex-start;
}


/* =========================
   MASCOT
========================= */

.mascot-wrap {

  width: 100%;

  display: flex;

  justify-content: flex-start;

  align-items: center;

  margin-bottom: 26px;
}


.mascot {

  display: block;

  width: min(230px, 48%);

  height: auto;

  object-fit: contain;

  user-select: none;

  -webkit-user-drag: none;
}


/* =========================
   EYEBROW
========================= */

.eyebrow {

  color: var(--muted);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.28em;

  text-transform: uppercase;

  margin-bottom: 22px;
}


/* =========================
   HEADLINE
========================= */

h1 {

  max-width: 680px;

  font-size:
    clamp(42px, 5vw, 72px);

  line-height: 0.98;

  letter-spacing: -0.055em;

  font-weight: 800;
}


/* =========================
   TAGLINE
========================= */

.tagline {

  max-width: 560px;

  margin-top: 27px;

  color: #a5a5a5;

  font-size:
    clamp(14px, 1.5vw, 17px);

  line-height: 1.7;
}


/* =========================
   CONTRACT
========================= */

.contract-wrap {

  display: flex;

  justify-content: flex-start;

  width: 100%;

  padding-top: 38px;
}


.contract {

  display: inline-flex;

  align-items: center;

  gap: 12px;

  max-width: 100%;

  padding:
    11px
    12px
    11px
    17px;

  background:
    rgba(255, 255, 255, 0.035);

  border:
    1px solid var(--border);

  border-radius: 999px;
}


/*
  IMPORTANT:

  CA di HTML tetap UTUH.

  CSS hanya membatasi tampilannya.
  JavaScript mengambil textContent
  sehingga yang tercopy tetap CA lengkap.
*/

.contract-address {

  display: block;

  max-width:
    min(440px, 42vw);

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  color: #bdbdbd;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: 12px;

  user-select: text;
}


.copy-btn {

  flex:
    0 0 auto;

  border:
    1px solid rgba(255, 255, 255, 0.14);

  background: #ffffff;

  color: #000000;

  padding:
    8px 13px;

  border-radius: 999px;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.06em;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}


.copy-btn:hover {
  opacity: 0.86;
}


.copy-btn:active {
  transform: scale(0.97);
}


.copy-btn.copied {
  background: #ffffff;
}


/* =========================
   UNISWAP
========================= */

.swap-section {

  display: flex;

  justify-content: center;

  align-items: center;

  width: 480px;

  max-width: 100%;
}


.swap-shell {

  width: 480px;

  max-width: 100%;

  overflow: hidden;

  border:
    1px solid var(--border);

  border-radius: var(--radius);

  background: #0a0a0a;

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45);
}


.swap-shell iframe {

  display: block;

  width: 480px;

  max-width: 100%;

  height: 640px;

  border: none;

  background: #0a0a0a;
}


/* =========================
   FOOTER
========================= */

footer {

  border-top:
    1px solid var(--border);

  padding:
    54px 0
    32px;
}


.footer-grid {

  display: grid;

  grid-template-columns:
    1.4fr
    1fr
    1fr;

  gap: 50px;

  padding-bottom: 55px;
}


.footer-brand {

  font-size: 17px;

  font-weight: 800;

  letter-spacing: 0.14em;

  margin-bottom: 13px;
}


.footer-description {

  max-width: 280px;

  color: #686868;

  font-size: 12px;

  line-height: 1.7;
}


.footer-title {

  color: #777;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.2em;

  text-transform: uppercase;

  margin-bottom: 18px;
}


.footer-links {

  display: flex;

  flex-direction: column;

  gap: 11px;
}


.footer-links a {

  width: fit-content;

  color: #aaa;

  font-size: 13px;

  transition:
    color 0.2s ease;
}


.footer-links a:hover {
  color: #fff;
}


.footer-bottom {

  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding-top: 25px;

  border-top:
    1px solid var(--border);

  color: #555;

  font-size: 11px;
}


/* =========================
   TOAST
========================= */

.toast {

  position: fixed;

  left: 50%;

  bottom: 28px;

  transform:
    translate(-50%, 20px);

  padding:
    11px 16px;

  background: #ffffff;

  color: #000000;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 800;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;

  z-index: 100;
}


.toast.show {

  opacity: 1;

  transform:
    translate(-50%, 0);
}


/* =========================================================
   TABLET
   701px — 1050px

   Tetap 2 kolom tetapi lebih compact.
========================================================= */

@media (min-width: 701px) and (max-width: 1050px) {

  .page {
    width:
      min(100% - 32px, var(--max));
  }


  .main-layout {

    grid-template-columns:
      minmax(0, 1fr)
      minmax(360px, 430px);

    gap: 38px;

    padding:
      48px 10px
      70px;
  }


  .mascot-wrap {
    margin-bottom: 20px;
  }


  .mascot {

    width:
      min(180px, 45%);
  }


  .eyebrow {

    font-size: 10px;

    margin-bottom: 18px;
  }


  h1 {

    font-size:
      clamp(38px, 5vw, 56px);
  }


  .tagline {

    font-size: 14px;

    margin-top: 21px;
  }


  .contract-wrap {
    padding-top: 28px;
  }


  .contract-address {

    max-width:
      min(290px, 32vw);

    font-size: 11px;
  }


  .swap-shell iframe {

    width: 100%;

    height: 600px;
  }


  .swap-section {
    width: 100%;
  }


  .footer-grid {
    gap: 30px;
  }

}


/* =========================================================
   SMARTPHONE / IPHONE
   <= 700px

   URUTAN:
   1. Uniswap
   2. Mascot
   3. Decentralized Swap
   4. Headline
   5. Tagline
   6. Contract
   7. Footer
========================================================= */

@media (max-width: 700px) {

  .page {

    width:
      min(100% - 28px, var(--max));
  }


  .main-layout {

    display: flex;

    flex-direction: column;

    gap: 0;

    padding:
      25px
      0
      65px;
  }


  /* =========================
     MOBILE SWAP
  ========================= */

  .swap-section {

    order: 1;

    width: 100%;

    margin: 0;

    padding:
      0
      0
      46px;
  }


  .swap-shell {

    width: 100%;

    border-radius: 20px;
  }


  .swap-shell iframe {

    width: 100%;

    height:
      min(640px, 155vw);

    min-height: 560px;
  }


  /* =========================
     MOBILE NARRATIVE
  ========================= */

  .copy-column {

    order: 2;

    width: 100%;

    padding:
      0
      6px;
  }


  /* Mascot centered on mobile */

  .mascot-wrap {

    justify-content: center;

    margin-bottom: 24px;
  }


  .mascot {

    width:
      min(210px, 62vw);

    max-width: 210px;
  }


  .eyebrow {

    margin-bottom: 17px;

    font-size: 10px;

    letter-spacing: 0.24em;
  }


  h1 {

    font-size:
      clamp(36px, 10.5vw, 52px);

    line-height: 0.98;

    letter-spacing: -0.055em;
  }


  .tagline {

    font-size: 14px;

    line-height: 1.65;

    margin-top: 20px;
  }


  /* =========================
     MOBILE CONTRACT
  ========================= */

  .contract-wrap {

    padding-top: 28px;

    width: 100%;
  }


  .contract {

    width: 100%;

    justify-content:
      space-between;

    gap: 8px;
  }


  .contract-address {

    max-width:
      calc(100% - 78px);

    font-size: 10px;
  }


  .copy-btn {

    flex:
      0 0 auto;

    padding:
      8px 12px;
  }


  /* =========================
     MOBILE FOOTER
  ========================= */

  footer {

    padding:
      44px 0
      26px;
  }


  .footer-grid {

    grid-template-columns:
      1fr 1fr;

    gap:
      34px 22px;

    padding-bottom: 42px;
  }


  .footer-brand-column {

    grid-column:
      1 / -1;
  }


  .footer-bottom {

    flex-direction: column;

    gap: 8px;
  }

}


/* =========================================================
   SMALL PHONE
   <= 420px
========================================================= */

@media (max-width: 420px) {

  .page {

    width:
      min(100% - 24px, var(--max));
  }


  .main-layout {

    padding-top: 18px;
  }


  .swap-section {

    padding-bottom: 38px;
  }


  .mascot {

    width:
      min(185px, 58vw);
  }


  h1 {

    font-size:
      clamp(34px, 10.5vw, 44px);
  }


  .contract-address {

    max-width: 58%;
  }


  .footer-grid {

    grid-template-columns: 1fr;
  }

}