/* ==========================================================================
   EURU — Paytend Europe UAB
   Global stylesheet
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #07080c;
  --bg-elev:       #0d0f16;
  --surface:       #101320;
  --surface-2:     #161a29;
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .16);

  /* Text */
  --text:          #e9ecf5;
  --text-dim:      #a2abc2;
  --text-faint:    #6c7590;

  /* Brand */
  --brand:         #5d7cff;
  --brand-2:       #9a6bff;
  --mint:          #35d6a4;
  --amber:         #ffb547;
  --rose:          #ff6b81;
  --grad:          linear-gradient(120deg, #5d7cff 0%, #9a6bff 55%, #35d6a4 130%);

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Metrics */
  --radius:   14px;
  --radius-l: 22px;
  --maxw:     1180px;
  --nav-h:    68px;
  --shadow:   0 24px 60px -24px rgba(0, 0, 0, .75);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: -30vh -10vw auto -10vw;
  height: 90vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48vw 46vh at 22% 8%,  rgba(93, 124, 255, .18), transparent 65%),
    radial-gradient(42vw 42vh at 82% 0%,  rgba(154, 107, 255, .16), transparent 62%),
    radial-gradient(38vw 34vh at 55% 26%, rgba(53, 214, 164, .07), transparent 68%);
  filter: blur(6px);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 650;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.028em; }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; color: var(--text-dim); }

code, kbd, pre { font-family: var(--mono); font-size: .875em; }

