/* Nibble Academy — demonstracijska stranica
   Svijetla tema, tamnoplavi elementi, Nibble narančasti akcent. Fontovi: lokalni Nibble fontovi. */

:root {
  --bg: #F6F8FC;
  --white: #FFFFFF;
  --navy: #0F1B33;      /* naslovi, tamni elementi */
  --navy-2: #1B2B4D;
  --text: #24314D;      /* tekst (12,9 : 1 na bijelom) */
  --text-2: #55627D;    /* sekundarni tekst (6,1 : 1) */
  --line: #E2E7F0;
  --soft: #EEF2F9;
  --accent: #FD8E34;    /* Nibble narančasta: samo površine i ukrasi */
  --accent-soft: #FFF1E5;
  --accent-ink: #A8520C;/* narančasti tekst na svijetlom (5,3 : 1) */
  --head: "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.kicker { font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }

/* Gumbi */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 24px; border-radius: 999px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; transition: background-color .2s, border-color .2s; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #F07E22; }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-disabled { background: rgba(255, 255, 255, .12); color: #C9D2E4; cursor: not-allowed; }

/* Traka i zaglavlje */
.note-bar { background: var(--navy); color: #D5DCEA; font-size: .85rem; }
.note-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-block: 8px; }
.note-inner p { display: flex; align-items: baseline; gap: 8px; }
.note-inner strong { color: #fff; font-weight: 600; }
.note-inner a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(246, 248, 252, .94); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand-academy { font: 700 1rem/1 var(--head); color: var(--navy); padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); border: 1px solid #FFD9B8; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--text-2); }
.nav a:not(.btn):hover { color: var(--navy); }
.nav-cta { min-height: 42px; padding: 9px 18px; font-size: .94rem; }
.menu { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); position: relative; cursor: pointer; }
.menu span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, top .2s; }
.menu span:first-child { top: 17px; } .menu span:last-child { top: 25px; }
.menu[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 20px 30px -20px rgba(15, 27, 51, .25); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--navy); }
  .nav-cta { margin-top: 16px; }
}
@media (max-width: 420px) { .brand img { height: 36px; } .brand-academy { font-size: .85rem; } }

/* Naslovnica */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); background:
  radial-gradient(900px 480px at 85% 10%, #E4EBF8 0, transparent 70%),
  radial-gradient(500px 300px at 70% 85%, #FFE9D6 0, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--navy); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.brandline { display: block; font-size: .36em; font-weight: 700; letter-spacing: 0; color: var(--text-2); margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(253, 142, 52, .45) 62%); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.audience { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; border-top: 1px solid var(--line); width: 100%; font-size: .92rem; color: var(--text-2); }
.audience li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; margin-right: 8px; }

.hero-visual { position: relative; padding: 36px 24px 48px; }
.hv-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(15, 27, 51, .3); }
.hv-main { overflow: hidden; max-width: 440px; margin-inline: auto; }
.hv-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.hv-thumb .code { font: 700 3rem/1 var(--mono); color: #fff; opacity: .95; }
.hv-body { display: grid; gap: 10px; padding: 20px 22px 22px; }
.hv-body strong { font: 700 1.15rem/1.3 var(--head); color: var(--navy); }
.hv-body small { color: var(--text-2); font-size: .85rem; }
.hv-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; }
.hv-float strong { display: block; font: 700 .92rem/1.2 var(--head); color: var(--navy); }
.hv-float small { font-size: .8rem; color: var(--text-2); }
.hv-a { top: 0; left: 0; }
.hv-b { bottom: 8px; right: 0; }
.ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) 0 80%, var(--soft) 0); }
.ring b { width: 34px; height: 34px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font: 700 .72rem var(--mono); color: var(--navy); }
.bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.bar .p62 { width: 62%; }
.tag { justify-self: start; font: 600 .74rem/1 var(--mono); letter-spacing: .04em; color: var(--navy-2); background: var(--soft); padding: 6px 9px; border-radius: 6px; }

