:root {
  --bg: #090909;
  --panel: #121212;
  --panel-edge: #2b2b2b;
  --text: #efefef;
  --muted: #b0b0b0;
  --accent: #f0f0f0;
  --accent-strong: #ffffff;
  --danger: #a8393a;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", "Noto Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 10%, #1c1c1c 0, transparent 33%),
    radial-gradient(circle at 85% 72%, #151515 0, transparent 32%), var(--bg);
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(1px);
  animation: drift 16s ease-in-out infinite;
}

.shape-1 {
  width: 340px;
  height: 340px;
  background: #2b2b2b;
  top: -90px;
  right: -40px;
}

.shape-2 {
  width: 280px;
  height: 280px;
  background: #222222;
  left: -70px;
  bottom: -90px;
  animation-delay: -6s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #1f1f1f;
  left: 55%;
  top: 38%;
  animation-delay: -10s;
}

.app {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem 2.4rem;
  position: relative;
  z-index: 1;
}

.hero {
  margin-bottom: 2rem;
  animation: rise 0.7s ease both;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  color: #909090;
  font-weight: 800;
}

.app h1 {
  margin: 0.5rem 0 0.6rem;
  font-family: "IBM Plex Sans", "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.05;
  color: #ffffff;
  font-weight: 800;
}

.subhead {
  margin: 0;
  max-width: 72ch;
  color: #b7b7b7;
  line-height: 1.55;
}

.hero-links {
  margin: 0.9rem 0 0;
}

.nav-link {
  color: #ececec;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.nav-link:hover {
  color: #ffffff;
}

.grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1.4fr;
}

.panel {
  background: linear-gradient(170deg, rgba(22, 22, 22, 0.98), rgba(12, 12, 12, 0.98));
  border: 1px solid #2f2f2f;
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 1.05rem;
  animation: rise 0.7s ease both;
}

.panel:nth-child(2) {
  animation-delay: 0.1s;
}

.app h2 {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 800;
}

.app form {
  display: grid;
  gap: 0.6rem;
}

.app label {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c8c8c8;
}

.app input,
.app select,
.app textarea,
.app button {
  font: inherit;
}

.app input,
.app select,
.app textarea {
  border-radius: 10px;
  border: 1px solid #373737;
  background: #101010;
  padding: 0.62rem 0.72rem;
  color: #f1f1f1;
}

.app input::placeholder,
.app textarea::placeholder {
  color: #7f7f7f;
}

.app input:focus,
.app select:focus,
.app textarea:focus {
  outline: 2px solid #f0f0f0;
  outline-offset: 1px;
}

.app textarea {
  resize: vertical;
}

.app button {
  border: 0;
  border-radius: 11px;
  padding: 0.62rem 0.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f2f2f2, #cfcfcf);
  color: #101010;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.app button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.danger {
  background: linear-gradient(135deg, #5f1e1f, #3f1112) !important;
  color: #ffe8e8 !important;
}

.danger:hover {
  filter: brightness(1.08);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #2d2d2d;
}

.filters {
  display: flex;
  gap: 0.5rem;
}

.filters select {
  min-width: 150px;
  background: #101010;
}

.snippet-list {
  display: grid;
  gap: 0.75rem;
}

.snippet-card {
  border: 1px solid #343434;
  border-radius: 14px;
  background: linear-gradient(165deg, #171717, #101010);
  padding: 0.85rem;
}

.snippet-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.collection-badge,
.type-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.21rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #3c3c3c;
}

.collection-badge {
  background: #1d1d1d;
  color: #e1e1e1;
}

.type-badge {
  background: #141414;
  color: #d2d2d2;
}

.snippet-title {
  margin: 0.55rem 0 0.4rem;
  color: #ffffff;
}

.snippet-notes {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: #b5b5b5;
}

.app pre {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #353535;
  background: #0d0d0d;
  color: #ececec;
  padding: 0.7rem;
  overflow: auto;
}

.app code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.snippet-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.empty-state {
  margin: 0;
  font-size: 0.96rem;
  color: #b7b7b7;
  padding: 1rem;
  border-radius: 12px;
  background: #141414;
  border: 1px solid #343434;
}

.share-app {
  max-width: 860px;
}

.share-error {
  margin: 0;
  font-size: 1rem;
  color: #ffd8d8;
  background: #331112;
  border: 1px solid #6d2b2c;
  border-radius: 12px;
  padding: 0.8rem;
}

.save-controls {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
  max-width: 360px;
}

.save-status {
  margin: 0.55rem 0 0;
  min-height: 1.25rem;
  color: #efefef;
  font-size: 0.88rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -14px);
  }
}

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

