/* ==========================================================================
   VELVET INK THEME — CSS
   Inspired by Evie (unDraw) visual DNA:
   - Purple/indigo gradient hero overlays
   - Teal/green accent color
   - Pill-shaped buttons with ghost variants
   - Spacious layout, alternating section backgrounds
   - Clean sans-serif typography (Lato-like)
   - Dark footer, light body
   - Smooth 0.7s transitions
   - Dotted-border footer links
   - Underline hover animations on nav
   ========================================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  font-weight: 400;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: 0.5s;
  outline: 0;
}

p { margin: 0 0 1.3em; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  color: #1a1a2e;
  font-weight: 400;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.15em; }

ul, ol { padding-left: 1.4em; }

/* --- LAYOUT --- */
.container {
  width: 88%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.container--narrow {
  max-width: 780px;
}

/* --- SKIP NAV --- */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: #6C63FF;
  color: #fff;
  padding: 8px 16px;
  z-index: 200;
  font-size: 0.9em;
  transition: top 0.3s;
}
.skip-nav:focus {
  top: 0;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background-color 0.5s, box-shadow 0.5s;
  background-color: transparent;
}

.navbar--scrolled {
  background-color: rgba(108, 99, 255, 0.97);
  box-shadow: 0 2px 12px rgba(70, 65, 255, 0.25);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  color: #fff;
}

.navbar__brand {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.navbar__brand img {
  height: 32px;
  width: auto;
  vertical-align: middle;
}

.navbar__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.navbar__menu a {
  color: #fff;
  opacity: 0.8;
  padding: 6px 12px;
  display: inline-block;
  position: relative;
  font-size: 0.95em;
}

.navbar__menu a::after {
  content: '';
  display: block;
  border-bottom: 2px solid #fff;
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
}

@media (min-width: 992px) {
  .navbar__menu a:hover {
    opacity: 1;
  }
  .navbar__menu a:hover::after {
    transform: scaleX(1);
  }
}

/* Hamburger */
.navbar__toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  margin: 0;
}

.navbar__toggle svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 992px) {
  .navbar__toggle { display: none; }
}

/* Mobile menu */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(26, 26, 46, 0.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav__list li {
  margin: 0.75em 0;
}

.mobile-nav__list a {
  color: #fff;
  font-size: 1.3rem;
  padding: 8px 0;
  display: inline-block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav__close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6C63FF 0%, #4641FF 60%, #3a35d9 100%);
  opacity: 0.96;
  z-index: 1;
}

.hero__mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.12;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(6,209,156,0.1) 0%, transparent 50%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 120px 0 80px;
}

.hero__content {
  max-width: 640px;
}

.hero__title {
  color: inherit;
  font-size: 2.4em;
  font-weight: 400;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3em;
  }
}

.hero__subtitle {
  opacity: 0.88;
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 2em;
  max-width: 520px;
}

.hero__subtitle p { margin-bottom: 0.6em; }

/* Buttons (pill shape — Evie DNA) */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 0.95em;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.5s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.7;
}

.btn--accent {
  background-color: #06d19c;
  border-color: #06d19c;
  color: #fff;
}

.btn--accent:hover {
  background-color: #05bd8d;
  border-color: #05bd8d;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: #6C63FF;
  color: #6C63FF;
}

.btn--outline:hover {
  background-color: #6C63FF;
  color: #fff;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  justify-content: center;
  padding: 16px 0;
  background: #fff;
}

.hero__scroll__icon {
  width: 18px;
  height: 18px;
  color: #999;
  cursor: pointer;
  transition: 0.5s;
}

.hero__scroll__icon:hover {
  color: #6C63FF;
}

/* ==========================================================================
   SECTIONS — Alternating backgrounds (Evie DNA)
   ========================================================================== */
.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section--alt {
  background-color: #f7f7f9;
  border-top: 1px solid #eef0f2;
  border-bottom: 1px solid #eef0f2;
}

.section__header {
  margin-bottom: 40px;
}

.section__title {
  font-size: 1.75em;
  color: #1a1a2e;
  margin-bottom: 0.3em;
}

.section__lead {
  color: #777;
  font-size: 1.05em;
  max-width: 52ch;
}

/* ==========================================================================
   TOPICS — Side-by-side blocks (Evie expanded section DNA)
   ========================================================================== */
