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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #0c0b0a;
  color: #e8e3db;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

code {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #e8e3db;
}

.nav-logo {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: rgba(232, 227, 219, 0.5);
}

.nav-links a:hover {
  color: #e8e3db;
}

.nav-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e3db !important;
  font-weight: 500;
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 160px 24px 48px;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.05s ease both;
}

.hero-logo {
  width: clamp(86px, 12vw, 118px);
  height: auto;
  display: block;
  border-radius: 26px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 72px rgba(0, 0, 0, 0.36);
}

.hero-title {
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #f0ece4;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-sub {
  max-width: 38ch;
  font-size: 17px;
  color: rgba(232, 227, 219, 0.45);
  line-height: 1.6;
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-footnote {
  margin-top: 18px;
  color: rgba(232, 227, 219, 0.46);
  font-size: 12px;
  animation: fadeUp 0.8s 0.42s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 200ms ease,
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

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

.btn-primary {
  background: #f0ece4;
  color: #0c0b0a;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 4px 24px rgba(240, 236, 228, 0.15);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 227, 219, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8e3db;
}

.preview {
  display: flex;
  justify-content: center;
  padding: 24px 24px 88px;
}

.preview-window {
  width: 100%;
  max-width: 452px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 120px rgba(240, 236, 228, 0.03);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.preview-window.in-view {
  opacity: 1;
  transform: translateY(0);
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-title {
  font-size: 11px;
  font-weight: 500;
  color: rgba(232, 227, 219, 0.35);
  letter-spacing: 0.04em;
}

.preview-body {
  padding: 0;
}

.preview-header-row {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-nav-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 227, 219, 0.3);
  font-size: 14px;
  border-radius: 8px;
}

.preview-nav-active {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 227, 219, 0.65);
}

.preview-nav-right {
  margin-left: auto;
}

.preview-nav-right + .preview-nav-right {
  margin-left: 2px;
}

.preview-date {
  flex: 1;
  text-align: center;
  font-family: "Newsreader", Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(232, 227, 219, 0.6);
  letter-spacing: -0.02em;
}

.preview-editor-shell {
  min-height: 560px;
}

.preview-editor-host {
  min-height: 560px;
  padding: 18px 18px 24px;
}

.preview-editor-host .ProseMirror {
  min-height: 518px;
  outline: none;
  color: #f0ece4;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  caret-color: #f0ece4;
}

.preview-editor-host .ProseMirror > *:first-child {
  margin-top: 0;
}

.preview-editor-host .ProseMirror h1,
.preview-editor-host .ProseMirror h2,
.preview-editor-host .ProseMirror h3,
.preview-editor-host .ProseMirror h4,
.preview-editor-host .ProseMirror h5,
.preview-editor-host .ProseMirror h6 {
  font-family: "Newsreader", Georgia, serif;
  color: #f0ece4;
  letter-spacing: -0.03em;
}

.preview-editor-host .ProseMirror h1 {
  font-size: 28px;
  margin: 0 0 10px;
}

.preview-editor-host .ProseMirror h2 {
  font-size: 22px;
  margin: 20px 0 9px;
}

.preview-editor-host .ProseMirror h3 {
  font-size: 18px;
  margin: 16px 0 8px;
}

.preview-editor-host .ProseMirror p,
.preview-editor-host .ProseMirror li {
  color: rgba(232, 227, 219, 0.76);
}

.preview-editor-host .ProseMirror ul,
.preview-editor-host .ProseMirror ol {
  padding-left: 1.2rem;
  margin: 10px 0;
}

.preview-editor-host .ProseMirror blockquote {
  margin: 12px 0;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  color: rgba(232, 227, 219, 0.62);
}

.preview-editor-host .ProseMirror hr {
  border: none;
  height: 1px;
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.08);
}

.preview-editor-host .ProseMirror pre {
  margin: 14px 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.preview-editor-host .ProseMirror pre code {
  padding: 0;
  background: transparent;
}

.preview-editor-host .ProseMirror code {
  font-family: "JetBrains Mono", "SF Mono", monospace;
}

.preview-editor-host .ProseMirror a {
  color: #f0ece4;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.24);
}

.preview-editor-host .ProseMirror ul[data-type="taskList"] {
  list-style: none;
  padding-left: 0;
}

.preview-editor-host .ProseMirror ul[data-type="taskList"] li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.preview-editor-host .ProseMirror ul[data-type="taskList"] li > label {
  display: inline-flex;
  margin-top: 3px;
}

.preview-editor-host .ProseMirror ul[data-type="taskList"] li > label input {
  width: 14px;
  height: 14px;
  accent-color: #f0ece4;
}

.preview-editor-host .ProseMirror ul[data-type="taskList"] li > div {
  min-width: 0;
}

.site-shot {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.site-shot-last {
  padding-top: 8px;
}

.site-shot-link {
  display: block;
}

.site-shot-image {
  width: 100%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 22px 72px rgba(0, 0, 0, 0.34);
}

.performance {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.performance-last {
  padding-top: 8px;
}

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

.performance-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.performance-image {
  width: 100%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 22px 72px rgba(0, 0, 0, 0.28);
}

.performance-label {
  color: rgba(232, 227, 219, 0.64);
  font-size: 14px;
  text-align: center;
}

.features {
  padding: 0 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
}

.feature-card {
  padding: 32px 28px;
  background: rgba(12, 11, 10, 0.92);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease;
}

.feature-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(1).in-view { transition-delay: 0s; }
.feature-card:nth-child(2).in-view { transition-delay: 0.06s; }
.feature-card:nth-child(3).in-view { transition-delay: 0.12s; }
.feature-card:nth-child(4).in-view { transition-delay: 0.18s; }
.feature-card:nth-child(5).in-view { transition-delay: 0.24s; }
.feature-card:nth-child(6).in-view { transition-delay: 0.3s; }

.feature-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feature-card h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f0ece4;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 13px;
  color: rgba(232, 227, 219, 0.38);
  line-height: 1.55;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 60px 24px 80px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.closing.in-view {
  opacity: 1;
  transform: translateY(0);
}

.closing-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 227, 219, 0.35);
}

.closing-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f0ece4;
  max-width: 18ch;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: rgba(232, 227, 219, 0.48);
}

.site-footer a {
  color: rgba(232, 227, 219, 0.68);
}

.site-footer a:hover {
  color: #e8e3db;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 14px 20px;
  }

  .hero {
    padding: 140px 20px 40px;
  }

  .hero-logo {
    width: 88px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 10vw, 3.8rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .closing-actions {
    flex-direction: column;
    width: 100%;
  }

  .preview {
    padding: 24px 16px 60px;
  }

  .preview-window {
    max-width: min(100%, 452px);
  }

  .features {
    padding: 0 16px 60px;
  }

  .site-shot {
    padding: 0 16px 60px;
  }

  .performance {
    padding: 0 16px 60px;
  }

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

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

  .closing {
    padding: 40px 20px 60px;
  }

  .site-footer {
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-wordmark span {
    display: none;
  }

  .feature-card h2 {
    font-size: 24px;
  }

  .feature-card {
    padding: 24px 22px;
  }
}
