/* ==========================================================================
   Unlimited Watchlists for TradingView — site design system
   Dark fintech theme · no build step · all paths relative
   ========================================================================== */

:root {
  --bg: #0a0c10;
  --bg-2: #0d1016;
  --surface: #12151d;
  --surface-2: #181d28;
  --border: #232936;
  --border-light: #2e3646;
  --text: #e8eaf0;
  --muted: #98a1b3;
  --faint: #6b7488;
  --accent: #2962ff;
  --accent-bright: #4d82ff;
  --accent-soft: rgba(41, 98, 255, 0.12);
  --accent-glow: rgba(41, 98, 255, 0.32);
  --green: #26a69a;
  --red: #ef5350;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 80px var(--accent-glow);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: 0 4px 18px rgba(41, 98, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { box-shadow: 0 6px 26px rgba(41, 98, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-ghost:hover { border-color: var(--faint); background: var(--surface); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 9px; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15.5px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding: 84px 0 30px; text-align: center; overflow: visible; }

.hero-glow {
  position: absolute;
  inset: -180px 0 auto 0;
  height: 560px;
  background:
    radial-gradient(ellipse 640px 420px at 50% 0%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 900px 500px at 50% 10%, rgba(41, 98, 255, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(77, 130, 255, 0.35);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}
.grad {
  background: linear-gradient(92deg, var(--accent-bright) 0%, #7aa5ff 60%, #b3cbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 34px;
}

.hero-ctas { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--faint); }

kbd {
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--text);
}

/* Browser frame around screenshots */
.frame {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.frame-bar .dots { display: flex; gap: 6px; }
.frame-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); }
.frame-bar .url {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
  font-size: 11.5px;
  color: var(--faint);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 12px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-shot { margin: 64px auto 0; max-width: 1010px; }
.hero-shot .frame { box-shadow: var(--shadow-pop); }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust { padding: 44px 0 10px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
}
.trust-item svg { color: var(--accent-bright); flex: none; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 88px 0 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 130, 255, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 30px rgba(41, 98, 255, 0.12);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(77, 130, 255, 0.28);
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Chartink spotlight
   -------------------------------------------------------------------------- */

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}

.spot-steps { display: flex; flex-direction: column; gap: 0; counter-reset: spot; }
.spot-step { display: flex; gap: 18px; position: relative; padding-bottom: 28px; }
.spot-step:last-child { padding-bottom: 0; }
.spot-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--border-light), transparent);
}
.spot-step:last-child::before { display: none; }
.spot-num {
  counter-increment: spot;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(77, 130, 255, 0.35);
}
.spot-num::before { content: counter(spot); }
.spot-step h3 { font-size: 16.5px; font-weight: 700; margin: 6px 0 6px; letter-spacing: -0.01em; }
.spot-step p { font-size: 14.5px; color: var(--muted); margin: 0; }

.spot-visual { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.spot-strip {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}
.step-card .step-n {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.step-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.step-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.gallery-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.shot .frame { flex: 1; display: flex; flex-direction: column; }
.shot .frame img { flex: 1; object-fit: cover; object-position: top; width: 100%; }
.shot figcaption { font-size: 13px; color: var(--faint); text-align: center; padding-top: 12px; }
.shot { margin: 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-light); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; color: var(--faint); transition: transform 0.2s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); }
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -60% 0 auto 0;
  height: 130%;
  background: radial-gradient(ellipse 540px 300px at 50% 0%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta-band p { color: var(--muted); margin: 0 0 28px; font-size: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { margin-top: 88px; border-top: 1px solid var(--border); padding: 36px 0 44px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner .dev { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-disclaimer { margin-top: 18px; font-size: 12.5px; color: var(--faint); }

/* --------------------------------------------------------------------------
   Privacy page
   -------------------------------------------------------------------------- */

.policy { padding: 56px 0 0; }
.policy h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.policy .updated { color: var(--faint); font-size: 14px; margin-bottom: 32px; }

.policy-summary {
  background: var(--accent-soft);
  border: 1px solid rgba(77, 130, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.policy-summary p { margin: 0; color: var(--text); font-size: 15px; }

.policy h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 8px;
  position: relative;
}
.policy h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.policy p, .policy li { color: #c4cad6; font-size: 15px; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 9px; }
.policy code {
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1.5px 7px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 940px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; gap: 36px; }
  .gallery-top { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .section { padding-top: 64px; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-panels { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; justify-content: center; }
  .footer-disclaimer { text-align: center; }
}

@media (max-width: 520px) {
  .steps-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
