/* =========================================================
   Nuvio homepage styles
   ========================================================= */
:root {
  --blush: #fcefef;
  --pink: #ff2e88;
  --pink-dark: #e01e73;
  --ink: #1a1a1f;
  --muted: #5d5d66;
  --dark: #141414;
  --card: #ffffff;
  --line: #ececf0;
  --violet: #8b7bff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 30, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--blush);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.hero.container { width: min(100% - 32px); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; border: 0;
  font: 600 14px/1 inherit; font-family: inherit; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid #ddd; }
.btn-badge { background: #fff; color: var(--ink); font-size: 12px; padding: 6px 10px; border: 1px solid #ddd; }
.btn-badge svg { color: #22c55e; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 440px; }

.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #111; padding: 8px 18px; border-radius: 8px;
  border: 1px solid #ddd; transition: transform .15s;
}
.btn-store:hover { transform: translateY(-2px); }
.btn-store span { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; line-height: 1.1; }
.btn-store small { font-size: 9px; font-weight: 500; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 239, 239, .9); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--pink); font-weight: 800; font-size: 20px; }
.brand em { font-style: normal; }
.brand-light { color: #fff; }
.main-nav { display: flex; gap: 28px; font-size: 14px; }
.main-nav a:hover { color: var(--pink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 6px;
  display: none; flex-direction: column;
}
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a { padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.dropdown-menu a:hover { background: var(--blush); }

/* ---------- Hero ---------- */
.hero { padding-top: 4px; }
.hero-media {
  position: relative; min-height: 640px; border-radius: 22px; overflow: hidden;
  /* Layered gradients stand in for a photo, so the page has no image dependency */
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 46, 136, .35), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(139, 123, 255, .45), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(255, 170, 90, .35), transparent 45%),
    linear-gradient(135deg, #3a2f3b 0%, #5a4a55 40%, #2e3a45 100%);
}
.hero-media::after { /* soft dotted "crowd" texture */
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.hero-copy { position: absolute; left: 12%; top: 26%; max-width: 440px; color: #fff; z-index: 2; }
.hero-copy h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
.hero-copy p { margin: 18px 0 24px; font-size: 16px; opacity: .92; }

.float-card { position: absolute; z-index: 3; background: #fff; border-radius: 12px; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.wallet-float { right: 22%; top: 30px; width: 250px; padding: 14px 16px; }
.wf-top { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.wf-balance { font-size: 24px; font-weight: 800; margin: 4px 0 12px; }
.wf-actions { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.wf-actions span, .actions span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wf-actions i, .actions i {
  width: 30px; height: 30px; border-radius: 50%; background: #ffe3ef; color: var(--pink);
  display: grid; place-items: center;
}

.forward-float { right: 18%; top: 215px; width: 250px; padding: 10px; background: var(--violet); color: #fff; animation-delay: -2s; }
.forward-float small { font-size: 11px; opacity: .9; }
.fw-img {
  position: relative; height: 130px; border-radius: 8px; margin: 8px 0;
  background: linear-gradient(135deg, #d9c9a8, #8f7c62 60%, #4b4038);
}
.views { position: absolute; right: 6px; bottom: 6px; font-size: 10px; background: rgba(0,0,0,.4); padding: 2px 6px; border-radius: 6px; }
.forward-float p { font-size: 13px; }

.chat-float { width: 250px; padding: 10px 14px; font-size: 13px; animation-delay: -4s; }
.chat-float b { font-size: 12px; }
.chat-float-1 { right: 22%; top: 460px; }
.chat-float-2 { right: 25%; top: 540px; animation-delay: -1s; }

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

/* ---------- Partner marquee ---------- */
.partners { padding: 50px 0 70px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: scroll 35s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.partner { font-size: 20px; color: #3a3a40; white-space: nowrap; opacity: .85; }
.font-serif { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .08em; }
.font-sans { font-weight: 800; letter-spacing: -.01em; }
.font-mono { font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: .12em; }
.font-script { font-family: 'Brush Script MT', cursive; font-size: 26px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Feature sections ---------- */
.feature { padding: 120px 0; }
.feature.theme-dark { background: var(--dark); color: #fff; padding: 0; }
.feature.theme-dark .feature-copy p { color: #d6d6dc; }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding-inline: 5%; }
.feature-inner.mock-left .feature-visual { order: -1; }
.feature-copy h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.feature-copy .accent { color: var(--pink); }
.feature-copy p { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 440px; }
.feature-visual { display: flex; justify-content: center; }

/* ---------- Shared mockup parts ---------- */
.mock { position: relative; font-size: 11px; color: var(--ink); }
.coin {
  display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--c); color: #fff; font-weight: 800; font-size: .5em; flex-shrink: 0;
  font-size: 11px;
}
.avatar { display: inline-block; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.a1 { background: linear-gradient(135deg, #f8b4c8, #a45c75); }
.a2 { background: linear-gradient(135deg, #b4c8f8, #4c5ea4); }
.a3 { background: linear-gradient(135deg, #ffd29a, #d0712b); }
.a4 { background: linear-gradient(135deg, #b6f0d0, #2f8f65); }
.curly { position: absolute; color: var(--pink); }
.tabbar { display: flex; justify-content: space-around; padding: 10px 4px 6px; border-top: 1px solid var(--line); margin-top: 10px; }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; color: #aaa; }
.tabbar .on { color: var(--pink); }

/* 1. swap phone */
.mock-swap { padding-left: 90px; }
.phone { width: 250px; background: #fff; border-radius: 22px; border: 6px solid #111; padding: 10px 12px; box-shadow: var(--shadow); }
.status { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.pill-mini { background: #229ed9; color: #fff; padding: 1px 8px; border-radius: 10px; font-size: 8px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
.swap-box { background: #f6f6f8; border-radius: 10px; padding: 8px 10px; }
.swap-row { display: flex; justify-content: space-between; align-items: center; margin: 2px 0; }
.swap-row small { color: #888; font-size: 9px; }
.swap-row strong { font-size: 16px; }
.tok { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 10px; }
.max { font-style: normal; background: #e6e6ea; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.swap-switch { width: 24px; height: 24px; margin: -6px auto; position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.swap-details { margin: 12px 0; }
.swap-details div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 9px; }
.swap-details dt { color: #999; }
.swap-details dd { font-weight: 600; }
.slide-confirm { background: #f1f1f4; border-radius: 8px; padding: 6px; font-weight: 600; text-align: center; position: relative; }
.slide-confirm span { position: absolute; left: 4px; top: 3px; background: var(--pink); color: #fff; border-radius: 6px; padding: 2px 8px; }
.coin-grid {
  position: absolute; left: 0; top: 60px; z-index: 2; background: #fff; padding: 10px; border-radius: 12px;
  display: grid; grid-template-columns: repeat(3, 26px); gap: 8px; box-shadow: var(--shadow);
}
.curly-swap { left: 30px; top: 200px; }

/* 2. chat cards (dark section) */
.mock-chat { display: flex; flex-direction: column; gap: 30px; padding: 0 0 0; }
.chat-card { position: relative; width: 250px; background: #fff; border-radius: 14px; padding: 10px; }
.mock-chat .chat-card:first-child { border-radius: 0 0 14px 14px; }
.mock-chat .chat-card:last-child { border-radius: 14px 14px 0 0; }
.chat-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.chat-head small { display: block; color: #999; font-size: 9px; }
.bubble { max-width: 80%; padding: 6px 10px; border-radius: 12px; margin: 6px 0; }
.bubble.me { margin-left: auto; background: var(--violet); color: #fff; width: fit-content; }
.bubble.them { display: flex; gap: 6px; align-items: flex-end; padding: 0; }
.transfer-box { background: #f3f3f6; border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.transfer-box small { color: #999; }
.voice { font-size: 10px; letter-spacing: -1px; }
.chat-input { display: flex; justify-content: space-between; color: #aaa; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.sticker { position: absolute; left: -22px; bottom: 30px; font-size: 38px; }
.chat-card.live {
  height: 230px; color: #fff; overflow: visible;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)), linear-gradient(135deg, #7ea46a, #3f5b3c 50%, #a8534f);
}
.live-tag { background: var(--pink); color: #fff; font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: 9px; }
.gift { position: absolute; left: -20px; top: 60px; display: flex; gap: 6px; align-items: center; background: var(--violet); padding: 6px 12px 6px 6px; border-radius: 20px; transform: rotate(-8deg); }
.gift small { display: block; font-size: 9px; }
.live-comments { position: absolute; left: 10px; bottom: 10px; list-style: none; font-size: 9px; }
.live-comments li { margin-top: 3px; }
.float-heart { position: absolute; right: -10px; bottom: 30px; font-size: 22px; }
.post p { font-size: 11px; }
.tag { color: #3b82f6; }

/* 3. extension */
.mock-tokens { padding-left: 60px; padding-top: 10px; }
.ext-card { position: relative; z-index: 1; width: 280px; margin-left: 30px; background: #fff; border-radius: 14px 14px 0 0; padding: 14px; box-shadow: var(--shadow); }
.ext-head { display: flex; align-items: center; gap: 8px; }
.ext-head small { display: block; color: #aaa; font-size: 9px; }
.net { margin-left: auto; color: #333; }
.ext-balance { font-size: 26px; font-weight: 800; margin: 12px 0; }
.actions { display: flex; justify-content: space-around; font-size: 9px; color: var(--muted); }
.actions i { background: #f2f2f5; color: var(--ink); }
.token-list { position: relative; z-index: 2; width: 330px; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
.token-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.token-row small { display: block; color: #999; font-size: 9px; }
.tl { flex: 1; }
.tr { text-align: right; }
.up { color: #16a34a; font-style: normal; }
.down { color: #dc2626; font-style: normal; }
.curly-tokens { left: -20px; top: 40px; transform: rotate(160deg); }

/* 4. connect modal */
.mock-connect { padding: 20px 0 0 120px; }
.dapp-card { position: absolute; left: 0; top: 80px; width: 150px; background: #fff; border-radius: 10px; padding: 10px; box-shadow: var(--shadow); }
.dapp-logo { display: flex; align-items: center; gap: 4px; color: var(--pink); font-size: 9px; }
.dapp-lines i { display: block; height: 5px; border-radius: 3px; background: #e7ddf7; margin: 8px 0; }
.dapp-lines .short { width: 55%; }
.dapp-block { height: 40px; border-radius: 6px; background: #efe8ff; }
.spinner { width: 28px; height: 28px; margin: 8px auto; border-radius: 50%; border: 3px solid #f2f2f2; border-top-color: var(--pink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.curly-connect { left: 20px; top: 280px; transform: scaleY(-1); }
.modal { position: relative; z-index: 2; width: 270px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: center; position: relative; margin-bottom: 12px; font-size: 13px; }
.modal-head span { position: absolute; right: 0; color: #999; }
.wallet-opt { display: flex; align-items: center; gap: 8px; background: #f7f7f9; border-radius: 8px; padding: 9px 10px; margin-bottom: 6px; font-weight: 500; }
.w-ico { width: 20px; height: 20px; border-radius: 5px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.socials { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.powered { display: block; text-align: center; color: #bbb; font-size: 9px; margin-top: 6px; }

/* ---------- Content blocks (rich text from the admin editor) ---------- */
.content-block { padding: 90px 0; }
.content-block.theme-white { background: #fff; }
.content-block.theme-dark { background: var(--dark); color: #eee; }
.prose { max-width: 760px; margin-inline: auto; font-size: 17px; line-height: 1.75; color: #33333b; }
.theme-dark .prose { color: #d6d6dc; }
.prose > h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin-bottom: 22px; }
.theme-dark .prose h2, .theme-dark .prose h3, .theme-dark .prose h4 { color: #fff; }
.prose h2:not(:first-child) { font-size: 28px; margin: 40px 0 14px; }
.prose h3 { font-size: 22px; line-height: 1.3; color: var(--ink); margin: 32px 0 10px; }
.prose h4 { font-size: 18px; color: var(--ink); margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure, .prose pre { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--pink); }
.prose a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.theme-dark .prose strong { color: #fff; }
.prose blockquote { border-left: 3px solid var(--pink); padding-left: 18px; font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid #e3e3e8; padding: 8px 12px; text-align: left; }
.prose th { background: var(--blush); }
.prose pre { background: #16151a; color: #eee; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.prose hr { border: 0; border-top: 1px solid #e3e3e8; margin: 30px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 30px; padding-inline: 5%; }
.footer-mail { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 18px 0; color: #ddd; }
.subscribe label { font-size: 12px; color: #aaa; }
.subscribe-row { display: flex; gap: 6px; margin-top: 6px; max-width: 320px; }
.subscribe input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 6px; border: 1px solid #333; background: #1f1f22; color: #fff; font: inherit; font-size: 13px; }
.subscribe-msg { font-size: 12px; margin-top: 8px; }
.is-ok { color: #4ade80; }
.is-err { color: #f87171; }
.footer-col h4 { font-size: 11px; font-weight: 500; color: #999; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 12px; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom { font-size: 11px; color: #888; margin-top: 30px; padding-inline: 5%; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .wallet-float, .forward-float { right: 5%; }
  .chat-float-1, .chat-float-2 { right: 8%; }
  .hero-copy { left: 6%; }
}
@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column;
    background: var(--blush); padding: 16px 24px; gap: 16px; box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-actions .btn-dark { display: none; }

  /* On phones the hero stacks in normal flow instead of absolute positions */
  .hero-media { min-height: 0; padding: 40px 24px 50px; display: flex; flex-direction: column; gap: 16px; }
  .hero-copy, .float-card { position: relative; left: auto; right: auto; top: auto; }
  .hero-copy { margin-bottom: 20px; }
  .forward-float { display: none; }
  .wallet-float, .chat-float { width: min(280px, 100%); }
  .chat-float-2 { margin-left: 24px; }

  .feature { padding: 70px 0; }
  .feature.theme-dark { padding: 50px 0; }
  .feature-inner { grid-template-columns: 1fr; gap: 50px; }
  .feature-inner.mock-left .feature-visual { order: 1; }
  .mock-chat .chat-card { border-radius: 14px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .mock-swap { padding-left: 0; }
  .mock-swap .coin-grid, .mock-swap .curly { display: none; }
  .mock-tokens { padding-left: 0; }
  .ext-card { margin-left: 20px; width: 250px; }
  .token-list { width: 290px; }
  .mock-connect { padding-left: 60px; }
  .dapp-card { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
