/* Flownaught — studio site styles. A neutral, modern brand; each product
   carries its own accent color (Hearthward ember, Histari teal). */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --panel: #ffffff;
  --border: #e7e9f0;
  --text: #14171f;
  --dim: #5b6575;
  --brand: #4f46e5;        /* Flownaught indigo */
  --brand-dark: #4338ca;
  --hearthward: #e2571f;   /* game accent */
  --histari: #0ea5a0;      /* app accent */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1040px; width: 100%; margin: 0 auto;
}
.topbar a.logo {
  font-weight: 800; color: var(--text); font-size: 20px; text-decoration: none;
  letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 9px;
}
.topbar a.logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
.topbar nav a { color: var(--dim); text-decoration: none; font-size: 15px; margin-left: 22px; font-weight: 500; }
.topbar nav a:hover { color: var(--text); }

/* layout */
main { flex: 1; width: 100%; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px; }

/* hero / mission */
.hero { max-width: 820px; margin: 0 auto; padding: 56px 24px 20px; text-align: center; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 16px; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 16px; }
.tagline { color: var(--dim); font-size: clamp(16px, 2.4vw, 20px); max-width: 640px; margin: 0 auto; }
h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 30px 0 12px; }
h3 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 14px 22px; } li { margin-bottom: 6px; }
.muted { color: var(--dim); font-size: 13px; }
.section-title { text-align: center; margin: 40px 0 2px; }
.section-sub { text-align: center; color: var(--dim); margin-bottom: 8px; }

/* products grid */
.products {
  max-width: 940px; margin: 20px auto 8px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px;
}
.product {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(20,23,31,.04), 0 8px 24px rgba(20,23,31,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,23,31,.06), 0 16px 36px rgba(20,23,31,.10); }
.product .badge { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 27px; overflow: hidden; }
.product .badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .kind { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); margin: 16px 0 4px; }
.product h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.product p { color: var(--dim); font-size: 15px; flex: 1; margin-bottom: 16px; }
.product .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product .go { font-weight: 700; font-size: 15px; }
.product .sub-link { font-size: 14px; color: var(--dim); }

/* per-product accents */
.acc-hearthward .badge { background: rgba(226,87,31,.12); }
.acc-hearthward .go { color: var(--hearthward); }
.acc-histari .badge { background: rgba(14,165,160,.12); }
.acc-histari .go { color: var(--histari); }

/* CTA button */
.cta {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 700;
  font-size: 16px; text-decoration: none; border-radius: 12px; padding: 13px 26px;
  transition: background .15s ease, transform .15s ease;
}
.cta:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.cta.cta-hearthward { background: var(--hearthward); }
.cta.cta-hearthward:hover { background: #c44a16; }
.cta.cta-histari { background: var(--histari); }
.cta.cta-histari:hover { background: #0c8b87; }

/* value props row */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.feature { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.feature .ic { font-size: 24px; }
.feature h3 { margin: 8px 0 4px; font-size: 16px; }
.feature p { font-size: 14px; color: var(--dim); margin: 0; }

/* footer */
footer { border-top: 1px solid var(--border); margin-top: 56px; }
.footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: center; text-align: center;
}
.footer-inner nav a { color: var(--dim); text-decoration: none; font-size: 13px; }
.footer-inner nav a:hover { color: var(--text); }
.footer-inner .copy { color: var(--dim); font-size: 12px; width: 100%; }
