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

body {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  background: #fff;
  color: #111;
  min-height: 100dvh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Dev banner ── */
.dev-banner {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 100;
  pointer-events: none;
}

.dev-banner span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #dc2626;
  border: 1.5px solid #dc2626;
  border-radius: 0.25rem;
  padding: 0.1rem 0.3rem;
  line-height: 1;
}

/* ── Above the fold ── */
.above-fold {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-logo img {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.nav-right a:hover {
  color: #111;
}

.nav-login {
  padding: 0.4rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: all 0.15s;
}

.nav-login:hover {
  border-color: #111;
  color: #111;
}

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  text-align: center;
}

.hero-spacer {
  flex: 1;
}

.hero-spacer:first-child {
  flex: 0.5;
}

.hero-columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  column-gap: 3rem;
  align-items: stretch;
}

.hero-divider {
  background: #d1d5db;
  align-self: stretch;
}

.hero-left {
  min-width: 0;
  text-align: right;
}

.hero-left h2,
.hero-right h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Prompt box ── */
.prompt-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.prompt-input {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.75rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  resize: none;
  background: #fafafa;
  transition: border-color 0.15s;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.prompt-input:focus {
  outline: none;
  border-color: #111;
  background: #fff;
}

.prompt-input::placeholder {
  color: #9ca3af;
}

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ideas-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
}

.ideas-btn:hover {
  border-color: #111;
  color: #111;
}

.prompt-submit {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s;
}

.prompt-submit:hover {
  background: #333;
}

/* ── SSH command (right side) ── */
.hero-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ssh-command {
  font-size: 2.75rem;
  font-weight: 100;
  margin: 1.25rem 0;
  padding-left: 1rem;
  white-space: nowrap;
  transition: text-shadow 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssh-command:hover .ssh-text {
  text-shadow:
    0 0 20px rgba(0, 255, 0, 0.5),
    0 0 40px rgba(0, 255, 0, 0.25),
    0 0 60px rgba(0, 255, 0, 0.1);
}



.ssh-sub {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Features ── */
.features {
  border-top: 1px solid #e5e7eb;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.feature-inner {
  padding-top: 1.5rem;
  border-top: 2px solid #111;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature p {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.7;
}

.feature a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.feature code {
  font-size: 0.8rem;
  background: #f3f4f6;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.feature a:hover {
  color: #111;
}

/* ── Endorsements ── */
.endorsements {
  border-top: 1px solid #e5e7eb;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.endorsements h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  text-align: center;
}

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

.endorsement {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.endorsement blockquote {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.7;
  font-style: normal;
}

.endorsement cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-style: normal;
}

.source-link {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
  color: #9ca3af;
  transition: color 0.2s;
}

.source-link:hover {
  color: #4b5563;
}

.source-link svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #e5e7eb;
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer a:hover {
  text-decoration: underline;
}

/* ── Animations ── */
/* ── Malleable letter wave ── */
.malleable {
  display: inline-block;
  white-space: nowrap;
  animation: ml-stretch 0.9s ease-out both;
}

/* Slow stretch, fast snap, slight overshoot */
@keyframes ml-stretch {
  0%   { letter-spacing: 0; }
  40%  { letter-spacing: 0.35em; }
  52%  { letter-spacing: -0.02em; }
  68%  { letter-spacing: 0.005em; }
  100% { letter-spacing: 0; }
}

/* Per-letter wave: M moves most, e barely moves.
   Stagger creates the traveling-wave effect on both
   stretch and snap-back. */
.ml {
  display: inline-block;
  animation: ml-wave 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94)
             calc(var(--i) * 0.06s) both;
}

@keyframes ml-wave {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(calc((8 - var(--i)) * -0.15rem)); }
  52%  { transform: translateX(calc((8 - var(--i)) * 0.025rem)); }
  100% { transform: translateX(0); }
}

/* Bouncing final e — fires when the snap-back wave arrives.
   Delay = last letter stagger (8×0.06=0.48s) + wave snap point
   (0.7×0.46=0.32s) ≈ 0.8s */
.ml-drop {
  display: inline-block;
  animation: ml-bounce 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

@keyframes ml-bounce {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-0.3em); }
  50%  { transform: translateY(0); }
  68%  { transform: translateY(-0.1em); }
  82%  { transform: translateY(0); }
  92%  { transform: translateY(-0.03em); }
  100% { transform: translateY(0); }
}

