/* ============================================================
   PROTEOR AI HUB — shared design system
   Brand: deep navy + Proteor blue, warm & human, generous space
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  /* Brand */
  --navy:       #1B2A56;
  --navy-900:   #121D3C;
  --navy-700:   #283a72;
  --blue:       #2C6BB3;
  --blue-600:   #245d9f;
  --blue-300:   #7FB1DF;
  --sky:        #EAF2FA;
  --sky-deep:   #DCEAF7;

  /* Neutrals */
  --paper:      #F5F8FB;
  --white:      #FFFFFF;
  --ink:        #28304A;
  --muted:      #69748C;
  --line:       #E3EAF2;
  --line-soft:  #EEF3F8;

  /* Accent (overridden per tool page) */
  --accent:     var(--blue);
  --accent-soft:#EAF2FA;
  --accent-ink: #245d9f;

  /* Form */
  --radius:     18px;
  --radius-lg:  26px;
  --radius-sm:  11px;
  --shadow:     0 1px 2px rgba(27,42,86,.04), 0 8px 28px -12px rgba(27,42,86,.16);
  --shadow-lg:  0 2px 6px rgba(27,42,86,.05), 0 30px 60px -28px rgba(27,42,86,.30);
  --maxw:       1180px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Mulish', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Mulish', system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }

/* ---------- Petal logo mark ---------- */
.petal {
  display: inline-block;
  width: 1em; height: 1em;
  color: inherit;
  flex: none;
}
.petal svg { width: 100%; height: 100%; display: block; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 26px;
  height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 13px;
  color: var(--navy); flex: none;
}
.brand .petal { font-size: 34px; color: var(--blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Jost', sans-serif;
  font-weight: 400; font-size: 22px;
  letter-spacing: .26em; color: var(--navy);
  padding-left: .26em;
}
.brand-sub {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue);
  margin-top: 5px; padding-left: .04em;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 8px; flex: 1;
}
.nav-links a {
  color: var(--navy); font-weight: 600; font-size: 15.5px;
  padding: 9px 14px; border-radius: 10px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--sky); color: var(--blue-600); }
.nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }

/* lang toggle */
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; font-size: 13px; font-weight: 800;
  background: var(--white);
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 11px; color: var(--muted);
  font-family: inherit; font-weight: 800; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.lang button.on { background: var(--navy); color: #fff; }
.flag {
  width: 18px; height: 12px; border-radius: 2.5px; overflow: hidden;
  display: inline-block; flex: none; line-height: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.flag svg { width: 100%; height: 100%; display: block; }

/* hamburger */
.burger {
  display: none; border: 1px solid var(--line); background: #fff;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; flex: none;
}
.burger span, .burger span::before, .burger span::after {
  content: ''; display: block; width: 19px; height: 2px;
  background: var(--navy); border-radius: 2px; position: relative;
  transition: .2s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after  { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 800; font-size: 15.5px;
  letter-spacing: .005em;
  padding: 13px 22px; border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s var(--ease), box-shadow .18s, background .18s, color .18s, border-color .18s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(44,107,179,.7);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-accent:hover { transform: translateY(-1px); filter: brightness(.95); }
.btn-outline {
  background: transparent; color: var(--navy);
  border-color: color-mix(in srgb, var(--navy) 28%, transparent);
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--sky); color: var(--blue-600); }
.btn-ghost:hover { background: var(--sky-deep); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn-on-dark.btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-on-dark.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Section header (centered, petal divider) ---------- */
.sec { padding: 92px 0; }
.sec-sm { padding: 64px 0; }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 14px;
}
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); }
.sec-head p { font-size: 19px; color: var(--muted); margin-top: 18px; }
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 18px auto 0; color: var(--blue);
}
.divider::before, .divider::after {
  content: ''; height: 1.5px; width: 46px;
  background: linear-gradient(90deg, transparent, var(--blue-300));
}
.divider::after { background: linear-gradient(90deg, var(--blue-300), transparent); }
.divider .petal { font-size: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #C8D3EA; padding: 64px 0 30px; }
.footer a { color: #C8D3EA; }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer .brand-name, .footer .brand { color: #fff; }
.footer .brand .petal { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer .blurb { font-size: 15px; color: #9FB0D2; max-width: 300px; margin-top: 18px; }
.footer-cta { display: grid; gap: 12px; align-content: start; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 22px; font-size: 13.5px; color: #8294BA;
}

/* ---------- Utility ---------- */
.lift { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
[hidden] { display: none !important; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.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: 1080px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 13px 14px; font-size: 17px; }
  .nav-cta .btn-labeltext { display: inline; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .nav-cta .hide-sm { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-cta { grid-column: 1 / -1; }
}
