/* Pacific AI Labs — shared styles
   Palette: deep pacific navy + electric blue/cyan network accents on white
   Type: Fraunces (display) / IBM Plex Sans (body, UI) / IBM Plex Mono (labels, data)
*/

:root {
  --navy: #0B1E3D;
  --navy-2: #12294f;
  --blue: #2F6FED;
  --cyan: #38C6F4;
  --white: #FFFFFF;
  --mist: #F4F7FB;
  --mist-2: #EAEFF7;
  --slate: #47536A;
  --slate-soft: #7381A0;
  --line: #E1E7F2;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }

p { color: var(--slate); margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--slate);
  max-width: 46ch;
}

/* ---------- Nav ---------- */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}

.nav-links a {
  color: var(--navy);
  font-weight: 500;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-cta {
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy) !important;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 16px 28px 24px;
    border-bottom: 1px solid var(--line); display: none; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line);
    background: none; cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
}

/* ---------- Wave-to-network divider (signature element) ---------- */

.wave-divider {
  display: block;
  width: 100%;
  height: auto;
}
.wave-divider path.wave { fill: none; stroke: var(--navy); stroke-width: 1.4; opacity: 0.55; }
.wave-divider path.wave-2 { fill: none; stroke: var(--blue); stroke-width: 1.2; opacity: 0.35; }
.wave-divider .edge { stroke: var(--cyan); stroke-width: 1; opacity: 0.55; }
.wave-divider .node { fill: var(--blue); }
.wave-divider .node.small { fill: var(--cyan); }

.divider-flip .wave-divider { transform: scaleX(-1); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { margin: 18px 0 22px; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: var(--white) !important;
  text-decoration: none;
}
.btn-primary:hover { background: var(--navy-2); text-decoration: none; }

.btn-ghost {
  border-color: var(--line);
  color: var(--navy) !important;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--navy); text-decoration: none; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
}

.hero-art svg,
.hero-art img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin: 0 auto; order: -1; }
}

/* ---------- Sections ---------- */

section { padding: 78px 0; }
.section-alt { background: var(--mist); }

.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head h2 { margin-top: 12px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
}
.section-alt .card { background: var(--white); }

.card .num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--slate-soft);
  letter-spacing: 0.08em;
}

.card h3 { margin: 14px 0 10px; }
.card p { font-size: 14.75px; }

.icon-dot {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--mist-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-dot svg { width: 20px; height: 20px; }

/* ---------- Product spotlight ---------- */

.product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--navy);
  border-radius: 20px;
  padding: 54px;
  color: var(--white);
}

.product h2, .product p { color: var(--white); }
.product p { color: #C9D5EA; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
}

.product-features {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  color: #DCE5F5;
}
.product-features li { display: flex; gap: 10px; }
.product-features li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.product-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: linear-gradient(160deg, #142A52, #0B1E3D);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-visual svg { width: 62%; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding: 36px 26px; }
  .product-visual { order: -1; max-width: 260px; margin: 0 auto; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.about-stats {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 4px;
}
.stat-value { font-family: var(--display); font-size: 1.15rem; color: var(--navy); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA / contact strip ---------- */

.cta-strip {
  text-align: center;
  padding: 90px 0 70px;
}
.cta-strip h2 { max-width: 640px; margin: 14px auto 30px; }
.cta-strip .eyebrow { display: block; margin-bottom: 4px; }
.cta-strip .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #B9C6E0;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid img { height: 30px; margin-bottom: 14px; }
.footer-grid p { color: #A8B6D6; font-size: 14px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8CA0C9;
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #D6DEEE; font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: #7C8CB2;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Simple content pages (Support / Privacy) ---------- */

.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { display: block; margin-bottom: 10px; }
.page-header p { margin-top: 14px; max-width: 60ch; }

.content {
  padding: 56px 0 90px;
}
.content-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
.toc {
  position: sticky;
  top: 30px;
  align-self: start;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.toc a { color: var(--slate); }
.toc a:hover { color: var(--blue); }

.prose h2 {
  font-size: 1.35rem;
  margin: 46px 0 14px;
  scroll-margin-top: 24px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--slate); font-size: 15.5px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--navy); }

.note-box {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--slate);
  margin: 28px 0;
}
.note-box strong { color: var(--navy); }

.contact-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  gap: 18px;
}
.contact-card .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-card .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); }
.contact-card .value { font-size: 15.5px; color: var(--navy); font-weight: 500; }

@media (max-width: 780px) {
  .content-grid { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
}
