:root{
  --bg:#0b1020;
  --bg-grad: radial-gradient(1200px 800px at 70% -10%, #12264a 0%, #0b1020 60%);
  --card:#0f162b;
  --text:#e8edf6;
  --muted:#9aa3b2;
  --accent:#6aa3ff;
  --chrome1:#ced3da; --chrome2:#8f96a1; --chrome3:#c2c7cf;
  --hair:rgba(255,255,255,.08); --veil:rgba(255,255,255,.06);
  --glow:0 6px 22px rgba(106,163,255,.25);
  --success:#42d392; --danger:#f46d6d;
}

*{ box-sizing:border-box; margin:0; padding:0 }
body{
  font-size:17px; line-height:1.5;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-grad), var(--bg); color:var(--text);
}
a{ color:inherit; text-decoration:none }
.container{ max-width:1200px; margin:0 auto; padding:0 24px }

/* Header */
header{ position:sticky; top:0; z-index:50; backdrop-filter:saturate(140%) blur(6px); background:rgba(6,10,22,.55); border-bottom:1px solid var(--veil) }
nav{ display:flex; align-items:center; justify-content:space-between; height:68px; }
.nav-links{ display:flex; gap:18px; flex-wrap:wrap }
.nav-links a{ display:flex; align-items:center; height:40px; line-height:1; padding:0 2px }
.btn{ display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 16px; border-radius:12px; font-weight:600; background:var(--accent); color:#061021; border:1px solid rgba(255,255,255,.08); box-shadow:var(--glow) }
.btn.ghost{ background:transparent; color:var(--text); border:1px solid var(--hair) }
.btn.small{ height:36px; padding:0 12px; border-radius:10px }

/* remove glow from Contact pill in header */
header .nav-links .btn.ghost{ box-shadow:none; }

/* Logo */
.logo{ display:flex; align-items:flex-end; gap:0px; line-height:1; user-select:none; transform:translateY(-2px) }
.logo .impulse{ font-weight:900; letter-spacing:.2px; font-size:24px; position:relative }
.logo .impulse::after{
  content:""; position:absolute; left:2px; right:2px; bottom:-6px; height:2px; border-radius:2px;
  background:linear-gradient(90deg, rgba(106,163,255,.1), rgba(106,163,255,.8), rgba(106,163,255,.1));
  animation:pulse 1.8s ease-in-out infinite; box-shadow:0 0 10px rgba(106,163,255,.4)
}
@keyframes pulse{ 0%,100%{opacity:.3; transform:scaleX(.95)} 50%{opacity:1; transform:scaleX(1)} }
.logo .quant{
  background:linear-gradient(180deg, var(--chrome1), var(--chrome2) 55%, var(--chrome3));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight:900; font-size:24px; letter-spacing:.3px; filter:drop-shadow(0 1px 0 rgba(255,255,255,.25))
}

/* Sections */
.section{ padding:60px 0 }
.grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px }
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--hair); border-radius:18px; padding:22px;
  display:flex; flex-direction:column;
}
.card h3{ margin:0 0 8px; font-size:19px }
.muted{ color:var(--muted) }

/* Normalized actions */
.actions{ margin-top:auto; padding-top:16px; }
.actions .btn{ width:100%; }

.hero{ padding:92px 0 56px; text-align:center }
.hero h1{ font-size:clamp(28px,4.2vw,56px); font-weight:800; line-height:1.05; margin:0 0 14px }
.hero p{ color:var(--muted); max-width:820px; margin:0 auto 22px }
.cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:12px }

