:root {
  --bg: #070b12;
  --bg-soft: #0d1520;
  --card: rgba(9, 15, 22, 0.9);
  --panel: rgba(17, 24, 34, 0.8);
  --panel-strong: rgba(11, 18, 26, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(98, 126, 234, 0.22);
  --muted: #9aa7b7;
  --muted-strong: #dfe9f4;
  --text: #edf6ff;
  --green: #62f0a2;
  --green-strong: #49d995;
  --green-soft: rgba(98, 240, 162, 0.14);
  --blue: #627EEA;
  --orange: #f7931a;
  --shadow: rgba(0, 0, 0, 0.45);
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #071018 0%, #0a121b 40%, #071018 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  position: relative;
}

img, svg {
  display: block;
}

button, input {
  font: inherit;
}

.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.orb-1 {
  width: 180px;
  height: 180px;
  left: 10%;
  top: 14%;
  background: rgba(98, 240, 162, 0.06);
}

.orb-2 {
  width: 200px;
  height: 200px;
  right: 12%;
  top: 18%;
  background: rgba(98, 126, 234, 0.06);
}

.orb-3 {
  width: 220px;
  height: 220px;
  left: 38%;
  bottom: 10%;
  background: rgba(98, 240, 162, 0.03);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 142, 180, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 142, 180, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 42%, rgba(0, 0, 0, 0.18) 82%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 42%, rgba(0, 0, 0, 0.18) 82%, transparent 100%);
}

.navbar,
main,
footer {
  position: relative;
  z-index: 1;
}

.navbar {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 500;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(98, 240, 162, 0.8);
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 20px;
}

.hero {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: #dfe8f7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(90deg, #eaf3ff 0%, #d3e0ff 30%, #9be8cb 58%, #eaf3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.96;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.speedup-section {
  position: relative;
  max-width: 980px;
  margin: 0 auto 68px;
}

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  filter: blur(28px);
  background: rgba(98, 126, 234, 0.04);
}

.main-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 26px 20px;
  border-radius: 20px;
  background: rgba(13, 19, 27, 0.9);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.step {
  display: none;
}

.step.active {
  display: block;
}

label {
  display: block;
  margin-bottom: 12px;
  color: #dfeaf7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coin-dropdown {
  position: relative;
  margin-bottom: 20px;
}

.coin-selected {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.coin-selected:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.025);
}

.coin-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.coin-name {
  flex: 1;
  font-weight: 600;
}

.coin-ticker {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.coin-arrow {
  color: var(--muted);
}

.coin-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(7, 12, 18, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
  padding: 8px;
  display: none;
  max-height: 360px;
  overflow: auto;
  z-index: 20;
}

.coin-dropdown.open .coin-options {
  display: block;
}

.coin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.coin-item:hover {
  background: rgba(255,255,255,0.03);
}

.action-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.015);
  color: var(--muted-strong);
  border-radius: 14px;
  min-height: 54px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  border-color: rgba(255,255,255,0.12);
}

.action-btn.active {
  background: rgba(98, 240, 162, 0.06);
  border-color: rgba(98, 240, 162, 0.2);
  color: #baf7d9;
  box-shadow: inset 0 0 0 1px rgba(98,240,162,0.04);
}

.input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 16px 0 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}

.input-icon {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

#txHash {
  width: 100%;
  height: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  outline: none;
  font-size: 1rem;
}

#txHash::placeholder {
  color: var(--muted);
}

.input-hint,
.btn-hint {
  margin: 16px 0 0;
  text-align: center;
}

.fee-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  width: 100%;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(7, 18, 14, 0.9);
  border: 1px solid rgba(255,255,255,0.04);
  color: rgba(237, 246, 255, 0.94);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.fee-pill svg {
  color: #7bf4c2;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin-top: 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #b5f1cf 0%, #d7f8e5 100%);
  color: #071a13;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(112, 228, 177, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(112, 228, 177, 0.14);
}

#openTrustBtn {
  margin-top: 0;
}

#openTrustBtn svg {
  flex-shrink: 0;
}

.input-hint {
  text-align: left;
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0 8px;
}

.loading-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}

.ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(98, 126, 234, 0.15);
  border-top-color: rgba(98, 126, 234, 0.8);
  border-right-color: rgba(98, 240, 162, 0.7);
  animation: spin 1.8s linear infinite;
}

.loading-eth {
  position: absolute;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-container h3,
.error-container h3 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  letter-spacing: -0.05em;
}

.loading-container p,
.error-container p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.progress-bar {
  width: min(100%, 440px);
  height: 12px;
  margin-top: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.progress-fill {
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(98, 240, 162, 0.9), rgba(98, 126, 234, 0.8));
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-35%); }
  100% { transform: translateX(165%); }
}

.error-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239,68,68,0.12);
}

.how-it-works,
.networks-section,
.faq-section,
.stats-section {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
}

.how-it-works,
.networks-section,
.faq-section {
  padding-top: 36px;
}

.section-label {
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.how-it-works h2,
.networks-section h2,
.faq-section h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.step-card {
  padding: 22px 20px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}

.step-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(98, 126, 234, 0.12);
  color: #dfe8ff;
  margin-bottom: 14px;
}

.step-number {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.22);
}

.networks-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.network-card {
  padding: 18px 16px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}

.coin-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: block;
  object-fit: contain;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.network-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.network-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 50px;
}

.stat {
  padding: 20px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
}

.stat-value {
  display: block;
  font-size: clamp(1.65rem, 2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  color: var(--muted);
  margin-bottom: 14px;
}

.stat-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.stat-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(98, 240, 162, 0.9), rgba(98, 126, 234, 0.9));
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
}

.faq-toggle span {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted-strong);
  border-bottom: 2px solid var(--muted-strong);
  transform: rotate(45deg);
  margin-top: -4px;
}

.faq-item[open] .faq-toggle span {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  width: min(1200px, calc(100% - 24px));
  margin: 50px auto 0;
  padding: 18px 0 42px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
  color: var(--muted);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .steps-grid {
    grid-template-columns: 1fr 30px 1fr;
  }

  .step-connector:nth-of-type(odd) {
    display: none;
  }

  .networks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-status {
    display: none;
  }

  .hero {
    margin-bottom: 22px;
  }

  .main-card {
    padding: 20px 18px 18px;
  }

  .action-selector,
  .stats-section,
  .networks-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-connector {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

