/* UDR.app — palette carried over from the original site:
   sky #AECBEA, mist #DCE4EF, lilac #B8B0D0, white, black, accent #4263EB. */

:root {
  --sky: #aecbea;
  --sky-soft: #c9dcf1;
  --mist: #dce4ef;
  --lilac: #b8b0d0;
  --paper: #ffffff;
  --ink: #0d1321;
  --ink-2: #39435a;
  --ink-3: #5f6a82;
  --line: rgba(13, 19, 33, 0.1);
  --accent: #4263eb;
  --accent-deep: #2c48cc;
  --accent-wash: rgba(66, 99, 235, 0.12);
  --danger: #b4233a;

  --font-display: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-float:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 2px 4px rgba(24, 44, 89, 0.06),
    0 12px 24px -8px rgba(24, 44, 89, 0.18),
    0 40px 80px -24px rgba(24, 44, 89, 0.32);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--ink); }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.92em; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Wordmark: the dot becomes a hyphen on hover ---------- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font: 800 1.5rem/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin: 0 0.06em;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.wordmark:hover .wordmark-dot,
.wordmark:focus-visible .wordmark-dot {
  width: 0.42em;
  height: 0.13em;
  transform: translateY(-0.2em);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  padding-block: 22px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav { display: flex; gap: 6px; }

.site-nav a {
  padding: 8px 14px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.55); color: var(--ink); }

/* ---------- Shared bits ---------- */

.pulse {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22a06b;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p:last-child {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: -84px;
  padding: calc(84px + clamp(32px, 6vw, 72px)) 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
  isolation: isolate;
}

/* Soft light, a dot grid, and fine grain over the sky blue. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(184, 176, 208, 0.75), transparent 70%),
    radial-gradient(50% 60% at 10% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(40% 40% at 60% 100%, rgba(220, 228, 239, 0.9), transparent 70%),
    var(--sky);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(13, 19, 33, 0.13) 1px, transparent 1.4px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-size: 24px 24px, 160px 160px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(90% 80% at 50% 30%, #000 30%, transparent 85%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  line-height: 1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
}

.lede strong { font-weight: 600; color: var(--ink); }

/* ---------- Open form ---------- */

.open-form { margin-top: 36px; max-width: 560px; }

.field-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s;
}

.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash), var(--shadow-float);
}

.field-icon {
  flex: none;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.6;
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 1.2rem/1.2 var(--font-body);
  color: var(--ink);
}

.field input::placeholder { color: #9aa3b5; transition: opacity 0.2s; }
.field input[aria-invalid="true"] { color: var(--danger); }

.field button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--paper);
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.field button svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.field button:hover { background: var(--accent-deep); }
.field button:hover svg { transform: translate(2px, -2px); }
.field button:active { transform: scale(0.97); }

/* The live address preview under the field. */
.route {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 1.6em;
  margin-top: 16px;
  padding-left: 4px;
  font: 400 0.95rem/1.5 var(--font-mono);
  color: var(--ink-2);
}

.route-label {
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.route-url { overflow-wrap: anywhere; color: var(--ink); }
.route-scheme, .route-apex { color: var(--ink-3); }
.route [data-placeholder] { color: var(--ink-3); opacity: 0.6; }

.route-hyphen {
  display: inline-block;
  margin-inline: 1px;
  padding: 0 3px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 500;
}

.route-hyphen.is-pending { background: transparent; color: var(--ink-3); }
.route-hyphen.pop { animation: pop 0.45s var(--ease-out); }

@keyframes pop {
  0% { transform: scale(0.4) rotate(-20deg); }
  60% { transform: scale(1.25) rotate(4deg); }
  100% { transform: none; }
}

.route[data-state="example"] .route-url { color: var(--ink-2); }
.route-hint { display: none; color: var(--ink-2); font-family: var(--font-body); }
.route[data-state="invalid"] .route-url,
.route[data-state="invalid"] .route-label { display: none; }
.route[data-state="invalid"] .route-hint { display: inline; }

.form-error {
  margin-top: 10px;
  padding-left: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--danger);
}

/* ---------- Hero visual: a browser opening the site ---------- */

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 10%;
  border-radius: 28px;
  background: linear-gradient(140deg, var(--lilac), rgba(184, 176, 208, 0.25));
  transform: rotate(5deg);
}

.browser {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f5f8fc;
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d5dce8; }

.browser-address {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--paper);
  border: 1px solid var(--line);
  font: 400 0.82rem/1 var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}

.browser-address > span { overflow: hidden; text-overflow: ellipsis; }

.browser-address svg {
  flex: none;
  width: 14px; height: 14px;
  fill: none;
  stroke: #22a06b;
  stroke-width: 2;
}

.browser-view {
  position: relative;
  aspect-ratio: 1;
  background: var(--mist);
}

.browser-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}

.browser-view img.is-swapping { opacity: 0; transform: scale(1.03); }

.browser-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(255, 255, 255, 0.8), transparent 70%),
    linear-gradient(160deg, var(--sky-soft), var(--lilac));
}

.placeholder-domain {
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 700 clamp(1.6rem, 4vw, 2.4rem)/1.05 var(--font-display);
  letter-spacing: -0.03em;
}