/* Ikone (maske, boja prema currentColor) */
.ico { display: inline-block; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; flex: none; }
.i-pc { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.i-office { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M3 15h18M9 3v18'/%3E%3C/svg%3E"); }
.i-code { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E"); }
.i-web { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18'/%3E%3C/svg%3E"); }
.i-design { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18c1.5 0 2-1 2-2 0-1.5-1-2 0-3s3 0 4.5-1.5S21 11 21 10c0-4-4-7-9-7z'/%3E%3Ccircle cx='7.5' cy='11' r='1'/%3E%3Ccircle cx='10' cy='7' r='1'/%3E%3Ccircle cx='15' cy='7' r='1'/%3E%3C/svg%3E"); }
.i-ai { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z'/%3E%3Cpath d='M18 15l.9 2.1L21 18l-2.1.9L18 21l-.9-2.1L15 18l2.1-.9z'/%3E%3C/svg%3E"); }
.hv-float .ico { color: var(--accent-ink); }

/* Sekcije */
.section { padding-block: clamp(72px, 9vw, 120px); }
.soft { background: var(--white); border-block: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2, .intro h2, .cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
.head.center { margin-inline: auto; text-align: center; }
.head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.head-row > div { max-width: 640px; }
.aside, .sub { color: var(--text-2); max-width: 42ch; }
.sub { margin-top: 14px; max-width: 60ch; margin-inline: auto; }
.sub.left { margin-inline: 0; }

.intro { padding-block: clamp(56px, 7vw, 88px); background: var(--white); border-block: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.intro-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.intro-points div { border-top: 3px solid var(--accent); padding-top: 16px; }
.intro-points h3 { font-size: 1.15rem; margin-bottom: 6px; }
.intro-points p { color: var(--text-2); font-size: .97rem; }

.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cat { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.cat:hover { border-color: #C9D3E6; box-shadow: 0 18px 40px -28px rgba(15, 27, 51, .35); }
.cat .ico { width: 50px; height: 50px; padding: 12px; border-radius: 14px; color: var(--navy); background: var(--soft); -webkit-mask: none; mask: none; position: relative; }
.cat .ico::after { content: ""; position: absolute; inset: 12px; background: var(--navy); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.cat:nth-child(odd) .ico { background: var(--accent-soft); }
.cat h3 { font-size: 1.2rem; margin-top: 6px; }
.cat p { color: var(--text-2); font-size: .97rem; }
.status { position: absolute; top: 24px; right: 22px; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

.courses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.course { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.thumb { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.thumb .ico.light { width: 54px; height: 54px; color: #fff; }
.t-office { background: linear-gradient(135deg, #1B2B4D, #2E6B5E); }
.t-code { background: linear-gradient(135deg, #0F1B33, #3B3F8F); }
.t-web { background: linear-gradient(135deg, #1B2B4D, #FD8E34); }
.t-ai { background: linear-gradient(135deg, #2A2D6B, #0F1B33 60%, #B5541A); }
.badge { position: absolute; top: 12px; left: 12px; font: 600 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: rgba(255, 255, 255, .92); padding: 6px 9px; border-radius: 6px; }
.course-body { display: grid; gap: 10px; align-content: start; padding: 20px; }
.course-body h3 { font-size: 1.12rem; }
.course-body p { color: var(--text-2); font-size: .94rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--text-2); }
.meta li + li::before { content: "·"; margin-right: 14px; }

/* Učionica (statični prikaz) */
.classroom { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(15, 27, 51, .35); }
.cr-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--soft); border-bottom: 1px solid var(--line); }
.cr-dots { display: flex; gap: 6px; } .cr-dots i { width: 10px; height: 10px; border-radius: 50%; background: #CBD3E2; }
.cr-url { font: .78rem var(--mono); color: var(--text-2); background: var(--white); padding: 4px 12px; border-radius: 6px; }
.cr-body { display: grid; grid-template-columns: 230px minmax(0, 1fr) 250px; min-height: 380px; }
.cr-side { padding: 22px; border-right: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.cr-course { font: 700 1rem var(--head); color: var(--navy); }
.cr-lessons { display: grid; gap: 4px; margin-top: 6px; counter-reset: l; }
.cr-lessons li { counter-increment: l; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .9rem; color: var(--text-2); }
.cr-lessons li::before { content: counter(l); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 .7rem var(--mono); background: var(--soft); color: var(--text-2); flex: none; }
.cr-lessons li.done::before { content: "✓"; background: #DDF2E6; color: #1F7A4C; }
.cr-lessons li.now { background: var(--accent-soft); color: var(--navy); font-weight: 600; }
.cr-lessons li.now::before { background: var(--accent); color: var(--navy); }
.cr-main { padding: 22px; display: grid; gap: 18px; align-content: start; }
.cr-video { position: relative; aspect-ratio: 16 / 8; border-radius: 14px; background: linear-gradient(135deg, var(--navy), #2B3F6B); display: grid; place-items: center; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); position: relative; box-shadow: 0 0 0 10px rgba(253, 142, 52, .2); }
.play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--navy); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.cr-time { position: absolute; right: 12px; bottom: 10px; font: .75rem var(--mono); color: #fff; background: rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 6px; }
.cr-lesson { display: grid; gap: 8px; }
.cr-lesson h3 { font-size: 1.3rem; }
.cr-lesson p { color: var(--text-2); font-size: .95rem; }
.cr-task { padding: 22px; border-left: 1px solid var(--line); background: #FAFBFE; display: grid; gap: 12px; align-content: start; font-size: .92rem; }
.cr-task-title { font: 700 .95rem var(--head); color: var(--navy); }
.cr-chip { justify-self: start; font: 600 .72rem var(--mono); color: var(--accent-ink); background: var(--accent-soft); padding: 5px 9px; border-radius: 6px; }
.cr-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; }
.cr-note p { font-size: .88rem; }
.cr-note code { font: .82rem var(--mono); background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .8rem var(--head); flex: none; }
.classroom figcaption { padding: 10px 18px; border-top: 1px solid var(--line); font: .75rem var(--mono); color: var(--text-2); text-align: right; }

/* Pristup učenju */
.approach-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.steps li { padding: 26px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; }
.steps span { font: 700 .8rem var(--mono); color: var(--accent-ink); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--text-2); font-size: .95rem; }

/* Poziv */
.cta { background: var(--navy); color: #D5DCEA; padding-block: clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(253, 142, 52, .28), transparent 65%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-inner > div:first-child { max-width: 620px; display: grid; gap: 12px; }
.cta h2 { color: #fff; }
.cta .kicker { color: var(--accent); margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Podnožje */
.footer { background: #0A1325; color: #AEB9CF; padding-block: 44px; font-size: .92rem; }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.footer img { height: 48px; width: auto; }
.footer p { max-width: 70ch; }
.footer .small { font-size: .82rem; }
.footer a { color: var(--accent); }

/* Prilagodbe za manje zaslone */
@media (max-width: 1080px) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-body { grid-template-columns: 210px minmax(0, 1fr); }
  .cr-task { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero-grid, .intro-grid, .approach-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 640px) {
  .intro-points, .cats, .courses, .steps { grid-template-columns: 1fr; }
  .cr-body { grid-template-columns: 1fr; }
  .cr-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-visual { padding: 28px 0 40px; }
  .hv-a { left: -4px; } .hv-b { right: -4px; }
}
