/* BalaApp landing */
.on-dark { color: var(--sand); }
section { position: relative; }
.btn-sm { padding: 11px 18px; font-size: 15px; }

/* izbornik */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; color: var(--sand); }
.nav.scrolled { background: rgba(11, 26, 46, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sand); }
.logo .display { font-size: 26px; } .logo b { color: var(--orange); font-weight: 700; }
.nav-links { display: flex; gap: 26px; } .nav-links a { color: var(--mist); text-decoration: none; font-size: 15px; font-weight: 500; } .nav-links a:hover { color: var(--sand); }
.nav-cta { display: flex; align-items: center; gap: 18px; } .link-login { color: var(--sand); text-decoration: none; font-weight: 500; font-size: 15px; } .link-login:hover { color: var(--orange); }

/* hero */
.hero { background: var(--navy); overflow: hidden; padding: 150px 0 110px; min-height: 92svh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg .kling { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero-bg .kling.ok { opacity: .18; }
.court { position: absolute; right: -240px; top: 50%; width: 900px; height: 900px; transform: translateY(-50%); border-radius: 50%;
  border: 2px solid rgba(246, 243, 238, .07); box-shadow: inset 0 0 0 140px rgba(246, 243, 238, .015); }
.court::before { content: ""; position: absolute; inset: 210px; border-radius: 50%; border: 2px solid rgba(246, 243, 238, .07); }
.court::after { content: ""; position: absolute; left: 50%; top: -200px; bottom: -200px; border-left: 2px solid rgba(246, 243, 238, .06); }
.glow { position: absolute; right: 12%; top: 20%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 86, 10, .38), transparent 65%); animation: pulse 8s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.15) translate(-30px, 20px); opacity: .8; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(52px, 7vw, 104px); } .hero h1 span { color: var(--orange); }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--mist); max-width: 44ch; }
.lead-dark { font-size: 20px; color: var(--ink-soft); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.mini { font-size: 14px; color: var(--mist-2); }
.hero-visual { position: relative; height: 520px; }
.laptop { position: absolute; right: 0; top: 40px; width: 92%; border-radius: 14px; overflow: hidden; background: #1B2B42; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(246, 243, 238, .12); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); }
.bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1B2B42; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #3C506B; } .bar i:first-child { background: #F4560A; }
.bar span { margin-left: 12px; font-size: 12px; color: var(--mist-2); }
.phone { position: absolute; border-radius: 30px; overflow: hidden; border: 6px solid #0E1726; background: #0E1726; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75); }
.hero-visual .phone { width: 34%; left: -2%; bottom: -10px; animation: bob 7s ease-in-out infinite alternate; }
@keyframes bob { to { translate: 0 -12px; } }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 253, 249, .96); color: var(--ink); font-size: 14px; font-weight: 500; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .5); white-space: nowrap; animation: chipIn .8s cubic-bezier(.2, .8, .2, 1) both, bob 6s ease-in-out infinite alternate; }
.chip b { color: var(--orange-ink); }
.c1 { right: 4%; top: 0; animation-delay: .6s, 0s; } .c2 { right: -2%; bottom: 120px; animation-delay: .9s, -2s; } .c3 { left: 30%; bottom: 10px; animation-delay: 1.2s, -4s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.9); } }

/* problem */
.problem { padding: 120px 0 90px; background: var(--sand); }
.problem h2, .features h2, .proof-s h2, .security h2 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 48px; max-width: 18ch; color: var(--ink); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pc { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid #E5DED2; transition: transform .25s, box-shadow .25s; }
.pc:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(11, 26, 46, .45); }
.pc .num { font-family: var(--display); font-size: 40px; color: var(--orange); line-height: 1; }
.pc h3 { font-size: 21px; margin: 16px 0 8px; line-height: 1.25; } .pc p { color: var(--ink-soft); font-size: 16px; }

/* mogućnosti */
.features { padding: 60px 0 130px; background: var(--sand); }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fc { background: var(--paper); border-radius: var(--radius); padding: 32px; border: 1px solid #E5DED2; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.fc::after { content: ""; position: absolute; right: -60px; top: -60px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 86, 10, .14), transparent 70%); transition: transform .4s; }
.fc:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(11, 26, 46, .45); } .fc:hover::after { transform: scale(1.6); }
.fi { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--orange); }
.fc h3 { font-size: 22px; margin: 20px 0 8px; } .fc p { color: var(--ink-soft); font-size: 16px; }

