/* quantumridgesystems.com — the public page.
   The group's house style (frontend/src/index.css): Inter, grey canvas,
   white sheet, the logo's cobalt as the one accent. Static CSS; no build. */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --canvas: #d5d8de;
  --sheet: #ffffff;
  --surface: #eff1f4;
  --ink: #18202b;
  --ink-secondary: #48535f;
  --ink-muted: #838c98;
  --accent: #0a3f9e;
  --accent-strong: #08307d;
  --accent-soft: #e7eefa;
  --border: #e4e6ea;
  --border-strong: #d2d6dd;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(20, 30, 45, 0.06), 0 1px 2px rgba(20, 30, 45, 0.04);
  font-family: var(--font-sans);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  padding: 24px 16px 40px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

.sheet {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--sheet);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header: the logo on its own plate, like the suite's rail. */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 40px;
  border-bottom: 1px solid var(--border);
}
.masthead img { height: 56px; width: auto; display: block; }
.masthead .wordmark { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }

/* Hero */
.hero {
  padding: 64px 40px 48px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
  max-width: 14ch;
}
.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 22px;
  background: var(--accent);
  border-radius: 2px;
}
.hero p {
  margin: 0;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-secondary);
  max-width: 60ch;
}

/* Products */
.products {
  padding: 40px 40px 8px;
}
.products h2 {
  margin: 0 0 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
}
.card.flagship { background: var(--accent-soft); border-color: #c9d8f3; }
.card h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.card .tag { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 15px; }
.card p { margin: 0; color: var(--ink-secondary); font-size: 15.5px; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; }
.card .more::after { content: " →"; }

/* Custom engineering + contact */
.engineering {
  margin: 32px 40px 0;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.engineering h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.engineering p { margin: 0; color: var(--ink-secondary); }
.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.contact .label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin: 0 0 8px; }
.contact a { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }

footer {
  padding: 18px 40px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}
footer p { margin: 0; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .engineering { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { padding: 12px 12px 28px; }
  .masthead, .hero, .products, footer { padding-left: 22px; padding-right: 22px; }
  .engineering { margin-left: 22px; margin-right: 22px; }
  .hero { padding-top: 44px; padding-bottom: 36px; }
  .masthead .wordmark { display: none; }
  .contact a { font-size: 15px; }
}
