/* ==========================================================================
   NIGHTWATCH — design tokens
   Palette: ink navy (surveillance dark) + warm paper + signal amber
   (porch-light warmth) + IR green (night-vision, used sparingly for
   live/active states) + a single coral reserved for alerts only.
   Type: Space Grotesk (display, technical) / Inter (body) /
   JetBrains Mono (HUD readouts, timestamps, specs).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --ink:        #0e1420;
  --ink-2:      #141c2b;
  --ink-3:      #1c2637;
  --paper:      #f5f2ea;
  --paper-2:    #eae5d8;
  --amber:      #f2a63a;
  --amber-dim:  #b97c22;
  --ir-green:   #7fe6a8;
  --coral:      #e8604a;
  --slate-on-dark: #8b93a6;
  --slate-on-light:#5b6472;
  --white: #fdfcf9;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 3px;
  --border-dark: 1px solid rgba(255,255,255,0.12);
  --border-light: 1px solid rgba(14,20,32,0.12);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: inherit; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242,166,58,0.18);
}

/* Buttons ---------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--amber); color: var(--ink); font-weight: 500; }
.btn-primary:hover{ background: #ffb653; }
.btn-ghost-dark{ border-color: rgba(255,255,255,0.28); color: var(--white); }
.btn-ghost-dark:hover{ border-color: var(--amber); color: var(--amber); }
.btn-ghost-light{ border-color: rgba(14,20,32,0.25); color: var(--ink); }
.btn-ghost-light:hover{ border-color: var(--ink); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,20,32,0.88);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-dark);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
@media (max-width: 480px){
  .brand{ font-size: 16px; gap: 8px; }
  .header-actions .btn-primary{ padding: 10px 14px; font-size: 12px; }
}
.brand .dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ir-green);
  box-shadow: 0 0 0 4px rgba(127,230,168,0.16);
}
.main-nav{ display: flex; gap: 32px; }
.main-nav a{
  color: var(--slate-on-dark);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover{ color: var(--white); }
.header-actions{ display: flex; align-items: center; gap: 16px; }
.nav-toggle{ display: none; }

@media (max-width: 860px){
  .main-nav{
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: var(--border-dark);
    flex-direction: column;
    padding: 12px var(--gutter) 24px;
    gap: 4px;
    display: none;
  }
  .main-nav.is-open{ display: flex; }
  .main-nav a{ padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle{
    display: inline-flex;
    background: none; border: 1px solid rgba(255,255,255,0.25);
    color: var(--white); border-radius: var(--radius);
    padding: 8px 10px; cursor: pointer;
  }
}

/* ==========================================================================
   VIEWFINDER — signature component. A framed "camera view" used for the
   hero, product cards, and testimonial clips: corner brackets, a REC/LIVE
   indicator, and a mono timestamp/resolution strip.
   ========================================================================== */
