:root {
  --ink: #241835;
  --muted: #675f76;
  --paper: #f7f2ed;
  --paper-deep: #eee8e3;
  --plum: #713f78;
  --plum-dark: #4d2855;
  --blue: #2865e8;
  --blue-soft: #d8e6fb;
  --line: #d9d0da;
  --urgent: #7f1d1d;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

#story,
#features,
#install {
  scroll-margin-top: 4.5rem;
}

.site-nav {
  grid-column: screen-start/screen-end !important;
  position: sticky;
  z-index: 2000 !important;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(36, 24, 53, 0.15);
  background: rgba(247, 242, 237, 0.94);
  backdrop-filter: blur(12px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  box-sizing: border-box;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--ink);
}


.site-nav-brand b {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.site-nav-brand .plugin-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(36, 24, 53, 0.07);
  color: var(--muted);
  border: 1px solid rgba(36, 24, 53, 0.12);
}

.site-nav-sp {
  flex: 1;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a.nav-lnk {
  color: var(--muted);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.site-nav a.nav-lnk:hover {
  color: var(--ink);
}

.site-nav .nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(36, 24, 53, 0.2);
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-nav .nav-ico.wide {
  gap: 8px;
  padding: 0 10px;
}

.site-nav .nav-ico svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.site-nav .nav-ico b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.site-nav .nav-ico:hover {
  color: var(--plum);
  border-color: var(--plum);
  background: rgba(113, 63, 120, 0.05);
}

.site-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 15px;
  border: 1px solid rgba(36, 24, 53, 0.25);
  border-radius: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-nav .nav-btn:hover {
  background: var(--plum);
  color: #ffffff;
  border-color: var(--plum);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

a {
  color: var(--plum-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.hero,
.features,
.install,
.site-footer,
.mobile-story {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.hero {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(5rem, 12vw, 9rem);
}

.hero h1 {
  max-width: 900px;
  margin: 0.2rem 0 1.2rem;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero > p {
  max-width: 780px;
  margin-block: 0.65rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
}

.eyebrow {
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 0.35rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--ink);
}

.button-primary:hover {
  color: #fff;
  background: var(--plum-dark);
}

.button-secondary {
  color: var(--ink);
  background: transparent;
}

.story-intro {
  padding-block: 5rem 3rem;
}

.story-intro h2,
.features h2,
.install h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.desktop-story.cr-section {
  background: var(--paper-deep);
}

.desktop-story .narrative-col .narrative {
  padding-inline: clamp(1rem, 3vw, 2.4rem);
}

.story-step {
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: 0.4rem;
  background: rgba(247, 242, 237, 0.96);
  box-shadow: 0 10px 30px rgba(36, 24, 53, 0.08);
}

.story-step h3 {
  margin-top: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.screenshot-sticky img,
.mobile-crop img {
  display: block;
  height: auto;
}

.screenshot-sticky img {
  width: 100%;
  border: 1px solid rgba(36, 24, 53, 0.14);
  border-radius: 0.7rem;
  box-shadow: 0 24px 70px rgba(36, 24, 53, 0.17);
}

.screenshot-sticky {
  width: min(76vw, 1100px);
}

.screenshot-frame {
  position: relative;
}

.focus-rect {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  border: 3px solid #fff;
  border-radius: 0.35rem;
  box-shadow: 0 0 0 3px var(--blue), 0 0 28px rgba(40, 101, 232, 0.65);
  transition: opacity 0.18s linear;
}

.screenshot-frame[data-annotation="alarm"] .annotation-alarm,
.screenshot-frame[data-annotation="active"] .annotation-active,
.screenshot-frame[data-annotation="cold"] .annotation-cold {
  opacity: 1;
}

.focus-rect.annotation-alarm {
  top: 38.8%;
  left: 3%;
  width: 16.2%;
  height: 10.1%;
}

.focus-rect.annotation-active {
  top: 47.8%;
  left: 3.3%;
  width: 16.2%;
  height: 15.3%;
}

.focus-rect.annotation-cold {
  top: 67.2%;
  left: 3.3%;
  width: 16.2%;
  height: 17%;
}

.features {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-block: 2.5rem 4rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.compatibility {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.install {
  display: block !important;
  padding-block: clamp(5rem, 10vw, 8rem);
  color: #f9f5f1;
  background: var(--ink);
  max-width: none;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.install-inner {
  width: min(100%, 1000px);
  margin-inline: auto;
}

.install h2,
.install a {
  color: #fff;
}

.install-card {
  margin-block: 2rem;
  overflow: hidden;
  overflow-x: auto;
  border: 1px solid #594b69;
  border-radius: 0.65rem;
  background: #1d1428;
  box-shadow: 0 18px 55px rgba(10, 6, 17, 0.28);
}

.install-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #594b69;
  background: #30223f;
}

.install-card-label {
  color: #c9bfd1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-install {
  padding: 0.25rem 0.55rem;
  border: 1px solid #756681;
  border-radius: 0.3rem;
  color: #f9f5f1;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-install:hover {
  border-color: #8eb5ff;
  color: #8eb5ff;
}

.copy-install:focus-visible {
  outline: 3px solid #8eb5ff;
  outline-offset: 3px;
}

.install pre.install-command {
  margin: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 0;
  border-radius: 0;
  color: #f9f5f1;
  background: #1d1428;
  font-size: clamp(0.78rem, 1.7vw, 1rem);
  line-height: 1.8;
}

.install-command code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.install-command .prompt {
  color: #8eb5ff;
  user-select: none;
}

.install-links {
  font-size: 0.95rem;
}

.site-footer {
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.mobile-story {
  display: none;
  padding-block: 1rem 5rem;
}

.mobile-focus-card {
  margin-bottom: 3.5rem;
}

.mobile-focus-card h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.35rem;
}

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

.mobile-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(36, 24, 53, 0.14);
  border-radius: 0.65rem;
  background: var(--paper-deep);
  box-shadow: 0 16px 42px rgba(36, 24, 53, 0.14);
}

.mobile-crop img {
  position: absolute;
  left: 0;
  width: 380%;
  max-width: none;
}

.mobile-crop::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 2px solid #fff;
  border-radius: 0.3rem;
  box-shadow: 0 0 0 3px var(--blue), 0 0 22px rgba(40, 101, 232, 0.6);
}

.crop-alarm::after {
  top: 41.6%;
  left: 12.7%;
  width: 60.2%;
  height: 26.5%;
}

.crop-active::after {
  top: 39.2%;
  left: 12.3%;
  width: 60.2%;
  height: 45.1%;
}

.crop-cold::after {
  top: 43.9%;
  left: 13.1%;
  width: 60.2%;
  height: 47.6%;
}

.crop-alarm img {
  top: -76%;
}

.crop-active img {
  top: -102%;
}

.crop-cold img {
  top: -158%;
}

@media (max-width: 800px) {
  .site-nav-inner {
    height: 54px;
    gap: 12px;
    padding: 0 1rem;
  }

  .site-nav-links {
    gap: 8px;
  }

  .site-nav-links .nav-lnk {
    display: none;
  }

  .desktop-story {
    display: none !important;
  }

  .mobile-story {
    display: block !important;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    letter-spacing: -0.01em;
  }

  .install {
    padding-inline: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