@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    flex-direction: column;
  }

  .filters select {
    min-width: unset;
    width: 100%;
  }
}

.home-template {
  position: relative;
  z-index: 1;
  padding: 1.4rem 0 3rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-row,
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.site-header {
  padding: 0.7rem 0 0.6rem;
}

.brand {
  display: inline-block;
  text-decoration: none;
  color: #fafafa;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-list a {
  color: #cbcbcb;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-list a:hover {
  color: #ffffff;
}

.hero-grid {
  padding: 1.4rem 0 1.2rem;
}

.hero-content {
  display: grid;
  gap: 0.85rem;
  max-width: 880px;
  animation: rise 0.6s ease both;
}

.hero-kicker,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #8d8d8d;
}

.hero-content h1 {
  margin: 0;
  font-family: "IBM Plex Sans", "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 4.9vw, 3.6rem);
  line-height: 1.02;
  font-weight: 800;
  color: #ffffff;
}

.hero-copy {
  margin: 0;
  max-width: 60ch;
  color: #b7b7b7;
  font-size: 1.02rem;
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #f1f1f1, #cfcfcf);
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.btn-secondary {
  background: #171717;
  color: #ececec;
  border: 1px solid #3a3a3a;
}

.section-block {
  margin-top: 2.2rem;
  padding: 2.2rem 0;
  background: linear-gradient(170deg, rgba(19, 19, 19, 0.95), rgba(10, 10, 10, 0.96));
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.section-muted {
  background: linear-gradient(180deg, #161616 0%, #111111 100%);
  border: 1px solid #343434;
}

.section-head {
  display: grid;
  gap: 0.7rem;
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.section-head h2,
.process-content h2,
.cta-shell h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-family: "IBM Plex Sans", "Space Grotesk", sans-serif;
  color: #f7f7f7;
  line-height: 1.15;
}

.section-head p,
.process-content p,
.cta-shell p,
.feature-card p,
.testimonial-card p,
.steps-list {
  margin: 0;
  color: #b5b5b5;
  line-height: 1.6;
}

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

.feature-card,
.testimonial-card {
  background: linear-gradient(170deg, #191919, #131313);
  border: 1px solid #333333;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.03rem;
  color: #ffffff;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.steps-list {
  margin-top: 0.9rem;
  padding-left: 1.2rem;
}

.steps-list li + li {
  margin-top: 0.7rem;
}

.media-stack {
  display: grid;
  gap: 0.8rem;
}

.media-shell {
  min-height: 180px;
  border-radius: 18px;
  border: 1px solid #3d3d3d;
  background: linear-gradient(135deg, #1b1b1b 0%, #121212 70%, #101010 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  padding: 0.9rem;
  margin: 0;
  display: flex;
  align-items: flex-end;
}

.media-label {
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
  border: 1px solid #454545;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.testimonial-meta {
  margin-top: 0.6rem;
  color: #f0f0f0;
  font-weight: 700;
}

.cta-section {
  margin-top: 2.2rem;
  padding: 0;
}

.cta-shell {
  background: linear-gradient(145deg, #171717, #0f0f0f 70%, #161616);
  border: 1px solid #343434;
  border-radius: 22px;
  padding: 1.45rem;
  display: grid;
  gap: 0.75rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 1rem 0 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand,
.footer-links {
  margin: 0;
  color: #9f9f9f;
  font-size: 0.9rem;
}

.footer-brand {
  font-weight: 700;
}

@media (max-width: 900px) {
  .features-grid,
  .split-layout,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .section-block,
  .cta-section {
    margin-top: 1.6rem;
  }

  .nav-row,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    gap: 0.7rem;
  }
}
