:root {
  --ink: #1c2321;
  --muted: #5d6864;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --line: #d8ded9;
  --teal: #087e73;
  --coral: #d95d45;
  --yellow: #f2c14e;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 222, 217, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal); }

.hero {
  position: relative;
  min-height: min(650px, calc(100vh - 116px));
  display: grid;
  align-items: end;
  color: white;
  background: var(--ink) url("assets/cameras.jpg") center 58% / cover no-repeat;
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(18, 25, 23, 0.68);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: white;
  background: var(--teal);
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(18, 25, 23, 0.45);
}

.button.light {
  color: var(--teal);
  background: white;
}

.page-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: end;
  color: white;
  background: var(--ink) url("assets/cameras.jpg") center / cover no-repeat;
}

.page-hero .inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 48px;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: 52px;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

.band { padding: 68px 0; }
.band.white { background: var(--surface); }
.band.dark { color: white; background: var(--ink); }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p,
.lead { color: var(--muted); }
.dark .section-heading p { color: rgba(255, 255, 255, 0.72); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card.accent { border-top: 5px solid var(--coral); }
.card.teal { border-top: 5px solid var(--teal); }
.card.yellow { border-top: 5px solid var(--yellow); }

.card h2,
.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.card p { color: var(--muted); }

.card-link {
  color: var(--teal);
  font-weight: 750;
  text-decoration: none;
}

.article {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
}

.article h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: 28px;
  letter-spacing: 0;
}

.article h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 20px;
}

.article p,
.article li { color: #3f4945; }

.article a { color: var(--teal); }

.article-callout {
  margin: 34px 0;
  padding: 24px;
  border-left: 5px solid var(--coral);
  background: white;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.link-list li { border-bottom: 1px solid var(--line); }

.link-list a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  text-decoration: none;
}

.link-list a:hover { color: var(--teal); }

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: white;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p { margin: 0; }

@media (max-width: 850px) {
  .grid,
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a:not(.nav-primary) { display: none; }
}

@media (max-width: 560px) {
  .hero { min-height: min(600px, calc(100vh - 104px)); }
  h1 { font-size: 44px; }
  .page-hero h1 { font-size: 38px; }
  .section-heading h2 { font-size: 30px; }
  .hero-inner { padding: 80px 0 54px; }
  .hero-copy { font-size: 16px; }
  .grid,
  .grid.two,
  .grid.three { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .band { padding: 50px 0; }
  .footer-inner { flex-direction: column; }
}