/* Pricing */
.pricing h2{ text-align:center; margin-bottom:4px }
.pricing .price{ font-size:34px; font-weight:800; margin:8px 0 6px; display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.strike{ color:var(--muted); text-decoration:line-through; font-weight:500 }
.save{ font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid var(--hair); background:rgba(66,211,146,.15); color:var(--text); display:inline-flex; align-items:center; justify-content:center }
.most-pop{ border-color:rgba(255,255,255,.18); box-shadow:0 0 0 1px rgba(255,255,255,.06), 0 6px 22px rgba(106,163,255,.15) }
.note{ font-size:12px; color:var(--muted); margin-top:8px }

/* Better spacing for bullets in pricing cards */
.list{ margin:8px 0 0; padding-left:22px; }
.list li{ margin:6px 0; }

/* Modal (Free signup) */
.modal-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.5); display:none; align-items:center; justify-content:center; z-index:60 }
.modal{ width:min(560px,92vw); background:var(--card); border:1px solid var(--hair); border-radius:18px; padding:22px }
.modal header{ position:relative; border-bottom:1px solid var(--veil); padding-bottom:10px; margin-bottom:14px; backdrop-filter:none; background:transparent }
.close{ position:absolute; right:6px; top:6px; width:34px; height:34px; border-radius:10px; border:1px solid var(--hair); background:transparent; color:var(--text); cursor:pointer }
.field{ display:flex; flex-direction:column; gap:6px; margin:10px 0 }
input, textarea{ background:#0d1529; border:1px solid var(--hair); color:var(--text); border-radius:10px; padding:10px 12px; outline:none }
input:focus, textarea:focus{ border-color:#2e6bff; box-shadow:0 0 0 3px rgba(106,163,255,.18) }

/* Chat widget */
.chat-toggle{
  position:fixed; right:18px; bottom:18px; width:56px; height:56px; border-radius:999px;
  background:var(--accent); color:#061021; border:none; box-shadow:0 10px 24px rgba(0,0,0,.35);
  z-index:55; cursor:pointer; font-weight:800; display:inline-flex; align-items:center; justify-content:center; font-size:26px;
}
.chat-toggle::after{ content:''; }
.chat{ position:fixed; right:18px; bottom:84px; width:min(360px,92vw); height:480px; background:var(--card); border:1px solid var(--hair); border-radius:16px; display:none; flex-direction:column; overflow:hidden; z-index:55 }
.chat header{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--veil) }
.chat header .title{ font-weight:700 }
.chat main{ flex:1; padding:12px; overflow:auto; display:flex; flex-direction:column; gap:8px }
.msg{ max-width:85%; padding:10px 12px; border-radius:12px; line-height:1.35; font-size:15px }
.bot{ background:rgba(255,255,255,.05); border:1px solid var(--hair) }
.me{ background:rgba(106,163,255,.2); border:1px solid rgba(106,163,255,.35); align-self:flex-end }
.typing{ display:inline-flex; gap:4px; }
.dot{ width:6px; height:6px; border-radius:999px; background:#a9b6cc; opacity:.4; animation:blink 1.2s infinite }
.dot:nth-child(2){ animation-delay:.2s } .dot:nth-child(3){ animation-delay:.4s }
@keyframes blink{ 0%,100%{opacity:.2} 50%{opacity:1} }
.chat footer{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--veil) }
.chat input[type="text"]{ flex:1; padding:10px 12px; border-radius:10px; border:1px solid var(--hair); background:#0d1529; color:var(--text) }
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; padding:0 12px 10px }
.chip{ font-size:12px; padding:6px 10px; border:1px solid var(--hair); border-radius:999px; background:rgba(255,255,255,.04); cursor:pointer }

/* Footer (simple pages only). 
   The multi-column footer uses .site-footer below. */
footer:not(.site-footer){
  padding:38px 0 60px;
  color:var(--muted);
  border-top:1px solid var(--veil);
  margin-top:36px;
  text-align:center;
}

/* Library (product-style) */
.library-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:24px;
}
.product-card{ padding:0; overflow:hidden; border-radius:18px; }
.product-card .media{
  aspect-ratio:16/9; width:100%;
  background:
    radial-gradient(800px 400px at 70% -10%, rgba(106,163,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-bottom:1px solid var(--hair);
  border-top-left-radius:inherit; border-top-right-radius:inherit;
  position:relative;
}
.product-card .body{ padding:18px 18px 16px; }
.product-card .title{ font-size:18px; font-weight:700; margin:0 0 6px; }
.product-card .desc{ color:var(--muted); margin:0 0 14px; min-height:2.6em; }
.product-card .actions{ margin:0; padding:0; }
.product-card .btn.ghost[aria-disabled="true"]{ pointer-events:none; opacity:.6; }

/* Skeleton shimmer (soft) */
.skeleton{ position:relative; overflow:hidden; }
.skeleton::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(100deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.03) 40%,
      rgba(255,255,255,.08) 50%,
      rgba(255,255,255,.03) 60%,
      rgba(255,255,255,0) 100%);
  transform:translateX(-120%); filter:blur(8px);
  animation:sheenSoft 2.6s ease-in-out infinite;
}
@keyframes sheenSoft{ 0%{transform:translateX(-120%)} 100%{transform:translateX(120%)} }

