/* MtljApps naslovnica */
body.main { background: var(--night); }
.on-dark { color: var(--sand); }

/* izbornik */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 13, 24, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mtlj-logo { display: flex; align-items: center; text-decoration: none; }
.mtlj-logo img { height: 38px; width: auto; }
.foot-logo { height: 30px; width: auto; }
.mtlj-logo .display { font-size: 26px; } .mtlj-logo b { color: var(--cyan); font-weight: 700; }
.mtlj-mark { display: grid; grid-template-columns: repeat(3, 8px); gap: 4px; align-items: end; height: 28px; }
.mtlj-mark i { display: block; width: 8px; border-radius: 3px; background: var(--orange); }
.mtlj-mark i:nth-child(1) { height: 12px; } .mtlj-mark i:nth-child(2) { height: 28px; background: var(--cyan); } .mtlj-mark i:nth-child(3) { height: 20px; background: var(--amber); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--mist); text-decoration: none; font-weight: 500; font-size: 16px; transition: color .2s; }
.nav-links a:hover { color: var(--sand); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.hero-bg { position: absolute; inset: 0; }
.tech { position: absolute; inset: 0; background: url(../img/mtljapps-bg.webp) center/cover no-repeat; opacity: .22; mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #F4560A; left: -120px; top: 10%; }
.b2 { width: 460px; height: 460px; background: #0E7490; right: -100px; top: 25%; animation-delay: -6s; }
.b3 { width: 380px; height: 380px; background: #B45309; left: 40%; bottom: -160px; opacity: .35; animation-delay: -11s; }
@keyframes drift { to { transform: translate(60px, -40px) scale(1.12); } }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(246, 243, 238, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 243, 238, .05) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
.hero-in { position: relative; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(48px, 8.4vw, 116px); max-width: 15ch; line-height: 1.14; }
.grad { background: linear-gradient(90deg, var(--orange), var(--amber) 45%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--mist); max-width: 52ch; line-height: 1.5; }
.hero-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.pcard { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px; border-radius: 22px; text-decoration: none; color: var(--sand);
  background: rgba(19, 37, 61, .55); border: 1px solid var(--line); backdrop-filter: blur(8px); transition: transform .25s, border-color .25s, background .25s; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(246, 243, 238, .35); background: rgba(19, 37, 61, .85); }
.pcard b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: .5px; }
.pcard small { color: var(--mist); font-size: 14px; }
.pcard .arr { margin-left: 10px; color: var(--mist-2); transition: transform .25s; } .pcard:hover .arr { transform: translateY(3px); }
.claim-mark { width: 56px; height: 56px; border-radius: 16px; flex: none; position: relative;
  background: radial-gradient(circle at 50% 55%, #22D3EE 0 5px, transparent 6px), conic-gradient(from 210deg, #FFB020, #F59E0B, #FFB020); }
.claim-mark::before, .claim-mark::after { content: ""; position: absolute; top: 50%; height: 6px; width: 22px; background: #0B1A2E; border-radius: 3px; }
.claim-mark::before { left: 6px; transform: translateY(-50%) rotate(-12deg); } .claim-mark::after { right: 6px; transform: translateY(-50%) rotate(12deg); }
.claim-mark.big { width: 72px; height: 72px; border-radius: 20px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 28px; height: 46px; border: 2px solid rgba(246, 243, 238, .4); border-radius: 16px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--sand); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(12px); opacity: .3; } }

/* sekcije proizvoda */
.prod { position: relative; overflow: hidden; padding: 140px 0; isolation: isolate; }
.prod-bg { position: absolute; inset: 0; z-index: -1; }
.prod-bg .kling { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.prod-bg .kling.ok { opacity: .32; }
.prod-in { position: relative; }
.prod-copy { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
.prod h2 { font-size: clamp(40px, 5.6vw, 76px); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 40px; font-size: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230B1A2E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.proof { color: var(--mist); font-size: 16px; } .proof b { color: var(--sand); }

/* BalaApp */
.prod-bala { background: radial-gradient(ellipse at 80% 30%, #13253D, var(--navy) 55%); }
.prod-bala .prod-bg .kling.ok { opacity: .22; }
.prod-bala .prod-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 22%, rgba(11, 26, 46, .55) 55%, rgba(11, 26, 46, .2)); }
.ball-glow { position: absolute; right: 8%; top: 18%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 86, 10, .45), transparent 65%); filter: blur(10px); }
.bala-lockup { display: flex; align-items: center; gap: 18px; }
.bala-lockup .display { font-size: 52px; } .bala-lockup b { color: var(--orange); font-weight: 700; }
.spin-in { opacity: 0; } .no-js .spin-in { opacity: 1; }
[data-spin].spinning { animation: spinIn 1.4s cubic-bezier(.2, .8, .2, 1) both; opacity: 1; }
.claim-mark[data-spin] { opacity: 0; } .claim-mark[data-spin].spinning { opacity: 1; }
@keyframes spinIn { from { transform: rotate(-360deg) scale(.4); opacity: 0; } 70% { opacity: 1; } }
.float { position: absolute; margin: 0; transform: translateY(var(--py, 0px)) rotate(var(--r, 0deg)); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(246, 243, 238, .1); will-change: transform; }
.float img { width: 100%; height: auto; }
.f1 { width: 640px; right: -60px; top: 120px; --r: -6deg; }
.f2 { width: 230px; right: 470px; top: 330px; border-radius: 26px; --r: 5deg; }
.f3 { width: 210px; right: 90px; top: 470px; border-radius: 26px; --r: -3deg; }
.f4 { width: 520px; right: 330px; top: -40px; --r: 4deg; opacity: .55; }
.float { animation: bob 9s ease-in-out infinite alternate; }
.f2 { animation-delay: -3s; } .f3 { animation-delay: -5s; } .f4 { animation-delay: -1.5s; }
@keyframes bob { to { translate: 0 -14px; } }

/* ClaimApp */
.prod-claim { background: radial-gradient(ellipse at 10% 20%, #1A2436, #0C1220 60%); }
.prod-claim .prod-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 18, 32, .3), #0C1220 85%); }
.amber-glow { position: absolute; left: -10%; top: 10%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .25), transparent 65%); }
.hazard { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(45deg, var(--amber) 0 18px, #0C1220 18px 36px); opacity: .9; }
.claim-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px 64px; align-items: center; }
.claim-lockup { display: flex; align-items: center; gap: 18px; } .claim-lockup .display { font-size: 52px; } .claim-lockup b { color: var(--amber); font-weight: 700; }
.prod-claim .eyebrow { color: var(--amber); }
.claim-visual { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 176, 32, .25); }
.claim-visual img { width: 100%; height: auto; }
.feat-table { grid-column: 1 / -1; background: rgba(19, 30, 48, .7); border: 1px solid rgba(255, 176, 32, .18); border-radius: 24px; padding: 8px 8px; backdrop-filter: blur(6px); }
.feat-table table { width: 100%; border-collapse: collapse; }
.feat-table caption { text-align: left; padding: 18px 22px 8px; font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: .5px; color: var(--amber); }
.feat-table thead th { text-align: left; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist-2); font-weight: 600; padding: 10px 22px; }
.feat-table tbody th, .feat-table td { text-align: left; padding: 18px 22px; border-top: 1px solid rgba(246, 243, 238, .08); vertical-align: top; }
.feat-table tbody th { font-weight: 600; white-space: nowrap; width: 32%; }
.feat-table td { color: var(--mist); }
.feat-table tbody tr { transition: background .2s; } .feat-table tbody tr:hover { background: rgba(255, 176, 32, .06); }
.feat-table .ic { display: inline-block; font-family: var(--display); color: var(--amber); margin-right: 14px; min-width: 24px; }

/* kontakt */
.contact { background: var(--sand); padding: 120px 0; }
.contact-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact h2 { font-size: clamp(38px, 5vw, 64px); margin-top: 12px; }
.lead-dark { font-size: 20px; color: var(--ink-soft); margin-top: 16px; }
.contact-card { background: var(--paper); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; box-shadow: 0 24px 60px -30px rgba(11, 26, 46, .4); }
.contact-card .who { font-size: 22px; font-weight: 600; } .muted { color: var(--ink-soft); }
.contact-card .mail { font-size: 20px; color: var(--orange-ink); font-weight: 500; margin: 8px 0 14px; }

.foot { background: var(--night); padding: 34px 0; font-size: 15px; color: var(--mist-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.foot .display { font-size: 22px; color: var(--sand); } .foot b { color: var(--cyan); }
.foot a { color: var(--mist); }

/* mobitel / tablet */
@media (max-width: 1100px) {
  .f1 { width: 520px; right: -160px; opacity: .45; } .f4 { display: none; } .f2 { right: 250px; opacity: .6; } .f3 { right: -20px; opacity: .6; }
  .prod-bala .prod-bg::after { background: linear-gradient(90deg, var(--navy) 35%, rgba(11, 26, 46, .7)); }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-links { gap: 18px; } .nav-links a { font-size: 15px; }
  .hero { padding-top: 110px; }
  .prod { padding: 100px 0; }
  .prod-bala .prod-copy { padding-bottom: 430px; }
  .f1 { width: 440px; top: auto; bottom: 40px; right: -90px; opacity: .9; } .f2 { width: 160px; top: auto; bottom: 80px; right: auto; left: 6%; opacity: 1; } .f3 { display: none; }
  .prod-bala .prod-bg::after { background: linear-gradient(180deg, var(--navy) 50%, rgba(11, 26, 46, .4) 80%, rgba(11, 26, 46, .1)); }
  .ball-glow { top: auto; bottom: 0; right: -20%; }
  .claim-grid { grid-template-columns: 1fr; }
  .feat-table tbody th { white-space: normal; width: auto; }
  .feat-table thead { display: none; }
  .feat-table tbody tr { display: block; padding: 6px 0; border-top: 1px solid rgba(246, 243, 238, .08); }
  .feat-table tbody th, .feat-table td { display: block; border: 0; padding: 6px 18px; }
  .feat-table td { padding-bottom: 14px; padding-left: 56px; }
  .contact-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links a:not(:last-child) { display: none; }
  .mtlj-logo img { height: 32px; }
  .bala-lockup .display, .claim-lockup .display { font-size: 40px; }
  .bala-lockup img { width: 72px; height: 72px; }
  .pcard { width: 100%; }
  .btn { padding: 14px 22px; font-size: 16px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .contact-card { padding: 26px; }
}

/* stupnjevano pojavljivanje redova u tablicama mogućnosti */
.feat-table tbody tr { opacity: 0; transform: translateX(-24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), background .2s; transition-delay: calc(.25s + var(--i, 0) * 90ms); }
.feat-table.in tbody tr, .no-js .feat-table tbody tr { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .feat-table tbody tr { opacity: 1; transform: none; } }

/* BalaApp: popis mogućnosti — jedan zaslon */
.prod-bala { padding-bottom: 0; }
.bala-feats { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 90px; }
.feat-bala { background: rgba(11, 26, 46, .82); border-color: rgba(244, 86, 10, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feat-bala caption { color: var(--orange); }
.feat-bala .ic { color: var(--orange); }
.feat-bala tbody th, .feat-bala td { padding-top: 15px; padding-bottom: 15px; }
.feat-bala tbody tr:hover { background: rgba(244, 86, 10, .07); }
.feat-cta { display: flex; flex-wrap: wrap; gap: 14px; padding: 22px 22px 18px; }
.ticks li b { color: var(--orange); }
@media (max-width: 860px) {
  .bala-feats { min-height: 0; padding: 40px 0 80px; }
  .prod-bala .prod-copy { padding-bottom: 420px; }
  .feat-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* razmak za kvačice (Š, Č, Ž, Ć) u velikim naslovima */
h2.display { line-height: 1.12; }

/* mobitel: snimke ekrana u praznom prostoru ispod opisa BalaAppa (umjesto plutajućih u pozadini) */
.bala-shots { display: none; }
@media (max-width: 860px) {
  .prod-bala .prod-copy { padding-bottom: 0; }
  .prod-bala .prod-bg .float { display: none; }
  .prod-bala .prod-bg::after { background: linear-gradient(180deg, var(--navy), rgba(11, 26, 46, .85)); }
  .bala-shots { display: block; position: relative; height: 420px; margin: 36px 0 40px; }
  .bs { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(246, 243, 238, .12); animation: bob 8s ease-in-out infinite alternate; }
  .bs img { width: 100%; height: auto; }
  .bs-desk { width: 118%; left: -4%; top: 10px; border-radius: 12px; transform: rotate(-5deg); opacity: .9; }
  .bs-ph1 { width: 44%; left: 4%; top: 70px; border-radius: 20px; transform: rotate(4deg); animation-delay: -3s; }
  .bs-ph2 { width: 40%; right: 2%; top: 120px; border-radius: 20px; transform: rotate(-3deg); animation-delay: -5s; }
}
@media (max-width: 420px) { .bala-shots { height: 380px; } }
