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

:root {
  --bg:       #141413;
  --bg2:      #1c1c1a;
  --bg3:      #252523;
  --bg4:      #2e2e2b;
  --text:     #f0efe9;
  --text2:    #a8a89e;
  --text3:    #7d7d72;
  --accent:   #1D9E75;
  --accent2:  #5DCAA5;
  --accent-bg:#0a2a1e;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-mark { display: flex; align-items: center; gap: 9px; }
.loader-dot {
  width: 22px; height: 22px; object-fit: contain; display: block;
  animation: pulse 1.4s infinite;
}
.loader-word {
  font-family: 'DM Mono', monospace; font-size: 17px; letter-spacing: 0.2px;
  color: var(--text);
}
.loader-bar {
  width: 120px; height: 2px; border-radius: 2px;
  background: var(--border2); overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--accent); border-radius: 2px;
  animation: loader-slide 1.1s ease-in-out infinite;
}
@keyframes loader-slide {
  0%   { transform: translateX(-110%); }
  50%  { transform: translateX(160%); }
  100% { transform: translateX(160%); }
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: url("bg.PNG") no-repeat center center fixed, var(--bg);
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Cursor-based dynamic glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  /* Uses CSS variables updated by JS. Fallbacks to center if JS hasn't run yet */
  background: radial-gradient(
    700px circle at var(--mouse-x, 50%) var(--mouse-y, -50%),
    rgba(29, 158, 117, 0.045),
    transparent 60%
  );
  transition: opacity 0.3s ease;
}

/* Touch devices never fire mousemove, so give them a fixed, pleasant glow position
   instead of the off-screen fallback (var(--mouse-y, -50%)) */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    background: radial-gradient(
      700px circle at 50% 15%,
      rgba(29, 158, 117, 0.045),
      transparent 60%
    );
  }
}

/* Faint paper grain — sits just above the ambient glow but below content */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Content grouping to sit properly above fixed backgrounds */
nav, section, .privacy, footer, .divider {
  position: relative;
  z-index: 2;
}