/* Buttons with arrow */
.btn.icon-right{ position:relative; }
.btn.icon-right::after{ content:"→"; margin-left:8px; transition: transform .18s ease; }
.btn.icon-right:hover::after{ transform: translateX(2px); }

.btn.icon-up::after{ content:"↑"; margin-left:8px; transition: transform .18s ease; }
.btn.icon-up:hover::after{ transform: translateY(-2px); }

.btn.ghost.light{
  color:#f6f9ff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.02);
}
.btn.ghost.light:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.35);
}
.btn.ghost.light[aria-disabled="true"]{ opacity:.9; pointer-events:none; }

/* Smooth anchor scroll */
html{ scroll-behavior: smooth; }

/* Product page layout */
.product-hero{ max-width:1200px; margin:0 auto; padding:0 24px; }
.product-hero .frame{
  border-radius:18px; border:1px solid var(--hair);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  overflow:hidden; aspect-ratio:16/9; position:relative;
}
.product-hero .frame.skeleton::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, transparent 0%, rgba(255,255,255,.03) 40%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.03) 60%, transparent 100%);
  transform:translateX(-120%); filter:blur(8px); animation:sheenSoft 2.6s ease-in-out infinite;
}

.platform-card{ max-width:1200px; margin:18px auto 0; padding:0 24px; }
.platform-card .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  border:1px solid var(--hair); border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding:18px 20px;
}
.platform-left{ display:flex; align-items:center; gap:14px; }
.platform-logo{
  width:42px; height:42px; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.06); border:1px solid var(--hair);
  font-weight:800; letter-spacing:.2px;
}
.platform-title{ font-weight:700; }
.platform-sub{ color:var(--muted); font-size:14px; }

.desc-section{ max-width:1200px; margin:22px auto 0; padding:0 24px; }
.prose{ color:var(--muted); }
.prose p{ margin:0 0 12px; }

/* Gallery */
.gallery4{ max-width:1200px; margin:22px auto 0; padding:0 24px; }
.gallery-grid{ display:grid; gap:16px; grid-template-columns:repeat(4, 1fr); }
.gallery-item{
  height:160px; border:1px solid var(--hair); border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  position:relative; overflow:hidden;
}
.gallery-item.skeleton::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, transparent 0%, rgba(255,255,255,.03) 40%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.03) 60%, transparent 100%);
  transform:translateX(-120%); filter:blur(8px); animation:sheenSoft 2.6s ease-in-out infinite;
}

/* Responsive stacks */
@media (max-width: 900px){ .library-grid{ grid-template-columns:1fr; } }
@media (max-width: 900px){ .gallery-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 520px){ .gallery-grid{ grid-template-columns:1fr; } }

/* --- Showcase slider (fixed sizing; 2s still + slide via JS) --- */
.hero{ padding-bottom:32px; }     /* tighter gap below hero */
#showcase{ padding-top:24px; }    /* tighter gap above slider */
#showcase .chart-slider{ margin-top:0; }

