/* Generic section shell */
.layout-container {
  /* min-height: 100vh; */

  background: url('../img/bg.webp');
  background-size: cover;
  background-position: center;
}
main {
  position: relative;
  padding: 0 2rem;
  margin: 5rem auto 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

@media (max-width: 1000px) {
  main {
    padding: 0 0.5rem;
  }
}

main .background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

main .background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
}

main > *:not(.background) {
  position: relative;
  z-index: 1;
}

/* Intro section */
main.features-intro {
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  max-width: none;
  padding: 6rem 6rem;
  min-height: 80vh;
}

main.features-intro .feature-text {
  max-width: 500px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 8px;
  color: white;
}

/* Nova section */
main.meet-nova {
  border-radius: 20px;
  margin-top: -20px;
  padding: 6rem 18rem;
  z-index: 2;
  background: url('assets/bg/cyber-blue.webp');
  background-size: cover;
  background-position: center;
}

main.meet-nova .feature-text { flex: 2; }
main.meet-nova .feature-text div { padding: 0 100px; }

.feature-block { display: flex; gap: 2rem; align-items: center; }
.feature-block.reverse { flex-direction: row-reverse; }
.feature-image { flex: 1; }
.feature-image img { width: 100%; border-radius: 8px; object-fit: cover; }
.feature-text { flex: 1; }
.feature-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.feature-text p { font-size: 1.125rem; line-height: 1.6; }
.feature-text ul { list-style: none; padding: 0; margin: 2rem 0 0; }
.feature-text li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; font-size: 1.125rem; }
.feature-text li::before { content: '•'; position: absolute; left: 0; top: 0; color: #ffd33d; font-size: 1.5rem; line-height: 1; }

/* New features list section */
main.bottom.features-list {
  margin-top: -20px;
  padding: 6rem;
  color: white;
  width: 100%;

  background: url('assets/bg/black-seamless.webp');
  background-repeat: repeat;
  /* background-size: cover;
  background-position: center; */
}

.features-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.features-head h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.features-head .subhead {
  font-size: 1.125rem;
  color: #ddd;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: #fff;
}

.feature-item .kicker {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  color: #cfd6e4;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #dfe6f6;
  font-size: 0.98rem;
}

.points li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.4rem 0;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffd33d;
}

/* CTA */
.bottom-cta { display: flex; justify-content: center; margin-top: 2rem; }
.signup-trial { display: flex; justify-content: center; }

/* Responsive */
@media (max-width: 1400px) {
  main.features-intro { flex-direction: column-reverse; padding: 4rem 2rem; }
  main.features-intro .feature-text { max-width: unset; margin: 3rem 6rem 0; }
  main.meet-nova { padding: 6rem; }
}

