/* ============================================
   Revoke.cash recreation - main stylesheet
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --text: #1a1a1a;
  --muted: #4b5563;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --bg: #ffffff;
  --link: #2563eb;
  --radius: 12px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14.5px; color: #111; font-weight: 500; }
.main-nav a:hover { color: var(--link); }
.caret { font-size: 10px; margin-left: 2px; color: #6b7280; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, transform .1s ease;
}
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #000; }
.btn-dark:active { transform: translateY(1px); }

.connect-btn { padding: 9px 16px; }

.search-bar { border-bottom: 1px solid var(--border); }
.search-bar .container {
  display: flex; align-items: center; gap: 10px;
  height: 48px;
}
.search-icon { color: #9ca3af; font-size: 14px; }
.search-bar input {
  border: none; outline: none; width: 100%;
  font-size: 14px; color: #111;
  background: transparent;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: left; }
.hero h1 {
  font-size: 38px; line-height: 1.15; font-weight: 800;
  letter-spacing: -0.02em; text-align: center;
  margin-bottom: 16px;
}
.hero-sub {
  text-align: center;
  color: #374151;
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto 28px;
}
.video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.video-wrap video { width: 100%; height: auto; display: block; background: #000; }
.cta-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- How Section ---------- */
.how-section {
  background: #000;
  color: #fff;
  padding: 56px 0 64px;
}
.how-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.step-card {
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 18px 20px;
  min-height: 120px;
}
.step-icon { color: #111; margin-bottom: 6px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; color: #374151; line-height: 1.5; }

/* ---------- Why ---------- */
.why-section { max-width: 760px; padding-top: 64px; padding-bottom: 32px; }
.why-section h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.why-section h3 { font-size: 15px; margin-top: 18px; margin-bottom: 6px; font-weight: 700; }
.why-section p { font-size: 14.5px; color: #374151; }

/* ---------- FAQ ---------- */
.faq-section { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.faq-section h2 {
  font-size: 26px; font-weight: 800;
  margin-bottom: 24px; letter-spacing: -0.01em;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
}
.faq-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: #374151; }
.faq-foot { margin-top: 32px; font-size: 14px; color: #374151; }
.faq-foot a { color: var(--link); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; padding: 56px 0 48px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.footer-cols h5 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-cols a {
  display: block; font-size: 13.5px; color: #d1d5db;
  margin-bottom: 8px; transition: color .15s;
}
.footer-cols a:hover { color: #fff; }
.footer-rule { border: none; border-top: 1px solid #1f2937; margin: 40px 0 24px; max-width: 880px; margin-left: auto; margin-right: auto; }

.footer-bottom {
  max-width: 880px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.footer-meta p { font-size: 13px; color: #9ca3af; margin-bottom: 4px; }
.footer-meta a { color: #9ca3af; }
.footer-meta a:hover { color: #fff; }
.footer-selects { display: flex; gap: 10px; }
.select-pill {
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #e5e7eb;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 60px 16px;
  z-index: 100;
  overflow-y: auto;
}
.modal-overlay.is-open { display: flex; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-header { display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.modal-close { color: #6b7280; padding: 4px; border-radius: 6px; }
.modal-close:hover { color: #111; background: #f3f4f6; }
.modal-sub { color: #6b7280; font-size: 14px; margin: 8px 0 20px; }

.chain-list { display: flex; flex-direction: column; gap: 10px; }
.chain-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color .15s, background .15s;
}
.chain-item:hover { border-color: #9ca3af; background: #fafafa; }
.chain-icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chain-icon.eth  { background: #4b5563; }
.chain-icon.sol  { background: #efe6ff; }
.chain-icon.xrp  { background: #e5e7eb; }
.chain-icon.sui  { background: #dbeafe; }
.chain-icon.tron { background: #fde2e2; }

.chain-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chain-name { font-size: 15px; font-weight: 700; color: #111; }
.chain-desc { font-size: 13px; color: #6b7280; }
.chain-arrow { color: #6b7280; font-size: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 480px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 560px) {
  .header-inner { height: 56px; }
  .logo { font-size: 20px; }
  .connect-btn { padding: 8px 12px; font-size: 13px; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 14px; }
  .how-title, .why-section h2, .faq-section h2 { font-size: 22px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal { padding: 22px 18px; border-radius: 14px; }
}