.skip-link {
  position: fixed; top: -48px; left: 12px; z-index: 1000;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

a, button {
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* scroll-reveal — one small, consistent motion cue rather than scattered effects */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(20,20,19,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  font-size: 15px; color: var(--text); text-decoration: none;
}
.nav-dot {
  width: 20px; height: 20px; object-fit: contain; display: block;
  filter: drop-shadow(0 0 6px rgba(29, 158, 117, 0.5));
}
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 13px; color: var(--text2); text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 8px;
  background: var(--accent); color: #fff;
  text-decoration: none; transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }

.nav-toggle {
  display: none;
  width: 34px; height: 34px; border-radius: 8px;
  align-items: center; justify-content: center;
  background: transparent; border: 0.5px solid var(--border2);
  color: var(--text2); cursor: pointer;
}
.nav-drawer {
  display: none;
  position: fixed; top: 57px; left: 0; right: 0; z-index: 99;
  list-style: none; flex-direction: column;
  background: var(--bg2); border-bottom: 0.5px solid var(--border2);
  padding: 8px 24px 16px;
}
.nav-drawer.is-open { display: flex; }
.nav-drawer a {
  display: block; padding: 12px 4px; font-size: 14px;
  color: var(--text2); text-decoration: none;
  border-bottom: 0.5px solid var(--border);
}
.nav-drawer li:last-child a { border-bottom: none; }
.nav-drawer a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 120px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left { display: flex; flex-direction: column; gap: 24px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--accent2); letter-spacing: 0.1em; text-transform: uppercase;
  border: 0.5px solid var(--accent); border-radius: 99px;
  padding: 4px 12px; width: fit-content;
  background: var(--accent-bg);
}
.hero-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent2); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-headline {
  font-family: 'DM Mono', monospace;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-headline .hl { color: var(--accent2); position: relative; z-index: 1; }
.hl-wrap { position: relative; display: inline-block; }
.hl-stroke {
  position: absolute; left: -4px; right: -4px; bottom: -6px;
  width: calc(100% + 8px); height: 0.4em;
  opacity: 0.22; z-index: 0;
  overflow: visible;
}
.hl-stroke path {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: draw-highlight 0.7s 1.1s cubic-bezier(0.65,0,0.35,1) forwards;
}
@keyframes draw-highlight { to { stroke-dashoffset: 0; } }
.cursor {
  display: inline-block; width: 3px; height: 0.9em;
  background: var(--accent); margin-left: 2px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  font-size: 16px; color: var(--text2); line-height: 1.7;
  max-width: 440px;
}

.hero-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 11px 22px; border-radius: 9px;
  background: var(--accent); color: #fff;
  text-decoration: none; transition: all 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: #18876a; transform: translateY(-1px); }

.hero-note {
  font-size: 12px; color: var(--text3);
  display: flex; align-items: center; gap: 6px;
}
.hero-note svg { color: var(--accent); }

/* ── POPUP MOCKUP ── */
.hero-right {
  display: flex; justify-content: center; align-items: center;
}

.popup-mockup {
  width: 340px;
  background: var(--bg2);
  border-radius: 14px;
  border: 0.5px solid var(--border2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(29,158,117,0.08);
  overflow: hidden;
  font-size: 13px;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.popup-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.pm-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px;
  background: var(--bg3);
  border-bottom: 0.5px solid var(--border);
}
.pm-logo { display: flex; align-items: center; gap: 7px; }
.pm-dot { width: 15px; height: 15px; object-fit: contain; display: block; filter: drop-shadow(0 0 5px rgba(29, 158, 117, 0.5)); }
.pm-name { font-size: 12.5px; font-weight: 500; }
.pm-right { display: flex; align-items: center; gap: 7px; }
.pm-count { font-size: 10.5px; color: var(--text3); }
.pm-badge {
  font-size: 9px; background: var(--accent-bg); color: var(--accent2);
  border: 0.5px solid var(--accent); border-radius: 99px;
  padding: 1px 6px; font-family: 'DM Mono', monospace;
}
.pm-icons { display: flex; gap: 5px; }
.pm-icon {
  width: 24px; height: 24px; border-radius: 6px;
  border: 0.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
}

.pm-search {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-bottom: 0.5px solid var(--border);
  color: var(--text3); font-size: 12px;
}

.pm-pinned {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-bottom: 0.5px solid var(--border);
  font-size: 10.5px; color: var(--text3);
}
.pm-pinned-badge {
  font-size: 9px; background: var(--accent-bg); color: var(--accent2);
  border: 0.5px solid var(--accent); border-radius: 99px;
  padding: 0 5px; font-family: 'DM Mono', monospace;
}
.pm-pinned-chevron { margin-left: auto; opacity: 0.5; }

.pm-section {
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3);
  padding: 7px 12px 3px;
}

.pm-card {
  padding: 8px 12px; border-bottom: 0.5px solid var(--border);
  cursor: pointer; transition: background 0.1s;
}
.pm-card:hover { background: var(--bg3); }
.pm-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.pm-card-icon { width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0; }
.pm-card-title {
  font-size: 12px; font-weight: 500; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pm-card-time { font-size: 10px; color: var(--text3); flex-shrink: 0; }
.pm-card-snippet {
  font-size: 11px; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.pm-tags { display: flex; gap: 4px; }
.pm-tag {
  font-size: 9.5px; padding: 1px 6px; border-radius: 99px;
  border: 0.5px solid var(--border2); color: var(--text2);
}
.pm-tag.agg {
  border-color: var(--accent); color: var(--accent2);
  background: var(--accent-bg);
}

.pm-bar {
  display: flex; justify-content: center; gap: 14px;
  padding: 6px 12px; background: var(--bg3);
  border-top: 0.5px solid var(--border);
  font-size: 9.5px; color: var(--text3);
}
.pm-bar kbd {
  font-family: 'DM Mono', monospace; font-size: 8.5px;
  background: var(--bg4); border: 0.5px solid var(--border2);
  border-radius: 3px; padding: 0 3px; color: var(--text2); margin-right: 2px;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.pm-bar span { transition: color 0.3s; padding: 2px 0; border-radius: 4px; }
.pm-bar span.step-active { color: var(--text2); }
.pm-bar span.step-active kbd {
  border-color: var(--accent); color: var(--accent2);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* ── FEATURE GRID ── */
.section {
  max-width: 1100px; margin: 0 auto;
  padding: 96px 48px;
}

.section-label {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--accent2); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3vw, 38px); font-weight: 500;
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 15px; color: var(--text2); max-width: 520px;
  line-height: 1.7; margin-bottom: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid var(--border2);
}

.feature-card {
  background: var(--bg2);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.15s;
}
.feature-card:hover { background: var(--bg3); }

.feature-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-bg);
  border: 0.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent2);
}
.feature-title {
  font-size: 14px; font-weight: 500; color: var(--text);
}
.feature-desc {
  font-size: 13px; color: var(--text2); line-height: 1.65;
}
.feature-tag {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--text3); margin-top: auto;
}

