:root {
  --ink: #0c0d11;
  --ink-2: #111319;
  --panel: #15161c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ecebe6;
  --soft: #b9bac2;
  --muted: #8b8d98;
  --faint: #5d5f69;
  --accent: #ffd54a;
  --accent-ink: #1d1604;
  --font: "Bahnschrift", "DIN Alternate", "DIN Next", "Barlow", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --caption: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(60% 50% at 90% -5%, rgba(255, 213, 74, 0.13), transparent 70%),
    radial-gradient(50% 40% at -10% 40%, rgba(110, 130, 200, 0.12), transparent 70%),
    var(--ink);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Jezik: prikazuje se samo izabrani */
html[data-lang="en"] [lang="sr"],
html[data-lang="sr"] [lang="en"] { display: none !important; }

a { color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Navigacija */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; padding: 3px; border-radius: 99px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.lang-switch button {
  padding: 5px 11px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--muted);
  font: 600 12.5px var(--font);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.nav-coffee { padding: 8px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); font-size: 14px; text-decoration: none; transition: box-shadow 0.15s, color 0.15s; }
.nav-coffee:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 213, 74, 0.5); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  padding: 56px 0 96px;
}
.kicker { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
h1 { margin: 0 0 22px; font-size: clamp(42px, 6.2vw, 72px); line-height: 0.98; font-weight: 700; letter-spacing: -0.015em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0 0 32px; max-width: 30em; color: var(--soft); font-size: 19px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, #ffe385, #ffcb3d 55%, #f4a11f);
  color: var(--accent-ink);
  box-shadow: 0 14px 30px -14px rgba(255, 186, 40, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary[aria-disabled="true"] { cursor: default; filter: saturate(0.7); opacity: 0.85; }
.btn-primary[aria-disabled="true"]:hover { transform: none; }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.btn:focus-visible, .lang-switch button:focus-visible, .nav-coffee:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Demo plejer */
.demo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px rgba(0, 0, 0, 0.95);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.demo::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(255, 213, 74, 0.12), transparent);
  pointer-events: none;
}
.demo-screen {
  position: relative;
  aspect-ratio: 16 / 9.4;
  padding: 26px 30px;
  background: linear-gradient(160deg, #1a1d27, #0d0f15);
}
.demo-code .tab { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 6px 6px 0 0; background: #232634; color: #9aa0b4; font: 12px var(--mono); }
.demo-code code { display: block; white-space: pre; color: #e6e6e6; font: 14px/1.8 var(--mono); overflow: hidden; }
.demo-code .k { color: #c792ea; }
.demo-code .f { color: #82aaff; }
.demo-code .s { color: #c3e88d; }
.demo-code .c { color: #5c6378; }

.demo-cue {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  font-family: var(--caption);
}
.demo-cue span { padding: 2px 10px 3px; background: rgba(0, 0, 0, 0.82); font-size: clamp(14px, 1.6vw, 19px); line-height: 1.3; }
.demo-cue .o { color: #fff; }
.demo-cue .t { color: var(--accent); }
.demo-cue.in span { animation: cue-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes cue-in { from { opacity: 0; transform: translateY(4px); } }

.demo-lang {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 213, 74, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.demo-bar { position: relative; display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 18px; background: #08090c; color: #c9cad1; font-size: 13px; }
.demo-track { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #2a2c35; }
.demo-track i { display: block; width: 8%; height: 100%; background: var(--accent); transition: width 3.4s linear; }
.play { width: 0; height: 0; border-left: 11px solid #e6e6e6; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.time { font-variant-numeric: tabular-nums; }
.cc, .cc-inline { padding: 0 5px; border: 1.5px solid var(--accent); border-radius: 3px; color: var(--accent); font-size: 11px; font-weight: 700; line-height: 1.4; }
.cc { margin-left: auto; }
.cc-inline { display: inline-block; vertical-align: 1px; border-color: currentColor; color: inherit; }

/* Sekcije */
section h2 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; }

.how { padding: 40px 0 96px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px 24px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.steps b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: rgba(255, 213, 74, 0.12);
  color: var(--accent);
  font-size: 18px;
}
.steps h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.steps p { margin: 0; color: var(--soft); font-size: 16px; }

.make { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 56px; padding: 40px 0 96px; }
.features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 28px; color: var(--soft); }
.features li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 4px; border-radius: 2px; background: var(--accent); box-shadow: 0 7px 0 #f4f1ea; }
.features strong { color: var(--text); font-weight: 600; }
.make-shot { margin: 0; justify-self: center; }
.make-shot img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  transform: rotate(2deg);
}

.coffee { padding: 0 0 80px; }
.coffee-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
  border-radius: 22px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 213, 74, 0.18), transparent 60%),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 74, 0.22);
}
.cup { flex: none; color: var(--accent); }
.steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: 0.25; transform: translateY(1px); } 50% { opacity: 0.9; transform: translateY(-1px); } }
.coffee-text { flex: 1; min-width: 0; }
.coffee-text h2 { margin: 0 0 4px; font-size: 28px; }
.coffee-text p { margin: 0; color: var(--soft); }
.btn-coffee { flex: none; background: var(--accent); color: var(--accent-ink); }
.btn-coffee:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(255, 186, 40, 0.9); }

.footer { padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer p { margin: 0 0 8px; }
.footer a { color: var(--soft); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .dot { margin: 0 8px; color: var(--faint); }
.footer .fine { color: var(--faint); font-size: 13px; }

/* Ulazna animacija */
.hero-copy > *, .demo { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.demo { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; translate: 0 12px; } }

/* Telefon i tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 72px; }
  .demo { transform: none; }
  .make { grid-template-columns: 1fr; gap: 40px; }
  .make-shot img { transform: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { padding: 16px 0; }
  .nav-coffee { display: none; }
  .lead { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .coffee-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .demo-screen { padding: 18px; aspect-ratio: 4 / 3; }
  .demo-code code { font-size: 11.5px; }
  .how, .make { padding-bottom: 72px; }
}

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