/* Vigil Robotics — production styles (redesign: "The watch is kept.")
   Drop-in replacement for styles.css in vigilrobotics/vigil-website. */
:root {
  --bg: #06080c;
  --surface: #0d1219;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7ecf3;
  --text-dim: #8b97a8;
  --text-faint: #5a6675;
  --accent: #ff6a1a;
  --accent-soft: #ffa552;
  --accent-glow: rgba(255, 106, 26, 0.4);
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 8, 12, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
}
.brand-mark {
  height: 26px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 0 2px rgba(255, 120, 30, 0.45))
    drop-shadow(0 0 5px rgba(255, 106, 26, 0.3))
    drop-shadow(0 0 13px rgba(255, 90, 12, 0.165));
}
.brand-accent { color: var(--accent); }
.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}
.nav-cta:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }

/* Hero — centered, cathedral-quiet */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(110px, 16vh, 170px) var(--gutter) clamp(90px, 13vh, 140px);
}
.hero-bloom {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 920px;
  height: 620px;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 50% at 50% 50%,
    rgba(255, 120, 30, 0.5) 0%,
    rgba(255, 90, 12, 0.2) 36%,
    transparent 70%);
  opacity: 0.55;
  filter: blur(52px);
}
.eyebrow {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero-title {
  position: relative;
  font-size: clamp(54px, 7.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #fff 30%, #aeb9c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  position: relative;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #1a0a02;
  box-shadow: 0 0 16px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px var(--accent-glow);
}
.btn-lg { padding: 16px 32px; font-size: 16px; font-family: var(--mono); }

/* What it does */
.does {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 10vh, 100px) var(--gutter);
  border-top: 1px solid var(--border);
  text-align: center;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.duties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 56px);
  margin-top: 56px;
}
.duty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.duty-glyph { color: var(--accent); font-size: 22px; line-height: 1; height: 24px; display: flex; align-items: center; justify-content: center; }
.duty-glyph svg { width: 24px; height: 24px; display: block; }
.duty h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.duty p { font-size: 14.5px; line-height: 1.65; color: var(--text-dim); max-width: 300px; }

/* Contact */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(70px, 10vh, 100px) var(--gutter);
  border-top: 1px solid var(--border);
}
.contact h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact p { color: var(--text-dim); font-size: 16px; margin-bottom: 30px; max-width: 460px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px var(--gutter);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.footer-note {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0;
}

/* Scroll reveal — applied by script.js to below-fold elements only */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 760px) {
  .duties { grid-template-columns: 1fr; }
}
