/* ── HOP SENSORS SHARED STYLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #061f35;
  --navy-mid: #0a3252;
  --navy-light: #0e4a78;
  --accent: #00c8a0;
  --accent-dim: #00a882;
  --accent-glow: rgba(0,200,160,0.12);
  --white: #ffffff;
  --off-white: #e8f0f7;
  --muted: #7a9bb5;
  --border: rgba(255,255,255,0.08);
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,160,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,31,53,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.logo-text span { color: var(--accent); }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
nav a.active { color: var(--white); }

.nav-demo {
  margin-left: 8px;
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
}

.nav-demo:hover { background: var(--accent-dim) !important; }

/* BUTTONS */
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

/* SECTION COMMON */
.section { padding: 100px 0; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* PAGE HERO (inner pages) */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.page-hero .section-tag { margin-bottom: 12px; }

.page-hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 700px;
}

.page-hero h1 em { font-style: normal; color: var(--accent); }

.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

/* PILL */
.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,200,160,0.2);
  padding: 5px 12px;
  border-radius: 20px;
}

/* CTA BAND */
.cta-band {
  background: var(--navy-mid);
  border: 1px solid rgba(0,200,160,0.2);
  border-radius: 16px;
  padding: 72px 64px;
  margin: 0 0 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.8px;
  max-width: 480px;
  line-height: 1.2;
}

.cta-band h2 em { font-style: normal; color: var(--accent); }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 64px 0 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* FORMS */
.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: var(--navy-mid); }

/* PROSE (articles, legal) */
.prose {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--off-white);
}

.prose h2 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
}

.prose h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin: 32px 0 12px;
  letter-spacing: 0.5px;
}

.prose p { margin-bottom: 20px; color: var(--muted); }
.prose p strong { color: var(--off-white); font-weight: 600; }

.prose ul, .prose ol {
  margin: 0 0 20px 24px;
  color: var(--muted);
}

.prose li { margin-bottom: 8px; }

.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose .lead {
  font-size: 18px;
  color: var(--off-white);
  line-height: 1.7;
  margin-bottom: 32px;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--navy-mid);
  border-radius: 0 8px 8px 0;
  color: var(--off-white);
  font-size: 17px;
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner, .page-wrap, .footer-inner { padding: 0 20px; }
  nav a:not(.nav-demo) { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; padding: 48px 32px; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}
