/* ═══════════════════════════════════════
   WUPAQ — Shared Sub-Page Styles
   ═══════════════════════════════════════ */

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

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #d4d4d4;
  --gray-400: #9a9a9a;
  --gray-600: #555555;
  --gray-800: #222222;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo img { height: 32px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links {
  display: flex; align-items: center; gap: 2.4rem; list-style: none;
}
.nav-links a {
  color: var(--gray-400); text-decoration: none;
  font-size: .88rem; font-weight: 500; letter-spacing: .02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.btn-nav {
  background: var(--white); color: var(--black) !important;
  padding: .55rem 1.4rem; border-radius: 999px;
  font-weight: 700 !important; font-size: .84rem !important;
  transition: background .2s, transform .15s !important;
}
.btn-nav:hover { background: var(--gray-200) !important; transform: translateY(-1px); }

/* ── PAGE HERO ── */
.page-hero {
  padding: 10rem 4rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}
.page-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 1.2rem;
}
.page-title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.02;
  letter-spacing: -.04em; color: var(--white);
  margin-bottom: 1.5rem;
}
.page-sub {
  font-size: 1.1rem; color: var(--gray-400);
  line-height: 1.75; max-width: 540px;
}

/* ── CONTENT BLOCKS ── */
.page-content {
  position: relative; z-index: 1;
}

.content-block {
  padding: 5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.content-block.dark {
  background: rgba(255,255,255,0.025);
  max-width: 100%;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.content-block.dark > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.content-block.white {
  background: var(--white);
  color: var(--black);
  max-width: 100%;
}
.content-block.white > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.content-block.white h2,
.content-block.white h3 { color: var(--black); }
.content-block.white p { color: var(--gray-600); }

.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.content-text h2 {
  font-size: 1.8rem; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 1.2rem;
  color: var(--white);
}
.content-text p {
  font-size: .95rem; color: var(--gray-400);
  line-height: 1.8; margin-bottom: 1rem;
}
.content-text ul {
  list-style: none;
  margin: 1.5rem 0;
}
.content-text ul li {
  padding: .6rem 0;
  font-size: .95rem;
  color: var(--gray-400);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.content-text ul li::before {
  content: '→';
  color: var(--white);
  font-weight: 700;
}

.content-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2rem;
  border-radius: 2px;
}
.card-icon {
  width: 56px; height: 56px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.content-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: .8rem; color: var(--white);
}
.content-card p {
  font-size: .9rem; color: var(--gray-400); line-height: 1.7;
}

/* ── FEATURES ROW ── */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 1rem 0;
}
.feature-mini { padding: 1rem 0; }
.feat-num {
  font-size: 3.5rem; font-weight: 900;
  color: rgba(255,255,255,0.06);
  letter-spacing: -.04em; line-height: 1;
  margin-bottom: 1rem;
}
.feature-mini h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: .6rem;
}
.feature-mini p {
  font-size: .88rem; color: var(--gray-400); line-height: 1.7;
}

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 6rem 4rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; letter-spacing: -.03em;
  color: var(--white); margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1rem; color: var(--gray-400);
  line-height: 1.7; margin-bottom: 2rem;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white); color: var(--black);
  font-weight: 700; font-size: .95rem;
  padding: .85rem 2rem; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255,255,255,.12);
}

/* ── PROSE (for text-heavy pages) ── */
.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 4rem 6rem;
}
.prose h2 {
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -.02em; margin: 2.5rem 0 1rem;
  color: var(--white);
}
.prose h3 {
  font-size: 1.2rem; font-weight: 700;
  margin: 2rem 0 .8rem; color: var(--white);
}
.prose p {
  font-size: .95rem; color: var(--gray-400);
  line-height: 1.85; margin-bottom: 1rem;
}
.prose ul, .prose ol {
  margin: 1rem 0 1.5rem 1.2rem;
}
.prose li {
  font-size: .92rem; color: var(--gray-400);
  line-height: 1.8; margin-bottom: .4rem;
}
.prose a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { color: var(--white); }
.prose .updated {
  font-size: .8rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  display: block;
}

/* ── FAQ ── */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 0;
}
.faq-q {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); cursor: pointer;
  display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
  background: none; border: none; width: 100%;
  text-align: left; font-family: 'Inter', sans-serif;
  transition: color .2s;
}
.faq-q:hover { color: var(--gray-200); }
.faq-q span {
  flex-shrink: 0; width: 24px; height: 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 400;
  transition: transform .3s;
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 1rem;
}
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a p {
  font-size: .92rem; color: var(--gray-400); line-height: 1.8;
}

/* ── BLOG GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
}
.blog-card {
  background: var(--black);
  padding: 2.5rem 2rem;
  transition: background .3s;
  text-decoration: none;
  display: block;
}
.blog-card:hover { background: #111; }
.blog-date {
  font-size: .72rem; font-weight: 600;
  color: var(--gray-600); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .8rem;
}
.blog-card h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--white); margin-bottom: .8rem;
  line-height: 1.4;
}
.blog-card p {
  font-size: .88rem; color: var(--gray-400); line-height: 1.7;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-block {
  padding: 1rem 0;
}
.contact-info-block h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem;
}
.contact-info-block p {
  font-size: .92rem; color: var(--gray-400); line-height: 1.7;
}
.contact-info-block + .contact-info-block {
  margin-top: 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .78rem; font-weight: 600;
  color: var(--gray-400); letter-spacing: .06em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: .8rem 1rem;
  font-size: .92rem;
  font-family: 'Inter', sans-serif;
  border-radius: 2px;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.4);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  background: var(--white); color: var(--black);
  font-weight: 700; font-size: .92rem;
  padding: .8rem 2rem; border-radius: 999px;
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform .2s, background .2s;
  align-self: flex-start;
}
.btn-submit:hover {
  transform: translateY(-2px);
  background: var(--gray-200);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 4rem 4rem 2.5rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 28px; margin-bottom: 1rem; }
.footer-tagline {
  font-size: .88rem; color: var(--gray-600);
  line-height: 1.7; max-width: 260px;
}
.footer-col h4 {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-col ul li a {
  font-size: .88rem; color: var(--gray-600);
  text-decoration: none; transition: color .2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 1.8rem;
}
.footer-bottom p { font-size: .8rem; color: var(--gray-600); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .content-block { padding: 3rem 1.5rem; }
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .features-row { grid-template-columns: 1fr; gap: 2rem; }
  .cta-section { padding: 4rem 1.5rem; }
  .prose { padding: 2rem 1.5rem 4rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .8rem; text-align: center; }
}
