:root {
  color-scheme: dark;
  --ink: #f6f2e8;
  --muted: #bfc8c2;
  --soft: #8fa09a;
  --bg: #101416;
  --panel: #182124;
  --panel-2: #202a2d;
  --line: rgba(246, 242, 232, 0.15);
  --water: #52c7d8;
  --green: #83d38a;
  --gold: #f0c95c;
  --rose: #ef7d85;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(82, 199, 216, 0.16), transparent 30rem),
    radial-gradient(circle at 86% 20%, rgba(240, 201, 92, 0.11), transparent 24rem),
    linear-gradient(135deg, #101416 0%, #161f20 50%, #111718 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(16, 20, 22, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  image-rendering: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

nav a {
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
}

nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.75fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(3rem, 8vh, 6rem) 0 2rem;
}

.hero-copy {
  max-width: 740px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 1rem;
  font-size: 5.4rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button,
button {
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.76rem 1rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.button.primary,
#cleanButton {
  color: #071315;
  background: var(--water);
  border-color: transparent;
}

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

button:hover,
.button:hover {
  transform: translateY(-1px);
}

.signal-panel,
.demo-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 42, 45, 0.94), rgba(19, 27, 29, 0.92));
  box-shadow: var(--shadow);
}

.signal-panel {
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  overflow: hidden;
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 800;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 24px rgba(131, 211, 138, 0.85);
}

.thought-stream {
  display: grid;
  gap: 0.9rem;
}

.raw-line,
.clean-line {
  margin: 0;
  padding: 1rem;
  border-radius: 8px;
  line-height: 1.5;
}

.raw-line {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
}

.clean-line {
  color: #061416;
  background: rgba(82, 199, 216, 0.92);
}

.clean-line.muted {
  color: var(--ink);
  background: rgba(240, 201, 92, 0.16);
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: -1rem 0 3rem;
}

.product-strip a {
  min-height: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.product-strip strong {
  color: var(--ink);
}

.section {
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-head p:not(.eyebrow),
.proof-list p,
.product-card p,
.privacy-section p {
  color: var(--muted);
  line-height: 1.6;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.demo-card {
  padding: 1rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 18rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  color: var(--ink);
  background: rgba(8, 12, 13, 0.65);
  font: 1rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

textarea:focus,
button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(82, 199, 216, 0.65);
  outline-offset: 3px;
}

.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.microcopy {
  margin: 0.8rem 0 0;
  color: var(--soft);
  font-size: 0.92rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
}

.product-card {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
}

.product-card.featured {
  border-color: rgba(82, 199, 216, 0.48);
}

.product-card a,
.quiet-link {
  margin-top: auto;
  color: var(--water);
  font-weight: 800;
}

.status {
  align-self: flex-start;
  margin-bottom: 1.2rem;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  color: #071315;
}

.status.available {
  background: var(--green);
}

.status.private {
  background: var(--gold);
}

.status.prototype {
  background: var(--water);
}

.status.secure {
  background: var(--rose);
}

.proof-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-list {
  display: grid;
  gap: 1rem;
}

.privacy-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

footer {
  width: min(1180px, calc(100% - 2rem));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero-section,
  .demo-grid,
  .proof-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  h1 {
    font-size: 4.4rem;
  }

  .signal-panel {
    min-height: 20rem;
  }

  .product-strip,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-section {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    max-width: 100%;
    font-size: 3.1rem;
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .product-strip,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .demo-controls {
    flex-direction: column;
  }

  .button,
  button {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}
