/* PQT Health — Shared Styles */
:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #1a1a1a;
  --border: #262626;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #e11d2a;
  --accent-hover: #b8161f;
  --max: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

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

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

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 38px; height: 38px; }
.nav-logo span { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: .3px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 24px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 100%);
}
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SECTION ===== */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== PARTNER MARQUEE ===== */
.partners {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.partners h3 {
  text-align: center;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 40px;
}
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 35s linear infinite;
  width: max-content;
}
.marquee-track img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1) opacity(.7);
  transition: filter .2s;
}
.marquee-track img:hover { filter: brightness(0) invert(1) opacity(1); }
.marquee-track img.has-bg {
  filter: none;
  mix-blend-mode: lighten;
  opacity: .85;
}
.marquee-track img.has-bg:hover { opacity: 1; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== FEATURE ROWS ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse > div:first-child { order: 2; }
.feature-row img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.feature-row h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.feature-row .eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-row p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== CARD GRID ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: .98rem; }

/* ===== SECURITY GRID ===== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.sec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.sec-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
}
.sec-item h4 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.sec-item p { color: var(--text-muted); font-size: .98rem; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--bg-card);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  transition: max-height .3s ease, padding .25s ease;
  padding: 0 28px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 28px 22px;
}

/* ===== CTA STRIP ===== */
.cta-strip {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(225, 29, 42, 0.18), transparent 60%),
    var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip .eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.cta-strip h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand img { width: 130px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: .95rem; max-width: 320px; }
.footer-social { margin-top: 20px; }
.footer-social a {
  display: inline-flex;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.footer-social a:hover { border-color: var(--accent); background: rgba(225,29,42,0.1); }
.footer-social img { width: 18px; height: 18px; }
.footer h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 700;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-muted); font-size: .95rem; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, #2a0a0d, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 4px;
}
.news-card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(225,29,42,0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 14px;
  align-self: flex-start;
}
.news-card h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 14px; flex: 1; }
.news-card a.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .5px;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding: 36px 24px;
  transition: transform .25s, border-color .25s;
}
.team-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.team-card img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  border: 3px solid var(--border);
}
.team-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.team-card .role { color: var(--accent); font-size: .9rem; margin-bottom: 16px; font-weight: 600; }
.team-card .ln { display: inline-block; padding: 8px; border: 1px solid var(--border); border-radius: 50%; }
.team-card .ln img { width: 18px; height: 18px; border: none; padding: 0; margin: 0; border-radius: 0; }

/* ===== ABOUT ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
}
.mission-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}
.mission-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info ul { list-style: none; margin-top: 30px; }
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-info .icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(225,29,42,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.contact-info .value { color: var(--text); font-weight: 500; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== PAGE HEADER (small hero) ===== */
.page-hero {
  position: relative;
  padding: 140px 24px 100px;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0; z-index: -1;
  background-size: cover;
  background-position: center;
}
.page-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, var(--bg) 100%);
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ===== RESPONSIVE ===== */
/* ===== HELPERS ===== */
.nav-cta { padding: 10px 22px; }
.hero-bg-default {
  background-image: url('https://cdn.prod.website-files.com/68ea7c0a6f9457d9c0c9de25/68ea7c0c6f9457d9c0c9dee4_hero%20bg.webp');
}
.section-elev {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
}
.dashboard-preview { padding-top: 0; }
.dashboard-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
/* ===== TASK HERO (dyvine.html — image background + text overlay) ===== */
.task-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 100px 24px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.task-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../imgs/tasks/kanban.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.task-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.65) 60%, rgba(10,10,10,0.85) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(225, 29, 42, 0.15), transparent 50%);
}
.task-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.task-hero-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.task-hero-content p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .task-hero { min-height: 60vh; padding: 70px 20px; }
}

.nav-eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.article p code,
.feature-row p code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .section-elev { padding: 70px 0; }
  .dashboard-img { margin-top: -40px; }
}

/* ===== ARTICLE / POST ===== */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.article .meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.article .meta .tag { margin: 0; }
.article h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
  letter-spacing: -.01em;
}
.article .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.article p { margin-bottom: 22px; color: #d4d4d4; font-size: 1.02rem; }
.article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 18px;
  letter-spacing: -.01em;
}
.article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 30px 0 14px;
}
.article ul, .article ol {
  margin: 0 0 24px 22px;
  color: #d4d4d4;
}
.article li { margin-bottom: 10px; }
.article blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 30px 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
}
.article blockquote cite {
  display: block;
  margin-top: 14px;
  font-size: .9rem;
  font-style: normal;
  color: var(--text-muted);
}
.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.article .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.article .back-link:hover { color: var(--text); }
.article-hero {
  height: 280px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.2), rgba(10,10,10,0.7));
}

@media (max-width: 900px) {
  .feature-row,
  .cards,
  .news-grid,
  .team-grid,
  .security-grid,
  .mission-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-row { gap: 30px; margin-bottom: 80px; }
  .feature-row.reverse > div:first-child { order: 0; }
  .cards { gap: 20px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    padding: 20px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }

  section { padding: 70px 0; }
  .footer { padding: 50px 0 24px; }
}

@media (max-width: 560px) {
  .hero { min-height: 70vh; padding: 60px 20px; }
  .container { padding: 0 18px; }
  .marquee-track img { height: 36px; }
  .marquee-track { gap: 50px; }
  .card { padding: 24px; }
  .contact-form { padding: 28px 22px; }
}
