:root {
  /* Greystone palette: stone surfaces, graphite type, brushed steel, steel-blue accent */
  --bg: #f3f4f6;
  --bg-2: #e8ebef;
  --surface: #ffffff;
  --border: #dde1e6;
  --border-hi: #b7c0ca;
  --graphite: #1c2026;
  --graphite-2: #2a2f36;
  --text: #3b424b;
  --muted: #6b7480;
  --steel: #8b95a1;
  --accent: #3567b0;
  --accent-hi: #4a86d8;
  --accent-deep: #24508f;
  --accent-soft: rgba(74, 134, 216, 0.12);
  --radius: 18px;
  --maxw: 1180px;
  --display: "Montserrat", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(28, 32, 38, 0.04), 0 14px 34px -20px rgba(28, 32, 38, 0.28);
  --shadow-hi: 0 2px 4px rgba(28, 32, 38, 0.05), 0 26px 50px -24px rgba(28, 32, 38, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 650px at 80% -10%, rgba(74, 134, 216, 0.12), transparent 60%),
    radial-gradient(900px 600px at -5% 35%, rgba(139, 149, 161, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(28, 32, 38, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 32, 38, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

/* ---------- type helpers ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--graphite); margin: 0; letter-spacing: 0.01em; }
.chrome {
  /* brushed-steel lettering, echoing the GREYSTONE wordmark */
  background: linear-gradient(180deg, #4a525c 0%, #22262c 46%, #59616b 54%, #2a2f36 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glow { color: var(--accent); }
.eyebrow {
  font-family: var(--display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-deep);
  margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi);
  box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font: 600 0.95rem var(--body); color: #fff;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-deep));
  border: 1px solid var(--accent-deep);
  box-shadow: 0 10px 24px -12px rgba(36, 80, 143, 0.75);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--accent-soft), 0 14px 30px -12px rgba(36, 80, 143, 0.85); }
.btn-ghost { background: var(--surface); border-color: var(--border-hi); box-shadow: var(--shadow); color: var(--graphite); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); box-shadow: 0 0 0 4px var(--accent-soft); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { color: var(--accent-deep); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - var(--maxw)) / 2));
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(243, 244, 246, 0.86); backdrop-filter: blur(12px); border-color: var(--border); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-text { font-family: var(--display); font-weight: 800; letter-spacing: 0.14em; color: var(--graphite); font-size: 1rem; }
.brand-text em { font-style: normal; font-weight: 600; color: var(--muted); letter-spacing: 0.34em; margin-left: 6px; font-size: 0.72rem; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: var(--text); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
.nav-links a:not(.btn):hover { color: var(--graphite); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--graphite); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 50px 16px 90px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.04; font-weight: 800; letter-spacing: 0.02em; }
.hero h1 span { display: block; }
.lead { font-size: 1.12rem; max-width: 34em; margin: 24px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }
.hero-stats { list-style: none; padding: 0; margin: 46px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--border-hi); }
.hero-stats strong { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--graphite); }
.hero-stats span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  position: relative; width: min(100%, 480px); height: auto;
  filter: drop-shadow(0 24px 30px rgba(28, 32, 38, 0.18));
  animation: float 7s ease-in-out infinite;
}
.orbit {
  position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 134, 216, 0.20), rgba(139, 149, 161, 0.10) 45%, transparent 68%);
  filter: blur(24px);
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 16px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2, .about h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.2; }
.sub { color: var(--muted); margin: 16px 0 0; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product {
  position: relative; padding: 36px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product::before {
  /* steel-to-blue edge that lights up on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--steel), var(--accent-hi), var(--steel));
  opacity: 0; transition: opacity .3s;
}
.product:hover { transform: translateY(-6px); border-color: var(--border-hi); box-shadow: var(--shadow-hi); }
.product:hover::before { opacity: 1; }
.product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.product-icon, .pillar-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, #fbfcfd, #e4e8ed);
  border: 1px solid var(--border-hi);
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(28, 32, 38, 0.35);
}
.product-icon-img { background: none; border: 0; box-shadow: none; }
.product-icon-img img { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(28, 32, 38, 0.3)); }
.product-icon svg, .pillar-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.tag-live { color: #17784d; background: #e6f5ec; border: 1px solid #b5e0c7; }
.tag-soon { color: var(--accent-deep); background: var(--accent-soft); border: 1px solid rgba(53, 103, 176, 0.3); }
.product h3 { font-size: clamp(1.45rem, 6vw, 2rem); font-weight: 800; overflow-wrap: anywhere; }
.product h3 span { color: var(--accent); }
.product-tagline { color: var(--graphite); font-weight: 600; margin: 6px 0 12px; }
.product p { margin-top: 0; }
.features { list-style: none; padding: 0; margin: 8px 0 30px; display: grid; gap: 10px; }
.features li { padding-left: 28px; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-3px);
}
.product-actions { margin-top: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .3s, transform .3s; }
.pillar:hover { border-color: var(--border-hi); transform: translateY(-4px); }
.pillar h3 { font-size: 1.05rem; margin: 20px 0 10px; }
.pillar p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- about (graphite slab) ---------- */
.about-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center;
  padding: 50px; border-radius: 24px; color: #c9cfd6;
  border: 1px solid #3a4048;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(74, 134, 216, 0.22), transparent 70%),
    linear-gradient(135deg, var(--graphite-2), var(--graphite));
  box-shadow: var(--shadow-hi);
}
.about-card h2 { color: #fff; }
.about-card .glow { color: #8db7ee; }
.about-card .eyebrow { color: #9fbbe0; }
.about-copy p { margin: 0 0 16px; }
.about-copy p:last-child { margin: 0; }

/* ---------- contact ---------- */
.contact { text-align: center; padding-bottom: 120px; }

/* ---------- footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 40px; }
.footer-rule { display: flex; align-items: center; gap: 22px; margin-bottom: 36px; }
.footer-rule::before, .footer-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-hi), transparent); }
.footer-rule span { font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .brand img { height: 32px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.copy { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; text-align: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(80%, 360px); }
  .lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row, .hero-stats { justify-content: center; }
  .products { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; gap: 20px; padding: 32px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 24px 16px;
    background: rgba(243, 244, 246, 0.98); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .product { padding: 26px; }
  .brand-text em { display: none; }
  .hero-stats { gap: 20px; }
  .hero-stats li { padding-left: 12px; }
  .section { padding: 64px 16px; }
}
