/* Tukar Seru - tukarseru.com
   Built from Figma "Tukar Seru - HiFi User Journey v0.7 - Linus",
   page "12 · Website Desktop" (W1, W4, W5). Tokens = "01 · Brand & Foundations". */

:root {
  --ink-900: #061a5f;
  --ink-700: #26347c;
  --ink-500: #5b6690;
  --ink-300: #a7afcf;
  --line: #e7eaf6;
  --bg: #f4f5fb;
  --card: #ffffff;
  --night-900: #070b2e;
  --sky: #01a2fe;
  --blue: #0160fe;
  --cta: #0066ff;
  --violet: #7d2dfc;
  --magenta: #fb05c4;
  --coral: #fd6c4c;
  --orange: #fe9723;
  --gold: #fed535;
  --mint: #10c98a;
  --tint-violet: #efe7ff;
  --tint-mint: #ddf8ee;

  --seru-ride: linear-gradient(90deg, #01a2fe, #0160fe, #7d2dfc, #fb05c4, #fd6c4c, #fe9723, #fed535);
  --deep-night: linear-gradient(135deg, #0b1450 0%, #2a1a7a 55%, #5a1780 100%);
  --candy: linear-gradient(135deg, #7d2dfc, #fb05c4, #fd6c4c);
  --sun: linear-gradient(135deg, #fe9723, #fed535);
  --cool: linear-gradient(135deg, #01a2fe, #0160fe, #7d2dfc);

  --shadow-card: 0 8px 24px rgba(6, 26, 95, 0.07);
  --shadow-float: 0 16px 40px rgba(7, 11, 46, 0.35);
  --glow-cta: 0 12px 26px rgba(0, 102, 255, 0.22);

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --container: 1200px;
  --gutter: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.nav a:focus-visible,
.link:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: var(--glow-cta), inset 0 2px 0 rgba(255, 255, 255, 0.21);
}

.btn-primary:hover {
  background: #0058e0;
}

.btn-outline {
  background: #fff;
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink-300);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-white {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 8px 20px rgba(6, 26, 95, 0.12);
}

.btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-lg {
  height: 60px;
  padding: 0 32px;
}

.btn-md {
  height: 56px;
  padding: 0 34px;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------------------------------------------------------------- top nav */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 4px 20px rgba(6, 26, 95, 0.05);
}

.topnav .container {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 70px;
  width: auto;
}

.nav {
  display: flex;
  gap: 36px;
  margin-left: 80px;
  flex: 1;
}

.nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-500);
  border-radius: 8px;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink-900);
}

.nav-cta {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-night);
  color: #fff;
  margin-top: -88px;
  padding-top: 88px;
}

.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.blob-magenta {
  width: 600px;
  height: 600px;
  left: 54%;
  top: 40px;
  background: var(--magenta);
  opacity: 0.35;
}

.blob-orange {
  width: 500px;
  height: 500px;
  left: 73%;
  top: 300px;
  background: var(--orange);
  opacity: 0.3;
}

.blob-sky {
  width: 520px;
  height: 520px;
  left: -100px;
  top: 420px;
  background: var(--sky);
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 560px;
  align-items: center;
  min-height: 672px;
  padding-block: 52px 60px;
}

.overline {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.16;
  margin: 0;
}

.grad-text {
  background: linear-gradient(90deg, #01a2fe, #7d2dfc 30%, #fb05c4 60%, #fe9723 85%, #fed535);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 18px;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 24px 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .btn {
  width: 210px;
}

.stats {
  display: flex;
  gap: 48px;
  margin-top: 44px;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
}

.stat span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

/* phone mock + floating cards */

.showcase-wrap {
  display: flex;
  justify-content: flex-end;
}

/* Figma W1: showcase origin = (760, 140); phone at +120; cards/confetti as offsets. */
.showcase {
  position: relative;
  flex: none;
  width: 560px;
  height: 560px;
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.phone {
  position: absolute;
  left: 120px;
  top: 0;
  width: 300px;
  height: 560px;
  border-radius: 44px;
  overflow: hidden;
  background: var(--night-900);
  box-shadow: 0 30px 60px rgba(7, 11, 46, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 308px;
  background: linear-gradient(180deg, rgba(7, 11, 46, 0), rgba(7, 11, 46, 0.85));
}

.phone .caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 24px;
  z-index: 1;
}

.phone .caption b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 24px;
}

.phone .caption span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink-900);
  border-radius: 24px;
  padding: 16px 18px 16px 16px;
  box-shadow: var(--shadow-float);
  animation: bob 5s ease-in-out infinite;
}

.float img {
  width: 46px;
  height: 46px;
  flex: none;
}

.float b {
  display: block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1.3;
}

.float span {
  display: block;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}

.float-poin {
  left: 0;
  top: 65px;
}

.float-koin {
  left: 318px;
  top: 330px;
  animation-delay: -1.6s;
}

.float-koin b {
  font-size: 16px;
}

.float-kupon {
  left: 390px;
  top: 11px;
  border-radius: 22px;
  padding: 14px 14px 14px 14px;
  animation-delay: -3.2s;
}

