/* ============================================================
   CryptoTrade marketing — site styles
   Re-authored from the Claude Design export as clean static CSS.
   Tokens come from tokens.css (the DS export); this file is the
   layout + component layer that replaces the DC inline styles.
   NO framework, NO runtime — plain CSS + a tiny progressive JS.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface-bone); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 1100px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ember-500);
  color: #fff; padding: 10px 16px; border-radius: var(--r-md); z-index: 100;
}
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 500; text-decoration: none;
  border-radius: var(--r-button); cursor: pointer; border: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--ember-500); color: #fff; }
.btn-primary:hover { background: var(--ember-600); }
.btn-ghost { background: transparent; color: var(--ink-1); border: 1px solid var(--border-default); }
.btn-ghost:hover { background: var(--surface-sand); }
.btn-lg { font-size: 16px; padding: 14px 22px; }
.btn-md { font-size: 15px; padding: 13px 20px; }
.btn-sm { font-size: 14px; padding: 10px 16px; white-space: nowrap; }
.textlink { color: var(--ember-700); font-weight: 500; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav__inner { display: flex; align-items: center; height: 68px; gap: 36px; }
.site-nav__brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-nav__brand img { height: 28px; }
.site-nav__links { display: flex; gap: 28px; flex: 1; }
.site-nav__links a { color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.site-nav__links a:hover { color: var(--ink-1); }
.site-nav__cta { display: flex; align-items: center; gap: 8px; }
/* Hamburger toggle + mobile menu panel — hidden on desktop, shown at the mobile
   breakpoint below. Desktop nav is provably unaffected (these are display:none here). */
.site-nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border-default);
  border-radius: var(--r-md); color: var(--ink-1); cursor: pointer;
}
.site-nav__toggle:hover { background: var(--surface-sand); }
.site-nav__mobile { display: none; }
.site-nav__mobile a { color: var(--ink-1); font-size: 15px; font-weight: 500; text-decoration: none; }

/* ---------- generic section + headings ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--bordered { border-top: 1px solid var(--border-soft); }
.section--sand { background: var(--surface-sand); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: var(--ink-2); margin-top: 16px; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ---------- cards ---------- */
.card {
  background: var(--surface-canvas); border: 1px solid var(--border-soft);
  border-radius: var(--r-xl); padding: 28px;
}
.card--bordered { border-color: var(--border-default); }
.card--dashed {
  background: transparent; border: 1px dashed var(--border-strong);
  display: flex; flex-direction: column; justify-content: center;
}
.card h3 { margin: 0; font-family: var(--font-ui); font-size: 18px; font-weight: 600; color: var(--ink-1); }
.card p { margin-top: 8px; color: var(--ink-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ember-100);
  color: var(--ember-700); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card__num { color: var(--ember-700); margin-bottom: 12px; }

/* feature-suite compact card (Home suite grid) */
.card--compact { padding: 24px; }
.card--compact h3 { font-size: 16px; }

/* check-list (feature/use-case bullets) */
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.checks svg { flex-shrink: 0; margin-top: 2px; }

/* badge / pill */
.pill {
  display: inline-block; padding: 4px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--info-bg); color: var(--info-fg);
}

