/* PRAGMA AI LTD — site styles. Self-contained, no external requests. */

:root {
  --bg: #FBFAF7;
  --bg-2: #F4F2EC;
  --surface: #FFFFFF;
  --ink: #171512;
  --ink-soft: #3B382F;
  --muted: #74705F;
  --line: rgba(23, 21, 18, 0.10);
  --line-soft: rgba(23, 21, 18, 0.06);
  --accent: #4B39D6;
  --accent-2: #7A63FF;
  --accent-ink: #2A1E86;
  --glow: rgba(107, 84, 255, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  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 28px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px;
  text-transform: uppercase;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -8px var(--accent);
}
.brand .mark svg { width: 17px; height: 17px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.nav-links a { color: var(--ink-soft); transition: color .18s ease; }
.nav-links a:hover { color: var(--accent-ink); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg) !important;
  font-weight: 500;
  font-size: 14px !important;
  letter-spacing: 0.01em;
  transition: transform .18s ease, background .18s ease;
}
.nav-cta:hover { background: var(--accent-ink); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 640px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--glow);
}
h1.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 640;
  margin: 0 0 24px;
  max-width: 15ch;
}
h1.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 12px 30px -14px rgba(23,21,18,.7);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.hero-meta {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-2);
}

/* ---------- Section shells ---------- */
.section { padding: 88px 0; }
.section-tag {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 620;
  margin: 0 0 18px;
  max-width: 20ch;
}
.section-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.section-head { margin-bottom: 52px; }

/* ---------- Products ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  opacity: 0;
  transition: opacity .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(23,21,18,.4);
  border-color: transparent;
}
.card:hover::after { opacity: 1; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 620;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}
.card-badge .swatch {
  width: 12px; height: 12px; border-radius: 4px;
  background: linear-gradient(140deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
}
.card-status {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 999px;
}
.card-status.new { color: var(--accent-ink); border-color: var(--accent); }
.card p {
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.58;
  flex: 1;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tag {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 4px 11px;
  letter-spacing: 0.01em;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--accent-ink);
  align-self: flex-start;
}
.card-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.card:hover .card-link svg { transform: translate(2px, -2px); }

/* ---------- Company / About ---------- */
.about { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.about-copy p + p { margin-top: 18px; }
.facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 30px;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--muted); font-size: 14px; letter-spacing: 0.01em; }
.fact dd { margin: 0; text-align: right; font-weight: 500; font-size: 14.5px; color: var(--ink); }

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 26px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  content: "";
  position: absolute; right: -140px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122,99,255,.5), transparent 70%);
}
.contact-band .inner { position: relative; z-index: 1; max-width: 60ch; }
.contact-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 620;
}
.contact-band p { color: rgba(251,250,247,.75); font-size: 1.1rem; margin: 0 0 30px; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); background: #fff; }

/* ---------- Footer ---------- */
.footer {
  padding: 66px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer .brand { margin-bottom: 16px; }
.footer-blurb { color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.footer h4 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 4px 0 16px; font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--ink-soft); font-size: 14.5px; transition: color .18s ease; }
.footer ul a:hover { color: var(--accent-ink); }
.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 40px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 640;
}
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.legal h2 {
  font-size: 1.28rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; line-height: 1.72; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .backlink {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent-ink); font-weight: 500; font-size: 15px;
  margin-bottom: 34px; text-decoration: none;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 24px 0;
}
.legal-card p { margin: 6px 0; font-size: 15px; }

/* ---------- Entrance animation ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .14s; }
.d3 { animation-delay: .23s; }
.d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .products { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .contact-band { padding: 44px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .fact { flex-direction: column; gap: 4px; }
  .fact dd { text-align: left; }
}