/* ── Responsive: tablet ── */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-columns {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 3rem;
  }

  .hero-divider {
    display: none;
  }

  .hero-left {
    text-align: left;
  }

  .prompt-actions {
    justify-content: flex-start;
  }

  .hero-right {
    padding-top: 0;
  }

  .ssh-command {
    font-size: 2rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

/* ── Responsive: mobile ── */
@media (max-width: 640px) {
  nav {
    padding: 0.75rem 1rem;
  }

  .above-fold {
    padding-bottom: 5rem;
  }

  .hero {
    padding: 2rem 1rem 3rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-spacer {
    flex: 0;
    min-height: 2.5rem;
  }

  .hero-spacer:first-child {
    min-height: 0;
  }

  .hero-spacer:last-child {
    min-height: 5rem;
  }

  .ssh-command {
    text-align: center;
    padding-left: 0;
  }

  .hero-left h2,
  .hero-right h2 {
    font-size: 1.25rem;
  }

  .hero-columns {
    gap: 3rem;
  }

  .ssh-command {
    font-size: 1.5rem;
    word-break: break-all;
    white-space: normal;
  }

  .features {
    padding: 3rem 1rem;
  }

  .endorsements {
    padding: 3rem 1rem;
  }

  .endorsements h2 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  footer {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .ideas-panel {
    width: 100%;
    max-width: 100%;
  }

  .ideas-grid {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }
}

/* ── Ideas Drawer ── */
.ideas-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.ideas-drawer.open {
  display: flex;
  justify-content: flex-end;
}

.ideas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  animation: ideasFadeIn 0.2s ease;
}

@keyframes ideasFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ideas-panel {
  position: relative;
  background: #fff;
  width: 480px;
  max-width: calc(100% - 20px);
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
  animation: ideasSlideIn 0.25s ease;
}

@keyframes ideasSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.ideas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ideas-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.ideas-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #999;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.ideas-close:hover {
  color: #333;
}

.ideas-section {
  margin-bottom: 1.25rem;
}

.ideas-section:last-child {
  margin-bottom: 0;
}

.ideas-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #eee;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.625rem;
}

.ideas-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 0.625rem;
  padding: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ideas-card:hover {
  border-color: #bbb;
  background: #f0f0f0;
}

.ideas-card-icon {
  font-size: 1.375rem;
  line-height: 1;
}

.ideas-card-icon img {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.25rem;
}

.ideas-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

.ideas-card-desc {
  font-size: 0.7rem;
  color: #666;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ideas-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #999;
  font-size: 0.8rem;
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  body {
    background: #111;
    color: #f3f4f6;
  }

  .nav-right {
    color: #9ca3af;
  }

  .nav-right a:hover {
    color: #f3f4f6;
  }

  .nav-login {
    border-color: #4b5563;
  }

  .nav-login:hover {
    border-color: #f3f4f6;
    color: #f3f4f6;
  }

  .hero-sub,
  .ssh-sub {
    color: #9ca3af;
  }

  .prompt-input {
    background: #1a1a1a;
    border-color: #374151;
    color: #f3f4f6;
  }

  .prompt-input:focus {
    border-color: #f3f4f6;
    background: #1a1a1a;
  }

  .prompt-input::placeholder {
    color: #6b7280;
  }

  .prompt-label {
    color: #9ca3af;
  }

  .prompt-submit {
    background: #f3f4f6;
    color: #111;
  }

  .prompt-submit:hover {
    background: #d1d5db;
  }

  .hero-divider {
    background: #374151;
  }

  .hero-right {
    border-top-color: #2a2a2a;
  }

  .features {
    border-top-color: #2a2a2a;
  }

  .feature-inner {
    border-top-color: #f3f4f6;
  }

  .feature p {
    color: #9ca3af;
  }

  .feature a {
    color: #d1d5db;
  }

  .feature a:hover {
    color: #f3f4f6;
  }

  .feature code {
    background: #2a2a2a;
  }

  .endorsements {
    border-top-color: #2a2a2a;
  }

  .endorsement {
    border-color: #2a2a2a;
  }

  .endorsement blockquote {
    color: #d1d5db;
  }

  .endorsement cite {
    color: #9ca3af;
  }

  .source-link {
    color: #6b7280;
  }

  .source-link:hover {
    color: #9ca3af;
  }

  footer {
    border-top-color: #2a2a2a;
    color: #6b7280;
  }

  .ideas-btn {
    color: #9ca3af;
    border-color: #4b5563;
  }

  .ideas-btn:hover {
    border-color: #f3f4f6;
    color: #f3f4f6;
  }

  .ideas-backdrop {
    background: rgba(0, 0, 0, 0.4);
  }

  .ideas-panel {
    background: #1a1a1a;
  }

  .ideas-close {
    color: #666;
  }

  .ideas-close:hover {
    color: #ccc;
  }

  .ideas-section-title {
    color: #666;
    border-bottom-color: #333;
  }

  .ideas-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
  }

  .ideas-card:hover {
    border-color: #444;
    background: #222;
  }

  .ideas-card-title {
    color: #f0f0f0;
  }

  .ideas-card-desc {
    color: #888;
  }

  .ideas-empty {
    color: #666;
  }
}
