/* Quantum Singularity Nexus Ltd — site styles */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7fb;
  --color-text: #1a1a2e;
  --color-text-muted: #52526b;
  --color-accent: #4338ca;
  --color-accent-dark: #312a94;
  --color-border: #e4e4ef;
  --color-navy: #020619;
  --color-navy-border: rgba(255, 255, 255, 0.1);
  --color-navy-text: #e7ecf5;
  --color-navy-text-muted: #96a1b8;
  --color-navy-accent: #38bdf8;
  --max-width: 1080px;
  --radius: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

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

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.7rem;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--color-navy-border);
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-navy-text);
  letter-spacing: -0.01em;
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__logo-icon {
  height: 32px;
  width: 32px;
  display: block;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-navy-text);
  padding: 4px 8px;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--color-navy-text);
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--color-navy-accent);
  text-decoration: none;
}

.nav__links a[aria-current="page"] {
  color: var(--color-navy-accent);
}

/* Buttons */

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero__positioning {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 12px;
}

.hero__supporting {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--color-text-muted);
}

.status-line {
  display: inline-block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* Sections */

.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Services */

.service {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.service__fit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.service__fit strong {
  color: var(--color-text);
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  color: var(--color-accent);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: 12px 0 0 20px;
  color: var(--color-text-muted);
}

/* CTA block */

.cta-block {
  text-align: center;
  padding: 56px 0;
}

.cta-block h2 {
  margin-bottom: 8px;
}

.cta-block p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-details h3 {
  margin-top: 24px;
}

.contact-details h3:first-child {
  margin-top: 0;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-navy-border);
  background: var(--color-navy);
  padding: 48px 0;
  margin-top: 40px;
}

.site-footer p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--color-navy-text-muted);
}

.site-footer strong {
  color: var(--color-navy-text);
}

.site-footer a {
  color: var(--color-navy-text-muted);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--color-navy-accent);
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
}

/* Responsive */

@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy);
    border-bottom: 1px solid var(--color-navy-border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    display: block;
    padding: 12px 0;
  }

  .nav {
    position: relative;
  }

  h1 {
    font-size: 1.9rem;
  }
}