::selection { background: rgba(93, 124, 255, .35); color: #fff; }

/* --------------------------------------------------------- layout helpers */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { position: relative; z-index: 1; padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(46px, 6vw, 72px) 0; }
.center { text-align: center; }
.lead { font-size: 1.12rem; max-width: 62ch; color: var(--text-dim); }
.center .lead { margin-inline: auto; }
.stack-sm > * + * { margin-top: .35rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}
.center .eyebrow::before { display: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 500 .93rem/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.045); }
.btn:active { transform: translateY(0); }
.btn--primary {
  border-color: transparent;
  background: var(--grad);
  color: #0a0b10;
  font-weight: 620;
  box-shadow: 0 10px 30px -12px rgba(93, 124, 255, .8);
}
.btn--primary:hover { background: var(--grad); filter: brightness(1.07); box-shadow: 0 16px 38px -14px rgba(93,124,255,.9); }
.btn--lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn--sm { padding: 8px 14px; font-size: .84rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

.link-arrow { color: var(--brand); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7, 8, 12, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 26px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -.02em; font-size: 1.06rem; white-space: nowrap; flex: 0 0 auto; }
.brand__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand__sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: var(--text-faint); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__links a {
  padding: 8px 12px; border-radius: 8px;
  font-size: .92rem; color: var(--text-dim);
  transition: color .18s ease, background .18s ease;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__links a.is-active { color: var(--text); background: rgba(255,255,255,.07); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 40px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span { display: block; width: 17px; height: 1.6px; background: var(--text); position: relative; transition: .2s ease; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: var(--text); transition: .2s ease;
}
.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after  { top:  5.5px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; z-index: 1; padding: clamp(58px, 8vw, 104px) 0 clamp(44px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.16rem; margin-bottom: 30px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; margin-bottom: 26px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: .82rem; color: var(--text-dim);
}
.pill b { color: var(--text); font-weight: 600; }
.pill__tag {
  padding: 2px 9px; border-radius: 999px;
  background: rgba(53, 214, 164, .14); color: var(--mint);
  font: 600 .7rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(53,214,164,.16); }

.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 40px; }
.stat__num { font-size: 1.6rem; font-weight: 660; letter-spacing: -.02em; }
.stat__label { font-size: .82rem; color: var(--text-faint); }

/* ------------------------------------------------------------ code panel */
.code-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(22,26,41,.92), rgba(13,15,22,.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-panel__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.code-panel__dots { display: flex; gap: 6px; }
.code-panel__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.code-panel__file { font-family: var(--mono); font-size: .76rem; color: var(--text-faint); margin-left: 6px; }
.code-panel__copy {
  margin-left: auto; border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim);
  border-radius: 7px; padding: 4px 10px; font: 500 .74rem/1.6 var(--mono); cursor: pointer; transition: .18s ease;
}
.code-panel__copy:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.code-panel__copy.is-done { color: var(--mint); border-color: rgba(53,214,164,.45); }

pre.code {
  margin: 0; padding: 20px 22px;
  overflow-x: auto;
  font-size: .83rem; line-height: 1.72;
  color: #c9d2e6;
  tab-size: 2;
}
pre.code .c-key { color: #9a6bff; }
pre.code .c-str { color: #35d6a4; }
pre.code .c-fn  { color: #5d7cff; }
pre.code .c-com { color: var(--text-faint); font-style: italic; }
pre.code .c-num { color: var(--amber); }

/* --------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button {
  padding: 7px 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; background: transparent;
  color: var(--text-faint); font: 500 .82rem/1.5 var(--mono); transition: .18s ease;
}
.tabs button:hover { color: var(--text-dim); }
.tabs button.is-active { color: var(--text); background: rgba(255,255,255,.07); border-color: var(--line); }
.tab-panel[hidden] { display: none; }

/* --------------------------------------------------------------- cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 38px; height: 38px; margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(93,124,255,.1);
  color: var(--brand);
}
.card--flat { background: var(--surface); }

.numbered { counter-reset: step; }
.numbered .card::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 20px; right: 22px;
  font: 600 .8rem/1 var(--mono); color: var(--text-faint);
}

/* --------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead th {
  position: sticky; top: 0;
  text-align: left; padding: 14px 18px;
  font: 600 .74rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.028); }
td.num { font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
.model-name { font-weight: 560; }
.model-id { display: block; font-family: var(--mono); font-size: .76rem; color: var(--text-faint); }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font: 600 .7rem/1.6 var(--mono); letter-spacing: .04em;
  border: 1px solid var(--line-strong); color: var(--text-dim); background: rgba(255,255,255,.035);
}
.tag--brand { color: var(--brand); border-color: rgba(93,124,255,.4);  background: rgba(93,124,255,.1); }
.tag--mint  { color: var(--mint);  border-color: rgba(53,214,164,.4);  background: rgba(53,214,164,.1); }
.tag--amber { color: var(--amber); border-color: rgba(255,181,71,.38); background: rgba(255,181,71,.1); }
.tag--rose  { color: var(--rose);  border-color: rgba(255,107,129,.38);background: rgba(255,107,129,.1); }

/* --------------------------------------------------------------- inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .84rem; color: var(--text-dim); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: 400 .93rem/1.5 var(--sans);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus { outline: 0; border-color: rgba(93,124,255,.7); box-shadow: 0 0 0 3px rgba(93,124,255,.16); }
.input::placeholder { color: var(--text-faint); }
textarea.input { resize: vertical; min-height: 130px; }
select.input { appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.toolbar .field { flex-direction: row; align-items: center; gap: 8px; }
.search { flex: 1 1 260px; }

/* --------------------------------------------------------------- pricing */
.plan {
  display: flex; flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
}
.plan--featured { border-color: rgba(93,124,255,.5); box-shadow: 0 0 0 1px rgba(93,124,255,.16), var(--shadow); }
.plan__price { font-size: 2.3rem; font-weight: 660; letter-spacing: -.03em; margin: 14px 0 4px; }
.plan__price small { font-size: .9rem; font-weight: 400; color: var(--text-faint); letter-spacing: 0; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--text-dim); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 15px; height: 8px; border-left: 1.8px solid var(--mint); border-bottom: 1.8px solid var(--mint);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* --------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 550; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 17px;
  font: 400 1.4rem/1 var(--mono); color: var(--text-faint); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-right: 40px; margin-bottom: 20px; }

/* --------------------------------------------------------------- callout */
.callout {
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--brand);
  background: rgba(93,124,255,.07);
  font-size: .92rem; color: var(--text-dim);
}
.callout strong { color: var(--text); }
.callout--mint { border-left-color: var(--mint); background: rgba(53,214,164,.06); }
.callout--amber { border-left-color: var(--amber); background: rgba(255,181,71,.06); }

.cta-band {
  position: relative; z-index: 1;
  padding: clamp(46px, 6vw, 70px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(93,124,255,.22), transparent 60%),
    radial-gradient(50% 120% at 85% 100%, rgba(154,107,255,.18), transparent 60%),
    var(--surface);
  text-align: center;
}

/* --------------------------------------------------------------- docs */
.doc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 48px; align-items: start; }
.doc-nav { position: sticky; top: calc(var(--nav-h) + 24px); }
.doc-nav h4 { font: 600 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 22px 0 10px; }
.doc-nav h4:first-child { margin-top: 0; }
.doc-nav a { display: block; padding: 6px 11px; border-radius: 7px; font-size: .89rem; color: var(--text-dim); border-left: 2px solid transparent; }
.doc-nav a:hover { color: var(--text); background: rgba(255,255,255,.045); }
.doc-nav a.is-active { color: var(--text); border-left-color: var(--brand); background: rgba(93,124,255,.08); }

.doc-body h2 { margin-top: 8px; scroll-margin-top: calc(var(--nav-h) + 26px); }
.doc-body h3 { margin-top: 34px; scroll-margin-top: calc(var(--nav-h) + 26px); }
.doc-body section + section { margin-top: 62px; }
.doc-body ul, .doc-body ol { color: var(--text-dim); padding-left: 20px; }
.doc-body li { margin-bottom: 8px; }
.doc-body table { min-width: 520px; }

.legal-body { max-width: 76ch; }
.legal-body h2 { font-size: 1.42rem; margin-top: 48px; }
.legal-body h3 { font-size: 1.05rem; margin-top: 28px; }
.legal-body ul { color: var(--text-dim); padding-left: 20px; }
.legal-body li { margin-bottom: 7px; }

/* --------------------------------------------------------------- footer */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(9,10,15,.7); padding: 62px 0 34px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer h5 { font: 600 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { font-size: .9rem; color: var(--text-dim); }
.footer a:hover { color: var(--text); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--text-faint);
}
.footer__legal p { margin: 0; font-size: .82rem; color: var(--text-faint); }

/* --------------------------------------------------------------- misc */
.marquee-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); font: 500 .84rem/1.5 var(--mono); color: var(--text-dim);
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .nav .brand__sub { display: none; }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 26px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .doc-nav h4 { display: none; }
  .doc-nav a { border-left: 0; border: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links, .nav__actions {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 22px;
    background: rgba(8,9,14,.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__actions { display: flex; top: auto; margin-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__actions { position: static; }
  .nav.is-open .nav__links { position: static; border-bottom: 0; padding-bottom: 4px; }
  .nav.is-open { height: auto; flex-wrap: wrap; align-items: flex-start; padding-bottom: 14px; }
  .nav.is-open .nav__inner { flex-wrap: wrap; }
  .nav.is-open .nav__links, .nav.is-open .nav__actions { width: 100%; }
  .nav__actions .btn { width: 100%; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero__stats { gap: 24px; }
  .stat { flex: 1 1 40%; }
  .cta-band { padding: 36px 24px; }
}