.viewfinder{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, #1a2436 0%, #0c1119 65%, #0a0e15 100%);
  isolation: isolate;
}
.viewfinder::after{
  /* faint scanline / grain texture so the frame reads as a live feed */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.viewfinder-corner{
  position: absolute;
  width: 22px; height: 22px;
  border-color: rgba(245,242,234,0.75);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.viewfinder-corner.tl{ top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.viewfinder-corner.tr{ top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.viewfinder-corner.bl{ bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.viewfinder-corner.br{ bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

.viewfinder-meta{
  position: absolute; bottom: 14px; right: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: rgba(245,242,234,0.8);
  background: rgba(14,20,32,0.55);
  padding: 5px 9px;
  border-radius: 2px;
}

/* Photo carousel — slides crossfade; dots show position and are clickable.
   No "live" claim anywhere: this is a rotating set of stills. */
.vf-slides{ position: absolute; inset: 0; }
.vf-slide{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.vf-slide.is-active{ opacity: 1; }

.vf-dots{
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 7px;
}
.vf-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none; padding: 0;
  background: rgba(245,242,234,0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.vf-dot:hover{ background: rgba(245,242,234,0.7); }
.vf-dot.is-active{ background: var(--amber); transform: scale(1.35); }



/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 320px at 12% 0%, rgba(242,166,58,0.10), transparent 60%),
    radial-gradient(500px 300px at 88% 20%, rgba(127,230,168,0.08), transparent 60%);
  pointer-events: none;
}
.hero .container{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-size: clamp(34px, 4.4vw, 58px);
  margin-bottom: 22px;
}
.hero h1 em{
  font-style: normal;
  color: var(--amber);
}
.hero-sub{
  font-size: 18px;
  color: var(--slate-on-dark);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats{
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: var(--border-dark);
}
.hero-stat .num{
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ir-green);
  display: block;
}
.hero-stat .label{
  font-size: 12px;
  color: var(--slate-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-frame{ aspect-ratio: 4/5; }
.hero-frame .viewfinder-fill{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,242,234,0.28);
}

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-frame{ order: -1; aspect-ratio: 16/10; }
}

/* ==========================================================================
   SECTIONS (generic)
   ========================================================================== */
.section{ padding: 88px 0; }
.section-dark{ background: var(--ink); color: var(--white); }
.section-paper2{ background: var(--paper-2); }
.section-head{
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ font-size: clamp(26px, 3.2vw, 38px); }
.section-dark .eyebrow{ color: var(--amber); }
.section-dark .section-head p{ color: var(--slate-on-dark); }

/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */
.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .product-grid{ grid-template-columns: 1fr; } }

.product-card{
  display: block;
  border: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(14,20,32,0.35);
}
.product-card .viewfinder{ aspect-ratio: 4/3; }
.product-card .viewfinder-fill{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-card .viewfinder-fill svg{ width: 34%; opacity: 0.85; }
.product-body{ padding: 22px 22px 24px; }
.product-kicker{
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate-on-light);
  margin-bottom: 6px;
}
.product-body h3{ font-size: 19px; margin-bottom: 8px; }
.product-body p{ color: var(--slate-on-light); font-size: 14.5px; margin-bottom: 16px; }
.product-foot{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: var(--border-light);
}
.product-price{ font-family: var(--font-mono); font-weight: 500; font-size: 16px; }
.product-cta{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--amber-dim); text-transform: uppercase;
}
.product-card:hover .product-cta{ color: var(--amber); }

/* ==========================================================================
   FEATURE SPLIT (home security / pet care)
   ========================================================================== */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.split-panel{ padding: 48px; }
.split-panel:first-child{ background: var(--ink); color: var(--white); border-right: var(--border-light); }
.split-panel:last-child{ background: var(--paper); }
.split-panel .eyebrow{ color: var(--ir-green); }
.split-panel:last-child .eyebrow{ color: var(--amber-dim); }
.split-panel h3{ font-size: 24px; margin-bottom: 14px; }
.split-list{ list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.split-list li{
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px;
}
.split-list li::before{
  content: "";
  flex: none;
  width: 6px; height: 6px; margin-top: 7px;
  background: var(--amber);
  transform: rotate(45deg);
}
.split-panel:first-child .split-list li::before{ background: var(--ir-green); }

@media (max-width: 820px){
  .split{ grid-template-columns: 1fr; }
  .split-panel:first-child{ border-right: none; border-bottom: var(--border-dark); }
}

/* ==========================================================================
   USP GRID — the core commercial arguments (made in France, PQ encryption,
   PoE, local storage, night vision). Not a sequence, so tags rather than
   numbers.
   ========================================================================== */
.usp-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1000px){ .usp-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 620px){ .usp-grid{ grid-template-columns: repeat(2,1fr); } }

.usp-card{
  border: var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  padding: 26px 20px;
}
.usp-tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid rgba(14,20,32,0.14);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.usp-card h4{ font-size: 16px; margin-bottom: 8px; }
.usp-card p{ font-size: 13.5px; color: var(--slate-on-light); margin: 0; }

/* ==========================================================================
   HOW IT WORKS (genuinely sequential — numbering is earned here)
   ========================================================================== */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
@media (max-width: 900px){ .steps{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr; } }

.step{ position: relative; padding-top: 8px; }
.step-num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-dim);
  margin-bottom: 14px;
}
.step h4{ font-size: 17px; margin-bottom: 8px; }
.step p{ font-size: 14px; color: var(--slate-on-light); margin: 0; }
.step:not(:last-child)::after{
  content: "";
  display: block;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(14,20,32,0.25) 0 6px, transparent 6px 12px);
  margin-top: 22px;
}
@media (max-width: 900px){ .step:nth-child(2)::after{ display: none; } .step:last-child::after{ display: none; } }

/* ==========================================================================
   TESTIMONIALS — framed as "clips"
   ========================================================================== */
.clips{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px){ .clips{ grid-template-columns: 1fr; } }
.clip{
  border: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.clip-frame{ aspect-ratio: 16/9; }
.clip-quote{ padding: 22px; }
.clip-quote p{ font-size: 14.5px; margin-bottom: 14px; }
.clip-author{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-on-light);
  display: flex; justify-content: space-between;
}
.clip-author .pet-tag{ color: var(--amber-dim); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band{
  background: var(--ink);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2{ font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.cta-band p{ color: var(--slate-on-dark); max-width: 52ch; margin: 0 auto 32px; }
.cta-band .btn-row{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   PRODUCT SINGLE PAGE
   ========================================================================== */
.product-hero{
  background: var(--ink); color: var(--white);
  padding: 56px 0 80px;
}
.product-hero .container{
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.product-hero .viewfinder{ aspect-ratio: 1/1; }
.product-title{ font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.product-tagline{ color: var(--slate-on-dark); font-size: 17px; margin-bottom: 24px; }
.spec-table{ width: 100%; border-collapse: collapse; margin: 28px 0; font-family: var(--font-mono); font-size: 13.5px; }
.spec-table tr{ border-bottom: 1px solid rgba(255,255,255,0.1); }
.spec-table td{ padding: 10px 0; }
.spec-table td:first-child{ color: var(--slate-on-dark); width: 40%; }
.product-price-block{ display:flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.product-price-block .price{ font-family: var(--font-mono); font-size: 28px; color: var(--amber); }
.product-body-copy{ padding: 72px 0; max-width: 720px; margin: 0 auto; }
.product-body-copy h2{ font-size: 24px; margin-top: 1.6em; }

@media (max-width: 860px){
  .product-hero .container{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  background: var(--ink);
  color: var(--slate-on-dark);
  padding: 56px 0 32px;
  border-top: var(--border-dark);
}
.footer-top{
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 28px;
  border-bottom: var(--border-dark);
}
.footer-top h5{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.footer-top ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-top a:hover{ color: var(--amber); }
.footer-brand .brand{ margin-bottom: 12px; }
.footer-brand p{ font-size: 14px; max-width: 34ch; }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px;
}

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

/* ==========================================================================
   UTILITY: icon camera used in viewfinder fills
   ========================================================================== */
.icon-cam{ color: var(--slate-on-dark); }
