/* Shared styles for Quantistic Systems sub-pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --text-dim: rgba(255,255,255,0.5);
  --accent: #ffffff;
  --border: rgba(255,255,255,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 88px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-logo-wrap { display: flex; align-items: center; height: 56px; }
.nav-logo-wrap img { height: 56px; width: auto; display: block; }

.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #0a0a0a; }
.nav-cta {
  background: #0a0a0a;
  color: #fff;
  padding: 9px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #262626; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.25); }

/* ── PAGE HEADER ── */
.page-hero {
  padding: 168px 6% 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.04), transparent 60%),
    var(--bg);
}
.page-hero .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

/* ── CONTENT ── */
main {
  flex: 1;
  padding: 72px 6% 120px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
main h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  color: var(--text);
}
main h2:first-child { margin-top: 0; }
main h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}
main p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}
main ul, main ol { color: var(--text-muted); margin: 0 0 16px 22px; font-size: 15px; }
main li { margin-bottom: 8px; }
main a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
main a:hover { color: var(--text-muted); }
main strong { color: var(--text); font-weight: 600; }
main .last-updated {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 32px;
  font-style: italic;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { margin-top: 0; }
.contact-info .item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info .item:last-child { border-bottom: none; }
.contact-info .label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.contact-info .value {
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}
.contact-info .value a { color: var(--text); text-decoration: none; }
.contact-info .value a:hover { color: var(--text-muted); text-decoration: underline; }

.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.contact-form .field { margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.contact-form button:hover { background: #e8e8e8; transform: translateY(-1px); }

/* ── FAQ (support) ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.faq-a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  padding: 40px 6% 60px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  opacity: 0.6;
}
.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.85); }
.footer-socials { display: flex; gap: 10px; }
.soc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: background .2s;
}
.soc-btn:hover { background: rgba(255,255,255,.12); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  nav { padding: 0 5%; height: 72px; }
  .nav-logo-wrap, .nav-logo-wrap img { height: 44px; }
  .nav-links { display: none; }
  .page-hero { padding: 130px 5% 56px; }
  main { padding: 56px 5% 96px; }
}
