/* -----------------------------------------------
   Lighthouse Stylus — landing page styles
   Geometric sans headings + monospace body
   Dark background, scanlines, blinking cursor
----------------------------------------------- */

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

:root {
  --bg: #0d0d0d;
  --fg: #e4e4e4;
  --dim: #aaa;
  --border: #333;
  --max-width: 740px;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.65;
}

/* Scanlines overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0.12) 4px
  );
}

/* -----------------------------------------------
   Layout
----------------------------------------------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 7rem;
}

/* -----------------------------------------------
   Header
----------------------------------------------- */

header {
  margin-bottom: 3rem;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.cursor {
  display: inline-block;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%     { opacity: 0; }
}

.tagline {
  font-size: 0.9rem;
  color: var(--dim);
  max-width: 540px;
  line-height: 1.8;
}

/* -----------------------------------------------
   Device image
----------------------------------------------- */

.device-image {
  display: block;
  width: 100%;
  margin-bottom: 3.5rem;
  filter: grayscale(100%);
  border: 1px solid var(--border);
}

/* -----------------------------------------------
   Action sections
----------------------------------------------- */

.action {
  padding: 2.25rem 0;
}

.action h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.action p {
  font-size: 0.875rem;
  color: var(--dim);
  margin-bottom: 1.25rem;
  max-width: 480px;
}

hr.divider {
  border: none;
  border-top: 1px dashed var(--border);
}

/* -----------------------------------------------
   Buttons
----------------------------------------------- */

.btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--fg);
  padding: 0.5rem 1rem;
  transition: background 0.12s, color 0.12s;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

/* -----------------------------------------------
   Newsletter form
----------------------------------------------- */

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.12s;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--fg);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--dim);
}

.newsletter-form button {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.newsletter-form button:hover {
  background: var(--fg);
  color: var(--bg);
}

/* -----------------------------------------------
   Citation block
----------------------------------------------- */

.citation-block {
  position: relative;
  margin-top: 1.25rem;
}

.citation-block pre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.775rem;
  line-height: 1.7;
  color: var(--dim);
  background: #161616;
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.75rem;
}

.copy-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--dim);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.copy-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

/* -----------------------------------------------
   Footer
----------------------------------------------- */

footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--dim);
}

/* -----------------------------------------------
   Responsive
----------------------------------------------- */

@media (max-width: 480px) {
  main {
    padding: 3rem 1.25rem 5rem;
  }

  .newsletter-form input[type="email"] {
    min-width: 100%;
  }
}
