/* Danube Code: single stylesheet. Fonts are self-hosted, no third-party requests. */

/* Sora, subset to Serbian Latin (weights 400-800) */
@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+2013-2014, U+2018-201E, U+2026, U+20AC;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E;
}

:root {
  /* Palette taken from the logo, dark theme */
  --bg: #011335;
  --bg-deep: #000B22;
  --surface: #06204F;
  --surface-2: #0A2A66;
  --blue: #0056F9;
  --blue-bright: #3F82FF;
  --sky: #8DB5FF;
  --text: #FFFFFF;
  --text-soft: #C5D3F0;
  --text-dim: #93A6CF;
  --line: rgba(141, 181, 255, 0.18);
  --line-strong: rgba(141, 181, 255, 0.34);

  --display: "Sora", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --maxw: 70rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--bg-deep); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--sky); text-underline-offset: 0.2em; }
a:hover { color: #fff; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: #fff; color: var(--bg);
  padding: 0.6rem 1rem; z-index: 30;
}
.skip:focus { top: 1rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(1, 19, 53, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; gap: 1rem 2rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; margin-right: auto; }
/* Logo has navy brackets, so it sits on a light tile */
.brand__mark { display: block; width: 73px; height: 36px; box-sizing: content-box; padding: 5px 8px; background: #fff; border-radius: 8px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__name span { color: var(--sky); }
.nav { display: flex; gap: 1.75rem; }
.nav a { color: var(--text-soft); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 0.92rem; }
.nav a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 30px -10px rgba(0, 86, 249, 0.8);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--blue-bright); color: #fff; transform: translateY(-1px); }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.9rem; box-shadow: none; }
.textlink { color: #fff; font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.textlink:hover { color: var(--sky); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); background:
  radial-gradient(60rem 30rem at 85% 0%, rgba(0, 86, 249, 0.35), transparent 70%),
  radial-gradient(40rem 24rem at 0% 100%, rgba(0, 86, 249, 0.18), transparent 70%),
  var(--bg); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.contour path { stroke: var(--blue-bright); stroke-opacity: 0.28; stroke-width: 1.6; }
.contour path:nth-child(4n) { stroke-opacity: 0.55; }
.hero__body {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-block; margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--sky);
}
.hero h1 {
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2.3rem, 1rem + 4.6vw, 4.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 34rem; margin-top: 1.5rem; font-size: 1.15rem; color: var(--text-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

/* Decorative code window in the hero */
.code {
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(6, 32, 79, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}
.code__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.code__bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--line-strong); }
.code__bar span { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); }
.code pre { margin: 0; padding: 1.25rem 1.25rem 1.4rem; font-family: var(--mono); font-size: 0.85rem; line-height: 1.75; color: var(--text-soft); overflow: hidden; }
.code .t { color: var(--sky); }
.code .a { color: #7FE0C3; }
.code .s { color: #F2C078; }
.code .c { color: var(--text-dim); }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--bg-deep); }
.facts__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts__row li { padding: 1.6rem 1.25rem; border-left: 1px solid var(--line); }
.facts__row li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.facts span { font-size: 0.9rem; color: var(--text-dim); }

/* Generic sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--bg-deep); }
.kicker { margin-bottom: 0.9rem; font-family: var(--mono); font-size: 0.82rem; color: var(--blue-bright); letter-spacing: 0.04em; text-transform: uppercase; }
.section h2, .contact h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 1rem + 2.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.intro { max-width: 38rem; margin-top: 1rem; color: var(--text-soft); }
.note { max-width: 38rem; margin-top: 2rem; color: var(--text-dim); font-size: 0.97rem; }

/* Offer: 2x2 cards */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.offer__row {
  position: relative;
  padding: 1.9rem 1.75rem 2rem;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(160deg, var(--surface), rgba(6, 32, 79, 0.35));
  transition: border-color 0.2s, transform 0.2s;
}
.offer__row:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.offer__num { display: block; margin-bottom: 1.1rem; font-family: var(--mono); font-size: 0.85rem; color: var(--blue-bright); }
.offer dt { font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.offer dd { margin-top: 0.6rem; color: var(--text-soft); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1.25rem; margin-top: 2.5rem; align-items: stretch; }
.plan { padding: 2rem 1.75rem 2.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.plan h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.plan .price { margin: 0.9rem 0 1.4rem; font-family: var(--display); font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.plan .price span, .plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 1.7rem; color: var(--text-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.62rem;
  width: 0.4rem; height: 0.8rem;
  border-right: 2px solid var(--blue-bright); border-bottom: 2px solid var(--blue-bright);
  transform: rotate(40deg);
}
.plan--main {
  background: linear-gradient(160deg, #0A58FA 0%, #0036A8 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 60px -28px rgba(0, 86, 249, 0.9);
}
.plan--main .price span { color: #DCE7FF; }
.plan--main .ticks li { color: #fff; }
.plan--main .ticks li::before { border-color: #fff; }

/* Steps: four columns joined by a river line */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 1.05rem; height: 2px; background: linear-gradient(90deg, var(--blue), var(--line)); }
.steps li { position: relative; padding-top: 3.2rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 6px var(--bg);
  font-family: var(--display); font-weight: 700; font-size: 0.9rem;
}
.steps h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin-top: 0.4rem; color: var(--text-soft); font-size: 0.97rem; }

/* Work: three cards */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.work li { display: flex; flex-direction: column; padding: 1.9rem 1.6rem; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 16px; background: var(--surface); }
.work h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.work p { margin-top: 0.7rem; color: var(--text-soft); font-size: 0.97rem; }
.work .meta { margin-top: auto; padding-top: 1.25rem; font-family: var(--mono); font-size: 0.8rem; color: var(--sky); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem 3rem; }
.faq__list { max-width: 40rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue-bright); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--text-soft); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem 3rem; }
.about__text { max-width: 38rem; color: var(--text-soft); }
.about__text p + p { margin-top: 1rem; }

/* Contact */
.contact { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0; background:
  radial-gradient(50rem 24rem at 50% 120%, rgba(0, 86, 249, 0.55), transparent 70%),
  var(--bg); border-top: 1px solid var(--line); }
.contact__body { text-align: center; }
.contact__body p { max-width: 34rem; margin: 1rem auto 0; color: var(--text-soft); }
.contact .actions { justify-content: center; margin-top: 2rem; }
.contact .btn { background: #fff; color: var(--bg); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.35); }
.contact .btn:hover { background: #DCE7FF; color: var(--bg); }

/* Footer */
.foot { background: var(--bg-deep); color: var(--text-dim); padding: 1.5rem 0; font-size: 0.92rem; border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot a { color: var(--text-soft); }

/* Plain text pages (privacy) */
.page { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.page h1 { font-family: var(--display); font-size: clamp(2rem, 1.2rem + 3vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }
.page h2 { margin-top: 2.25rem; font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.page p, .page ul { max-width: 40rem; margin-top: 0.75rem; color: var(--text-soft); }
.page ul { padding-left: 1.25rem; list-style: disc; }
.page .updated { color: var(--text-dim); font-size: 0.95rem; }

/* One orchestrated moment: contour lines draw in once on load */
@media (prefers-reduced-motion: no-preference) {
  .contour path { stroke-dasharray: 1; animation: flow 2.6s cubic-bezier(.3, .6, .2, 1) both; }
  .contour path:nth-child(2) { animation-delay: 0.08s; }
  .contour path:nth-child(3) { animation-delay: 0.16s; }
  .contour path:nth-child(4) { animation-delay: 0.24s; }
  .contour path:nth-child(5) { animation-delay: 0.32s; }
  .contour path:nth-child(6) { animation-delay: 0.4s; }
  .contour path:nth-child(7) { animation-delay: 0.48s; }
  .contour path:nth-child(8) { animation-delay: 0.56s; }
  @keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .offer__row { transition: none; }
}

@media (max-width: 60rem) {
  .hero__body { grid-template-columns: minmax(0, 1fr); }
  .code { max-width: 30rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .work { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 52rem) {
  .top__nav { display: none; }
}

@media (max-width: 44rem) {
  .offer { grid-template-columns: minmax(0, 1fr); }
  .about, .faq { grid-template-columns: minmax(0, 1fr); }
  .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__row li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts__row li:nth-child(-n+2) { border-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero__art { opacity: 0.7; }
  .brand__name { font-size: 1.05rem; }
}
