:root {
  --hg-orange: #e8732c;
  --hg-orange-soft: #fdebdc;
  --ink: #1c1814;
  --ink-soft: #5a544c;
  --muted: #8a8278;
  --bg: #fffaf3;
  --surface: #ffffff;
  --line: #efe7da;
  --radius: 20px;
  --shadow: 0 30px 60px -20px rgba(28, 24, 20, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--hg-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ---- Company landing ---- */
body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.home-main {
  flex: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  width: 100%;
}

.home-hero {
  text-align: center;
  padding: 40px 0 64px;
}
.home-logo {
  width: 96px;
  height: auto;
  margin-bottom: 28px;
}
.home-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--ink);
}
.tagline {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 400;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.app-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
  border-color: transparent;
}
.app-card-icon {
  flex-shrink: 0;
}
.app-card-icon img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: block;
}
.app-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-card-body h2 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--ink);
}
.app-card-body p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.app-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--hg-orange);
}
.app-card--atropos .app-card-cta { color: #7c3aed; }
.app-card--units .app-card-cta { color: var(--hg-orange); }

/* ---- Footer (shared) ---- */
.home-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 28px 24px;
}
.home-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.home-footer-inner strong { color: var(--ink); font-size: 15px; }
.home-footer-inner .copy {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.home-footer-inner a {
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.footer-brand:hover { text-decoration: none; }
.footer-brand:hover strong { color: var(--hg-orange); }
.footer-brand img {
  width: 40px;
  height: auto;
  display: block;
}

/* ---- Company chrome on app pages ---- */
.hg-bar {
  background: #fffaf3;
  border-bottom: 1px solid #efe7da;
}
.hg-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hg-bar-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5a544c;
  font-size: 14px;
  font-weight: 500;
}
.hg-bar-back:hover { color: var(--hg-orange); text-decoration: none; }
.hg-bar-back img {
  width: 22px;
  height: auto;
  display: block;
}
.hg-bar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5a544c;
  font-size: 14px;
  font-weight: 500;
}
.hg-bar .brand img { border-radius: 7px; }

@media (max-width: 600px) {
  .app-card {
    flex-direction: column;
    text-align: left;
  }
  .home-main { padding: 50px 18px 30px; }
  .home-hero { padding: 24px 0 40px; }
}
