/* MOSS Landing Page — v4 */
/* Inspired by Ryo Lu: soul, warmth, alive */

:root {
  /* Warm, paper-like palette */
  --bg: #f4f1eb;
  --bg-warm: #ebe7df;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --accent: #1a5f4a;
  --accent-hover: #15503e;

  /* Window chrome */
  --window-bg: #fdfcfa;
  --window-border: #d4cfc4;
  --titlebar-start: #e8e4dc;
  --titlebar-end: #dcd8d0;

  /* Traffic lights */
  --red: #ff5f57;
  --yellow: #ffbd2e;
  --green: #28c840;

  /* Shadows - soft, layered */
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-window: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

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

html {
  font-size: 17px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 3rem;
}

.logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
}

header nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeUp 0.6s ease-out;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero .subhead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Mac Window */
.browser-showcase {
  margin-bottom: 4rem;
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.mac-window {
  background: var(--window-bg);
  border-radius: 10px;
  border: 1px solid var(--window-border);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window-titlebar {
  background: linear-gradient(180deg, var(--titlebar-start) 0%, var(--titlebar-end) 100%);
  border-bottom: 1px solid var(--window-border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.15);
}

.light.red { background: var(--red); }
.light.yellow { background: var(--yellow); }
.light.green { background: var(--green); }

.window-title {
  flex: 1;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.window-actions {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.window-toolbar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--window-border);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb .crumb.active {
  color: var(--text);
}

.separator {
  opacity: 0.4;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
}

.view-btn {
  font-size: 0.9rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
}

.view-btn.active {
  background: var(--window-bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

/* File List */
.file-list {
  padding: 0.5rem 0;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  transition: background 0.15s;
  cursor: default;
}

.file-row:hover {
  background: var(--bg-warm);
}

.file-icon {
  font-size: 1.4rem;
  width: 2rem;
  text-align: center;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.file-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-badge.done {
  background: var(--accent);
  color: white;
}

.file-badge.processing {
  background: transparent;
}

/* Spinner animation */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg-warm);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.file-row.processing .file-meta {
  color: var(--accent);
}

.browser-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--window-border);
  margin: 3rem 0;
}

/* How Section */
.how-section {
  margin-bottom: 3rem;
}

.how-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.how-intro {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Terminal Window */
.terminal-window {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-medium);
}

.terminal-bar {
  background: #363636;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
}

.terminal-bar .traffic-lights {
  gap: 5px;
}

.terminal-bar .light {
  width: 10px;
  height: 10px;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #888;
}

.terminal-content {
  padding: 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt {
  color: #7ec699;
}

.command {
  color: #ddd;
}

.terminal-line.output {
  margin-top: 0.25rem;
}

.claude-prompt {
  color: #cc99ff;
}

.typing {
  color: #b0b0b0;
}

.cursor {
  color: #cc99ff;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Steps */
.steps {
  margin-bottom: 2rem;
}

.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.step:last-child {
  margin-bottom: 0;
}

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  background: var(--accent);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step-content strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Requirements */
.requirements {
  background: var(--bg-warm);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.requirements h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.requirements ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.requirements li {
  font-size: 0.85rem;
  color: var(--text);
  position: relative;
  padding-left: 1rem;
}

.requirements li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: white !important;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(26, 95, 74, 0.25);
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Extend Section */
.extend-section {
  margin-bottom: 3rem;
}

.extend-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.extend-section > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.patch {
  background: var(--window-bg);
  border: 1px solid var(--window-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}

a.patch:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.patch.coming {
  opacity: 0.6;
}

.patch-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.patch-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

.patch-status.live {
  background: var(--accent);
  color: white;
}

.patch-status.soon {
  background: var(--bg-warm);
  color: var(--text-muted);
}

.patch p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.patches-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Waitlist Section */
.waitlist-section {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-warm);
  border-radius: 10px;
  margin-bottom: 2rem;
}

.waitlist-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.waitlist-section > p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.waitlist-form {
  display: flex;
  gap: 0.5rem;
  max-width: 340px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  border: 1px solid var(--window-border);
  border-radius: 6px;
  background: var(--window-bg);
  color: var(--text);
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.1);
}

.waitlist-form button {
  padding: 0.7rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--text);
  color: var(--window-bg);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.waitlist-form button:hover {
  background: #333;
}

/* Footer */
footer {
  padding-top: 2rem;
  border-top: 1px solid var(--window-border);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .page {
    padding: 1.5rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .feature {
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .feature-icon {
    margin-bottom: 0;
  }

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

  .requirements ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .file-row {
    padding: 0.65rem 0.75rem;
  }
}
