/* Npcat – corporate site
   Minimal, dependency-free. One stylesheet for the homepage and legal pages. */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8f4;
  --ink: #101109;
  --ink-2: #3a3d33;
  --muted: #6d7064;
  --line: #e8e9e1;
  --line-2: #f0f1ea;
  --accent: #c4fe33;          /* Npcat lime */
  --accent-soft: #eafbb8;
  --accent-ink: #171a10;
  --orange: #f5872f;          /* from the logo */
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  letter-spacing: -0.01em;
  font-size: 1.06rem;
}
.brand img { width: 28px; height: 28px; }
.brand .brand-name { font-weight: 650; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #26281c; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- Shared section bits ---------- */

.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 650;
  line-height: 1.12;
}
.section-lead {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.hero {
  position: relative;
  text-align: center;
  padding: 136px 0 124px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 620px;
  max-width: 150vw;
  background: radial-gradient(ellipse at center,
    rgba(196, 254, 51, 0.50) 0%,
    rgba(196, 254, 51, 0.18) 36%,
    rgba(196, 254, 51, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-mark { width: 62px; height: 62px; margin: 0 auto 32px; }
.nowrap { white-space: nowrap; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 680;
  line-height: 1.07;
  letter-spacing: -0.022em;
  max-width: 960px;
  margin: 6px auto 0;
  text-wrap: balance;
}
.hero .lead {
  max-width: 660px;
  margin: 28px auto 0;
  color: var(--ink-2);
  font-size: 1.17rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 42px;
}

/* ---------- Focus cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  background: var(--bg);
}
.section-alt .card { background: #fff; }
.card h3 {
  font-size: 1.12rem;
  font-weight: 620;
  margin-bottom: 8px;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-top: 44px;
}
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-soft {
  background: var(--bg-alt);
  border-style: dashed;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 11px 4px 9px;
  align-self: flex-start;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill .dot.live { box-shadow: 0 0 0 3px var(--accent-soft); }
.pill .dot.dev { background: #cfd2c6; }

.product-name {
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 18px 0 2px;
}
.product-tag { color: var(--muted); font-size: 0.95rem; margin: 0; }
.product p.desc { color: var(--ink-2); margin: 16px 0 0; font-size: 1rem; }
.product .spacer { flex: 1; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-weight: 560;
  font-size: 0.98rem;
  align-self: flex-start;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.15s ease;
}
.product-link:hover { gap: 11px; }
.product-soft .product-name { color: var(--ink-2); }

/* ---------- Contact ---------- */

.contact-band {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(196, 254, 51, 0.12) 0%, rgba(196, 254, 51, 0) 55%),
    #fff;
}
.contact-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 660; }
.contact-band p { margin: 12px 0 0; color: var(--muted); max-width: 42ch; }
.contact-routes { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-route .label {
  font-size: 0.76rem; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.contact-route a { font-weight: 560; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  background: var(--bg-alt);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .brand { font-size: 1.1rem; }
.footer-brand p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
}
.footer-col h4 {
  margin: 4px 0 14px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink); }

.footer-legal {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal .addr { color: var(--muted); font-size: 0.86rem; }
.footer-legal .addr strong { color: var(--ink-2); font-weight: 600; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { border-color: var(--ink); color: var(--ink); }
.footer-social svg { width: 16px; height: 16px; }
.copyright {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- Legal / prose pages ---------- */

.page-head {
  padding: 72px 0 30px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 680; }
.page-head .updated { margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; }

.prose { padding: 48px 0 80px; max-width: 760px; }
.prose h2 {
  font-size: 1.28rem; font-weight: 640; margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; font-weight: 620; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1rem; line-height: 1.68; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose a { border-bottom: 1px solid var(--accent); }
.prose strong { color: var(--ink); font-weight: 620; }
.prose .lead { font-size: 1.08rem; color: var(--ink-2); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .products { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .nav-links { display: none; }
  .nav-cta { display: inline-flex; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 72px; }
  .contact-band { padding: 34px 26px; flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

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