.float-kupon b {
  font-size: 14px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.confetti i {
  position: absolute;
  display: block;
  border-radius: 2px;
}

.confetti i.dot {
  border-radius: 50%;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: 70px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section h2 {
  font-size: 36px;
  line-height: 1.17;
  margin: 0;
}

.section .sub {
  font-size: 16px;
  color: var(--ink-500);
  margin: 8px 0 0;
}

.link {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  border-radius: 6px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  background: var(--card);
  border-radius: 32px;
  padding: 28px;
  min-height: 236px;
  box-shadow: var(--shadow-card);
}

.step .num {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}

.step:nth-child(1) .num {
  background: var(--sun);
  box-shadow: 0 8px 20px rgba(254, 151, 35, 0.35);
}

.step:nth-child(2) .num {
  background: var(--candy);
  box-shadow: 0 8px 20px rgba(251, 5, 196, 0.35);
}

.step:nth-child(3) .num {
  background: var(--cool);
  box-shadow: 0 8px 20px rgba(1, 96, 254, 0.35);
}

.step .cur {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 56px;
  height: 56px;
}

.step h3 {
  font-size: 22px;
  margin: 24px 0 12px;
}

.step p {
  font-size: 15px;
  line-height: 1.53;
  color: var(--ink-500);
  margin: 0;
}

/* films */

.films-section h2 {
  font-size: 28px;
}

.films {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.film .poster {
  position: relative;
  aspect-ratio: 228 / 304;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(6, 26, 95, 0.08);
}

.film .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film .poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(7, 11, 46, 0), rgba(7, 11, 46, 0.85));
}

.film .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(7, 11, 46, 0.55);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}

.film h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 12px 0 4px;
}

.film p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  margin: 0;
}

/* CTA banner */

.cta-banner {
  position: relative;
  overflow: hidden;
  margin-block: 72px 40px;
  border-radius: 36px;
  background: var(--seru-ride);
  color: #fff;
  padding: 52px 56px;
  box-shadow: 0 20px 50px rgba(251, 5, 196, 0.19);
}

.cta-banner .ring {
  position: absolute;
  right: -40px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.cta-banner .loop {
  position: absolute;
  right: 40px;
  top: 20px;
  width: 300px;
  opacity: 0.2;
}

.cta-banner h2 {
  position: relative;
  font-size: 34px;
  line-height: 1.18;
  margin: 0;
}

.cta-banner p {
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 12px 0 18px;
}

.cta-banner .btn {
  position: relative;
  width: 220px;
}

/* footer */

.footer {
  background: var(--night-900);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
}

.footer .container {
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-block: 20px;
}

.footer img {
  height: 50px;
  width: auto;
  border-radius: 10px;
}

.footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.footer .note {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------------- W4 tukar poin */

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
}

.page-head h1 {
  font-size: 40px;
  margin: 0;
}

.page-head p {
  font-size: 16px;
  color: var(--ink-500);
  margin: 8px 0 0;
}

.wallet-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--sun);
  border-radius: 26px;
  padding: 18px 22px;
  min-width: 320px;
  box-shadow: 0 12px 30px rgba(254, 151, 35, 0.19);
}

.wallet-cta img {
  width: 48px;
  height: 48px;
}

.wallet-cta small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(6, 26, 95, 0.7);
}

.wallet-cta b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.exchange {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.xcard {
  position: relative;
  background: var(--card);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 276px;
  display: flex;
  flex-direction: column;
}

.xcard .top {
  position: relative;
  height: 120px;
  overflow: hidden;
  padding: 28px;
}

.xcard .top::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.xcard .top img {
  width: 64px;
  height: 64px;
}

.xcard .gift {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: #fff;
  display: grid;
  place-items: center;
}

.xcard .gift svg {
  width: 36px;
  height: 36px;
}

.xcard .pill-top {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.top-candy {
  background: var(--candy);
}

.top-cool {
  background: var(--cool);
}

.top-sun {
  background: var(--sun);
}

.xcard .body {
  position: relative;
  padding: 20px 28px 24px;
  flex: 1;
}

.xcard h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.xcard .body p {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  margin: 0 0 16px;
}

.rate {
  display: inline-block;
  background: var(--bg);
  border-radius: 15px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
}

.xcard .go {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--ink-900);
  display: grid;
  place-items: center;
}

.xcard .go svg {
  width: 22px;
  height: 22px;
}

.rules {
  background: var(--card);
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 28px;
}

.rules svg {
  width: 32px;
  height: 32px;
}

.rules h3 {
  font-size: 20px;
  margin: 14px 0 16px;
}

.rules ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.rules li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.4;
}

.rules li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seru-ride);
}

