/* Trade Dojo — trade-dojo.com
   Tamna, „product page" estetika: ogromna tipografija, telefoni kao junaci, animacije pri skrolu.
   Deli se sa privacy-policy.html. */

:root {
  --bg: #000;
  --surface: #0c0d10;
  --surface-2: #141519;
  --line: #22252b;
  --text: #f5f5f7;
  --muted: #8a8f98;
  --gold: #f0b90b;
  --gold-2: #ffd86b;
  --up: #2ebd85;
  --down: #f6465d;
  --radius: 28px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ── tipografija ── */
.display {
  font-size: clamp(44px, 8.6vw, 124px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0;
}
.display-2 {
  font-size: clamp(40px, 7.4vw, 108px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0 0 28px;
  text-align: center;
}
.headline {
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 22px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede { font-size: clamp(18px, 2vw, 23px); color: #c7c9ce; max-width: 34ch; margin: 26px 0 34px; font-weight: 500; }
.body { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 46ch; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: #4b4f57; }
.fine { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.grad {
  background: linear-gradient(92deg, var(--gold) 0%, var(--gold-2) 40%, var(--up) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── navigacija ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: rgba(255, 255, 255, 0.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: #c7c9ce; }
.nav-links a:hover { color: #fff; }

/* ── dugmad ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform 0.2s, filter 0.2s, background 0.2s;
}
.pill:hover { filter: brightness(1.08); }
.pill:active { transform: scale(0.97); }
.pill-gold { background: var(--gold); color: #111; }
.pill-green { background: var(--up); color: #04150e; }
.pill-red { background: var(--down); color: #fff; }
.pill-light { background: #f5f5f7; color: #111; }
.pill-big { height: 56px; font-size: 17px; padding: 0 28px; width: 100%; }

.play-badge { display: inline-block; margin: -14px 0 -14px -14px; }
.play-badge img { height: 84px; width: auto; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.qr-mini { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.qr-mini img { width: 64px; height: 64px; border-radius: 10px; background: #fff; padding: 4px; }

/* ── hero ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 130px 24px 40px;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero .lede { margin-left: auto; margin-right: auto; max-width: 40ch; }
.hero .cta-row { justify-content: center; }
.hero .display { font-size: clamp(44px, 7.4vw, 112px); }
.hero-glow {
  position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(700px 460px at 50% 72%, rgba(240, 185, 11, 0.22), transparent 70%),
    radial-gradient(560px 380px at 68% 86%, rgba(46, 189, 133, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-glow.small { inset: auto 0 0 0; height: 100%; background: radial-gradient(520px 320px at 50% 60%, rgba(240, 185, 11, 0.18), transparent 70%); }

.ticker-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; margin-bottom: 26px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ticker-pill .dot, .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 0 0 rgba(46, 189, 133, 0.7); animation: pulse 1.8s infinite;
}
.live-dot { display: inline-block; vertical-align: middle; margin-left: 6px; }
.tp-label { color: var(--up); font-size: 12px; letter-spacing: 0.1em; }
.tp-sym { color: var(--muted); }
.tp-chg.up { color: var(--up); } .tp-chg.down { color: var(--down); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(46, 189, 133, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 189, 133, 0); } }

.hero-phones {
  position: relative; width: 100%; height: 680px; margin-top: 64px; perspective: 1400px;
  display: flex; align-items: center; justify-content: center;
}
.hero-phones > .phone { position: absolute; transition: transform 0.25s ease-out; will-change: transform; }
.phone-main { width: 290px; z-index: 3; transform: translateZ(60px); animation: float 7s ease-in-out infinite; }
.phone-side { width: 240px; opacity: 0.85; filter: saturate(0.9); }
.phone-side.left { transform: translateX(-230px) rotateY(18deg) scale(0.92); z-index: 2; }
.phone-side.right { transform: translateX(230px) rotateY(-18deg) scale(0.92); z-index: 2; }
@keyframes float { 50% { translate: 0 -12px; } }

/* ── telefon ── */
.phone {
  position: relative;
  aspect-ratio: 540 / 1202;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a2c31, #0b0c0e 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 80px -40px rgba(240, 185, 11, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone::after {
  content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0;
  width: 14px; height: 14px; border-radius: 50%; background: #050505;
  box-shadow: 0 0 0 2px #1b1c20;
}

/* ── brojke ── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 40px 24px 120px;
}
.stat { text-align: center; padding: 34px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat .num {
  display: block; font-size: clamp(48px, 6.4vw, 88px); font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(180deg, #fff, #9aa0a8); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat .cap { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; font-weight: 500; }

/* ── sekcije sa funkcijama ── */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
  max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) 24px;
}
.feature.flip .feature-copy { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(320px, 78vw); }
.chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }

.rr-card {
  margin-top: 30px; max-width: 380px; padding: 18px 20px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px;
}
.rr-card div { display: flex; justify-content: space-between; font-size: 16px; }
.rr-card .k { color: var(--muted); }
.rr-card .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .gold { color: var(--gold); }

.belts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.belt {
  --b: transparent;
  padding: 10px 16px 10px 40px; border-radius: 999px; position: relative;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 15px;
  opacity: 0.35; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s;
}
.belt::before {
  content: ""; position: absolute; left: 12px; top: 50%; translate: 0 -50%;
  width: 20px; height: 8px; border-radius: 3px; background: var(--c); border: 1px solid var(--b);
}
.belts.lit .belt { opacity: 1; transform: none; }
.belts.lit .belt:nth-child(2) { transition-delay: 0.15s; }
.belts.lit .belt:nth-child(3) { transition-delay: 0.3s; }
.belts.lit .belt:nth-child(4) { transition-delay: 0.45s; }
.belts.lit .belt:nth-child(5) { transition-delay: 0.6s; }

/* ── demo ── */
.demo { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 12vw, 160px) 24px; text-align: center; }
.demo-head .headline { text-align: center; }
.demo-card {
  margin: 56px auto 0; max-width: 560px; text-align: left;
  padding: 28px; border-radius: 34px;
  background: linear-gradient(180deg, #111216, #0a0b0d);
  border: 1px solid var(--line);
  box-shadow: 0 40px 140px -40px rgba(240, 185, 11, 0.25);
}
.demo-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.demo-pair { color: var(--muted); font-weight: 600; font-size: 15px; }
.demo-price { font-size: clamp(40px, 7vw, 56px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; transition: color 0.4s; }
.demo-price.tick-up { color: var(--up); } .demo-price.tick-down { color: var(--down); }
.demo-chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-balance { text-align: right; }
.demo-balance .k { display: block; color: var(--muted); font-size: 13px; }
.demo-balance .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-controls, .demo-position, .demo-result { display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--surface-2); }
.seg.small { grid-template-columns: repeat(3, 1fr); }
.seg-btn { height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg-btn.on { background: #26282e; color: #fff; }
.seg-btn.on.long { background: rgba(46, 189, 133, 0.16); color: var(--up); }
.seg-btn.on.short { background: rgba(246, 70, 93, 0.16); color: var(--down); }
.slider { display: grid; gap: 8px; }
.slider .k { color: var(--muted); font-size: 15px; }
.slider b { color: #fff; }
input[type=range] { width: 100%; accent-color: var(--gold); height: 28px; }
.pos-row { display: flex; justify-content: space-between; color: var(--muted); font-variant-numeric: tabular-nums; }
.pos-row .v { color: #fff; font-weight: 600; }
.pos-pnl { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.pos-pnl #posPnl { font-size: clamp(30px, 5vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.pos-pnl #posRoe { font-weight: 700; }
.pos-fees { margin-top: -10px; font-size: 13px; color: #5c616a; text-align: right; font-variant-numeric: tabular-nums; }
.pos-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pos-bar span { display: block; height: 100%; width: 50%; background: var(--up); transition: width 0.4s, background 0.4s; }
.demo-result { text-align: center; }
.res-big { font-size: clamp(40px, 8vw, 60px); font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.res-txt { color: var(--muted); margin: 0; }
.res-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.res-actions .pill { height: 46px; padding: 0 20px; font-size: 15px; }
.demo-note { margin: 18px 0 0; font-size: 13px; color: #5c616a; text-align: center; }

/* ── widget ── */
.widget-section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) 24px; }
.widget-section .headline, .widget-section .eyebrow { text-align: center; }
.widget-img {
  width: min(640px, 100%); margin: 56px auto 0;
  filter: drop-shadow(0 40px 80px rgba(240, 185, 11, 0.18));
}

/* ── galerija ── */
.gallery-section { padding: 40px 0 120px; }
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px max(24px, calc((100vw - var(--max)) / 2)) 40px;
  scrollbar-width: none; cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery .phone { flex: 0 0 auto; width: 250px; scroll-snap-align: center; }
.gallery img { pointer-events: none; user-select: none; }

/* ── iskrenost ── */
.honesty { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 12vw, 170px) 24px; text-align: center; }

/* ── jezici ── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; color: #3a3d44; white-space: nowrap; }
.marquee span:nth-child(3n + 1) { color: #f5f5f7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── FAQ ── */
.faq { max-width: 860px; margin: 0 auto; padding: clamp(90px, 12vw, 150px) 24px; }
.faq-list { margin-top: 46px; display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 30px 18px 0; position: relative;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400; color: var(--gold); transition: rotate 0.25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ── završni poziv ── */
.final { position: relative; text-align: center; padding: clamp(110px, 14vw, 190px) 24px; overflow: hidden; }
.final-icon { margin: 0 auto 34px; border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(240, 185, 11, 0.45); }
.final .display { margin-bottom: 42px; }

/* ── podnožje ── */
.footer { border-top: 1px solid var(--line); padding: 34px max(24px, calc((100vw - var(--max)) / 2)) 50px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; }
.footer nav a:hover, .footer .brand:hover { color: #fff; }
.footer .brand { color: var(--text); font-size: 15px; }
.legal { margin: 22px 0 0; font-size: 12.5px; color: #575b63; max-width: 90ch; }

/* ── pojavljivanje pri skrolu ── */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── privacy policy ── */
.doc { max-width: 780px; margin: 0 auto; padding: 130px 24px 100px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; margin: 0 0 12px; }
.doc .updated { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 10px; }
.doc p, .doc li { color: #c7c9ce; }
.doc a { color: var(--gold); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .callout { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }

/* ── responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 10px; min-height: auto; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .play-badge { margin: -14px; }
  .hero-phones { height: 560px; margin-top: 28px; }
  .phone-main { width: 230px; }
  .phone-side { width: 190px; }
  .phone-side.left { transform: translateX(-120px) rotateY(18deg) scale(0.88); }
  .phone-side.right { transform: translateX(120px) rotateY(-18deg) scale(0.88); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 60px; }
  .feature { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy .body { margin: 0 auto; }
  .chips, .belts { justify-content: center; }
  .rr-card { margin-left: auto; margin-right: auto; text-align: left; }
  .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .phone-side { display: none; }
  .hero-phones { height: 520px; }
  .phone-main { width: 216px; }
  .demo-card { padding: 20px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