.chart-slider{
  border:1px solid var(--hair);
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow:0 6px 22px rgba(0,0,0,.18);
  width:96%;
  margin:0 auto;
}
.chart-slider .slides{
  display:flex;
  transition: transform .6s ease;
}
.chart-slider .slide{
  flex:0 0 100%;
  aspect-ratio:20/10;
  position:relative;
  background-size:cover;
  background-position:center;
}
.chart-slider .slide.s1{ background-image:url("/assets/img/slide-1.png"); }
.chart-slider .slide.s2{ background-image:url("/assets/img/slide-2.png"); }
.chart-slider .slide.s3{ background-image:url("/assets/img/slide-3.png"); }
.chart-slider .slide::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(800px 400px at 70% -10%, rgba(106,163,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  pointer-events:none;
}
@media (max-width:768px){
  .chart-slider{ width:100%; }
  .chart-slider .slide{ aspect-ratio:16/10; }
}

/* Responsive base */
@media (max-width: 768px){
  body{font-size:16px}
  header .container{padding:0 16px}
  .logo .impulse,.logo .quant{font-size:22px}
  .hero{padding:72px 0 44px}
  .hero h1{font-size:clamp(24px,5.5vw,42px)}
  .grid{grid-template-columns:1fr; gap:14px}
  .card{padding:18px}
  .pricing .price{font-size:32px}
  .chat{height:70vh}
}
@media (max-width: 480px){
  .logo .impulse,.logo .quant{font-size:20px}
  .hero{padding:60px 0 36px}
  .hero h1{font-size:clamp(22px,7vw,36px)}
  .btn{height:38px; padding:0 14px}
  .btn.small{height:34px}
  .pricing .price{font-size:30px}
}

/* Mega footer (multi-column) */
.site-footer{
  margin-top:36px;
  border-top:1px solid var(--veil);
  text-align:left;
  color:var(--muted);
}
.site-footer .footer-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(180px, 220px));
  justify-content:flex-start;
  gap:28px 36px;
  padding:36px 0 18px;
}
.site-footer .footer-col h4{
  color:#fff;
  opacity:1;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 12px;
}
.site-footer .footer-col a{
  display:block;
  color:#e8edf6;
  opacity:.85;
  padding:4px 0;
}
.site-footer .footer-col a:hover{ opacity:1; color:#ffffff; }
.site-footer .legal-bar{
  border-top:1px solid var(--veil);
  padding:14px 0 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
}
.site-footer .legal-links{
  display:flex; align-items:center; gap:10px;
}
.site-footer .legal-links a{ color:var(--muted); }
.site-footer .legal-links a:hover{ color:#fff; }
@media (max-width:768px){
  .site-footer .legal-bar{
    flex-direction:column; align-items:flex-start;
  }
}

/* === Header Contact pill: remove faint ring/border === */
header .nav-links .btn.ghost,
header .nav-links .btn.ghost:hover,
header .nav-links .btn.ghost:focus,
header .nav-links .btn.ghost:focus-visible{
  border:0;
  box-shadow:none;
  outline:none;
  background:transparent;
}

/* Hero CTAs – identical sizing */
.hero .cta .btn,
.hero .cta .btn.ghost{
  width: 220px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.hero .cta{ gap:12px; }
@media (max-width: 600px){
  .hero .cta{ gap: 10px; }
  .hero .cta .btn,
  .hero .cta .btn.ghost{
    width: 100%;
    max-width: 320px;
  }
}
/* Primary CTA tone */
.hero .cta .btn:not(.ghost){ background:#5f94f2; }
.hero .cta .btn:not(.ghost):hover{ background:#6aa3ff; }
.hero .cta .btn.ghost{ border:0; background:rgba(255,255,255,.06); color:#f6f9ff; }
.hero .cta .btn.ghost:hover{ background:rgba(255,255,255,.10); }

/* Pricing buttons: hover highlight (no arrow) */
.pricing .actions .btn.small{
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pricing .actions .btn.small:hover{
  transform: translateY(-1px);
  background: #7bb0ff;
  box-shadow: 0 8px 24px rgba(106,163,255,.35);
}
.pricing .actions .btn.small:active{
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(106,163,255,.25);
}

/* ----- Price stack (orig above, current below) ----- */
.price-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  margin:6px 0 10px;
}
.price-stack .orig{
  font-size:34px;
  font-weight:800;
  line-height:1;
  color:var(--muted);
  text-decoration:line-through;
  opacity:.95;
  margin:0;
}
.price-stack .now{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.price-stack .now .amount{
  font-size:34px;
  font-weight:800;
  line-height:1;
}
/* When deal is inactive (timer ended), hide discount UI cleanly */
.plan:not(.deal-active) .price-stack .orig,
.plan:not(.deal-active) .price-stack .save{
  display:none !important;
}

/* ===================================================================
   COUNTDOWN — desktop original + mobile side-by-side, scaled down
   Supports either wrapper markup:
   <div class="deal-timer"><div class="timer-wrap"> … </div></div>
   or just <div class="deal-timer">…</div>
   Item classes can be .cd-block or .cd-box; both are styled.
   =================================================================== */

/* Container (works with or without .timer-wrap) */
.deal-timer{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
}
.deal-timer .timer-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:nowrap;               /* keep in one row */
}

/* If .timer-wrap not present, style children directly */
.deal-timer > .cd-block,
.deal-timer > .cd-box,
.deal-timer > .cd-sep,
.deal-timer > .cd-colon{
  /* ensure row flow even without .timer-wrap */
  display:flex;
}

/* Desktop defaults (your original large look) */
.deal-timer .cd-block,
.deal-timer .cd-box{
  min-width:120px;
  padding:14px 16px;
  text-align:center;
  border:1px solid var(--hair);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.deal-timer .cd-num{ font-size:42px; font-weight:800; letter-spacing:2px; }
.deal-timer .cd-label{ color:var(--muted); font-size:14px; margin-top:6px; }
.deal-timer .cd-sep,
.deal-timer .cd-colon{
  color:#9aa3b2; opacity:.7; font-weight:700; font-size:32px; line-height:1;
}

/* --- Mobile: keep one row, just scale down so it fits --- */
@media (max-width: 768px){
  .deal-timer .timer-wrap{ gap:10px; }
  .deal-timer .cd-block,
  .deal-timer .cd-box{
    min-width:unset;
    width: clamp(62px, 19vw, 92px);   /* shrink on phones */
    padding:10px 12px;
    border-radius:14px;
  }
  .deal-timer .cd-num{ font-size: clamp(22px, 7vw, 34px); }
  .deal-timer .cd-label{ font-size:12px; }
  .deal-timer .cd-sep,
  .deal-timer .cd-colon{
    font-size: clamp(14px, 5.2vw, 26px);
    margin: 0 clamp(2px, 1vw, 4px);
  }
}

/* Very narrow phones: hide separators to guarantee fit */
@media (max-width: 360px){
  .deal-timer .cd-sep,
  .deal-timer .cd-colon{ display:none; }
  .deal-timer .timer-wrap{ gap:8px; }
}

/* ===== Mobile fixes: TradingView access row ===== */
.platform-card .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
@media (max-width:640px){
  .platform-left{
    width:100%;
    margin-bottom:10px;
    align-items:center;
    gap:12px;
  }
  .platform-card .wrap .btn{
    width:100%;
    justify-content:center;
    margin-left:0;
  }
}
/* MOBILE — make countdown narrower + edge-aligned with cards */
@media (max-width:768px){
  /* push first/last tiles to the edges of the container like the cards */
  .pricing .deal-timer .timer-wrap{
    justify-content: space-between; /* key for edge alignment */
    gap: 6px;                        /* smaller gaps between tiles */
    padding: 0 4px;                  /* tiny inner padding */
  }

  /* shrink each tile a touch more */
  .pricing .deal-timer .cd-block,
  .pricing .deal-timer .cd-box{
    width: clamp(50px, 15.5vw, 82px); /* ↓ reduce 15.5vw for tighter fit */
    padding: 8px 10px;
    border-radius: 12px;
  }

  .pricing .deal-timer .cd-num{
    font-size: clamp(18px, 6.2vw, 30px);
  }
  .pricing .deal-timer .cd-label{
    font-size: 11px;
  }
  .pricing .deal-timer .cd-colon{
    font-size: clamp(12px, 4.2vw, 20px);
    margin: 0 2px;
  }
}
.plan.unavailable {
  position: relative;
  opacity: 0.5; /* dim entire card */
  pointer-events: none; /* disable clicks */
}

.plan.unavailable::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: rgba(255,255,255,0.2);
  pointer-events: none;
}

.plan.unavailable .btn {
  background: #555 !important;
  color: #ccc !important;
  border: none;
}

