/* CapyHR marketing site — dark, calm, prism→cyan. Static, no build step.
   Accessibility is front-of-house: AA contrast, reduced-motion safe,
   semantic landmarks, visible focus. */

:root {
  --bg: #0a1018;
  --bg-card: #101b2a;
  --line: #1c2c42;
  --text: #e9eff7;
  --dim: #a7b8cd;
  --muted: #7e91a8;
  --accent: #22d3ee;
  --accent-soft: #7ee7f5;
  --prism: linear-gradient(90deg, #c084fc, #818cf8, #38bdf8, #22d3ee, #2dd4bf);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', -apple-system, system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

/* Header */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo b { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; }
nav.site a { color: var(--dim); text-decoration: none; font-size: 14px; margin-left: 22px; }
nav.site a:hover { color: var(--accent-soft); }

/* Prism band — the brand line: prism resolving to cyan at the edge */
.prism-line { height: 3px; background: var(--prism); border-radius: 2px; opacity: 0.9; }

/* Hero */
.hero { position: relative; padding: 64px 0 28px; text-align: center; }
.hero-lines {
  position: absolute; inset: -20px 0 auto 0; height: 420px; width: 100%;
  z-index: 0; pointer-events: none; opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
.hero > *:not(.hero-lines) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 650; line-height: 1.12; }
.hero h1 .accent {
  background: var(--prism);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  max-width: 620px; margin: 18px auto 0; font-size: 18px; color: var(--dim);
}
.hero .cta-row { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.12); color: var(--accent-soft);
}
.btn:hover { background: rgba(34, 211, 238, 0.2); }
.btn.ghost { background: none; border-color: var(--line); color: var(--dim); font-weight: 400; }

.hero-scene { max-width: 640px; margin: 44px auto 0; }
.hero-scene svg { width: 100%; height: auto; display: block; }
.hero-caption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Sections */
section { padding: 56px 0 8px; }
section h2 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
section .lede { color: var(--dim); max-width: 640px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 20px;
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--accent-soft); }
.card p { font-size: 15px; color: var(--dim); }

/* Interest form */
.form-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; max-width: 560px; margin: 26px auto 0;
}
.form-card label { display: block; font-size: 14px; color: var(--dim); margin: 14px 0 6px; }
.form-card input, .form-card textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-size: 15px;
}
.form-card textarea { min-height: 96px; resize: vertical; }
.form-card button { margin-top: 18px; width: 100%; }
.form-msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 20px; }
.form-msg.ok { color: #7ddba3; }
.form-msg.err { color: #f08585; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding-bottom: 60px; }
.legal h1 { font-size: 30px; margin: 36px 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--dim); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal .notice {
  background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 20px 0; font-size: 14px; color: var(--dim);
}

/* Footer */
footer.site {
  margin-top: 70px; border-top: 1px solid var(--line);
  padding: 26px 0 40px; font-size: 14px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
footer.site a { color: var(--dim); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--accent-soft); }

/* Gentle hero shimmer — disabled when motion is reduced */
@keyframes prismShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.prism-line.animate { background-size: 200% 100%; animation: prismShift 14s linear infinite; }
@media (prefers-reduced-motion: reduce) { .prism-line.animate { animation: none; } }
