/* Palancore website — design tokens.
   Brand colours come from the product's Windmill palette (assets/branding in the
   palancore repo). Layout DNA (rounded cards, pill CTAs, tinted sections, heavy
   headings, soft shadows) follows the design-benchmarks reference. */
:root {
  --brand: #4f52b2;
  --brand-deep: #282959;
  --brand-soft: #9598e0;
  --tint-hero: #eceefb;
  --tint-alt: #f4f4fa;
  --tint-warm: #fbf6ea;
  --surface: #ffffff;
  --ink: #1a1a2e;
  --body: #2b2b3a;
  --muted: #6b6b80;
  --line: #e3e3ef;
  --ok: #3a9d5d;

  --radius-card: 20px;
  --radius-row: 14px;
  --radius-chip: 12px;
  --radius-pill: 999px;
  --shadow: 0 2px 12px rgba(40, 41, 89, 0.07);

  --pad: 24px;
  --gap: 16px;
  --section: clamp(56px, 8vw, 96px);
  --max: 1120px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--brand); }
.lang { font-size: 14px; font-weight: 700; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); }
.lang:hover { border-color: var(--brand-soft); color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-ghost { border: 1.5px solid var(--brand-deep); color: var(--brand-deep); }
.btn-ghost:hover { background: var(--brand-deep); color: #fff; }

/* Hero */
.hero { background: var(--tint-hero); padding: var(--section) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); background: #fff; padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 20px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; font-weight: 900; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 20px; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 40px; display: grid; place-items: center; }
.hero-art img { width: min(240px, 70%); }
.trio { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.chip { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-chip); background: var(--tint-alt); color: var(--brand-deep); }

/* Sections */
section { padding: var(--section) 0; }
.alt { background: var(--tint-alt); }
.warm { background: var(--tint-warm); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 40px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--ink); margin: 0 0 8px; }

.grid { display: grid; gap: var(--gap); }
.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 { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: var(--pad); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.card li { margin: 4px 0; }
.icon { width: 44px; height: 44px; border-radius: var(--radius-chip); display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; background: var(--brand); margin-bottom: 16px; }
.icon.deep { background: var(--brand-deep); }
.icon.soft { background: var(--brand-soft); }

.step { position: relative; }
.step .num { font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }

/* Lists of rows */
.rows { display: grid; gap: 12px; }
.row { background: var(--surface); border-radius: var(--radius-row); padding: 18px 22px; display: grid; grid-template-columns: 220px 1fr; gap: 16px; box-shadow: var(--shadow); }
.row strong { color: var(--ink); }
.row span { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { background: var(--surface); border-radius: var(--radius-row); padding: 16px 20px 16px 52px; position: relative; box-shadow: var(--shadow); }
.checks li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); box-shadow: inset 0 0 0 4px #e3f3e8; }
.checks strong { color: var(--ink); }

/* Contact */
.contact-card { background: var(--brand-deep); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.contact-card h2 { color: #fff; }
.contact-card p { color: #d6d7f3; margin: 0; }
.contact-card .btn-primary { background: #fff; color: var(--brand-deep); }
.contact-card .btn-primary:hover { background: var(--brand-soft); color: var(--brand-deep); }
.contact-card .btn-ghost { border-color: #fff; color: #fff; }
.contact-card .btn-ghost:hover { background: #fff; color: var(--brand-deep); }
.contact-actions { display: grid; gap: 12px; justify-items: start; }
.contact-actions .mail { color: #fff; font-weight: 700; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 12px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-top a { color: var(--body); text-decoration: none; font-weight: 600; }
.footer-top a:hover { color: var(--brand); }
.legal { font-size: 13px; max-width: 60em; }

/* Plain text pages */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); }
.page h2 { font-size: 22px; margin-top: 36px; }
.page p, .page li { color: var(--body); }

@media (max-width: 900px) {
  .hero .wrap, .contact-card { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --pad: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-art { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