/* snimke */
.shots { background: var(--navy); padding: 120px 0; overflow: hidden; }
.shots::before { content: ""; position: absolute; left: 50%; top: 40%; width: 1000px; height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(244, 86, 10, .22), transparent 65%); }
.shots h2 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 36px; }
.tabs { position: relative; }
.tablist { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tablist button { font: 500 16px var(--text); color: var(--mist); background: rgba(246, 243, 238, .06); border: 1px solid var(--line); padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.tablist button:hover { color: var(--sand); }
.tablist button[aria-selected="true"] { background: var(--orange); color: #fff; border-color: var(--orange); }
.tablist button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.screen { border-radius: 16px; overflow: hidden; background: #1B2B42; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(246, 243, 238, .12); }
.screen [role=tabpanel] img { width: 100%; height: auto; animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.note { margin-top: 14px; font-size: 14px; color: var(--mist-2); }

/* roditelji */
.parents { background: var(--sand-2); padding: 120px 0; overflow: hidden; }
.par-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.parents h2 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 34px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; background: var(--paper); border-radius: 18px; padding: 22px 24px; }
.steps li > b { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--orange); font-family: var(--display); font-size: 22px; }
.steps h3 { font-size: 20px; margin-bottom: 4px; } .steps p { color: var(--ink-soft); font-size: 16px; }
.phones { position: relative; height: 640px; }
.phones .phone { width: 56%; }
.p-a { left: 0; top: 0; transform: rotate(-5deg); } .p-b { right: 0; top: 90px; transform: rotate(5deg); animation: bob 7s ease-in-out infinite alternate; }

/* savez */
.savez { background: var(--night); padding: 110px 0; overflow: hidden; }
.savez-bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 85% 50%, rgba(244, 86, 10, .35), transparent 40%),
  repeating-linear-gradient(90deg, rgba(246, 243, 238, .03) 0 2px, transparent 2px 120px); }
.savez-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.savez h2 { font-size: clamp(40px, 6vw, 84px); margin: 12px 0 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pills span { padding: 9px 18px; border-radius: 999px; background: #1C2D45; font-weight: 500; font-size: 15px; }
.other { background: rgba(246, 243, 238, .06); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.other h3 { font-size: 30px; margin: 10px 0 12px; } .other p { color: var(--mist); }

/* dokaz */
.proof-s { background: var(--sand); padding: 120px 0; }
.proof-s h2 { margin-bottom: 18px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.n { border-top: 5px solid var(--orange); padding-top: 18px; }
.n b { display: block; font-family: var(--display); font-size: clamp(64px, 8vw, 112px); line-height: 1; color: var(--ink); }
.n span { color: var(--ink-soft); font-size: 18px; }

/* sigurnost */
.security { background: var(--paper); padding: 110px 0; }
.sgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sgrid li { position: relative; padding: 24px 24px 24px 70px; border-radius: 18px; background: var(--sand); font-size: 17px; font-weight: 500; }
.sgrid li::before { content: ""; position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 10px; background: var(--navy)
  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='%23F4560A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* pitanja */
.faq { background: var(--sand); padding: 110px 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq h2 { font-size: clamp(36px, 5vw, 64px); margin-top: 12px; }
.qa details { background: var(--paper); border-radius: 16px; margin-bottom: 12px; border: 1px solid #E5DED2; overflow: hidden; }
.qa summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 18px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--orange); display: grid; place-items: center; font-size: 20px; transition: transform .25s; }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.qa p { padding: 0 24px 22px; color: var(--ink-soft); }

/* demo */
.demo { background: var(--navy); padding: 120px 0; overflow: hidden; }
.demo::before { content: ""; position: absolute; left: -200px; bottom: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 86, 10, .3), transparent 65%); }
.demo-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.demo h2 { font-size: clamp(38px, 5vw, 64px); margin: 12px 0 18px; }
.person { display: flex; gap: 16px; align-items: center; margin-top: 34px; }
.person b { display: block; font-size: 18px; } .person span { display: block; color: var(--mist); font-size: 15px; } .person a { color: var(--orange); font-weight: 500; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--paper); color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: 400 16px var(--text); color: var(--ink); padding: 13px 14px; border-radius: 12px; border: 1.5px solid #D9D1C3; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244, 86, 10, .15); }
.form [aria-invalid="true"] { border-color: #C2261B; }
.form .err { color: #B42318; font-weight: 500; font-size: 13px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { justify-content: center; }
.form-msg { grid-column: 1 / -1; font-size: 15px; min-height: 0; } .form-msg.ok { color: #157347; font-weight: 600; } .form-msg.bad { color: #B42318; }
.form.sent button { opacity: .6; }
.privacy { font-size: 13px; color: var(--ink-soft); }

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

/* odzivnost */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero-grid, .par-grid, .faq-grid, .demo-grid, .savez-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 460px; max-width: 640px; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .fgrid, .sgrid { grid-template-columns: repeat(2, 1fr); }
  .phones { height: 560px; max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .logo .display { font-size: 22px; } .logo img { width: 34px; height: 34px; }
  .nav-cta { gap: 12px; } .link-login { font-size: 14px; } .btn-sm { padding: 9px 14px; font-size: 14px; }
  .hero { padding: 116px 0 70px; }
  .hero-visual { height: 360px; }
  .laptop { width: 100%; transform: none; top: 0; }
  .hero-visual .phone { width: 40%; left: -4px; bottom: -6px; border-width: 4px; border-radius: 22px; }
  .chip { font-size: 12px; padding: 8px 12px; } .c1 { right: 0; top: -18px; } .c2 { right: 0; bottom: 70px; } .c3 { left: 34%; bottom: 0; }
  .cards4, .fgrid, .sgrid, .nums { grid-template-columns: 1fr; }
  .problem, .features, .shots, .parents, .savez, .proof-s, .security, .faq, .demo { padding: 80px 0; }
  .features { padding-top: 20px; }
  .phones { height: 470px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .qa summary { font-size: 17px; }
}
@media (max-width: 400px) { .link-login { display: none; } }

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