:root {
  --bg: #071319;
  --panel: #0d2028;
  --panel-2: #102a33;
  --line: rgba(134, 221, 218, .16);
  --text: #eefcf9;
  --muted: #9bb4b5;
  --cyan: #22d8e4;
  --teal: #40e4c0;
  --amber: #ffae35;
  --shadow: 0 28px 80px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.nav { height: 78px; display: flex; align-items: center; gap: 38px; padding-right: 72px; position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: .09em; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; gap: 28px; margin-left: auto; color: var(--muted); font-size: 14px; }
.nav nav a:hover { color: var(--text); }
.nav-cta { border: 1px solid var(--line); padding: 8px 17px; border-radius: 99px; font-weight: 700; font-size: 14px; }

.github-ribbon { position: absolute; top: 0; right: 0; width: 150px; height: 150px; overflow: hidden; z-index: 50; cursor: pointer; }
.github-ribbon span { position: absolute; top: 33px; right: -48px; width: 205px; padding: 8px 0; color: #fff; background: linear-gradient(#d83a3a, #a90000); border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); box-shadow: 0 3px 8px rgba(0,0,0,.35); font: 700 12px/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: .02em; text-align: center; text-shadow: 0 -1px rgba(0,0,0,.4); transform: rotate(45deg); }
.github-ribbon:hover span { background: linear-gradient(#ed4b4b, #bd0000); }
.github-ribbon:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }

.hero { min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; padding-block: 70px 95px; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 760px; pointer-events: none; background: radial-gradient(circle at 75% 35%, rgba(34,216,228,.12), transparent 33%), radial-gradient(circle at 18% 20%, rgba(64,228,192,.06), transparent 27%); }
.hero-copy, .device-scene { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.eyebrow span { display: inline-block; width: 22px; height: 2px; background: var(--teal); vertical-align: middle; margin-right: 10px; }
h1 { margin: 0; font-size: clamp(54px, 6.7vw, 88px); line-height: .98; letter-spacing: -.055em; max-width: 760px; }
h1 em { color: var(--cyan); font-style: normal; }
.lead { max-width: 630px; margin: 28px 0; color: var(--muted); font-size: 19px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { padding: 13px 21px; border-radius: 9px; font-weight: 780; font-size: 14px; transition: transform .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #042024; background: linear-gradient(135deg, var(--teal), var(--cyan)); box-shadow: 0 10px 30px rgba(34,216,228,.16); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.facts { display: flex; gap: 23px; margin-top: 31px; color: #718e90; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.facts span::before { content: "✓"; color: var(--teal); margin-right: 7px; }

.device-scene { min-height: 540px; display: grid; place-items: center; }
.tablet { width: min(445px, 88vw); aspect-ratio: 1.52; padding: 13px 22px; border: 2px solid #35505a; border-radius: 23px; background: #111d22; transform: perspective(1100px) rotateY(-8deg) rotateX(2deg); box-shadow: var(--shadow), inset 0 0 0 4px #071014; position: relative; }
.camera-feed { position: relative; height: 100%; overflow: hidden; border-radius: 7px; background: linear-gradient(155deg, #17353a 0 49%, #24464b 50% 53%, #132b31 54%); }
.camera-feed::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.018) 5px); }
.feed-top, .timestamp { position: absolute; z-index: 2; font: 700 9px/1 monospace; letter-spacing: .08em; }
.feed-top { top: 12px; left: 14px; color: #a4bdbb; }.feed-top b { margin-left: 10px; color: white; }
.live-dot { display: inline-block; width: 6px; height: 6px; background: #ff6249; border-radius: 50%; margin-right: 5px; box-shadow: 0 0 8px #ff6249; }
.timestamp { right: 13px; bottom: 10px; color: #b4cac9; }
.house { position: absolute; width: 145px; height: 110px; right: 34px; top: 64px; background: #0b1c21; clip-path: polygon(0 32%, 50% 0, 100% 32%, 100% 100%, 0 100%); }
.house i { position: absolute; bottom: 0; width: 25px; height: 46px; background: #18373c; }.house i:nth-child(1){left:23px}.house i:nth-child(2){left:61px;height:58px}.house i:nth-child(3){right:20px}
.driveway { position: absolute; width: 150%; height: 110px; left: -20%; bottom: -55px; background: #1b383e; transform: rotate(-10deg); border-top: 3px solid #355a5e; }
.camera-dot { position: absolute; top: 50%; left: 7px; width: 5px; height: 5px; border-radius: 50%; background: #253940; }
.home-key { position: absolute; top: calc(50% - 10px); right: 5px; width: 7px; height: 20px; border: 1px solid #344a52; border-radius: 5px; }
.signal { position: absolute; border: 1px solid rgba(34,216,228,.13); border-radius: 50%; }
.signal-one { width: 480px; height: 480px; }.signal-two { width: 590px; height: 590px; }
.event-card { position: absolute; left: 3%; bottom: 27px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; min-width: 250px; border: 1px solid var(--line); border-radius: 10px; background: rgba(11, 31, 38, .92); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.event-card strong, .event-card small { display: block; }.event-card strong { font-size: 13px; }.event-card small { color: var(--muted); font-size: 11px; }
.event-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: var(--cyan); background: rgba(34,216,228,.1); font-size: 22px; }.event-ok { margin-left: auto; color: var(--teal); }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.trust-content { min-height: 78px; display: flex; justify-content: space-around; align-items: center; gap: 20px; color: #86a1a2; font-size: 13px; }
.trust-content span::before { content: "◆"; color: var(--cyan); margin-right: 9px; font-size: 8px; }

.section { padding-block: 120px; }
.section-heading { max-width: 690px; margin-bottom: 52px; }.section-heading.compact { margin-bottom: 35px; }
h2 { margin: 0 0 17px; font-size: clamp(37px, 5vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.section-heading > p:last-child, .code-copy > p { color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature-grid article { min-height: 245px; padding: 32px; background: var(--bg); }
.glyph { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--cyan); background: rgba(34,216,228,.055); font-size: 20px; }
h3 { margin: 0 0 9px; font-size: 18px; }.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.workflow { background: #091a21; border-block: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin: 0; padding: 0; }
.steps li { position: relative; padding-top: 22px; border-top: 1px solid #21424b; }
.steps li::before { content: ""; position: absolute; top: -3px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.steps span { color: #4c6c70; font: 700 12px monospace; }.steps strong { display: block; margin: 16px 0 6px; }.steps p { color: var(--muted); font-size: 14px; margin: 0; }

.integration { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.code-copy a, .security-card a { color: var(--teal); font-size: 14px; font-weight: 700; }
.code-window { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #061016; box-shadow: var(--shadow); }
.code-bar { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #0d2027; }
.code-bar span { width: 8px; height: 8px; border-radius: 50%; background: #34515a; }.code-bar b { margin-left: 8px; color: #6d898d; font: 600 11px monospace; }
pre { margin: 0; padding: 30px; overflow: auto; color: #d4e8e7; font: 14px/1.75 "SFMono-Regular", Consolas, monospace; } code i { color: #57777b; font-style: normal; } mark { color: var(--amber); background: transparent; }

.security { padding-top: 30px; }.security-card { display: flex; gap: 42px; align-items: center; padding: 48px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(125deg, var(--panel), #0b1b22); }.security-card img { border-radius: 24px; box-shadow: 0 15px 45px rgba(0,0,0,.38); }.security-card h2 { font-size: clamp(32px,4vw,48px); }.security-card p:not(.eyebrow) { color: var(--muted); max-width: 700px; }
.cta { text-align: center; padding-block: 140px; }.cta .eyebrow { justify-content: center; }.cta p:not(.eyebrow) { color: var(--muted); max-width: 620px; margin: 0 auto 28px; }.actions.centered { justify-content: center; }
footer { min-height: 100px; display: flex; align-items: center; gap: 25px; border-top: 1px solid var(--line); color: #718d8f; font-size: 12px; } footer p { margin: 0 auto; } footer > a { color: var(--teal); }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .device-scene { min-height: 470px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .integration { grid-template-columns: 1fr; gap: 45px; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 26px, 1160px); }
  .nav { height: 66px; padding-right: 62px; }.nav-cta { display: none; }
  .github-ribbon { position: fixed; width: 120px; height: 120px; }
  .github-ribbon span { top: 27px; right: -52px; width: 190px; padding-block: 6px; font-size: 11px; }
  .hero { padding-block: 50px 70px; }.lead { font-size: 17px; }
  .device-scene { min-height: 380px; }.event-card { left: 0; bottom: 5px; }
  .facts { flex-direction: column; gap: 5px; }
  .trust-content { flex-direction: column; align-items: flex-start; padding-block: 22px; }
  .section { padding-block: 82px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .security-card { flex-direction: column; align-items: flex-start; padding: 30px; }
  pre { padding: 20px; font-size: 12px; }
  footer { flex-wrap: wrap; padding-block: 25px; } footer p { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
