/* QuietFlame — responsive landing */
:root {
  --bg: #23201c;
  --bg-elevated: #2e2a26;
  --bg-card: #36322d;
  --text: #e2ddd4;
  --text-muted: #a69e92;
  --accent: #e8a84a;
  --accent-soft: rgba(232, 168, 74, 0.14);
  --border: rgba(226, 221, 212, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(35, 32, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.store-buttons--left {
  justify-content: flex-start;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 8px;
  overflow: hidden; 
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge img {
  display: block;
  height: 50px;
  width: auto;
  max-width: none;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0 5rem;
    text-align: left;
  }

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

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36ch;
}

@media (min-width: 768px) {
  .hero-lead {
    margin-inline: 0;
  }

  .hero .store-buttons {
    justify-content: flex-start;
  }
}

.hero-visual {
  margin-top: 2rem;
  max-width: 280px;
  margin-inline: auto;
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 768px) {
  .hero-visual {
    margin-top: 0;
    max-width: 300px;
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 50ch;
}

/* Features */
.features {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.feature-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* App preview */
.app-preview {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .app-preview {
    grid-template-columns: 1fr 1.2fr;
  }
}

.preview-frame {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.preview-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

/* CTA */
.cta {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(180deg, transparent, var(--accent-soft));
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.cta p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

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

/* Nav */
.site-nav__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--accent);
  text-decoration: none;
}

/* Blog list */
.blog-page { padding: 3rem 0 4rem; }
.blog-page__header { margin-bottom: 2.5rem; }
.blog-page__intro { color: var(--text-muted); max-width: 50ch; }

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.blog-card__link {
  display: grid;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 640px) {
  .blog-card__link {
    grid-template-columns: minmax(280px, 360px) 1fr;
  }
}
.blog-card__link:hover { text-decoration: none; }
.blog-card__image {
  padding: 0.75rem;
  align-self: start;
}
.blog-card__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.blog-card__body { padding: 1.25rem 1.5rem; }
.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.blog-card__title {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.25rem;
}
.blog-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.blog-card__more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.9rem;
}

/* Article */
.blog-article {
  max-width: 68ch;
  width: 100%;
  margin-inline: auto;
}
.blog-article__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}
.blog-article__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.blog-article__cover {
  margin: 2rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.blog-article__cover img { width: 100%; }

/* Prose — styled markdown body */
.prose {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }
.prose img {
  display: block;
  width: 100%;
  margin: 2rem 0;
  border-radius: var(--radius);
}
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}