/* QuietFlame — responsive landing */
:root {
  --bg: #0f0e0c;
  --bg-elevated: #1a1814;
  --bg-card: #221f1a;
  --text: #f5f0e8;
  --text-muted: #a89f8f;
  --accent: #e8a84a;
  --accent-soft: rgba(232, 168, 74, 0.15);
  --border: rgba(245, 240, 232, 0.08);
  --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(15, 14, 12, 0.85);
  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);
}