/* ── HOW IT WORKS ── */
.how {
  max-width: 1100px; margin: 0 auto;
  padding: 0 48px 96px;
}

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  position: relative;
}
/* The track (faint line) */
.steps::before {
  content: '';
  position: absolute; top: 24px; left: 24px; right: 24px;
  height: 1px; background: var(--border2); z-index: 0;
}
/* The animated fill (green line) */
.steps::after {
  content: '';
  position: absolute; top: 24px; left: 24px; right: 24px;
  height: 1px; background: var(--accent); z-index: 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
}

/* Triggers when scrolled into view */
.steps.is-visible::after {
  transform: scaleX(1);
}

.step {
  display: flex; flex-direction: column; gap: 14px;
  padding: 0 24px;
  position: relative; z-index: 1;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }

.step-num {
  width: 48px; height: 48px; border-radius: 12px;
  border: 0.5px solid var(--border2);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 500;
  color: var(--accent2);
}
.step-title { font-size: 15px; font-weight: 500; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* ── SHORTCUTS ── */
.shortcuts-section {
  max-width: 1100px; margin: 0 auto;
  padding: 0 48px 96px;
}

.shortcuts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}

.shortcut-card {
  background: var(--bg2); border: 0.5px solid var(--border2);
  border-radius: 12px; padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
}
.shortcut-keys {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.key {
  font-family: 'DM Mono', monospace; font-size: 11px;
  background: var(--bg3); border: 0.5px solid var(--border2);
  border-radius: 5px; padding: 3px 7px; color: var(--text);
}
.key-plus { font-size: 10px; color: var(--text3); }
.shortcut-info { display: flex; flex-direction: column; gap: 3px; }
.shortcut-title { font-size: 13px; font-weight: 500; }
.shortcut-desc { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ── PRIVACY STRIP ── */
.privacy {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 24px 48px;
}
.privacy-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.privacy-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text2);
}
.privacy-item svg { color: var(--accent); flex-shrink: 0; }

/* ── INSTALL CTA ── */
.cta-section {
  max-width: 1100px; margin: 0 auto;
  padding: 96px 48px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.cta-section h2 {
  font-family: 'DM Mono', monospace;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.2;
}
.cta-section p {
  font-size: 15px; color: var(--text2); max-width: 420px; line-height: 1.7;
}

.install-steps {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg2); border: 0.5px solid var(--border2);
  border-radius: 12px; padding: 20px 24px;
  text-align: left; width: 100%; max-width: 440px;
}
.install-step {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13px; color: var(--text2); line-height: 1.6;
}
.install-n {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--accent2); flex-shrink: 0; width: 14px;
}
.install-step code {
  font-family: 'DM Mono', monospace; font-size: 11px;
  background: var(--bg4); padding: 1px 5px; border-radius: 4px;
  color: var(--text);
}

/* ── FOOTER ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); }
.footer-note { font-size: 12px; color: var(--text3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text3); text-decoration: none; }
.footer-links a:hover { color: var(--text2); }

/* ── DIVIDER ── */
.divider {
  height: 0.5px; background: var(--border);
  max-width: 1100px; margin: 0 auto 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 100px 24px 64px; gap: 48px; }
  .hero-right { justify-content: flex-start; }
  .popup-mockup { width: 100%; max-width: 380px; transform: none; }
  .section, .how, .shortcuts-section, .cta-section { padding-left: 24px; padding-right: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before, .steps::after { display: none; }
  .step { padding: 0; }
  .shortcuts-grid { grid-template-columns: 1fr; }
  .privacy-inner { gap: 20px; justify-content: flex-start; }
  footer { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 30px; }
  .popup-mockup { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .cursor { animation: none; }
  .hero-eyebrow-dot { animation: none; }
  .loader-dot { animation: none; }
  .loader-bar span { animation: none; width: 100%; }
  .popup-mockup { transform: none; }
  .popup-mockup:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none !important; }
}