/* ==========================================================================
   swiftuivan.com — Ivan Muktić
   Liquid glass na tamnoj podlozi. Boje su iOS-ove sistemske (dark), tekst
   koristi iOS-ove razine labela, zaobljenja su iOS-ova.
   ========================================================================== */

/* Fontovi — isti kao na starlink-montaza.faitech.hr, lokalno, bez Google Fonts */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/instrument-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/instrument-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #06060a;
  --ink: #f5f5f7;
  --dim: rgba(235, 235, 245, .64);    /* iOS secondaryLabel */
  --faint: rgba(235, 235, 245, .38);  /* iOS tertiaryLabel */
  --line: rgba(255, 255, 255, .09);

  /* iOS system colours, dark appearance */
  --orange: #ff9f0a;
  --swift: #f05138;
  --pink: #ff375f;
  --violet: #bf5af2;
  --blue: #0a84ff;
  --teal: #64d2ff;
  --green: #30d158;

  --grad: linear-gradient(100deg, #ffb340 0%, #ff8a3d 18%, #f05138 40%, #ff375f 64%, #bf5af2 100%);

  /* Bricolage za naslove; tijelo je SF na Appleovim uređajima, Instrument drugdje */
  --font-d: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --font-b: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Instrument Sans", system-ui, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
b { font-weight: 600; }
::selection { background: rgba(240, 81, 56, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.muted { color: var(--dim); }
.muted-strong { color: var(--dim); font-weight: 500; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #000;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Pozadina
   -------------------------------------------------------------------------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -12%, #1a1424 0%, transparent 60%),
    var(--bg);
}
/* Mrlje boja: samo gradijenti i transform — bez filter: blur, koji bi na
   ovoliko površine trošio GPU na svakom kadru. */
.blob {
  position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
  opacity: .5; will-change: transform;
  animation: drift 34s ease-in-out infinite alternate;
}
.b1 { left: -18vmax; top: -24vmax; background: radial-gradient(circle, rgba(255, 159, 10, .55), transparent 62%); }
.b2 { right: -22vmax; top: 4vh; background: radial-gradient(circle, rgba(191, 90, 242, .5), transparent 62%); animation-duration: 41s; animation-delay: -9s; }
.b3 { left: 4vw; bottom: -34vmax; background: radial-gradient(circle, rgba(255, 55, 95, .42), transparent 62%); animation-duration: 38s; animation-delay: -17s; }
.b4 { right: -10vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(10, 132, 255, .38), transparent 62%); animation-duration: 46s; animation-delay: -5s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
  100% { transform: translate3d(-4vmax, 7vmax, 0) scale(.94); }
}

/* Mreža zaobljenih kvadrata — kao početni zaslon s ikonama */
.grid {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Crect x='10' y='10' width='44' height='44' rx='13' fill='none' stroke='white' stroke-opacity='.055'/%3E%3C/svg%3E");
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
}
/* Isti uzorak, svjetliji, vidljiv samo oko kursora */
.grid--hot {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Crect x='10' y='10' width='44' height='44' rx='13' fill='white' fill-opacity='.025' stroke='white' stroke-opacity='.28'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(220px circle at var(--px, -999px) var(--py, -999px), #000 0%, transparent 100%);
  mask-image: radial-gradient(220px circle at var(--px, -999px) var(--py, -999px), #000 0%, transparent 100%);
  opacity: var(--hot, 0);
  transition: opacity .6s;
}
.grain {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Liquid glass
   isolation + z-index:-1 drži rub i odsjaj IZNAD pozadine stakla a ISPOD
   sadržaja, bez pozicioniranja ijednog djeteta.
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .045) 42%, rgba(255, 255, 255, .07) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  border-radius: var(--r, 28px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .26),
    inset 0 -1px 0 0 rgba(255, 255, 255, .05),
    0 1px 2px rgba(0, 0, 0, .35),
    0 30px 70px -30px rgba(0, 0, 0, .75);
}
/* rub: svjetliji gore lijevo, kao da svjetlo pada odozgo */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* odsjaj koji prati prst/kursor */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 255, 255, .14), transparent 45%);
  opacity: var(--glow, 0);
  transition: opacity .5s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Gumbi, čipovi, oznake
   -------------------------------------------------------------------------- */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
.i .f { fill: currentColor; stroke: none; }

.btn {
  --r: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .45s var(--spring), box-shadow .4s, background-color .3s;
}
.btn:active { transform: scale(.96); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn--sm .i { width: 18px; height: 18px; }
.btn--grad {
  background: linear-gradient(100deg, #ff9f0a, #f05138 48%, #ff375f);
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(240, 81, 56, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--light { background: var(--ink); color: #0b0b0f; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--grad:hover { box-shadow: 0 18px 40px -12px rgba(240, 81, 56, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
}

.chip {
  margin: 0; font-weight: 500; line-height: 1.4;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--dim);
}
.dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
}
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--green); animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px; color: var(--ink);
}
.tags--sm li { padding: 4px 10px; font-size: 12.5px; color: var(--dim); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); font-size: 13px; color: var(--dim); white-space: nowrap;
}
.pill--live { color: var(--ink); }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: color .25s;
}
.link span { transition: transform .35s var(--spring); }
@media (hover: hover) {
  .link:hover { color: var(--orange); }
  .link:hover span { transform: translate(2px, -2px); }
}
/* cijela kartica je klik na svoj link */
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* --------------------------------------------------------------------------
   Tipografija
   -------------------------------------------------------------------------- */