/* ---------- dark closing CTA ---------- */
.cta-dark {
  position: relative; overflow: hidden; background: var(--surface-ink);
  border-radius: var(--r-2xl); padding: 72px 56px; text-align: center;
}
.cta-dark__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(113,50,245,0.30) 0%, transparent 65%);
}
.cta-dark h2 { color: var(--ink-on-dark); }
.cta-dark p { color: var(--ink-on-dark-2); margin: 16px auto 0; max-width: 520px; }
.cta-dark .inner { position: relative; }
.cta-dark .btn-row { margin-top: 28px; display: flex; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-ink); color: var(--ink-on-dark); padding: 80px 0 32px; }
.site-footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; margin-bottom: 56px; }
.site-footer__brand img { height: 28px; margin-bottom: 20px; }
.site-footer__brand p { color: var(--ink-on-dark-2); max-width: 300px; margin: 0; }
.site-footer__col .eyebrow { color: var(--ember-300); margin-bottom: 14px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { color: var(--ink-on-dark-2); text-decoration: none; font-size: 14px; }
.site-footer__col a:hover { color: var(--ink-on-dark); }
.site-footer__col .muted { color: var(--ink-4); font-size: 13px; }
.site-footer__base { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-on-dark-2); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
.hero__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.92fr); gap: 48px; align-items: center; }
.hero h1 { margin: 0; font-size: 60px; line-height: 1.12; }
.hero__lead { margin-top: 22px; color: var(--ink-2); max-width: 520px; }
.hero__btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; color: var(--ink-3); }
.hero__visual { position: relative; min-width: 0; }
.hero__shot { width: 940px; max-width: none; border: 1px solid var(--border-default); border-radius: var(--r-2xl); box-shadow: var(--shadow-lifted); transform: rotate(0.3deg); }
.hero__shot--wallet { position: absolute; left: -34px; bottom: -54px; width: 192px; z-index: 2; border-radius: 26px; }
/* typewriter caret */
.tw-wrap { display: inline-block; min-width: 300px; white-space: nowrap; }
.tw-caret { display: inline-block; width: 4px; height: 0.82em; margin-left: 5px; border-radius: 1px; background: var(--ember-500); vertical-align: -1px; animation: ctBlink 1s steps(1) infinite; }
@keyframes ctBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* page header (features / use-cases / contact) */
.page-head { position: relative; overflow: hidden; padding: 80px 0 64px; }
.page-head h1 { margin: 0; font-size: 54px; line-height: 1.1; }
.page-head p { margin-top: 20px; color: var(--ink-2); max-width: 600px; }
.page-head .eyebrow { margin-bottom: 18px; }

/* mock UI demo cards on the Features page */
.demo-card { width: 320px; background: var(--surface-canvas); border: 1px solid var(--border-default); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-soft); }
.demo-panel { background: var(--surface-canvas); border: 1px solid var(--border-default); border-radius: var(--r-2xl); box-shadow: var(--shadow-soft); }
.center { display: flex; justify-content: center; }

/* utility */
.numeric, .tabular { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__shot { width: 100%; }
  .hero__shot--wallet { width: 150px; left: -16px; bottom: -36px; }
}
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  /* reversed blocks: drop the explicit order so the text leads on mobile */
  .split > [style*="order:1"], .split > [style*="order:2"] { order: 0 !important; }
  .hero h1 { font-size: 46px; }
  .page-head h1 { font-size: 40px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-nav__links { display: none; } /* desktop links hidden; revealed via the mobile panel */
  /* CTA stays VISIBLE on mobile. Push brand left so the CTA + hamburger group at the far right. */
  .site-nav__inner { gap: 12px; }
  .site-nav__brand { margin-right: auto; }
  .site-nav__toggle { display: inline-flex; } /* show the hamburger, rightmost (last DOM child) */
  .site-nav__mobile {
    display: none; /* collapsed by default; .open reveals it */
    flex-direction: column; gap: 4px;
    padding: 8px 20px 16px; border-top: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.98);
  }
  .site-nav__mobile.open { display: flex; }
  .site-nav__mobile a { padding: 12px 2px; }
  /* Hero: clean vertical stack — the image sits fully BELOW the text, never over it.
     The wallet overlay is repositioned INSIDE the main shot's bottom-right corner so it
     no longer breaks out with negative offsets and overlap the headline/note above. */
  .hero { padding: 48px 0 56px; }
  .hero__grid { gap: 28px; }
  .hero h1 { font-size: 34px; }
  .tw-wrap { min-width: 0; }            /* don't force a 300px-wide line -> cleaner wrap */
  .hero__shot { transform: none; }      /* drop the tilt so edges stay within the column */
  .hero__shot--wallet { left: auto; right: 14px; bottom: 14px; width: 116px; }
  .section, .section--tight { padding: 64px 0; }
  .cta-dark { padding: 56px 28px; }
}
