/* Quintessence Systems - company website */
:root {
  --bg: #0b0f17;
  --bg-alt: #111725;
  --surface: #161d2e;
  --border: #243049;
  --text: #e7ecf5;
  --muted: #9aa6bd;
  --accent: #5ad1c7;
  --accent-strong: #2fb5aa;
  --gold: #c99a5b;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 15, 23, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #062421; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-gold { background: var(--gold); color: #1d1206; }
.btn-gold:hover { background: #b5874a; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }

.hero { padding: 120px 0 104px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(90, 209, 199, .16), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(90, 209, 199, .12); color: var(--accent);
}
.card .icon svg { width: 22px; height: 22px; }

/* Product */
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.product-visual {
  background: radial-gradient(circle at 50% 40%, #2a2216 0%, #12100c 75%);
  display: grid; place-items: center; padding: 48px 32px; min-height: 320px;
}
.product-visual img { width: 100%; max-width: 360px; height: auto; }
.product-body { padding: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li {
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.facts { list-style: none; padding: 0; margin: 0 0 8px; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.facts li:last-child { border-bottom: 0; }
.facts strong { min-width: 120px; color: var(--text); font-weight: 600; }
.facts span { color: var(--muted); }
.product-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: .92rem; }

/* Company details */
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.details div { padding: 22px 26px; background: var(--surface); border-bottom: 1px solid var(--border); }
.details div:nth-child(odd) { border-right: 1px solid var(--border); }
.details dt { font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.details dd { margin: 0; font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--text); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.copyright { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .85rem; }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal p, .legal li { color: #c9d1e0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .product, .details, .footer-grid { grid-template-columns: 1fr; }
  .details div:nth-child(odd) { border-right: 0; }
  .product-body { padding: 28px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  section { padding: 72px 0; }
  .hero { padding: 84px 0 72px; }
  .facts li { flex-direction: column; gap: 2px; }
}
