:root {
  --ink: #1c2b4a;
  --copper: #c08051;
  --ember: #e07840;
  --paper: #faf7f2;
  --muted: #5a6478;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
}

.wordmark { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; }
.fire { color: var(--copper); }

.lang-switch button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.lang-switch button.active { background: var(--ink); color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  background: radial-gradient(ellipse at 50% 110%, rgba(224, 120, 64, 0.25), transparent 60%), var(--ink);
  color: #fff;
}

.hero h1 {
  position: relative;
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 1.05;
  margin: 0;
  animation: hero-in 0.9s ease-out both;
}

.hero .tagline {
  position: relative;
  font-size: clamp(1.05rem, 3.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin: 1rem auto 0;
  animation: hero-in 0.9s ease-out 0.15s both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.embers { position: absolute; inset: 0; pointer-events: none; }

.ember {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd9a0 0%, var(--ember) 55%, transparent 75%);
  opacity: 0;
  animation: rise linear infinite;
}

@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translate(var(--sway, 20px), -105%) scale(0.4); opacity: 0; }
}

.products { padding: 3rem 1.25rem 1rem; max-width: 64rem; margin: 0 auto; }
.products h2 { font-size: 1.6rem; margin: 0 0 1.25rem; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.card {
  display: block;
  background: #fff;
  border: 1px solid rgba(28, 43, 74, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.card:hover, a.card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--copper);
  box-shadow: 0 12px 28px rgba(28, 43, 74, 0.15);
}

.card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.card .cta { color: var(--copper); font-weight: 600; }
.card.soon { opacity: 0.85; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.about { text-align: center; padding: 2.5rem 1.25rem; color: var(--muted); }

footer {
  text-align: center;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(28, 43, 74, 0.12);
  color: var(--muted);
}
footer a { color: var(--copper); }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .tagline, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .ember { display: none; }
}
