:root {
  color-scheme: light;
  --ink: #102442;
  --muted: #5c6b80;
  --blue: #173b73;
  --blue-bright: #2f63d5;
  --green: #286955;
  --green-soft: #eaf4ef;
  --line: #dce4ed;
  --paper: #f7f9fc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 36, 66, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 228, 237, .8);
  background: rgba(247, 249, 252, .88);
  backdrop-filter: blur(16px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: -.7px; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  background: #071a3a url("/pal-logo-120.png") center / cover no-repeat;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue-bright); }
.nav-pill { padding: 10px 15px; border: 1px solid #cdd8e8; border-radius: 999px; background: white; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 88px;
  background:
    radial-gradient(circle at 83% 14%, rgba(64, 103, 219, .16), transparent 32%),
    radial-gradient(circle at 4% 80%, rgba(66, 156, 128, .12), transparent 28%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .86fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 1.55px; text-transform: uppercase; }
h1 { max-width: 680px; margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: .99; letter-spacing: -4px; }
.hero-copy { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: 20px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 19px; border-radius: 14px; color: white; background: var(--blue); font-weight: 750; text-decoration: none; box-shadow: 0 10px 28px rgba(23, 59, 115, .2); }
.button.secondary { color: var(--ink); border: 1px solid #cad6e5; background: white; box-shadow: none; }
.fine { margin: 18px 0 0; color: #718095; font-size: 13px; line-height: 1.6; }

.architecture { padding: 24px; border: 1px solid #cad7e5; border-radius: 30px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); }
.arch-node { display: flex; align-items: center; gap: 16px; padding: 17px; border-radius: 18px; background: #f7f9fc; }
.arch-icon { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--blue); font-weight: 800; }
.phone-icon { position: relative; width: 27px; height: 39px; border: 2px solid white; border-radius: 8px; }
.phone-icon::after { content: ""; position: absolute; width: 9px; height: 2px; left: 7px; bottom: 3px; border-radius: 1px; background: white; }
.arch-label { margin: 0 0 3px; color: #6a788c; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.arch-title { margin: 0; font-size: 18px; letter-spacing: -.3px; }
.arch-detail { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.connector { display: grid; grid-template-columns: 2px 1fr; gap: 17px; min-height: 70px; margin-left: 41px; align-items: center; }
.connector-line { position: relative; height: 100%; background: #54917e; }
.connector-line::after { content: ""; position: absolute; left: -4px; bottom: 1px; width: 8px; height: 8px; border-right: 2px solid #54917e; border-bottom: 2px solid #54917e; transform: rotate(45deg); }
.connector p { margin: 0; color: var(--green); font-size: 12px; font-weight: 750; }
.connector span { display: block; margin-top: 3px; color: #718095; font-weight: 500; }
.cloud-node { padding: 21px; border: 1px solid #acd3c4; border-radius: 22px; background: var(--green-soft); }
.cloud-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lock { width: 38px; height: 32px; position: relative; border-radius: 8px; background: #337460; }
.lock::before { content: ""; position: absolute; left: 9px; top: -15px; width: 16px; height: 18px; border: 3px solid #337460; border-bottom: 0; border-radius: 10px 10px 0 0; }
.desktop { margin-top: 18px; overflow: hidden; border: 1px solid #cfdfd8; border-radius: 14px; background: white; }
.desktop-bar { display: flex; gap: 5px; padding: 10px 13px; border-bottom: 1px solid #e3ebe7; background: #f3f6f5; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #eca594; }
.dot:nth-child(2) { background: #e6c57b; }
.dot:nth-child(3) { background: #8ac8b4; }
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px; }
.agent { padding: 14px; border-radius: 11px; background: #fbf0e9; }
.agent:last-child { background: #edf1fa; }
.agent strong { display: block; font-size: 14px; }
.agent span { color: #697487; font-size: 11px; }

.section { padding: 92px 0; }
.section.white { border-block: 1px solid var(--line); background: white; }
.section-heading { max-width: 710px; margin-bottom: 44px; }
.section-heading h2, .legal-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -2px; }
.section-heading p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { min-height: 235px; padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.feature-number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 40px; border-radius: 10px; color: white; background: var(--blue); font-size: 13px; font-weight: 800; }
.feature h3 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.trust-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.trust-card { padding: 36px; border-radius: 26px; color: white; background: #0c2855; }
.trust-card.soft { color: #174b3c; border: 1px solid #acd3c4; background: var(--green-soft); }
.trust-card h3 { max-width: 470px; margin: 0 0 16px; font-size: 30px; line-height: 1.2; letter-spacing: -1px; }
.trust-card p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.7; }
.trust-card.soft p { color: #487363; }

.legal-hero { padding: 74px 0 48px; }
.legal-hero p { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px; align-items: start; padding-bottom: 100px; }
.legal-aside { position: sticky; top: 104px; display: grid; gap: 7px; }
.legal-aside a { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; text-decoration: none; }
.legal-aside a:hover { color: var(--blue-bright); background: white; }
.legal-copy { padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 18px 48px rgba(16, 36, 66, .07); }
.legal-copy section + section { margin-top: 38px; padding-top: 38px; border-top: 1px solid #e7ecf2; }
.legal-copy h2 { margin: 0 0 13px; font-size: 21px; letter-spacing: -.35px; }
.legal-copy p, .legal-copy li { color: #46566d; font-size: 15px; line-height: 1.78; }
.legal-copy a { color: #2556bc; }
.support-card { max-width: 730px; padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.support-card h2 { margin-top: 0; font-size: 28px; }
.support-card p { color: var(--muted); line-height: 1.7; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--line); background: white; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.copyright { margin: 0; color: #78869a; font-size: 13px; }

@media (max-width: 860px) {
  .hero { padding-top: 64px; }
  .hero-grid, .trust-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 52px; }
  .architecture { width: min(100%, 560px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .feature-number { margin-bottom: 24px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-aside { position: static; display: flex; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1140px); }
  .nav { min-height: 64px; }
  .nav-links a:not(.nav-pill) { display: none; }
  .hero { padding: 48px 0 64px; }
  h1 { font-size: 46px; letter-spacing: -2.5px; }
  .hero-copy { font-size: 17px; }
  .architecture { padding: 14px; border-radius: 24px; }
  .arch-node, .cloud-node { padding: 15px; }
  .connector { margin-left: 33px; }
  .agent-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .trust-card, .support-card, .legal-copy { padding: 25px; border-radius: 21px; }
  .legal-hero { padding: 52px 0 32px; }
  .legal-layout { padding-bottom: 70px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
