/* Artifexis — Your business, in a box */
:root {
  --bg: #faf8f5;
  --bg-2: #f2eee7;
  --surface: #ffffff;
  --line: rgba(27, 38, 64, 0.10);
  --line-strong: rgba(27, 38, 64, 0.20);
  --text: #171c28;
  --text-2: #4a5263;
  --text-3: #7a8293;
  --ink: #1b2640;
  --ink-2: #2b3a5c;
  --accent: #e8620f;
  --accent-soft: #fdeadb;
  --accent-ink: #ffffff;
  --ok: #138a5b;
  --bad: #c2410c;
  --shadow: 0 30px 70px -30px rgba(27, 38, 64, 0.35);
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141b; --bg-2: #161a23; --surface: #1b202b;
    --line: rgba(200, 210, 230, 0.10); --line-strong: rgba(200, 210, 230, 0.22);
    --text: #eceef3; --text-2: #aab1c0; --text-3: #7c8496;
    --accent: #ff8438; --accent-soft: rgba(255, 132, 56, 0.14); --accent-ink: #1a0c02;
    --ok: #34d399; --bad: #fb923c;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141b; --bg-2: #161a23; --surface: #1b202b;
  --line: rgba(200, 210, 230, 0.10); --line-strong: rgba(200, 210, 230, 0.22);
  --text: #eceef3; --text-2: #aab1c0; --text-3: #7c8496;
  --accent: #ff8438; --accent-soft: rgba(255, 132, 56, 0.14); --accent-ink: #1a0c02;
  --ok: #34d399; --bad: #fb923c;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* Language switch: everything is written twice, the other language is hidden */
html[lang="hr"] body [lang="en"], html[lang="en"] body [lang="hr"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
h3 { font-size: 18.5px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.lead { color: var(--text-2); font-size: clamp(17px, 1.6vw, 19.5px); max-width: 62ch; }
.lead strong { color: var(--text); font-weight: 650; }
.kicker { display: inline-block; font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 8px 12px; border-radius: 99px; justify-self: start; width: fit-content; }
.kicker.light { background: rgba(255,255,255,.12); color: #ffb27d; }
section { padding: clamp(72px, 9vw, 120px) 0; }
section.alt { background: var(--bg-2); }
.sec-head { display: grid; gap: 18px; margin-bottom: 52px; max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border-radius: 12px; font: 650 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-sm { padding: 11px 16px; font-size: 14.5px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .word { font: 750 22px/1 var(--sans); letter-spacing: -0.04em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.tools { display: flex; gap: 8px; }
.pill-btn { height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--text-2); font: 650 12.5px/1 var(--mono); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pill-btn:hover { color: var(--text); border-color: var(--text-3); }
.pill-btn svg { width: 16px; height: 16px; }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sun { display: block; } :root:not([data-theme="light"]) .moon { display: none; } }
.menu-btn { display: none; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 30%, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); font-weight: 780; letter-spacing: -0.045em; line-height: 1.0; margin: 22px 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); }

.hero-visual { position: relative; aspect-ratio: 1 / 0.8; }
/* Screenshots */
.shot { margin: 0; background: #18181a; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-strong); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #232326; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #45454b; }
.shot-bar > span { margin-left: 10px; font: 500 12px/1 var(--mono); color: #9a9aa3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; }
.shot figcaption, .phone figcaption { padding: 10px 14px; font-size: 13.5px; color: #c9c9d1; background: #232326; }
.proto-strip { display: grid; grid-template-columns: 1fr 1fr 0.42fr; gap: 22px; align-items: start; margin: -24px 0 8px; }
.phone { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-strong); background: #f3f3f1; }
.phone img { width: 100%; }
.shot-hero { position: absolute; inset: 6% 0 auto 0; transform: rotate(-1deg); }
.shot-hero img { aspect-ratio: 1800 / 1125; object-fit: cover; object-position: top left; }
.float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--text-2); }
.float b { font-size: 26px; color: var(--accent); letter-spacing: -0.03em; }
.f1 { left: -14px; bottom: 4%; }
.f2 { left: 34%; top: 0; }

/* Problem band */
.band { padding: 0; }
.pain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pain-item { display: flex; gap: 14px; padding: 28px 24px; border-right: 1px solid var(--line); }
.pain-item:last-child { border-right: 0; }
.pain-item p { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.pain-x { flex: none; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); display: grid; place-items: center; }
.pain-x svg { width: 14px; height: 14px; }
.pain-item.yes { background: var(--ink); color: #fff; }
.pain-item.yes p { color: #c4cbe0; }
.pain-item.yes .pain-x { background: var(--accent); color: #fff; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 64px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.timeline li::before { counter-increment: s; content: counter(s); position: absolute; top: 4px; left: 24px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 15px/1 var(--mono); border: 4px solid var(--bg); transform: translateY(-50%); top: 22px; }
.timeline .day { position: absolute; top: 14px; right: 20px; font: 600 12.5px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.timeline p { color: var(--text-2); font-size: 15.5px; flex: 1; }
.price { align-self: flex-start; font: 600 12.5px/1 var(--mono); padding: 7px 10px; border-radius: 8px; background: var(--bg-2); color: var(--text-2); }
.price.free { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); text-transform: uppercase; letter-spacing: .08em; }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: border-color .15s, transform .15s; }
.mod:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mod svg { width: 26px; height: 26px; color: var(--ink-2); margin-bottom: 14px; }
:root[data-theme="dark"] .mod svg { color: var(--text-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mod svg { color: var(--text-2); } }
.mod p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.mod.core { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.mod.core svg { color: var(--accent); }
.mod-note { margin-top: 20px; color: var(--text-3); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.mod-note .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }

/* Example: Stolarija Hrast */
.ex { display: grid; gap: clamp(48px, 7vw, 88px); }
.ex-row { display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 48px; align-items: center; }
.ex-row.flip .ex-copy { order: 2; }
.ex-copy { display: grid; gap: 14px; }
.ex-n { font: 700 13px/1 var(--mono); color: var(--accent); }
.ex-copy h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.ex-copy p { color: var(--text-2); }
.ex-copy blockquote { margin: 4px 0 0; padding: 14px 18px; border-left: 3px solid #d8a31a; background: color-mix(in srgb, #d8a31a 12%, transparent); border-radius: 0 10px 10px 0; font-style: italic; display: grid; gap: 6px; }
.ex-copy blockquote small { font-style: normal; color: var(--text-3); font-size: 13px; }
.ex-list { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; font-size: 15.5px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roles > span { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; color: var(--text-2); display: grid; }
.roles b { color: var(--text); font-size: 14.5px; }
.facts { margin-top: clamp(48px, 7vw, 80px); background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 28px; }
.facts-h { font: 600 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #ffb27d; margin-bottom: 18px; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts-row div { display: grid; gap: 4px; color: #c4cbe0; font-size: 14.5px; }
.facts-row b { font-size: clamp(28px, 3.4vw, 40px); color: #fff; letter-spacing: -0.03em; line-height: 1; }
.video-soon { margin-top: 28px; display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.vs-thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: radial-gradient(circle at 70% 30%, rgba(232,98,15,.45), transparent 60%), #1b2640; }
.vs-logo { position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; }
.play svg { width: 24px; height: 24px; margin-left: 3px; }
.badge { display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.video-soon p { color: var(--text-2); font-size: 15.5px; margin-top: 8px; max-width: 70ch; }

/* Who */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.who div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 6px; color: var(--text-2); font-size: 15px; }
.who b { color: var(--text); font-size: 17px; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.why-grid h2 { margin: 18px 0; }
.why-list { display: grid; gap: 14px; }
.why-list > div { display: flex; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.why-list .n { font: 700 14px/1 var(--mono); color: var(--accent); padding-top: 4px; }
.why-list p { color: var(--text-2); font-size: 15.5px; margin-top: 6px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 18px; }

/* Start */
.start { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; position: relative; overflow: hidden; }
.start::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(232,98,15,.35), transparent 65%); pointer-events: none; }
.start-copy { display: grid; gap: 16px; align-content: start; position: relative; }
.start-copy h2 { color: #fff; }
.start-copy p { color: #c4cbe0; }
.start-copy .small { font-size: 13.5px; color: #8e98b3; }
.mail { font: 650 clamp(20px, 2.4vw, 26px)/1.2 var(--sans); color: #ffb27d; text-decoration: none; word-break: break-all; }
.mail:hover { text-decoration: underline; }
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px; position: relative; }
.brief label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: #c4cbe0; }
.brief .full { grid-column: 1 / -1; }
.brief input, .brief select, .brief textarea { width: 100%; font: 400 15.5px/1.4 var(--sans); color: #fff; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 11px 12px; }
.brief select option { color: #111; }
.brief textarea { resize: vertical; }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.brief input.err { border-color: #fb923c; }
.brief .btn-primary { --accent-ink: #fff; background: #e8620f; }

/* Footer */
footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot { display: grid; gap: 22px; }
.foot p { color: var(--text-2); font-size: 15px; margin-top: 10px; }
.foot p a { color: var(--accent); text-decoration: none; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-3); font-size: 13.5px; }
.legal a { text-decoration: none; }
.legal a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .why-grid, .faq-wrap, .start { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .pain { grid-template-columns: 1fr 1fr; }
  .pain-item:nth-child(2) { border-right: 0; }
  .pain-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline, .modules, .who, .facts-row { grid-template-columns: 1fr 1fr; }
  .ex-row { grid-template-columns: 1fr; gap: 24px; } .ex-row.flip .ex-copy { order: 0; }
  .timeline::before { display: none; }
}
@media (max-width: 860px) {
  .proto-strip { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .proto-strip .phone { grid-column: 1 / -1; justify-self: center; width: min(260px, 70%); }
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tools { margin-left: auto; }
  .hide-sm { display: none; }
}
@media (max-width: 620px) {
  .proto-strip { grid-template-columns: 1fr; }
  .pain, .timeline, .modules, .who, .brief, .facts-row { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .pain-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .pain-item:last-child { border-bottom: 0; }
  .video-soon { grid-template-columns: 1fr; }
  .f1 { left: 0; bottom: 6%; } .f2 { right: 6%; top: -6px; }
  .float { padding: 9px 12px; font-size: 12.5px; } .float b { font-size: 20px; }
  .hero-visual { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Text pages (privacy) */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.doc ul { padding-left: 20px; display: grid; gap: 12px; }
.doc strong { color: var(--text); }
.doc .muted { color: var(--text-3); font-size: 14.5px; }
