/* Day One Driver · zajednički stil (sve stranice). Brend: crvena #F03E30, tamna #090B11. Samo tamna tema. */
:root {
  --bg: #090B11;
  --surface: #0F121A;
  --raise: #151924;
  --line: #222838;
  --line-soft: #1A1F2C;
  --fg: #FFFFFF;
  --muted: #B9BFCC;
  --faint: #7D8496;
  --accent: #F03E30;
  --accent-text: #FF5A4D;
  --on-accent: #FFFFFF;
  --glow: rgba(240, 62, 48, 0.55);
  --glow-soft: rgba(240, 62, 48, 0.16);
  --good: #2EE58A;
  --good-soft: rgba(46, 229, 138, 0.14);
  --bad-soft: rgba(240, 62, 48, 0.16);
  --life: #FFC83D;
  --project: #A58BFF;
  --project-soft: rgba(165, 139, 255, 0.14);
  --before: #4DA6FF;
  --glass: rgba(9, 11, 17, 0.8);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.label { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--good); } .neg { color: var(--accent-text); } .zero { color: var(--muted); } .proj { color: var(--project); }

/* Roof sign (brend) */
.roof { display: inline-block; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; padding: 7px 20px 6px; clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%); text-decoration: none; white-space: nowrap; }

/* Gornja traka */
.topbar { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color .35s ease, border-color .35s ease; }
.topbar.scrolled { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top nav { display: flex; align-items: center; gap: 24px; }
.navlink { position: relative; font-size: .9rem; color: var(--muted); text-decoration: none; padding-block: 4px; white-space: nowrap; }
.navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.navlink:hover, .navlink[aria-current="page"] { color: var(--fg); }
.navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 820px) { .navlink.opt { display: none; } .top nav { gap: 14px; } }
@media (max-width: 380px) { .roof { font-size: .92rem; padding: 6px 15px 5px; } .navlink { font-size: .85rem; } }
@media (max-width: 760px), (pointer: coarse) { .topbar.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); } }

/* Dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; text-align: center; transition: transform .2s var(--ease), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 10px 30px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-small { padding: 9px 16px; font-size: .88rem; white-space: nowrap; gap: 0; }
@media (max-width: 420px) { .hide-xs { display: none; } }

/* Sekcije */
section.sec { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--line-soft); }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(26px, 4vw, 44px); max-width: 660px; }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: .95; text-transform: uppercase; letter-spacing: -.005em; }
.sec-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; background: var(--accent); box-shadow: 0 0 18px var(--glow); border-radius: 2px; }
.sec-head p { color: var(--muted); font-size: 1.15rem; line-height: 1.5; }
.sec-head .label { display: inline-flex; align-items: center; gap: 10px; }
.sec-head .label::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }

/* Kartica */
.card { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 40%), var(--surface); padding: clamp(16px, 2.4vw, 24px); min-width: 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line-soft); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand .roof { align-self: flex-start; padding: 8px 30px 7px; }
.slogan { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; line-height: .92; }
.slogan .em { color: var(--accent-text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; align-self: flex-end; max-width: 520px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }
.legal { margin-top: 30px; font-size: .8rem; color: var(--faint); max-width: 72ch; display: flex; flex-direction: column; gap: 6px; }

/* Obaveštenje (toast) za linkove koji još nisu povezani */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 100; background: var(--raise); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: .9rem; box-shadow: 0 20px 50px -20px #000; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }

/* Checkout na sajtu (Whop embedded) */
.co-ov { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(5,5,8,.78); backdrop-filter: blur(6px); }
.co-ov.show { display: flex; }
.co-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #111114; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.co-x { appearance: none; border: 0; background: rgba(255,255,255,.08); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.co-body { min-height: 420px; }
.co-load { color: #9a9aa3; font-size: .9rem; text-align: center; margin: 1.5rem 0; }
.co-fine { margin: 10px 0 0; font-size: .78rem; color: #9a9aa3; text-align: center; }
@media (max-width: 480px) { .co-ov { padding: 0; align-items: stretch; } .co-box { border-radius: 0; max-height: 100vh; height: 100%; } }
