/* Pilar Technologies. Colors are taken from the logo. */
:root {
  --blue: #1747d1;        /* "Pilar" */
  --blue-dark: #0f339c;
  --blue-soft: #8fa9ff;   /* accent on dark surfaces */
  --slate: #47506a;       /* "Technologies" */
  --ink: #111729;
  --muted: #5b6478;
  --line: #e2e6ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --navy: #0a1130;
  --navy-2: #101a45;
  --on-dark: #eef1fa;
  --on-dark-muted: #aab3cf;
  --line-dark: rgba(255, 255, 255, .14);
  --radius: 10px;
  --wrap: 1120px;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
section[id] { scroll-margin-top: 76px; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { display: block; width: 210px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: var(--slate); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600;
  border: 1px solid var(--blue); letter-spacing: .01em;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-small { padding: 8px 18px; font-size: .95rem; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: #dfe6ff; border-color: #dfe6ff; color: var(--navy); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

/* Type */
h1, h2, h3 { text-wrap: balance; }
h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.06; letter-spacing: -.025em;
  font-weight: 650; margin: 0 0 28px; max-width: 19ch;
}
h1 em { font-style: normal; color: var(--blue-soft); }
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em;
  font-weight: 650; margin: 0 0 16px; color: var(--ink);
}
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 8px; color: var(--ink); }
.eyebrow, .kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; margin: 0 0 18px;
}
.kicker { color: var(--blue); }
.kicker::before {
  content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor;
  vertical-align: middle; margin-right: 12px;
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  padding: 120px 0 96px;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(53, 99, 255, .5), transparent 65%),
    radial-gradient(700px 480px at 0% 110%, rgba(23, 71, 209, .35), transparent 65%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000, transparent 75%);
}
.hero:has(.hero-facts) { padding-bottom: 0; }
.hero .wrap { position: relative; }
.eyebrow { color: var(--blue-soft); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--on-dark-muted); max-width: 62ch; margin: 0 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 96px 0 0; border-top: 1px solid var(--line-dark);
}
.hero-facts > div { padding: 28px 24px 36px 0; }
.hero-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.hero-facts dt { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; color: #fff; margin-bottom: 4px; }
.hero-facts dd { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--on-dark-muted); }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-intro { font-size: 1.12rem; color: var(--muted); margin: 0; max-width: 62ch; }

/* Disciplines */
.disciplines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.discipline {
  display: grid; grid-template-columns: 72px minmax(200px, 1fr) 2fr; gap: 24px;
  padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.discipline .num {
  width: 12px; height: 12px; border-radius: 50%; margin: 12px 0 0 5px;
  background: var(--blue); box-shadow: 0 0 0 5px rgba(23, 71, 209, .14);
}
.discipline h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.02em; margin: 0; transition: color .15s; }
.discipline:hover h3 { color: var(--blue); }
.discipline-body p { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .8rem; font-weight: 500; color: var(--slate); padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt);
}

/* Lifecycle */
.section-dark {
  color: var(--on-dark);
  background: radial-gradient(800px 420px at 100% 0%, rgba(53, 99, 255, .28), transparent 65%), var(--navy);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--blue-soft); }
.section-dark .section-intro { color: var(--on-dark-muted); }
.lifecycle {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.lifecycle li { position: relative; padding-top: 34px; border-top: 1px solid var(--line-dark); }
.lifecycle li::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-soft); box-shadow: 0 0 0 5px rgba(143, 169, 255, .18);
}
.lifecycle p { margin: 0; color: var(--on-dark-muted); font-size: .97rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: #fff;
  border-top: 2px solid var(--blue);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 18px 40px -22px rgba(17, 23, 41, .35); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.about .section-head { margin-bottom: 0; }
.about-body p { margin: 0 0 18px; font-size: 1.1rem; color: var(--slate); }
.about-body p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin: 0; }
.faq-item { padding: 28px 0; border-top: 1px solid var(--line); }
.faq dt { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; color: var(--ink); margin-bottom: 10px; }
.faq dd { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* Contact */
.section-cta {
  color: var(--on-dark);
  background: radial-gradient(700px 400px at 0% 100%, rgba(53, 99, 255, .35), transparent 65%), linear-gradient(180deg, var(--navy-2), var(--navy));
}
.section-cta h2 { color: #fff; }
.section-cta .kicker { color: var(--blue-soft); }
.section-cta .section-intro { color: var(--on-dark-muted); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Contact form */
.contact-form {
  padding: 32px; border: 1px solid var(--line-dark); border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}
html:not(.js) .contact-form { display: none; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 8px; }
.field label {
  display: block; margin-bottom: 8px; color: var(--on-dark-muted);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.field input, .field textarea {
  display: block; width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: #fff;
  background: rgba(10, 17, 48, .55); border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(143, 169, 255, .25);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff9c9c; }
.field-hint { margin: 0 0 18px; font-size: .88rem; color: var(--on-dark-muted); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.form-foot .btn { cursor: pointer; font: inherit; font-weight: 600; }
.form-foot .btn:disabled { opacity: .6; cursor: default; }
.form-status { margin: 0; flex: 1 1 200px; font-size: .95rem; color: var(--on-dark-muted); }
.form-status.is-error { color: #ffb3b3; }
.form-status.is-success { color: #a5e8c0; }

/* Footer */
.site-footer { background: var(--navy); border-top: 1px solid var(--line-dark); padding: 28px 0; color: var(--on-dark-muted); font-size: .88rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Tablet */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .lifecycle { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .about, .cta { grid-template-columns: 1fr; gap: 36px; }
  .faq { grid-template-columns: 1fr; }
  .discipline { grid-template-columns: 48px 1fr; }
  .discipline-body { grid-column: 2; }
}

/* Mobile */
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .brand img { width: 170px; }
  .js .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); border-radius: 8px;
    padding: 8px 14px; font: inherit; color: var(--slate);
  }
  .js .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px; background: #fff;
    border-bottom: 1px solid var(--line); }
  .js .site-nav.open { display: flex; }
  .hero { padding-top: 72px; }
  .hero-facts { margin-top: 64px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .cards, .lifecycle { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .contact-form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 18px; }
  .field-hint { margin-top: -8px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div, .hero-facts > div + div { padding: 20px 0; border-left: 0; }
  .hero-facts > div + div { border-top: 1px solid var(--line-dark); }
  .discipline { grid-template-columns: 1fr; gap: 10px; }
  .discipline-body { grid-column: 1; }
  .discipline .num { margin: 5px 0 5px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { transition: none !important; }
}