.display { font-family: var(--font-d); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.grad {
  background: var(--grad); background-size: 135% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
  /* bez ovoga silazni elementi (g, y) budu odrezani na rubu clipa */
  padding-bottom: .08em;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
.h2 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
.h3 { font-family: var(--font-d); font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.03em; line-height: 1.05; font-weight: 700; }
.h4 { font-family: var(--font-d); font-size: clamp(1.25rem, 2vw, 1.45rem); letter-spacing: -.02em; line-height: 1.15; font-weight: 650; }
.h5 { font-size: 17px; letter-spacing: -.01em; }

/* --------------------------------------------------------------------------
   Navigacija
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: max(12px, env(safe-area-inset-top)); left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 6px; --r: 999px;
  transition: background .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__bar { background: linear-gradient(160deg, rgba(40, 40, 52, .62), rgba(22, 22, 30, .55)); }
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 14px 0 8px; height: 40px;
  font-family: var(--font-d); font-weight: 700; font-size: 16.5px; letter-spacing: -.02em;
}
.mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 14px -4px rgba(240, 81, 56, .8);
  position: relative;
}
/* znak je "i" — točka i stup, isti kao favicon */
.mark::before, .mark::after, .w-swift::before, .w-swift::after {
  content: ""; position: absolute; left: 50%; background: #fff; border-radius: 99px;
  width: var(--s); margin-left: calc(var(--s) / -2);
}
.mark { --s: 5px; }
.mark::before { top: 5px; height: var(--s); }
.mark::after { top: 12px; bottom: 5px; }

/* Kartice s "lećom" koja klizi do aktivne — kao iOS 26 tab bar */
[data-tabs] { position: relative; }
.nav__links { display: flex; align-items: center; }
.nav__links a {
  position: relative; z-index: 1;
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--dim);
  transition: color .3s;
}
.nav__links a[aria-current="true"], .tabbar a[aria-current="true"] { color: var(--ink); }
@media (hover: hover) { .nav__links a:hover { color: var(--ink); } }
.lens {
  position: absolute; left: 0; top: 0; height: 100%;
  width: var(--w, 0px);
  transform: translateX(var(--x, 0px));
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 .5px rgba(255, 255, 255, .12);
  opacity: 0;
  transition: transform .6s var(--spring), width .6s var(--spring), opacity .3s;
}
[data-tabs].has-active .lens { opacity: 1; }
[data-tabs].is-moving .lens { animation: squish .6s var(--ease-out); }
@keyframes squish { 30% { scale: 1.06 .84; } 100% { scale: 1 1; } }

.tabbar {
  position: fixed; z-index: 50;
  left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(420px, 100% - 24px);
  display: none; grid-template-columns: repeat(4, 1fr);
  padding: 6px; --r: 999px;
  background: linear-gradient(160deg, rgba(44, 44, 56, .6), rgba(22, 22, 30, .55));
}
.tabbar a {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 54px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; color: var(--dim);
  transition: color .3s;
}
.tabbar .i { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid; align-items: center; gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(118px, 17vh, 176px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.08fr .92fr; min-height: min(100svh, 920px); }
}
.hero__title { margin-top: 22px; font-size: clamp(3rem, 8.2vw, 6.1rem); }
@media (min-width: 1024px) { .hero__title { font-size: min(6.8vw, 5.6rem); } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.lede { margin-top: 24px; max-width: 34rem; font-size: clamp(1.03rem, 1.6vw, 1.16rem); color: var(--dim); line-height: 1.6; }
.lede b { color: var(--ink); }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--dim); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.2 2.2 4.8-5' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Pozornica: telefon i widgeti */
.hero__stage { position: relative; height: clamp(500px, 52vw, 640px); }
.halo {
  position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, rgba(240, 81, 56, .35), rgba(191, 90, 242, .18) 35%, transparent 62%);
}
.phone {
  position: absolute; left: 50%; top: 50%;
  width: clamp(210px, 22vw, 278px); aspect-ratio: 1380 / 2880;
  margin: calc(clamp(210px, 22vw, 278px) * -1.0435) 0 0 calc(clamp(210px, 22vw, 278px) * -.5);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6));
}
.phone__bezel { position: absolute; inset: 0; width: 100%; height: 100%; }
/* rupa u okviru: 60/72/1260/2736 od 1380×2880 (mjereno u healthness-web/src/lib/device.json) */
.phone__screen {
  position: absolute; left: 4.348%; top: 2.5%; width: 91.304%; height: 95%;
  object-fit: cover; object-position: top;
  border-radius: 11.9% / 5.48%; background: #000;
}
.widget {
  position: absolute; --r: 28px;
  padding: 16px 18px; display: flex; flex-direction: column;
}
.w-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.w-big { font-family: var(--font-d); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.04em; margin-top: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-mid { font-family: var(--font-d); font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin-top: 2px; display: block; }
.w-sub { font-size: 13px; line-height: 1.3; color: var(--dim); margin-top: 4px; display: block; }
.w-apps { left: 0; top: 9%; width: 150px; }
.w-rings { right: -2%; top: 48%; flex-direction: row; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; }
.w-years { left: 4%; bottom: 6%; flex-direction: row; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; --r: 22px; font-size: 13px; color: var(--dim); line-height: 1.35; }
.w-years b { color: var(--ink); font-size: 14.5px; }
.w-swift {
  width: 40px; height: 40px; border-radius: 12px; flex: none; position: relative;
  background: linear-gradient(140deg, #ff9f0a, #f05138);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.w-swift { --s: 7px; }
.w-swift::before { top: 8px; height: var(--s); }
.w-swift::after { top: 18px; bottom: 8px; }
.rings { width: 74px; height: 74px; rotate: -90deg; flex: none; }
.rings circle, .progress circle { fill: none; stroke-width: 10; }
.rings .track, .progress .track { stroke: rgba(255, 255, 255, .09); }
.ring {
  stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.8s var(--ease-out) var(--rd, .2s);
}
.r1 { stroke: var(--pink); }
.r2 { stroke: var(--orange); --rd: .35s; }
.r3 { stroke: var(--teal); --rd: .5s; }
.in .ring, .ring.in { stroke-dashoffset: calc(100 - var(--p)); }

/* plutanje — `transform` je zauzet animacijom, paralaksa ide preko `translate` */
.js .hero__stage [data-depth] { transition: translate .9s var(--ease-out); }
.phone { animation: float 8s ease-in-out infinite; }
.w-apps { animation: float 7s ease-in-out -2s infinite; }
.w-rings { animation: float 9s ease-in-out -4s infinite; }
.w-years { animation: float 7.5s ease-in-out -1s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* --------------------------------------------------------------------------
   Traka tehnologija
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee ul { display: flex; gap: 10px; padding-right: 10px; }
.marquee li {
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  font-size: 14.5px; color: var(--dim);
}
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sekcije
   -------------------------------------------------------------------------- */
.section { padding-top: clamp(84px, 12vw, 150px); }
.section__head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section__lede { margin-top: 18px; font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--dim); max-width: 36rem; }

/* Healthness */
.feature {
  --r: clamp(28px, 3.4vw, 40px);
  display: grid; gap: clamp(26px, 4vw, 48px);
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
}
@media (min-width: 980px) { .feature { grid-template-columns: 1fr 1.02fr; align-items: center; } }
.app { display: flex; align-items: center; gap: 16px; }
.app img { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 10px 26px -10px rgba(48, 209, 88, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.app .muted { margin-top: 4px; font-size: 15px; }
.feature .tags { margin-top: 22px; }
.points { margin-top: 24px; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 22px; color: var(--dim); font-size: 15.5px; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 10px rgba(240, 81, 56, .6);
}
.points b { color: var(--ink); }
.stores { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.feature__shots { position: relative; min-width: 0; }
.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 22px; margin: -10px -4px -22px;
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
  mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: none; width: clamp(176px, 19vw, 228px); aspect-ratio: 540 / 1170; object-fit: cover;
  border-radius: 26px; scroll-snap-align: start;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 40px -24px rgba(0, 0, 0, .9);
  transition: transform .6s var(--spring);
}
@media (hover: hover) { .shots img:hover { transform: translateY(-8px) scale(1.02); } }
.shots__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.round { --r: 999px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; transition: transform .45s var(--spring), opacity .3s; }
.round:active { transform: scale(.9); }
.round:disabled { opacity: .35; cursor: default; }

/* Ostali proizvodi */
.cards { margin-top: 20px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  --r: 30px; padding: 10px; display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease-out);
}
.browser { border-radius: 21px; overflow: hidden; background: #0d0d12; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: rgba(255, 255, 255, .05); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.browser__bar span {
  margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06);
  font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1s var(--ease-out); }
@media (hover: hover) { .card:hover .browser img { transform: scale(1.04); } }
.card__body { padding: 18px 12px 12px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body p { color: var(--dim); font-size: 15px; }
.card__body .link { margin-top: auto; padding-top: 4px; }

/* Iskustvo */
.exp { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) {
  .exp { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .exp__aside { position: sticky; top: 110px; }
}
.cvcard {
  --r: 26px; margin-top: 30px; display: flex; align-items: center; gap: 20px; padding: 16px 22px 16px 16px;
  max-width: 400px; transition: transform .5s var(--spring);
}
.paper {
  width: 92px; flex: none; border-radius: 6px; overflow: hidden; rotate: -5deg;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
  transition: rotate .6s var(--spring), scale .6s var(--spring);
}
.cvcard__text { display: flex; flex-direction: column; gap: 3px; }
.cvcard__text b { font-size: 16.5px; }
.cvcard__text .muted { font-size: 13.5px; }
.cvcard__text .link { margin-top: 8px; }
@media (hover: hover) {
  .cvcard:hover { transform: translateY(-3px); }
  .cvcard:hover .paper { rotate: 0deg; scale: 1.06; }
}

.timeline { --r: 34px; padding: clamp(22px, 3.4vw, 36px); }
.tl__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tl__head .muted { margin-top: 4px; font-size: 15px; }
.tl { position: relative; margin-top: 26px; display: grid; gap: 30px; }
.tl::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--blue), var(--violet), var(--pink));
  opacity: .5;
}
.tl > li { position: relative; padding-left: 34px; }
.tl__dot {
  position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 4px rgba(6, 6, 10, .9), 0 0 16px var(--c);
}
.tl__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; }
.tl h4 { font-size: 17px; letter-spacing: -.01em; }
.tl h4 .muted { font-weight: 500; }
.tl time { font-size: 13.5px; color: var(--faint); white-space: nowrap; }
.tl p { margin-top: 8px; color: var(--dim); font-size: 15px; }
.tl .tags { margin-top: 12px; }
.tl__link, .tl__links { margin-top: 12px; }
.tl__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Alati */
.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tool { --r: 28px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tool p { color: var(--dim); font-size: 14.5px; line-height: 1.65; }
.tool__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 22px -10px var(--c2);
}
.tool__icon .i { width: 24px; height: 24px; stroke-width: 1.9; }

/* Obrazovanje */
.edu { display: grid; gap: 20px; }
@media (min-width: 880px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu__card { --r: 32px; padding: clamp(22px, 3.4vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.edu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.edu__card .h4 { line-height: 1.2; }
.edu__card .muted { font-size: 15px; }
.edu__label { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.progress { position: relative; width: 78px; height: 78px; }
.progress svg { width: 100%; height: 100%; rotate: -90deg; }
.progress circle { stroke-width: 9; }
.progress .ring { stroke: var(--orange); --rd: .4s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--dim); }
.progress b { font-family: var(--font-d); font-size: 22px; color: var(--ink); }
.progress span { grid-auto-flow: column; align-content: center; justify-content: center; align-items: baseline; }
.cap {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--teal), var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 22px -10px var(--blue);
}
.cap .i { width: 28px; height: 28px; }
.thesis { margin-top: 4px; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.thesis .edu__label { margin-top: 0; margin-bottom: 6px; }
.thesis p:last-child { color: var(--dim); font-size: 15px; }
.thesis b { color: var(--ink); }

/* Kontakt */
.contact {
  --r: clamp(32px, 4vw, 44px);
  padding: clamp(36px, 7vw, 84px) clamp(22px, 5vw, 64px);
  text-align: center; display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.contact .section__lede { margin-inline: auto; }
.contact__cta { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  padding: 56px 0 40px; font-size: 13.5px; color: var(--dim);
}

/* --------------------------------------------------------------------------
   Ulazne animacije (samo uz JS)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0; translate: 0 26px; filter: blur(6px);
  transition: opacity 1s var(--ease-out) var(--d, 0s), translate 1s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s);
}
/* filter na staklu bi mu na trenutak ugasio backdrop-filter — staklo ulazi bez zamućenja */
.js .glass[data-reveal] { filter: none; }
.js [data-reveal].in { opacity: 1; translate: 0 0; filter: none; }

/* Hero ulazi čistim CSS-om, od prvog iscrtavanja — ne čeka JS ni IntersectionObserver.
   Pozornica NE kreće iz opacity: 0: ekran Healthnessa u njoj je LCP, a nevidljiv
   element se ne broji, pa je fade od 1,2 s dodavao ~1,7 s LCP-u (Lighthouse, 16. 10.). */
.hero__title .line > span { animation: lineUp 1.05s var(--ease-out) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
@keyframes lineUp { from { translate: 0 110%; } }
.rise { animation: rise .8s var(--ease-out) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
.hero__stage { animation: stageIn 1.3s var(--ease-out) both; }
@keyframes stageIn { from { scale: .94; translate: 0 22px; } }

/* --------------------------------------------------------------------------
   Mobitel
   -------------------------------------------------------------------------- */
@media (max-width: 719px) {
  .nav__links { display: none; }
  .nav__bar { width: calc(100% - 24px); justify-content: space-between; }
  .tabbar { display: grid; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .hero__stage { height: 520px; margin-inline: calc(var(--gut) * -1); }
  .w-apps { left: 4%; top: 4%; width: 128px; padding: 14px 16px; }
  .w-big { font-size: 42px; }
  .w-rings { right: 3%; top: 52%; padding: 10px 14px 10px 10px; gap: 10px; }
  .rings { width: 56px; height: 56px; }
  .w-mid { font-size: 22px; }
  .w-years { left: 5%; bottom: 3%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .shots__nav { display: none; }
  .timeline .tl__head { flex-direction: column; }
}
@media (min-width: 720px) { .tabbar { display: none !important; } }

/* --------------------------------------------------------------------------
   Smanjeno kretanje: sve stoji, ništa ne pluta
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; translate: none; filter: none; }
  .ring { stroke-dashoffset: calc(100 - var(--p)); }
}