.topics-grid {
  display: grid;
  gap: 0;
}

.topic-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid #eef0f2;
}

.topic-row:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .topic-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
    padding: 56px 0;
  }

  .topic-row:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.topic-row__marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C63FF, #4641FF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .topic-row__marker {
    margin-bottom: 0;
  }
}

.topic-row__body {
  flex: 1;
}

.topic-row__name {
  font-size: 1.3em;
  color: #1a1a2e;
  margin-bottom: 0.35em;
  font-weight: 400;
}

.topic-row__desc {
  color: #666;
  line-height: 1.75;
  max-width: 60ch;
}

.topic-row__desc p {
  margin-bottom: 0.5em;
}

/* ==========================================================================
   LATEST POSTS
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .posts-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Post card — no box-shadow, border-based (Evie uses borders over shadows) */
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eef0f2;
  border-radius: 4px;
  overflow: hidden;
  transition: 0.5s;
  background: #fff;
}

.post-card:hover {
  border-color: #d5d3f7;
}

.post-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.post-card__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__date {
  font-size: 0.8em;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.post-card__title {
  font-size: 1.1em;
  color: #1a1a2e;
  margin-bottom: 0.5em;
  font-weight: 400;
  line-height: 1.4;
}

.post-card__title a {
  color: inherit;
}

.post-card__title a:hover {
  color: #6C63FF;
}

.post-card__excerpt {
  font-size: 0.9em;
  color: #777;
  line-height: 1.65;
  flex: 1;
}

.post-card__excerpt p {
  margin-bottom: 0.5em;
}

.post-card__link {
  display: inline-block;
  color: #6C63FF;
  font-size: 0.9em;
  margin-top: auto;
  padding-top: 8px;
  position: relative;
}

.post-card__link::after {
  content: ' →';
}

/* ==========================================================================
   FAQ — clean toggle (not accordion, following Evie's expansive style)
   ========================================================================== */
.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid #eef0f2;
  padding: 24px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item__question {
  font-size: 1.1em;
  color: #1a1a2e;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  line-height: 1.5;
}

.faq-item__question:focus {
  outline: 2px solid #6C63FF;
  outline-offset: 2px;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #6C63FF;
  transition: transform 0.3s;
  margin-top: 3px;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  color: #666;
  line-height: 1.75;
  font-size: 0.95em;
}

.faq-item.is-open .faq-item__answer {
  max-height: 600px;
  padding-top: 16px;
}

.faq-item__answer p {
  margin-bottom: 0.6em;
}

/* ==========================================================================
   BLOG INDEX
   ========================================================================== */
.blog-header {
  position: relative;
  color: #fff;
  padding: 120px 0 48px;
  overflow: hidden;
}

.blog-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6C63FF 0%, #4641FF 100%);
  opacity: 0.96;
  z-index: 1;
}

.blog-header__inner {
  position: relative;
  z-index: 3;
}

.blog-header__title {
  color: #fff;
  font-size: 2em;
  font-weight: 400;
}

