@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --card: #1a1a26;
  --border: #2a2a3d;
  --accent: #7c6cfa;
  --accent-glow: rgba(124,108,250,0.18);
  --accent2: #3de6c8;
  --text: #e8e8f0;
  --muted: #6b6b88;
  --danger: #ff5f7e;
  --radius: 14px;
  --mono: 'Space Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 60px;
}

/* ── Header ── */
header {
  width: 100%;
  max-width: 560px;
  padding: 32px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 24px var(--accent-glow);
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.5px; line-height: 1;
}

.logo-sub {
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 2px;
}

.wallet-pill {
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.wallet-pill:hover { border-color: var(--accent); color: var(--accent); }
.wallet-pill.connected { color: var(--accent2); border-color: var(--accent2); }

/* ── Card ── */
.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}

.card-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 6px;
}
.card-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Fields ── */
.field { margin-bottom: 18px; }

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.hint {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  margin-left: 4px;
}

.ai-tag {
  font-size: 10px;
  color: var(--accent);
  margin-left: 4px;
  letter-spacing: 0.04em;
}

input, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input.mono { font-family: var(--mono); font-size: 13px; }

.amount-row {
  display: flex; gap: 10px; align-items: stretch;
}
.amount-row input { flex: 1; }

.currency-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 16px;
  display: flex; align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent2);
  font-weight: 700;
  white-space: nowrap;
}

/* ── Memo ── */
.memo-box { position: relative; }

textarea#memo {
  padding-right: 120px;
  min-height: 90px;
}

.memo-generate-btn {
  position: absolute;
  right: 10px; top: 10px;
  background: linear-gradient(135deg, var(--accent), #9b8dff);
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-family: var(--sans);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.1s;
  display: flex; align-items: center; gap: 5px;
}
.memo-generate-btn:hover { opacity: 0.85; }
.memo-generate-btn:active { transform: scale(0.97); }
.memo-generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.spark { font-size: 13px; }

/* ── AI thinking ── */
.ai-thinking {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
}
.ai-thinking.visible { display: flex; }

.dot-pulse { display: flex; gap: 3px; }
.dot-pulse span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s infinite;
}
.dot-pulse span:nth-child(2) { animation-delay: 0.2s; }
.dot-pulse span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%,80%,100%{opacity:0.2} 40%{opacity:1} }

/* ── Send button ── */
.send-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(124,108,250,0.25);
  margin-top: 4px;
}
.send-btn:hover { opacity: 0.92; box-shadow: 0 4px 32px rgba(124,108,250,0.4); }
.send-btn:active { transform: scale(0.99); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Status ── */
#status {
  width: 100%;
  max-width: 560px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
#status.show { display: flex; }
#status.info { background: rgba(124,108,250,0.12); border-color: var(--accent); color: var(--accent); }
#status.ok   { background: rgba(61,230,200,0.10); border-color: var(--accent2); color: var(--accent2); }
#status.err  { background: rgba(255,95,126,0.10); border-color: var(--danger); color: var(--danger); }
#status .tx-link {
  color: inherit;
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.8;
  text-decoration: underline;
}

/* ── History ── */
.history-card { overflow: hidden; }

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.clear-btn {
  font-size: 11px;
  color: var(--danger);
  background: none; border: none;
  cursor: pointer;
  font-family: var(--sans);
  opacity: 0.7;
}
.clear-btn:hover { opacity: 1; }

.history-list { display: flex; flex-direction: column; gap: 10px; }

.history-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0;
}

.tx-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.2s;
}
.tx-item:hover { border-color: var(--accent); }

.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tx-addr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.tx-amount {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent2);
}

.tx-memo {
  font-size: 12px;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.5;
  font-style: normal;
  white-space: pre-line;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

.tx-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.tx-time { font-size: 11px; color: var(--muted); }

.tx-hash {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
}
.tx-hash:hover { opacity: 1; }

/* ── Network badge ── */
.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(61,230,200,0.08);
  border: 1px solid rgba(61,230,200,0.2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent2);
  margin-left: 8px;
}

.net-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
/* ══════════════════════════════════════
   Hero, Feature Cards, Footer
   ══════════════════════════════════════ */

/* ── Hero ── */
.hero {
  width: 100%;
  max-width: 560px;
  padding: 8px 0 36px;
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent2);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 28px;
}

/* Arc visual: sender/receiver curve */
.arc-visual {
  position: relative;
  width: 100%;
}

.arc-svg {
  width: 100%;
  height: auto;
  display: block;
}

.arc-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: arc-draw 1.6s ease-out forwards;
}

@keyframes arc-draw {
  to { stroke-dashoffset: 0; }
}

.arc-node {
  filter: drop-shadow(0 0 6px currentColor);
}

.arc-node-end {
  animation: node-pulse 2.4s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.arc-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -8px;
  padding: 0 20px;
}

.arc-label-from,
.arc-label-to {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Feature cards ── */
.features {
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Arc logo placeholder (swap src once you have the official file) ── */
.arc-logo {
  height: 22px;
  width: auto;
  margin-right: 4px;
  opacity: 0.9;
}

/* ── Footer ── */
.site-footer {
  width: 100%;
  max-width: 560px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.footer-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent2);
}

.footer-bottom {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
  padding-bottom: 8px;
  }
#landingPage{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0b1020;
    padding:30px;
}

.landing-container{
    max-width:900px;
    text-align:center;
}

.landing-logo{
    width:90px;
    margin-bottom:20px;
}

.landing-badge{
    display:inline-block;
    padding:8px 18px;
    border-radius:999px;
    background:#1f3dff;
    color:white;
    font-size:14px;
}

.landing-container h1{
    font-size:60px;
    margin:20px 0 5px;
}

.landing-container h2{
    font-size:30px;
    color:#7bdcff;
}

.landing-container p{
    max-width:650px;
    margin:20px auto;
    line-height:1.7;
    color:#bfc8d8;
}

.landing-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin:40px 0;
}

.intro-card{
    background:#141b2d;
    padding:25px;
    border-radius:18px;
}

.flow{
    margin:35px auto;
    line-height:2;
    color:#8fdcff;
    font-weight:600;
}

.enter-btn{
    margin-top:30px;
    padding:18px 45px;
    border:none;
    border-radius:999px;
    font-size:18px;
    cursor:pointer;
    background:linear-gradient(90deg,#6b6cff,#35d7d0);
    color:white;
}