@media (max-width: 1100px) {
  main.meet-nova { padding: 4rem 2rem; text-align: center; align-items: center; }
  main.meet-nova .feature-text div { padding: 0 2rem; }
  main.meet-nova img.eye { max-width: 50%; }
  .feature-block { flex-direction: column; }
  .feature-block.reverse { flex-direction: column; }
  .feature-text h2 { font-size: 1.75rem; }
  .feature-text p, .feature-text li { font-size: 1.05rem; }

  main.bottom.features-list { padding: 5rem 2rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
}

@media (max-width: 768px) {
  main.features-intro { padding: 4rem 1.5rem; }
  main.features-intro .feature-text { margin: 3rem 1rem 0; }
  main.meet-nova { padding: 4rem 1.5rem; }
  main.meet-nova .feature-text div { padding: 0; }
  main.bottom.features-list { padding: 4rem 1.5rem; }
  .features-head h2 { font-size: 1.9rem; }
  .features-head .subhead { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; max-width: 720px; }
  .feature-item h3 { font-size: 1.2rem; }
  .feature-item .kicker, .points { font-size: 0.98rem; }
}





/* Index */
.home .blog-hero {
  text-align: center;
  padding: 3rem 2rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.home .blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.home .blog-hero p {
  font-size: 1.125rem;
  color: white;
}

.home .latest-posts h2,
.home .tag-highlight h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.home .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.home .post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.2s ease;
  padding: 0;
  padding-bottom: 1.5rem;
}

.home .post-card a {
  color: hsl(48, 100%, 87%);
}

.home .post-card:hover {
  transform: translateY(-3px);
}

.home .post-image {
  width: 100%;
  object-fit: cover;
  max-height: 200px;
  border-radius: 4px 4px 0 0;
}

.home .post-content {
  padding: 1rem;
}

.home .post-content h3 {
  margin: 0 0 0.5rem;
}


.home .post-meta {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.home .tag-sections {
  margin-top: 4rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.home .latest-tag-post h2 {
  margin-bottom: 1rem;
}



/* Post */
.post-page {
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
@media (max-width: 768px) {
  .post-page {
    padding: 1rem 0;
  }
}

.post-page .glass {
  padding: 0;
  max-width: unset;
}

.post-page .feature-image {
  margin-bottom: 2rem;
}

.post-page .feature-image img {
  width: 100%;
  height: auto;
  max-height: 50vh;
  border-radius: 6px;
}

.post-page figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #777;
  margin-top: 0.5rem;
}

.post-page .header {
  margin-bottom: 2rem;
  padding: 0 3rem;
  text-align: center;
}

.post-page .title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.post-page .meta {
  font-size: 0.875rem;
  color: white;
  margin-bottom: 1rem;
}

.post-page .tags {
  margin-bottom: 2rem;
}

.post-page .tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--accent-teal, #008080);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  text-decoration: none;
}

.post-page .content {
  line-height: 1.7;
  font-size: 1.1rem;
  max-width: unset;
  padding: 0 3rem;
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  .post-page .content {
    padding: 0 1.5rem 1.5rem;
  }
}

.post-page .content h2,
.post-page .content h3,
.post-page .content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.post-page .content hr {
  margin-top: 2.5rem;
}

.post-page .content h2 {
  font-size: 1.25rem;
}
@media (max-width: 1000px) {
  .post-page .title {
    font-size: 1.75rem;
  }
}
@media (max-width: 768px) {
  .post-page .title {
    font-size: 1.5rem;
  }
}

.post-page .content h3 {
  font-size: 1.5rem;
}
.post-page .content h4 {
  font-size: 1.25rem;
}

.post-page .content p {
  margin: 1rem 0;
}

.post-page .content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 2rem 0;
}

.post-page .content blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-teal, #008080);
  color: #444;
  font-style: italic;
}

.post-page .content ul,
.post-page .content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-page .content code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  font-size: 0.95rem;
  border-radius: 4px;
}

.post-page .post-nav {
  display: flex;
  justify-content: space-between;
  margin: 4rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
}

.post-page .post-nav a {
  text-decoration: none;
  font-weight: 500;
}

.post-page .post-nav a:hover {
  text-decoration: underline;
}

.post-page .related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.post-page .related-posts .related-post-list {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.post-page .related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.post-page .related-posts ul {
  list-style: none;
  padding: 0;
}

.post-page .related-posts li {
  margin-bottom: 0.75rem;
}

.post-page .related-posts a {
  font-weight: 500;
  text-decoration: none;
}

.post-page .related-posts .date {
  display: block;
  font-size: 0.75rem;
}

.post-page .share-buttons {
  margin-top: 2rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-color, #ddd);
}

.post-page .share-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.post-page .share-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.post-page .share-links li a {
  text-decoration: none;
}

.post-page .share-links li a:hover {
  text-decoration: underline;
}




/* Tag Page */
.tag-page {
  padding: 3rem 1rem;
}

.tag-cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.tag-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tag-title {
  font-size: 2.25rem;
  font-weight: 700;
}

.tag-description {
  font-size: 1.125rem;
  color: var(--on-surface-subtle, #666);
  margin-top: 0.5rem;
}

/* Featured Section */
.tag-featured {
  margin: 0 auto 8rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.tag-featured .post-content h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tag-post.featured {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tag-post.featured .image-link img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.tag-post.featured .post-content {
  padding: 0.5rem 1.5rem;
}

/* Grid of Non-Featured Posts */
.tag-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.tag-post {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tag-post .image-link img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.tag-post .post-content {
  padding: 1rem;
  padding-bottom: 2rem;
}

.tag-post h2 {
  font-size: 1.25rem;
}

.tag-post h2 a {
  text-decoration: none;
}

.tag-post .meta {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.tag-post .excerpt {
  font-size: 1rem;
  color: var(--on-surface, #ddd);
}

.no-posts {
  text-align: center;
  font-style: italic;
  margin-top: 3rem;
  color: #999;
}

@media (max-width: 1000px) {
  .tag-featured {
    display: none;
  }
}
