/* Hash Solutions Inc. company site. Plain CSS, no external fonts or scripts. */
:root {
  --ink: #0c0c0c;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-soft: #fafaf9;
  --card: #ffffff;
  --accent: #f05a0a;        /* Hash Solutions orange (logo) */
  --accent-ink: #c2410c;    /* orange dark enough for text on white */
  --accent-soft: #fff4ed;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --muted: #a1a1aa;
    --line: #27272a;
    --bg: #0b0b0c;
    --bg-soft: #111113;
    --card: #151517;
    --accent-ink: #fb923c;
    --accent-soft: #2a1608;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo img { height: 50px; width: auto; }
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo .on-light { display: none; }
  .logo .on-dark { display: block; }
}
nav.main { display: flex; gap: 4px; }
nav.main a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 10px;
}
nav.main a:hover { background: var(--bg-soft); color: var(--ink); }
nav.main a.cta { background: var(--ink); color: var(--bg); }
nav.main a.cta:hover { opacity: .9; background: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  nav.main a:not(.cta) { display: none; }
  .logo img { height: 40px; }
}

/* Hero */
.hero { padding: 88px 0 72px; background:
  radial-gradient(900px 380px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 14px 0 18px; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }

/* Hero: text on the left, products scrolling on the right */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }
.showcase { --h: 250px; --gap: 32px; height: calc(var(--h) + 32px); margin: -16px; padding: 16px; overflow: hidden; }
.showcase .track { display: flex; flex-direction: column; gap: var(--gap); animation: showcase 10s ease-in-out infinite; }
.showcase:hover .track { animation-play-state: paused; }
.showcase .slide {
  height: var(--h); box-sizing: border-box; flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
  padding: 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
}
.showcase .slide img { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; }
.showcase .name { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin-top: 4px; }
.showcase .tagline { font-size: 17px; color: var(--ink-2); }
.showcase .badge { margin-top: 6px; }
/* Show KeyTally, scroll up to AvaniOS, scroll up to the KeyTally copy, then restart (seamless) */
@keyframes showcase {
  0%, 40%   { transform: translateY(0); }
  50%, 90%  { transform: translateY(calc(-1 * (var(--h) + var(--gap)))); }
  100%      { transform: translateY(calc(-2 * (var(--h) + var(--gap)))); }
}
@media (prefers-reduced-motion: reduce) {
  .showcase { height: auto; margin: 0; padding: 0; overflow: visible; }
  .showcase .track { animation: none; gap: 16px; }
  .showcase .slide { height: auto; }
  .showcase .clone { display: none; }
}
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(.95); }

/* Sections */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 10px 0 12px; }
.section-lead { color: var(--ink-2); max-width: 60ch; margin: 0 0 40px; font-size: 17px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.product .top { display: flex; align-items: center; gap: 14px; }
.product .top img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; }
.product h3 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.product .kind { font-size: 14px; color: var(--muted); margin: 0; }
.product p { margin: 0; color: var(--ink-2); }
.product ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.product ul li { margin: 4px 0; }
.product ul.ticks { list-style: none; padding-left: 0; }
.product ul.ticks li::before { content: "✓"; color: var(--accent-ink); font-weight: 700; margin-right: 8px; }
.product .actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.badge.live { background: color-mix(in srgb, #16a34a 12%, transparent); color: #15803d; border-color: color-mix(in srgb, #16a34a 30%, transparent); }
@media (prefers-color-scheme: dark) { .badge.live { color: #4ade80; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.principle { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.principle .n { font-weight: 800; color: var(--accent); font-size: 14px; }
.principle h3 { margin: 6px 0 8px; font-size: 19px; }
.principle p { margin: 0; color: var(--ink-2); }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--ink-2); font-size: 17px; }
.facts { list-style: none; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { font-weight: 600; text-align: right; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.contact a.card, .contact div.card {
  display: block; text-decoration: none; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.contact a.card:hover { border-color: var(--accent); }
.contact .label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact .value { font-size: 19px; font-weight: 700; margin-top: 6px; word-break: break-word; }
.contact .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site .mark { display: flex; align-items: center; gap: 10px; }
footer.site .mark img { width: 28px; height: 28px; }

/* Simple text pages (privacy, 404) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .meta { color: var(--muted); font-size: 14px; }
