/*
 * Panon Valley — corporate site styles.
 *
 * Plain CSS, no build step, no third-party fonts or scripts. System font stack
 * only. Simple, credible software-company look: white background, deep navy
 * identity, restrained blue accent, subtle borders. Self-hosted assets only, so
 * the site works under a strict Content-Security-Policy.
 */

/* ---------------------------------------------------------------- Tokens -- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";

  --navy: #0d1f3c;
  --navy-700: #16386b;
  --ink: #17233b;
  --text: #2b3a52;
  --muted: #5c6b83;
  --faint: #8a97ab;
  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2f9;
  --border: #e5eaf2;
  --border-strong: #cfd8e6;
  --accent: #1c4f9c;
  --accent-hover: #143c78;
  --focus: #2563eb;

  --fs-eyebrow: 0.78rem;
  --fs-h2: clamp(1.6rem, 1.25rem + 1.4vw, 2.1rem);
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1rem, 1.02rem + 0.35vw, 1.2rem);
  --fs-small: 0.9rem;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 31, 60, 0.06);
  --shadow: 0 18px 40px -22px rgba(13, 31, 60, 0.4);
  --container: 1200px;
  --measure: 65ch;
}

/* ------------------------------------------------------------- Base ------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hover);
}
strong {
  color: var(--ink);
  font-weight: 650;
}
address {
  font-style: normal;
}
img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 5px;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}

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

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: var(--measure);
}

/* --------------------------------------------------------- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.075rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--navy);
}
.brand img {
  display: block;
  width: 26px;
  height: 26px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
}
.site-nav a:hover {
  color: var(--navy);
  background: var(--surface-2);
}

/* ---------------------------------------------------------------- Buttons - */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--muted);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- Hero ---- */
.hero {
  padding: clamp(2.25rem, 1.5rem + 2vw, 3.25rem) 0
    clamp(2.5rem, 1.5rem + 2vw, 3.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}
.hero-copy {
  max-width: 32rem;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 1.55rem + 2.6vw, 3.75rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.hero-copy p {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.55;
  max-width: 40ch;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Real Frobly visual in a restrained browser frame */
.hero-media {
  margin: 0;
}
.browser-frame {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #0d1117;
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  background: #eef1f6;
  border-bottom: 1px solid var(--border);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e3;
}
.browser-url {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.7rem;
}
.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.product-id {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.9rem 0 0;
}
.product-id-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.product-id-desc {
  color: var(--muted);
  font-size: 0.95rem;
}
.product-id-note {
  color: var(--faint);
  font-size: 0.82rem;
}

/* ---------------------------------------------- Compact company/contact --- */
.company-row {
  border-top: 1px solid var(--border);
}
.company-row-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding: clamp(1.4rem, 1rem + 1.4vw, 1.9rem) 0;
}
.company-row-lead {
  margin: 0;
  max-width: 48ch;
  color: var(--text);
  font-size: 1.05rem;
}
.company-row-contact {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.company-row-q {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.company-row-contact a[href^="mailto"] {
  font-weight: 600;
}
.company-row-contact .link-arrow {
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

/* ---------------------------------------------------- Contact page (dl) --- */
.section {
  padding: clamp(2.5rem, 2rem + 2.5vw, 3.75rem) 0;
}
.section-head {
  max-width: var(--measure);
  margin-bottom: 1.6rem;
}
.section-head h1 {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
}
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 820px) {
  .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
}
.split h2 {
  font-size: 1.35rem;
}
.contact-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0;
}
@media (min-width: 620px) {
  .contact-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.contact-dl > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.contact-dl dt {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
}
.contact-dl dd {
  margin: 0;
  font-size: 1.02rem;
}
.contact-dl dd a {
  font-weight: 600;
  word-break: break-word;
}
.address-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  line-height: 1.55;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
}
.callout p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------- Legal / prose pages -- */
.prose {
  max-width: 72ch;
}
.prose h1 {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.6rem);
  font-weight: 800;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
}
.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
}
.prose ul {
  padding-left: 1.3rem;
}
.prose li {
  margin: 0.4rem 0;
}
.doc-meta {
  color: var(--muted);
  font-size: var(--fs-small);
  margin: 0 0 1.5rem;
}
.prose .address-block {
  margin-top: 1rem;
}

/* --------------------------------------------------------------- Footer --- */
.site-footer {
  background: var(--navy);
  color: #b9c6db;
  padding: 2.25rem 0 1.4rem;
  margin-top: 1rem;
}
.site-footer a {
  color: #d7e2f2;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-top {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1.7fr 0.65fr 0.65fr;
  }
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand .footer-tagline {
  color: #9db0cc;
  max-width: 32ch;
  margin: 0.7rem 0;
  font-size: var(--fs-small);
}
.footer-legal {
  color: #9db0cc;
  font-size: var(--fs-small);
  line-height: 1.55;
}
.footer-col h2 {
  color: #fff;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin: 0.35rem 0;
  font-size: var(--fs-small);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  color: #8fa2bf;
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------- Utility -- */
.mb-0 {
  margin-bottom: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-nav {
    gap: 0.1rem;
  }
  .site-nav a {
    padding: 0.4rem 0.6rem;
  }
}

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