/* Rare-Stone Development — HardwareGuard site
   Palette taken from the Rare-Stone gem logo (black, amethyst, gold) and the app's own accent colours.
   System fonts only: the site makes no requests to third parties. */

:root {
  --bg: #0a0a0f;
  --bg-raised: #101018;
  --surface: #15151f;
  --surface-2: #1b1b28;
  --border: #262636;
  --border-strong: #34344a;
  --text: #ececf4;
  --muted: #a0a0b8;
  --faint: #6f6f88;
  --purple: #a78bfa;
  --purple-deep: #7c5cf0;
  --gold: #d9b15c;
  --gold-soft: rgba(217, 177, 92, 0.14);
  --teal: #4fd1c5;
  --green: #5fd38d;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(124, 92, 240, 0.18), transparent 60%),
    radial-gradient(900px 480px at 8% 4%, rgba(217, 177, 92, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 240, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(124, 92, 240, 0.9); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--purple); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn-disabled, .btn-disabled:hover {
  background: var(--surface-2); color: var(--muted); border-color: var(--border-strong);
  box-shadow: none; transform: none; cursor: default; user-select: none;
}
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(217, 177, 92, 0.35);
  padding: 5px 12px; border-radius: 999px; margin-top: 14px;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 56px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--purple) 10%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin: 22px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.chips li {
  font-size: 0.86rem; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-raised);
}
.chips li::before { content: "\2713"; color: var(--green); margin-right: 8px; font-weight: 700; }

/* App window frame */
.window {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.window img { width: 100%; }
.hero-shot { position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background: radial-gradient(closest-side, rgba(124, 92, 240, 0.28), transparent 70%);
}
.hero-shield { width: 92px; height: 92px; margin-bottom: 22px; filter: drop-shadow(0 12px 28px rgba(217, 177, 92, 0.25)); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.band { background: var(--bg-raised); border-block: 1px solid var(--border); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 18px; font-size: 1.3rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: -1; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--muted); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(95, 211, 141, 0.14); color: var(--green);
  font-size: 0.75rem; font-weight: 800; display: grid; place-items: center;
}

.overlay-stage {
  background:
    linear-gradient(135deg, rgba(124, 92, 240, 0.16), rgba(217, 177, 92, 0.1)),
    repeating-linear-gradient(45deg, #12121a 0 14px, #0f0f16 14px 28px);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 44px 24px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center;
  box-shadow: var(--shadow);
}
.overlay-stage img { width: min(212px, 100%); height: auto; border-radius: 14px; filter: drop-shadow(0 16px 30px rgba(0,0,0,0.6)); }
.caption { font-size: 0.85rem; color: var(--faint); margin-top: 12px; text-align: center; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.gallery figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
.gallery figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 12px; }
.swatches { display: flex; justify-content: center; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.swatches img { max-width: 460px; }

/* Buy card */
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.buy-main { padding: 44px; }
.buy-side { padding: 44px; background: linear-gradient(160deg, rgba(124, 92, 240, 0.16), rgba(217, 177, 92, 0.08)); border-left: 1px solid var(--border); }
.price { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 6px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.buy .btn { width: 100%; margin-top: 24px; padding: 16px 24px; font-size: 1.05rem; }
.fineprint { font-size: 0.84rem; color: var(--faint); margin-top: 14px; }
.buy-side h3 { margin-bottom: 14px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; }
details[open] { border-color: var(--border-strong); }
summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 52px 0 40px; margin-top: 40px; background: var(--bg-raised); }
.foot { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; gap: 16px; align-items: center; max-width: 380px; }
.foot-brand img { width: 56px; height: 56px; object-fit: contain; }
.foot-brand p { margin: 0; font-size: 0.9rem; color: var(--faint); line-height: 1.5; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot nav a { color: var(--muted); font-size: 0.93rem; }
.legal-line { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.83rem; color: var(--faint); }

/* Legal pages */
.doc { padding: 64px 0 40px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .note {
  background: var(--gold-soft); border: 1px solid rgba(217, 177, 92, 0.35); color: var(--text);
  border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; font-size: 0.97rem;
}

/* Contact page */
.contact-box {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 32px; margin: 8px 0 36px; box-shadow: var(--shadow);
}
.contact-label { display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.contact-address { display: block; font-size: clamp(1.1rem, 4.2vw, 1.6rem); font-weight: 700; color: var(--text); word-break: break-all; user-select: all; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact-status { margin: 14px 0 0; min-height: 1.4em; font-size: 0.92rem; color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-grid, .split, .buy { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-grid { gap: 44px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .buy-side { border-left: 0; border-top: 1px solid var(--border); }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .buy-main, .buy-side { padding: 30px 24px; }
  .brand span small { display: none; }
  .hero-shield { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
