/* CryptoCoinProp Home - page styles from the Claude Design "Nova Home" file.
 *
 * Layout and colours live inline in templates/pages/home.html, exactly as in
 * the design. This sheet carries what inline styles cannot: the keyframes,
 * the hover states (the design's style-hover attributes) and the small-screen
 * header fallback. Hover declarations use !important because they must win
 * over the inline base style, which is how the design runtime applies them.
 */
body { background: var(--nv-f6f6fa); -webkit-font-smoothing: antialiased; }

.nh { line-height: normal; }
.nh * { box-sizing: border-box; }
.nh a { color: #DD3D4F; text-decoration: none; }
.nh a:hover { color: var(--nv-b4202f); }
.nh input::placeholder { color: var(--nv-9a9cb4); }
.nh-links::-webkit-scrollbar,
.nh [role="tablist"]::-webkit-scrollbar { display: none; }

@keyframes novaMarquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes novaPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,106,.45) } 70% { box-shadow: 0 0 0 7px rgba(22,163,106,0) } }
@keyframes novaFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes novaRise { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: translateY(0) } }
@keyframes nhBfShine {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  18% { opacity: .55; }
  42% { opacity: 0; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

/* Black Friday top ribbon */
.nh-bf-ribbon { background: #07080f; }
.nh-bf-ribbon-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, #05060a 0%, #12131c 38%, #7a1524 78%, #B4202F 100%),
    repeating-linear-gradient(-35deg, rgba(255,255,255,.035) 0 2px, transparent 2px 10px);
}
.nh-bf-ribbon-bg::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  animation: nhBfShine 4.8s ease-in-out infinite;
}
.nh .nh-bf-cta:hover { background: #ffd84a !important; color: #0E0F1F !important; transform: translateY(-1px) !important; }
.nh .nh-bf-ai:hover { background: rgba(255,255,255,.12) !important; border-color: rgba(245,197,24,.45) !important; color: #fff !important; }
.nh .nh-bf-code:hover { background: rgba(0,0,0,.5) !important; border-color: #F5C518 !important; }
@media (max-width: 720px) {
  .nh-bf-ribbon-inner { padding-top: 12px !important; padding-bottom: 12px !important; gap: 10px !important; }
  .nh-bf-off { font-size: 20px !important; }
}

/* -- hover states ----------------------------------------------------------- */
.nh .nh-h-navlink:hover { background: var(--nv-f0f0f7) !important; color: var(--nv-0e0f1f-text) !important; }
.nh .nh-h-iconbtn:hover { border-color: var(--nv-f3c4ca) !important; color: #DD3D4F !important; background: var(--nv-fff5f6) !important; }
.nh .nh-h-ghost:hover { border-color: var(--nv-f3c4ca) !important; background: var(--nv-fff5f6) !important; }
.nh .nh-h-ghost-lift:hover { border-color: var(--nv-f3c4ca) !important; background: var(--nv-fff5f6) !important; transform: translateY(-2px) !important; }
.nh .nh-h-navcta:hover { background: #B4202F !important; transform: translateY(-1px) !important; box-shadow: 0 12px 22px -8px rgba(221,61,79,.7) !important; color: #fff !important; }
.nh .nh-h-herocta:hover { background: #B4202F !important; transform: translateY(-2px) !important; box-shadow: 0 20px 34px -12px rgba(221,61,79,.75) !important; color: #fff !important; }
.nh .nh-h-cta:hover { background: #B4202F !important; transform: translateY(-2px) !important; color: #fff !important; }
.nh .nh-h-stat:hover { border-color: var(--nv-f3c4ca) !important; box-shadow: 0 18px 34px -24px rgba(24,20,80,.3) !important; }
.nh .nh-h-gap:hover { gap: 14px !important; }
.nh .nh-h-row:hover { background: var(--nv-f8f8fc) !important; }
.nh .nh-h-lift:hover { transform: translateY(-2px) !important; color: #fff !important; }
.nh .nh-h-feature:hover { border-color: var(--nv-f3c4ca) !important; transform: translateY(-3px) !important; }
.nh .nh-h-card:hover { transform: translateY(-5px) !important; box-shadow: 0 26px 44px -26px rgba(24,20,80,.35) !important; border-color: var(--nv-f3c4ca) !important; }
.nh .nh-h-rule:hover { background: var(--nv-fff-bg) !important; border-color: var(--nv-f3c4ca) !important; box-shadow: 0 18px 34px -24px rgba(24,20,80,.35) !important; }
.nh .nh-h-tab:hover { color: var(--nv-0e0f1f-text) !important; }
.nh .nh-h-program:hover { transform: translateY(-4px) !important; border-color: var(--nv-f3c4ca) !important; box-shadow: 0 26px 44px -28px rgba(24,20,80,.36) !important; color: var(--nv-0e0f1f-text) !important; }
.nh .nh-h-tab[aria-selected="true"]:hover { color: #fff !important; }
.nh .nh-h-review:hover { border-color: var(--nv-f3c4ca) !important; box-shadow: 0 22px 40px -28px rgba(24,20,80,.35) !important; }
.nh .nh-h-faq:hover { color: #DD3D4F !important; }
.nh .nh-h-white:hover { transform: translateY(-2px) !important; box-shadow: 0 22px 36px -14px rgba(0,0,0,.45) !important; color: var(--nv-b4202f) !important; }
.nh .nh-h-foot:hover { color: #DD3D4F !important; }
.nh .nh-promo-copy:hover { background: rgba(255,255,255,.18) !important; transform: translateY(-1px); }
.nh .nh-promo-panel .nh-promo-copy:hover { background: #f4f4f8 !important; color: var(--nv-0e0f1f-text) !important; }
.nh .nh-advance-panel { transition: transform .25s ease, box-shadow .25s ease; }
.nh .nh-advance-panel:hover { transform: translateY(-2px); box-shadow: 0 40px 80px -42px rgba(15,107,69,.55) !important; }

.nh button:focus-visible, .nh a:focus-visible, .nh [role="button"]:focus-visible, .nh input:focus-visible {
  outline: 2px solid #DD3D4F; outline-offset: 2px;
}

/* -- small screens -----------------------------------------------------------
   The design's single-row header needs ~560px. Below that the links move to a
   second, scrollable row so no control is ever clipped.                      */
/* Same breakpoints as the shared header (app-shell.css): tighter spacing from 1024 to 1279px,
   and at 1023px and below the links move to their own full-width row. */
.nh .nh-links > a { flex: none; }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nh .nh-bar { gap: 18px !important; }
  .nh .nh-links > a { padding-left: 9px !important; padding-right: 9px !important; }
}
@media (max-width: 1023.98px) {
  .nh .nh-bar { height: auto !important; flex-wrap: wrap; column-gap: 12px !important; row-gap: 0 !important; padding-top: 12px !important; }
  .nh .nh-actions { margin-left: auto; }
  .nh .nh-links { order: 3; flex: 1 1 100% !important; margin: 8px -12px 0; padding: 0 0 8px; scroll-snap-type: x proximity; }
  .nh .nh-links > a { scroll-snap-align: start; }
  .nh .nh-sticky { top: calc(var(--nv-header-h, 112px) + 20px) !important; }
}
@media (max-width: 760px) {
  .nh .nh-sticky { position: static !important; }
  .nh .nh-plan-side { border-left: 0 !important; border-top: 1px solid var(--nv-eeeef4); }
}
@media (max-width: 420px) {
  .nh .nh-bar { padding-left: 16px !important; padding-right: 16px !important; }
  .nh .nh-theme { display: none !important; }
  .nh .nh-actions { gap: 8px !important; }
  .nh .nh-login, .nh .nh-signup { padding: 9px 12px !important; font-size: 14px !important; }
  .nh section { padding-left: 16px !important; padding-right: 16px !important; }
  .nh footer { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Motion runs exactly as in the design, including when the OS asks for reduced
   motion (Windows "Show animations" off): the design does not opt out. */

/* -- touch targets -------------------------------------------------------------
   Phones get finger-sized hit areas on small links and toggles; wider screens
   keep the design's exact sizes. */
@media (max-width: 767px) {
  .nh .nv-tap { min-height: 44px; }
  .nh [data-pct] { min-height: 44px; }
  .nh .nh-logo { min-height: 44px; }
  .nh .nh-login, .nh .nh-signup { display: inline-flex; align-items: center; min-height: 44px; }
  .nh .nh-theme { width: 44px !important; height: 44px !important; }
  .nh .nh-h-navlink { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .nh [data-tf] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .nh .nh-h-tab { min-height: 44px; }
  /* Range sliders: the whole 44px-tall box takes the finger, the track stays the design's thin line. */
  .nh input[type="range"] { height: 44px; }
  .nh footer .nh-h-foot { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  .nh footer div:has(> .nh-h-foot) { gap: 0 !important; align-items: flex-start; }
}
/* 320px phones: logo, Log in and Get started share one row (the design's sizes need ~324px). */
@media (max-width: 360px) {
  .nh .nh-bar { column-gap: 8px !important; }
  .nh .nh-actions { gap: 6px !important; }
  .nh .nh-login, .nh .nh-signup { padding-left: 10px !important; padding-right: 10px !important; }
}

/* -- AI Trading showcase + looping demo ------------------------------------ */
.nh .nh-ai-ribbon:hover { filter: brightness(1.06); }
.nh .nh-ai-ribbon-bot {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffd0d6, #DD3D4F 45%, #8f1522);
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.28);
  animation: novaFloat 3.2s ease-in-out infinite;
}
.nh .nh-ai-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #DD3D4F;
  box-shadow: 0 0 0 0 rgba(221,61,79,.5);
  animation: novaPulse 1.8s infinite;
}
.nh .nh-ai-steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--nv-e6e6ef); background: var(--nv-fff-bg);
  font-size: 14px; color: var(--nv-1c1d2e-text); font-weight: 600;
  transition: border-color .25s, background .25s, box-shadow .25s, transform .25s;
}
.nh .nh-ai-steps li span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 700; color: var(--nv-3a3b4f);
}
.nh .nh-ai-steps li b { margin-right: 4px; color: var(--nv-0e0f1f-text); }
.nh .nh-ai-steps li.is-on {
  border-color: var(--nv-f3c4ca); background: linear-gradient(135deg, var(--nv-fff5f6), var(--nv-fff-bg));
  box-shadow: 0 14px 28px -22px rgba(180,32,47,.55); transform: translateX(4px);
}
.nh .nh-ai-steps li.is-on span { color: var(--nv-b4202f); }

.nh .nh-ai-demo-shell {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 12px;
  padding: 14px; border-radius: 24px;
  background: linear-gradient(145deg, #0e0f1f 0%, #1c1d2e 45%, #B4202F 130%);
  box-shadow: 0 36px 70px -36px rgba(180,32,47,.55), 0 1px 0 rgba(255,255,255,.12) inset;
}
.nh .nh-ai-demo-chart,
.nh .nh-ai-demo-chat {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #14151f; border: 1px solid rgba(255,255,255,.1);
  min-height: 320px;
}
.nh .nh-ai-demo-chat {
  background: var(--nv-fff-bg); border: 1px solid var(--nv-e6e6ef); display: flex; flex-direction: column;
}
.nh .nh-ai-demo-chart-top {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 0;
}
.nh .nh-ai-pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff;
  background: rgba(255,255,255,.1);
}
.nh .nh-ai-pill.muted { color: rgba(255,255,255,.65); font-weight: 700; }
.nh .nh-ai-pill.live { background: rgba(221,61,79,.25); color: #ffb3bd; }

.nh .nh-ai-candles {
  position: absolute; left: 14px; right: 14px; bottom: 42px; top: 52px;
  display: flex; align-items: flex-end; gap: 5px;
}
.nh .nh-ai-candles i {
  flex: 1; height: var(--h); border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #7CFFB2, #16A36A);
  opacity: .55; transform-origin: bottom;
  animation: nhAiCandle 2.8s ease-in-out infinite;
}
.nh .nh-ai-candles i:nth-child(odd) {
  background: linear-gradient(180deg, #FF8593, #DD3D4F);
  animation-delay: .2s;
}
.nh .nh-ai-candles i:nth-child(3n) { animation-delay: .45s; }
@keyframes nhAiCandle {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50% { transform: scaleY(1.08); opacity: .85; }
}

.nh .nh-ai-levels {
  position: absolute; inset: 58px 14px 48px; pointer-events: none; opacity: 0;
  transition: opacity .35s;
}
.nh .nh-ai-demo[data-step="2"] .nh-ai-levels,
.nh .nh-ai-demo[data-step="3"] .nh-ai-levels { opacity: 1; }
.nh .nh-ai-lvl {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 1px dashed rgba(255,255,255,.35);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 700; color: #fff; padding-left: 4px;
}
.nh .nh-ai-lvl.tp { top: 18%; border-color: rgba(124,255,178,.55); color: #7CFFB2; }
.nh .nh-ai-lvl.tp:nth-of-type(2) { top: 34%; }
.nh .nh-ai-lvl.en { top: 52%; border-color: rgba(255,255,255,.55); }
.nh .nh-ai-lvl.sl { top: 78%; border-color: rgba(255,133,147,.65); color: #FF8593; }

.nh .nh-ai-capture {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%) scale(.92);
  padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: rgba(221,61,79,.92); color: #fff; opacity: 0;
  box-shadow: 0 0 0 0 rgba(221,61,79,.45);
  transition: opacity .3s, transform .3s;
}
.nh .nh-ai-demo[data-step="1"] .nh-ai-capture {
  opacity: 1; transform: translate(-50%,-50%) scale(1);
  animation: novaPulse 1.6s ease-out 1;
}

.nh .nh-ai-demo-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: linear-gradient(135deg, #0e0f1f, #B4202F); color: #fff;
}
.nh .nh-ai-demo-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 28%, #ffd0d6, #DD3D4F 42%, #8f1522);
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.28);
}
.nh .nh-ai-demo-head strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.nh .nh-ai-demo-status { font-size: 11px; opacity: .85; font-weight: 600; margin-top: 1px; }
.nh .nh-ai-eye { animation: nhAiBlink 4s ease-in-out infinite; transform-origin: center; }
@keyframes nhAiBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }

.nh .nh-ai-demo-log {
  flex: 1; padding: 12px; background: var(--nv-f6f6fa); display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}
.nh .nh-ai-bubble {
  max-width: 92%; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
  pointer-events: none;
}
.nh .nh-ai-bubble.user {
  align-self: flex-end; background: var(--nv-fff5f6); border: 1px solid var(--nv-f3c4ca); color: var(--nv-0e0f1f-text);
  font-weight: 700; border-bottom-right-radius: 5px;
}
.nh .nh-ai-bubble.bot {
  align-self: flex-start; background: var(--nv-fff-bg); border: 1px solid var(--nv-e6e6ef); color: var(--nv-0e0f1f-text);
  border-bottom-left-radius: 5px;
}
.nh .nh-ai-bot-text { display: none; }
.nh .nh-ai-typing { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.nh .nh-ai-typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--nv-b4202f);
  animation: nhAiDot 1s ease-in-out infinite;
}
.nh .nh-ai-typing i:nth-child(2) { animation-delay: .15s; }
.nh .nh-ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nhAiDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.nh .nh-ai-signal {
  align-self: stretch; padding: 10px; border-radius: 12px; background: var(--nv-fff-bg);
  border: 1px solid var(--nv-e6e6ef); font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; display: grid; gap: 4px; color: var(--nv-0e0f1f-text);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.nh .nh-ai-signal-title {
  font-family: Manrope, system-ui, sans-serif; font-size: 10.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--nv-b4202f);
}
.nh .nh-ai-place {
  align-self: flex-start; border: 0; border-radius: 10px; padding: 9px 12px;
  background: var(--nv-0e0f1f-bg); color: #fff; font-weight: 800; font-size: 12.5px;
  font-family: Manrope, system-ui, sans-serif; cursor: default;
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .35s, transform .35s, background .2s;
  box-shadow: 0 0 0 0 rgba(180,32,47,.4);
}
.nh .nh-ai-ticket {
  margin: 0 12px 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--nv-e8f7f0); border: 1px solid var(--nv-bfe8d3); color: var(--nv-0f7a4f);
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.nh .nh-ai-ticket span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nh .nh-ai-ticket strong {
  display: block; margin-top: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600;
}

/* Step visibility */
.nh .nh-ai-demo[data-step="0"] [data-ai-show="0"],
.nh .nh-ai-demo[data-step="1"] [data-ai-show="0"],
.nh .nh-ai-demo[data-step="1"] [data-ai-show="1"],
.nh .nh-ai-demo[data-step="2"] [data-ai-show="0"],
.nh .nh-ai-demo[data-step="2"] [data-ai-show="1"],
.nh .nh-ai-demo[data-step="2"] [data-ai-show="2"],
.nh .nh-ai-demo[data-step="3"] [data-ai-show] {
  opacity: 1; transform: none; pointer-events: auto;
}
.nh .nh-ai-demo[data-step="1"] .nh-ai-typing { display: inline-flex; }
.nh .nh-ai-demo[data-step="1"] .nh-ai-bot-text { display: none; }
.nh .nh-ai-demo[data-step="2"] .nh-ai-typing,
.nh .nh-ai-demo[data-step="3"] .nh-ai-typing { display: none; }
.nh .nh-ai-demo[data-step="2"] .nh-ai-bot-text,
.nh .nh-ai-demo[data-step="3"] .nh-ai-bot-text { display: inline; }
.nh .nh-ai-demo[data-step="3"] .nh-ai-place {
  background: #B4202F;
  animation: nhAiPlacePulse 1.1s ease-in-out infinite;
}
@keyframes nhAiPlacePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180,32,47,.45); }
  50% { box-shadow: 0 0 0 8px rgba(180,32,47,0); }
}

.nh .nh-ai-demo-note {
  margin: 12px 2px 0; font-size: 12.5px; color: var(--nv-3a3b4f); font-weight: 600; text-align: center;
}

@media (max-width: 720px) {
  .nh .nh-ai-demo-shell { grid-template-columns: 1fr; }
  .nh .nh-ai-demo-chart { min-height: 220px; }
  .nh .nh-ai-demo-chat { min-height: 280px; }
}

/* Night mode: AI promo chips / demo chat follow theme surfaces */
html.dark .nh .nh-ai-hero-chip,
html.dark .nh .nh-ai-steps li.is-on {
  box-shadow: 0 14px 28px -20px rgba(0,0,0,.55);
}
html.dark .nh .nh-ai-demo-shell {
  box-shadow: 0 36px 70px -36px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.08) inset;
}
html.dark .nh .nh-ai-ticket {
  background: rgba(22,163,106,.16);
  border-color: rgba(22,163,106,.35);
  color: #7CFFB2;
}

