/* NightVigil LLC — company site.
 *
 * Deliberately shares its tokens with marketing/style.css (the AwakeMinder
 * product site) so the two read as one company, but carries only the rules this
 * page uses rather than a copy of the product stylesheet that would drift.
 */

:root {
  --ink: #F9FAFB;        /* page background        */
  --panel: #FFFFFF;      /* cards                  */
  --panel-2: #F3F4F6;    /* subtle raised surfaces */
  --line: #E5E7EB;       /* borders                */
  --fog: #111827;        /* primary text           */
  --fog-dim: #6B7280;    /* muted text             */

  --action: #111827;
  --action-hover: #374151;
  --amber: #B45309;
  --amber-dim: rgba(180, 83, 9, 0.10);
  --teal: #0F766E;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-text strong { font-weight: 700; }
.logo-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fog-dim);
  display: block;
  margin-top: 4px;
}

nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fog-dim);
  text-decoration: none;
  transition: color 0.15s;
}
nav a:hover { color: var(--fog); }

.nav-cta {
  background: var(--action);
  color: #FFFFFF !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
}
.nav-cta:hover { background: var(--action-hover); }

/* ---------- Shared section furniture ---------- */

section { padding: 84px 32px; }
.inner { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 720px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 16ch;
}
h1 span { color: var(--amber); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p { max-width: 68ch; }
.lede { font-size: 1.08rem; color: var(--fog-dim); font-weight: 300; }

/* ---------- Hero ---------- */

.hero { padding: 92px 32px 76px; }
.hero .inner { display: flex; flex-direction: column; gap: 22px; }
.hero-sub { font-size: 1.12rem; color: var(--fog-dim); font-weight: 300; max-width: 62ch; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--action); color: #FFFFFF; }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { border: 1px solid var(--line); background: var(--panel); color: var(--fog); }
.btn-secondary:hover { border-color: var(--fog-dim); }

/* ---------- What we do ---------- */

.what { background: var(--panel); border-block: 1px solid var(--line); }

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.what-item { display: flex; flex-direction: column; gap: 8px; }
.what-item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.what-item p { font-size: 15px; color: var(--fog-dim); }

/* ---------- Products ---------- */

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
}

.product-mark { flex-shrink: 0; }

.product-body { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 12px; }
.product-body p { font-size: 15px; color: var(--fog-dim); }

.product-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.product-name span { color: var(--amber); }

.product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--amber-dim);
  color: var(--amber);
}

/* ---------- Story ---------- */

.story { background: var(--panel-2); border-block: 1px solid var(--line); }
.story .inner { max-width: 720px; }
.story p { margin-bottom: 16px; font-size: 1.02rem; }
.story p:last-of-type { margin-bottom: 0; }
.story strong { font-weight: 600; }
.story-sig {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fog-dim);
  margin-top: 26px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 32px;
}

.contact-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.contact-item a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  align-self: flex-start;
  word-break: break-word;
}
.contact-item a:hover { border-bottom-color: var(--amber); }
.contact-item .note { font-size: 13px; color: var(--fog-dim); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px;
  background: var(--panel);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-entity {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.footer-meta { font-size: 13px; color: var(--fog-dim); margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer-links a { color: var(--fog-dim); text-decoration: none; }
.footer-links a:hover { color: var(--fog); }

@media (max-width: 640px) {
  section { padding: 62px 22px; }
  .hero { padding: 68px 22px 56px; }
  .header-inner { padding: 16px 22px; }
  .product-card { padding: 24px; }
}