/* ---------------------------------------------------------------- W5 modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 11, 46, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.dialog {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 36px;
  padding: 36px 40px 32px;
  box-shadow: 0 30px 80px rgba(7, 11, 46, 0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal.open .dialog {
  transform: none;
}

.dialog .close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.dialog .close svg {
  width: 22px;
  height: 22px;
}

.dialog .logo {
  width: 110px;
  height: auto;
  margin-left: -8px;
}

.dialog h2 {
  font-size: 30px;
  margin: 18px 0 8px;
}

.dialog .sub {
  font-size: 15px;
  color: var(--ink-500);
  margin: 0 0 20px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 8px;
}

.phone-input {
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  padding: 0 18px;
  transition: box-shadow 0.15s ease;
}

.phone-input:focus-within {
  box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(1, 96, 254, 0.1);
}

.phone-input span {
  font-size: 16px;
  font-weight: 700;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 2px solid var(--line);
  line-height: 28px;
}

.phone-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  background: transparent;
}

.phone-input input::placeholder {
  color: var(--ink-300);
}

.channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border-radius: 18px;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  padding: 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-500);
}

.channel[aria-pressed="true"] {
  background: var(--tint-mint);
  box-shadow: inset 0 0 0 2px var(--mint);
  color: var(--ink-900);
}

.channel svg {
  width: 22px;
  height: 22px;
}

.invite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 52px;
  border-radius: 18px;
  background: var(--tint-violet);
  padding: 8px 14px;
}

.invite svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.invite label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
}

.invite input {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--violet);
  padding: 0;
  text-transform: uppercase;
}

.invite input::placeholder {
  color: var(--ink-300);
  font-weight: 600;
  text-transform: none;
}

.agree {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  border-radius: 18px;
  background: var(--bg);
  padding: 16px 14px;
  cursor: pointer;
}

.agree input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.agree .box {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--ink-300);
  display: grid;
  place-items: center;
  background: #fff;
}

.agree .box svg {
  width: 16px;
  height: 16px;
  opacity: 0;
}

.agree input:checked + .box {
  background: var(--cool);
  box-shadow: none;
}

.agree input:checked + .box svg {
  opacity: 1;
}

.agree input:focus-visible + .box {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.agree b {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.agree small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 4px;
}

.dialog .btn-primary {
  width: 100%;
  margin-top: 24px;
}

.dialog .btn-primary:disabled {
  background: #dfe3f1;
  color: var(--ink-300);
  box-shadow: none;
  cursor: not-allowed;
}

.dialog .switch {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  background: none;
  border: 0;
  width: 100%;
}

.notice {
  display: none;
  margin-top: 16px;
  border-radius: 18px;
  background: var(--tint-violet);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-700);
}

.notice.show {
  display: block;
}

.notice b {
  color: var(--ink-900);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .nav {
    margin-left: 32px;
    gap: 22px;
  }

  .hero-inner {
    grid-template-columns: 1fr 480px;
  }

  .showcase {
    transform: scale(0.86);
    transform-origin: right center;
  }

  .films {
    grid-template-columns: repeat(4, 1fr);
  }

  .films .film:nth-child(5) {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 40px 56px;
    gap: 40px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .showcase-wrap {
    justify-content: center;
  }

  .showcase {
    transform: none;
    transform-origin: center;
  }

  .steps,
  .exchange {
    grid-template-columns: 1fr 1fr;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .topnav .container {
    height: 68px;
    gap: 12px;
  }

  .hero {
    margin-top: -68px;
    padding-top: 68px;
  }

  .brand img {
    height: 52px;
  }

  .nav-cta .btn-sm {
    height: 40px;
    padding: 0 16px;
  }

  .hero-inner {
    padding-top: 32px;
  }

  .overline {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero .lead {
    font-size: 16px;
    margin: 18px 0 28px;
  }

  .hero-actions .btn {
    width: auto;
    flex: 1 1 0;
    height: 56px;
    padding: 0 16px;
  }

  .stats {
    gap: 12px;
    justify-content: space-between;
  }

  .stat b {
    font-size: 15px;
    white-space: nowrap;
  }

  .stat span {
    font-size: 12px;
  }

  .showcase {
    transform: scale(0.6);
    margin: -112px;
  }

  .section {
    padding-top: 52px;
  }

  .section h2 {
    font-size: 26px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .steps,
  .exchange {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step {
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
  }

  .step h3 {
    font-size: 19px;
    margin-top: 18px;
  }

  .films {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .films::-webkit-scrollbar {
    display: none;
  }

  .films .film,
  .films .film:nth-child(5) {
    display: block;
    flex: 0 0 44%;
    scroll-snap-align: start;
  }

  .cta-banner {
    padding: 32px 24px;
    border-radius: 28px;
    margin-top: 52px;
  }

  .cta-banner h2 {
    font-size: 24px;
  }

  .cta-banner p {
    font-size: 15px;
  }

  .cta-banner .loop {
    width: 200px;
    right: -30px;
  }

  .footer .note {
    margin-left: 0;
  }

  .page-head h1 {
    font-size: 30px;
  }

  .wallet-cta {
    min-width: 0;
    width: 100%;
  }

  .dialog {
    padding: 28px 22px 24px;
    border-radius: 28px;
  }

  .dialog h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float {
    animation: none;
  }
}
