:root {
  --ink: #17241e;
  --muted: #657069;
  --paper: #f3f1eb;
  --card: #fffef9;
  --line: #d8d7cf;
  --accent: #d8ff4f;
  --accent-dark: #c4ec35;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 74px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 11px; font: 700 20px Manrope; }
.brand-mark { width: 27px; height: 27px; position: relative; display: inline-block; transform: rotate(-7deg); }
.brand-mark i { position: absolute; width: 9px; height: 24px; background: var(--ink); border-radius: 9px; left: 5px; top: 1px; }
.brand-mark i:last-child { left: 15px; top: 4px; height: 20px; background: var(--accent); }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
nav a { color: var(--ink); text-decoration: none; }

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 450px);
  align-items: start;
  gap: clamp(38px, 6vw, 90px);
  padding: 28px clamp(22px, 6vw, 86px) 34px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(23,36,30,.08); border-radius: 50%; }
.hero::before { width: 540px; height: 540px; left: -280px; bottom: -290px; }
.hero::after { width: 310px; height: 310px; left: -165px; bottom: -180px; }
.eyebrow, .micro { margin: 0 0 14px; letter-spacing: .15em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.hero-left { min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.hero h1 { margin: 0; max-width: 720px; font: 600 clamp(47px, 5.4vw, 76px)/.92 Manrope; letter-spacing: -.07em; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1.4px var(--ink); font-style: normal; }
.lead { max-width: 520px; margin: 18px 0 20px; color: var(--muted); line-height: 1.5; font-size: 15px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 27px; font-size: 12px; color: var(--muted); }
.trust-row span { position: relative; padding-left: 16px; }
.trust-row span::before { content: ""; position: absolute; left: 0; top: 5px; width: 6px; height: 6px; background: var(--accent); border: 1px solid var(--ink); border-radius: 50%; }
.trust-row b { color: var(--ink); }

.transfer-card { background: var(--card); padding: 25px 30px 22px; box-shadow: 0 23px 60px rgba(28,39,34,.12); border: 1px solid rgba(255,255,255,.9); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.step-head .micro { margin: 0 0 5px; color: var(--muted); }
.step-head h2 { margin: 0; font: 600 23px Manrope; letter-spacing: -.03em; }
.upload-limits { margin: 0; color: var(--muted); font-size: 9px; white-space: nowrap; }
.step-count { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 50%; font: 600 12px Manrope; }
.dropzone { width: 100%; min-height: 76px; display: flex; justify-content: center; align-items: center; gap: 16px; border: 1px dashed #a9afa9; background: #faf9f5; cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, white); }
.plus { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--ink); border-radius: 50%; font-size: 23px; font-weight: 300; }
.dropzone strong, .dropzone small { display: block; text-align: left; }
.dropzone strong { font-size: 14px; }
.dropzone small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.file-list { margin-top: 10px; border: 1px solid var(--line); max-height: 110px; overflow: auto; }
.file-item { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--line); font-size: 12px; }
.file-item:last-child { border-bottom: 0; }
.file-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.file-item small { color: var(--muted); }
.remove-file { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; }
.remove-file:hover { color: var(--ink); }
.field { margin-top: 11px; }
.field label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid #bfc3be; outline: 0; padding: 8px 1px 10px; background: transparent; border-radius: 0; resize: vertical; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.primary { margin-top: 16px; width: 100%; height: 48px; border: 1px solid var(--ink); background: var(--accent); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-weight: 600; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: .15s; }
.primary:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); background: var(--accent-dark); }
.primary:disabled { opacity: .55; cursor: wait; }
.terms { margin: 14px 0 0; color: #8a918d; font-size: 9px; text-align: center; }
.progress { min-height: 184px; margin: 0 0 20px; padding: 22px 23px 18px; background: #f1f2ec; border: 1px solid var(--line); }
.progress-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.progress-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 18px; }
.progress-status span { min-width: 0; }
.progress-status strong, .progress-status small { display: block; }
.progress-status strong { font: 600 18px Manrope; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-status small { color: var(--muted); margin-top: 6px; font-size: 11px; }
.progress-status b { font: 600 30px Manrope; letter-spacing: -.04em; }
.progress-orbit { position: relative; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; animation: rotate 1.2s linear infinite; }
.progress-orbit i { position: absolute; width: 9px; height: 9px; background: var(--accent); border: 1px solid var(--ink); border-radius: 50%; top: -3px; left: 15px; }
.cancel-upload { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.cancel-upload:hover { background: var(--ink); color: white; }
.cancel-upload:disabled { opacity: .4; cursor: wait; }
.progress-track { position: relative; display: block; height: 6px; overflow: hidden; background: #d5d8d1; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--ink); transition: width .15s; }
.progress.is-indeterminate .progress-track span { animation: indeterminate 1.1s ease-in-out infinite; }
.progress > p { margin: 11px 0 0; color: var(--muted); font-size: 9px; }
.transfer-card.is-uploading .step-head,
.transfer-card.is-uploading .dropzone,
.transfer-card.is-uploading .file-list,
.transfer-card.is-uploading .primary,
.transfer-card.is-uploading .terms { display: none; }
.transfer-card.is-uploading .field { opacity: .55; pointer-events: none; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes indeterminate {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(330%); }
}

.news-section { margin-top: auto; padding-top: 34px; color: var(--ink); }
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.news-head h2 { margin: 0; font: 600 16px Manrope; letter-spacing: -.02em; }
.rss-brand { min-width: 0; display: flex; align-items: center; min-height: 30px; }
.rss-brand img { display: block; max-width: 190px; width: auto; height: 30px; object-fit: contain; object-position: left center; }
.rss-source { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.rss-source img { width: 27px; height: 27px; border-radius: 5px; object-fit: contain; background: white; }
.rss-source small, .rss-source b { display: block; line-height: 1.1; }
.rss-source small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.rss-source b { margin-top: 3px; font-size: 10px; }
.news-list { container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.news-item { aspect-ratio: 16 / 9; min-height: 0; position: relative; overflow: hidden; color: white; background: var(--ink); text-decoration: none; padding: 11px; transition: .2s; isolation: isolate; }
.news-item::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(10,18,14,.08) 10%, rgba(10,18,14,.9) 100%); }
.news-item:hover .news-image { transform: scale(1.04); }
.news-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-item time { color: rgba(255,255,255,.76); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.news-item h3 { position: absolute; left: 11px; right: 27px; bottom: 10px; margin: 0; font: 600 clamp(11px, 1.4cqw, 17px)/1.24 Manrope; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item--featured h3 { font-size: clamp(12px, 1.55cqw, 18px); }
.news-arrow { position: absolute; right: 9px; bottom: 10px; font-size: 12px; }
.news-placeholder { color: var(--muted); font-size: 11px; padding: 30px; }
@media (min-width: 901px) {
  .hero-left { height: 600px; align-self: start; }
  .transfer-card { min-height: 600px; }
  .news-section { width: 100%; max-width: 600px; }
}
.how { padding: 90px clamp(22px, 8vw, 120px) 110px; }
.how > h2 { font: 600 clamp(35px,5vw,64px) Manrope; letter-spacing: -.05em; margin: 0 0 50px; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.how-grid article { padding: 28px 36px 0 0; }
.how-grid article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.how-grid span { font: 600 12px Manrope; color: var(--muted); }
.how-grid h3 { font: 600 20px Manrope; margin: 38px 0 10px; }
.how-grid p { max-width: 280px; color: var(--muted); line-height: 1.6; font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 26px clamp(22px, 5vw, 74px); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

.dialog { width: min(660px, calc(100% - 30px)); border: 0; padding: 42px; color: var(--ink); background: var(--card); box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.dialog::backdrop { background: rgba(20,29,25,.62); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 14px; right: 17px; border: 0; background: transparent; font-size: 25px; cursor: pointer; }
.dialog h2 { margin: 5px 0 12px; font: 600 36px Manrope; letter-spacing: -.04em; }
.dialog > p:not(.micro) { color: var(--muted); line-height: 1.55; }
.success-symbols { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; }
.success-icon { display: grid; place-items: center; width: 54px; height: 54px; background: var(--accent); border: 1px solid var(--ink); border-radius: 50%; font-size: 22px; }
.success-logo { width: 54px; height: 54px; object-fit: contain; }
.copy-row { display: flex; margin-top: 24px; }
.copy-row input { min-width: 0; flex: 1; border: 1px solid var(--line); padding: 11px; background: white; }
.copy-row button { border: 1px solid var(--ink); background: var(--ink); color: white; padding: 0 16px; cursor: pointer; }
.share-result { display: grid; grid-template-columns: 1fr 126px; gap: 24px; align-items: end; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.share-link-side > label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.share-link-side > small { display: block; color: var(--muted); margin-top: 14px; }
.qr-side { text-align: center; border-left: 1px solid var(--line); padding-left: 24px; }
.qr-side img { display: block; width: 102px; height: 102px; background: white; }
.qr-side small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.toast { position: fixed; z-index: 20; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: white; padding: 12px 18px; font-size: 12px; pointer-events: none; transition: .25s; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-copy { text-align: center; }
  .hero h1, .lead { margin-left: auto; margin-right: auto; }
  .trust-row { justify-content: center; }
  .transfer-card { width: min(100%, 520px); justify-self: center; }
  .news-section { margin-top: 38px; padding-top: 0; text-align: left; }
  .news-list { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 650px) {
  .topbar { height: 68px; }
  nav a { display: none; }
  .hero { padding: 42px 16px 55px; gap: 40px; }
  .hero h1 { font-size: clamp(45px,14vw,68px); }
  .transfer-card { padding: 27px 22px 24px; }
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .news-item { min-height: 0; }
  .how { padding-top: 70px; }
  .how-grid article, .how-grid article + article { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .how-grid h3 { margin-top: 18px; }
  footer { flex-direction: column; gap: 8px; }
  .dialog { padding: 35px 23px; }
  .share-result { grid-template-columns: 1fr; }
  .qr-side { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; display: flex; align-items: center; gap: 14px; text-align: left; }
  .qr-side img { width: 90px; height: 90px; }
}