/* Post list (blog index — asymmetric: featured + list) */
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 600px) {
  .blog-list {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.blog-post-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #eef0f2;
  padding-bottom: 28px;
}

@media (min-width: 600px) {
  .blog-post-item {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.blog-post-item__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.blog-post-item__date {
  font-size: 0.8em;
  color: #999;
  margin-bottom: 4px;
}

.blog-post-item__title {
  font-size: 1.15em;
  color: #1a1a2e;
  margin-bottom: 0.4em;
  font-weight: 400;
  line-height: 1.4;
}

.blog-post-item__title a {
  color: inherit;
}

.blog-post-item__title a:hover {
  color: #6C63FF;
}

.blog-post-item__excerpt {
  font-size: 0.9em;
  color: #777;
  line-height: 1.65;
}

.blog-post-item__excerpt p {
  margin-bottom: 0.4em;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 0 16px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid #eef0f2;
  font-size: 0.9em;
  color: #555;
  transition: 0.4s;
}

.pagination a:hover {
  border-color: #6C63FF;
  color: #6C63FF;
}

.pagination .active {
  background: #6C63FF;
  border-color: #6C63FF;
  color: #fff;
}

.pagination__arrow {
  font-size: 0.85em;
  color: #6C63FF;
  border-color: #6C63FF;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.post-header {
  position: relative;
  color: #fff;
  padding: 120px 0 48px;
  overflow: hidden;
}

.post-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6C63FF 0%, #4641FF 100%);
  opacity: 0.96;
  z-index: 1;
}

.post-header__inner {
  position: relative;
  z-index: 3;
}

.post-header__date {
  font-size: 0.85em;
  opacity: 0.75;
  margin-bottom: 8px;
}

.post-header__title {
  color: #fff;
  font-size: 2.2em;
  font-weight: 400;
  max-width: 700px;
  line-height: 1.25;
}

.post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 32px;
}

/* Article content styling */
.article-content {
  max-width: 720px;
  color: #444;
  line-height: 1.8;
  font-size: 1.02em;
}

.article-content h2 {
  margin-top: 1.8em;
  font-size: 1.5em;
}

.article-content h3 {
  margin-top: 1.5em;
  font-size: 1.25em;
}

.article-content a {
  color: #6C63FF;
  border-bottom: 1px dotted #6C63FF;
  padding-bottom: 1px;
}

.article-content a:hover {
  color: #4641FF;
  border-color: #4641FF;
}

.article-content img {
  border-radius: 4px;
  margin: 1.5em 0;
}

.article-content blockquote {
  border-left: 3px solid #6C63FF;
  margin: 1.5em 0;
  padding: 12px 0 12px 24px;
  color: #555;
  font-style: italic;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.3em;
}

.article-content pre {
  background: #f7f7f9;
  padding: 16px 20px;
  border-radius: 4px;
  border: 1px solid #eef0f2;
  overflow-x: auto;
  font-size: 0.88em;
  margin-bottom: 1.3em;
}

.article-content code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: 0.9em;
}

/* ==========================================================================
   PAGE TEMPLATE
   ========================================================================== */
.page-header {
  position: relative;
  color: #fff;
  padding: 120px 0 48px;
  overflow: hidden;
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6C63FF 0%, #4641FF 100%);
  opacity: 0.96;
  z-index: 1;
}

.page-header__inner {
  position: relative;
  z-index: 3;
}

.page-header__title {
  color: #fff;
  font-size: 2.2em;
  font-weight: 400;
}

.page-content {
  padding: 56px 0 64px;
}

/* ==========================================================================
   FOOTER (dark — Evie DNA)
   ========================================================================== */
.footer {
  background-color: #2d3440;
  color: #c8c8d0;
  padding: 48px 0 32px;
  font-size: 0.9em;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 600px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__brand {
  flex-shrink: 0;
  min-width: 180px;
}

.footer__brand-name {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.footer__brand-tagline {
  font-size: 0.85em;
  color: #999;
  line-height: 1.5;
  max-width: 260px;
}

.footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav li {
  margin-bottom: 8px;
}

/* Footer links — dotted border (Evie DNA) */
.footer__link {
  color: #c8c8d0;
  border-bottom: 1px dotted #777;
  padding-bottom: 1px;
  transition: 0.5s;
}

.footer__link:hover {
  color: #fff;
  border-color: #fff;
}

.footer__contact-email {
  color: #06d19c;
  border-bottom: 1px dotted #06d19c;
  padding-bottom: 1px;
  transition: 0.5s;
}

.footer__contact-email:hover {
  color: #fff;
  border-color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.85em;
  color: #888;
  text-align: center;
}

/* ==========================================================================
   CTA BAND (gradient — Evie DNA)
   ========================================================================== */
.cta-band {
  background: linear-gradient(to right, #6C63FF, #4641FF);
  color: #fff;
  text-align: center;
  padding: 48px 0;
}

.cta-band__title {
  color: inherit;
  font-size: 1.6em;
  margin-bottom: 0.3em;
}

.cta-band__text {
  opacity: 0.85;
  margin-bottom: 1.5em;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.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;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #6C63FF;
  outline-offset: 2px;
}

/* ==========================================================================
   POST EXCERPT IN ARTICLE
   ========================================================================== */
.post-excerpt {
  font-size: 1.1em;
  color: #666;
  line-height: 1.7;
  border-left: 3px solid #06d19c;
  padding-left: 20px;
  margin-bottom: 2em;
}

.post-excerpt p {
  margin-bottom: 0.4em;
}