.placeholder-note { font: 400 0.8rem/1 var(--font-mono); color: var(--ink-2); }

.badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 99px;
  background: var(--paper);
  box-shadow: 0 10px 30px -10px rgba(24, 44, 89, 0.4);
  font: 500 0.82rem/1 var(--font-body);
  white-space: nowrap;
}

.badge-ipfs { right: 28px; bottom: -18px; animation: float 6s ease-in-out infinite; }

.badge-swap {
  left: -26px;
  top: 48%;
  gap: 6px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  animation: float 6s ease-in-out -3s infinite;
}

.badge-swap b:last-child { color: #9fb3ff; }

.badge-swap svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.6;
}

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

/* ---------- How it works ---------- */

.how {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
  background: var(--paper);
  border-radius: 40px 40px 0 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f7f9fd, var(--paper));
}

/* Connector arrows between steps on wide screens. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 74px;
  right: -16px;
  z-index: 1;
  width: 12px; height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.step-num { font: 500 0.78rem/1 var(--font-mono); color: var(--ink-3); }

.token {
  align-self: flex-start;
  margin-block: 6px 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  font: 500 1.05rem/1 var(--font-mono);
  white-space: nowrap;
}

.token b { font-weight: 500; }
.token-dot { color: var(--accent); }

.token-hyphen {
  display: inline-block;
  padding: 0 3px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--paper);
}

.token-apex { color: var(--ink-3); }

.token-ipfs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
}

.step h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.facts h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 650;
}

.facts h3::before {
  content: "";
  width: 18px; height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.facts p { color: var(--ink-2); }

/* ---------- Showcase ---------- */

.showcase {
  padding-block: clamp(80px, 11vw, 140px);
  background:
    radial-gradient(50% 40% at 100% 0%, rgba(184, 176, 208, 0.45), transparent 70%),
    var(--mist);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile-feature { grid-column: span 2; grid-row: span 2; }

.tile a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--sky);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(24, 44, 89, 0.08);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.tile-address {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font: 500 0.78rem/1.2 var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.tile-address b {
  display: inline-block;
  padding: 0 2px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 500;
}

.tile-address span { color: var(--ink-3); }
.tile-feature .tile-address { font-size: 0.95rem; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; }

.tile a:hover,
.tile a:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -18px rgba(24, 44, 89, 0.45);
}

.tile a:hover img,
.tile a:focus-visible img { transform: scale(1.04); }

.tile a:hover .tile-address,
.tile a:focus-visible .tile-address { opacity: 1; transform: none; }

.tile-yours a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  aspect-ratio: 1;
  padding: 18px;
  border: 1.5px dashed rgba(66, 99, 235, 0.45);
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(160deg, var(--sky-soft), var(--lilac));
  box-shadow: none;
}

.tile-yours-mark {
  margin-bottom: auto;
  font: 500 0.95rem/1 var(--font-mono);
  color: var(--ink-2);
}

.tile-yours-mark b {
  display: inline-block;
  padding: 0 3px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 500;
}

.tile-yours-title {
  font: 700 1.25rem/1.1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tile-yours-note { font-size: 0.85rem; line-height: 1.4; color: var(--ink-2); }

/* Touch screens have no hover, so always show the address. */
@media (hover: none) {
  .tile-address { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 48px;
  background: var(--sky);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 40px;
}

.site-footer p { font-size: 0.95rem; color: var(--ink-2); }
.copyright { font-family: var(--font-mono); font-size: 0.82rem !important; }

/* ---------- Error page ---------- */

.page-error {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(184, 176, 208, 0.7), transparent 70%),
    radial-gradient(50% 50% at 0% 0%, rgba(255, 255, 255, 0.6), transparent 70%),
    var(--sky);
}

.page-error .site-footer { background: transparent; }

.error {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 6vw, 72px);
}

.error-card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-float);
}

.error-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.8rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.error-code .pulse { background: #e0803a; }
[data-state="loading"] .error-code .pulse { background: var(--accent); }

.loading-bar {
  height: 4px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--mist);
}

.loading-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: loading 1.2s ease-in-out infinite;
}

@keyframes loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

[data-state="error"] .loading-bar { display: none; }

.error-card h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.error-detail { margin-top: 14px; font-size: 1.1rem; color: var(--ink-2); }

.error-detail code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--mist);
  color: var(--ink);
}

.error-card .open-form { margin-top: 32px; }
.error-card .field { box-shadow: 0 8px 24px -12px rgba(24, 44, 89, 0.3); border-color: var(--line); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
}

.back-link svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.25s var(--ease-out);
}

.back-link:hover svg { transform: translateX(-3px); }

/* ---------- Page-load reveal ---------- */

.reveal { animation: reveal 0.9s var(--ease-out) both; }
.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.15s; }
.r3 { animation-delay: 0.28s; }
.r4 { animation-delay: 0.4s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { width: min(88%, 400px); margin-top: 16px; }
  .steps, .facts { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { top: auto; bottom: -16px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .field { flex-wrap: wrap; padding: 8px; }
  .field-icon { margin-left: 10px; }
  .field input { padding-inline: 4px; }
  .field button { width: 100%; justify-content: center; }
  .badge-swap { left: -8px; }
  .how { border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
