/* =========================================================================
   PayCan.ai — marketing site
   Design tokens pulled 1:1 from the PayCan app:
   Light = "Liquid Crimson"  (default)
   Dark  = "Aurora Glass"
   ========================================================================= */

/* ---------- Light (Liquid Crimson) : default ---------- */
:root,
[data-theme="light"] {
  --bg:        #fff5f5;
  --bg2:       #ffecec;
  --surface:   #ffffff;
  --surface-2: #fff8f8;
  --solid:     #ffffff;
  --border:    #f3d0d4;
  --border-2:  #efc4c9;
  --text:      #1d1116;
  --muted:     #6b5258;
  --accent:    #e50022;
  --accent2:   #ff2d49;
  --red:       #e50022;
  --hot:       #ff2d49;
  --magenta:   #ff3da6;
  --violet:    #7a3dff;
  --positive:  #0f9b6a;
  --negative:  #d83434;
  --hero:      linear-gradient(135deg, #ff2d49, #e50022 70%, #7a0014);
  --hero-text: linear-gradient(120deg, #ff2d49, #e50022 60%, #ff3da6);
  --shadow:    0 18px 40px rgba(229, 0, 34, 0.12);
  --shadow-lg: 0 30px 70px rgba(229, 0, 34, 0.18);
  --glass:     rgba(255, 255, 255, 0.7);
  --logo-light: block;   /* horizontal-light = dark text logo, used on light bg */
  --logo-dark:  none;
}

/* ---------- Dark (Aurora Glass) ---------- */
[data-theme="dark"] {
  --bg:        #0b0b14;
  --bg2:       #140a20;
  --surface:   rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --solid:     #15161f;
  --border:    rgba(255, 255, 255, 0.12);
  --border-2:  rgba(255, 255, 255, 0.18);
  --text:      #eef0f6;
  --muted:     rgba(255, 255, 255, 0.62);
  --accent:    #ff3da6;
  --accent2:   #7a3dff;
  --red:       #e50022;
  --hot:       #ff2d49;
  --magenta:   #ff3da6;
  --violet:    #7a3dff;
  --positive:  #22c58b;
  --negative:  #ff5c5c;
  --hero:      linear-gradient(135deg, #1a1030, #e50022 55%, #ff3da6);
  --hero-text: linear-gradient(120deg, #ff2d49, #ff3da6 55%, #7a3dff);
  --shadow:    0 18px 44px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --glass:     rgba(255, 255, 255, 0.05);
  --logo-light: none;
  --logo-dark:  block;    /* horizontal-dark = white text logo, used on dark bg */
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 100% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    radial-gradient(820px 520px at -10% 110%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent),
    linear-gradient(180deg, var(--bg2), var(--bg));
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 92vw); margin: 0 auto; }
.section { padding: 92px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.gradient-text {
  background: var(--hero-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12px; font-weight: 800; color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 16px; font-weight: 800; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--hero); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn-lg { padding: 17px 30px; font-size: 16px; border-radius: 18px; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.brand .logo-light { display: var(--logo-light); }
.brand .logo-dark  { display: var(--logo-dark); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
  font-size: 18px; transition: background .15s;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle .moon { display: var(--logo-light); }
.theme-toggle .sun  { display: var(--logo-dark); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 20px; }

/* ---------- Cards / panels ---------- */
.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 10px var(--positive); }

.feature-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--hero); color: #fff; font-size: 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.feature-ico.soft { background: var(--surface-2); color: var(--accent); border: 1px solid var(--border); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero-aurora { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob.a { width: 360px; height: 360px; background: var(--accent);  top: -120px; right: -80px; }
.blob.b { width: 380px; height: 380px; background: var(--violet);  bottom: -160px; left: -100px; opacity: .4; }
.blob.c { width: 280px; height: 280px; background: var(--magenta); top: 30%; left: 45%; opacity: .25; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 6.4vw, 74px); letter-spacing: -0.035em; }
.hero .lead { margin: 18px auto 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero.center .hero-cta { justify-content: center; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.stat { padding: 16px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); min-width: 150px; }
.stat b { font-size: 26px; font-weight: 900; display: block; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- CAN AI chat mock ---------- */
.chat { padding: 22px; }
.chat-row { display: flex; margin-bottom: 12px; }
.chat-row.me { justify-content: flex-end; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.bubble.me { background: var(--hero); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble .tag { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.chat-input { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- Card visual (crypto card) ---------- */
.cardvis {
  aspect-ratio: 1.585 / 1; border-radius: 22px; padding: 26px; color: #fff; position: relative; overflow: hidden;
  background: var(--hero); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: space-between;
}
.cardvis::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,.18); filter: blur(40px); top: -90px; right: -60px; }
.cardvis .top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cardvis .top img { height: 22px; }
.cardvis .num { font-size: 19px; letter-spacing: .14em; font-weight: 800; position: relative; z-index: 1; }
.cardvis .row { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; font-size: 12px; }
.cardvis.darkface { background: linear-gradient(150deg, #1a1030, #0b0b14 70%); border: 1px solid rgba(255,255,255,.12); }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.step .n { width: 38px; height: 38px; border-radius: 11px; background: var(--hero); color: #fff; display: grid; place-items: center; font-weight: 900; margin-bottom: 16px; }

/* ---------- List checks ---------- */
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks .ck { flex: none; width: 24px; height: 24px; border-radius: 8px; background: color-mix(in srgb, var(--positive) 18%, transparent);
  color: var(--positive); display: grid; place-items: center; font-size: 13px; font-weight: 900; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 30px; padding: 64px 40px; text-align: center; color: #fff; background: var(--hero); box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); margin: 0 auto 26px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-light { background: #fff; color: var(--red); }
.cta-band .blob { opacity: .35; }

/* ---------- App Store / Google Play badges ---------- */
.badges { display: flex; gap: 13px; flex-wrap: wrap; }
.hero.center .badges, .cta-band .badges { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px; padding: 10px 18px; min-width: 188px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32); }
.store-badge .sb-ico { display: grid; place-items: center; width: 27px; height: 27px; flex: none; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.08; text-align: left; }
.store-badge .sb-txt small { font-size: 11px; font-weight: 600; letter-spacing: .02em; opacity: .92; text-transform: none; }
.store-badge .sb-txt b { font-size: 19px; font-weight: 700; letter-spacing: .01em; margin-top: 1px; }
.store-badge.is-soon { opacity: .6; cursor: default; }
.store-badge.is-soon:hover { transform: none; box-shadow: none; }

/* ---------- CAN AI logo lockup ---------- */
.canai-logo { display: inline-flex; align-items: center; gap: 14px; }
.canai-logo .mark { width: var(--csz, 58px); height: var(--csz, 58px); flex: none;
  filter: drop-shadow(0 10px 22px rgba(229, 0, 34, 0.32)); }
.canai-word { font-weight: 900; letter-spacing: -.02em; line-height: 1; display: inline-flex; align-items: center; gap: 9px; }
.canai-word .can { font-size: var(--cwsz, 42px);
  background: var(--hero-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }
.canai-word .ai { font-size: calc(var(--cwsz, 42px) * .6); font-weight: 900; color: #fff;
  background: var(--hero); padding: .14em .42em; border-radius: .3em; letter-spacing: .03em;
  box-shadow: var(--shadow); }
.canai-logo.lg { --csz: 76px; --cwsz: 58px; }

/* ---------- Download buttons ---------- */
.store { display: flex; align-items: center; gap: 11px; padding: 13px 20px; border-radius: 15px; background: var(--text); color: var(--bg); font-weight: 800; border: 1px solid var(--text); }
.store small { display: block; font-size: 10px; font-weight: 700; opacity: .7; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.store b { font-size: 16px; line-height: 1.1; }
.store .ico { font-size: 24px; }
.store.outline { background: transparent; color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 34px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.footer a { display: block; color: var(--muted); padding: 6px 0; font-size: 14.5px; font-weight: 600; }
.footer a:hover { color: var(--text); }
.footer .brand img { height: 28px; margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; padding: 0; }
.footer-bottom .socials a:hover { background: var(--surface-2); }

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.tag-line { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-line .pill { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0; padding: 14px 4vw 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn, .hero-cta .store { width: 100%; justify-content: center; }
  .cta-band { padding: 48px 24px; }
}
