:root {
  --ground: #0b0b0a;
  --surface: #171715;
  --raised: #22211e;
  --line: #302e29;
  --text: #f3f0e9;
  --muted: #c2beb5;
  --faint: #a9a49a;
  --gold: #c3ad78;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body { background: var(--ground); }

.topbar {
  position: relative;
  height: 76px;
  border-bottom: 0;
  background: var(--ground);
}

.brand { font-size: 19px; font-weight: 650; }
.brand-mark { width: 22px; height: 22px; grid-template-columns: repeat(3, 5px); gap: 3px; }
.brand-mark i { width: 5px; }
.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 21px; }
.brand-mark i:nth-child(3) { height: 17px; }

.home-header-actions { gap: 34px; }
.home-desktop-nav { gap: 30px; }
.home-desktop-nav a { color: var(--muted); font-size: 14px; }
.home-desktop-nav a:hover { color: var(--gold); }
.topbar-cta {
  min-height: 42px;
  padding: 0 18px;
  border-color: #766849;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
}
.topbar-cta:hover { border-color: var(--gold); background: var(--raised); }

.hero {
  min-height: 510px;
  height: clamp(510px, 70vh, 720px);
  background-color: #1b1a19;
}
.hero::after {
  background: linear-gradient(90deg, rgba(7, 7, 6, .68), rgba(7, 7, 6, .12) 72%),
    linear-gradient(0deg, rgba(7, 7, 6, .48), transparent 45%);
}
.hero-media { filter: brightness(.96) saturate(.92); }
.hero-content { left: clamp(24px, 6vw, 92px); bottom: 74px; max-width: 820px; }
.hero h1 {
  color: var(--text);
  font-size: 70px;
  line-height: 1.04;
  font-weight: 550;
}
.hero h1 span { color: #d5c297; font: inherit; }
.hero-copy { max-width: 440px; margin: 22px 0 28px; color: #e9e6df; font-size: 17px; line-height: 1.55; }
.hero-cta {
  min-height: 50px;
  padding: 0 25px;
  border-radius: 6px;
  background: var(--gold);
  color: #15140f;
  font-size: 14px;
  font-weight: 650;
}
.hero-cta:hover { background: #d5c18d; }
.hero-caption { right: clamp(24px, 5vw, 76px); bottom: 24px; color: #efebe2; font-size: 13px; }
.hero-caption span + span { color: #d6d0c5; }

.home-connect { display: flex; justify-content: center; align-items: center; padding: 30px 20px 8px; }
.home-connect .fh-connect-pill {
  position: static;
  transform: none;
  min-height: 48px;
  padding: 10px 18px;
  border-color: #4b4435;
  border-radius: 5px;
  background: #242018;
  font-size: 13px;
}
.home-connect .fh-connect-pill strong { color: #dbc895; }
.home-connect .fh-connect-pill:hover { border-color: #947f51; background: #302a1d; }

.tools-section { padding: 66px clamp(20px, 5vw, 76px) 60px; }
.tools-section h2, .home-library-heading h2 {
  color: var(--text);
  font-size: 33px;
  line-height: 1.18;
  font-weight: 500;
}
.tools-section h2 { margin-bottom: 30px; }
.tool-links { display: block; border: 0; }
.tool-link {
  position: relative;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 1.3fr) 24px;
  gap: 28px;
  min-height: 112px;
  padding: 22px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.tool-link + .tool-link { border: 0; margin-top: 0; }
.tool-link:hover { background: var(--surface); }
.tool-copy { display: contents; }
.tool-copy strong { color: var(--text); font-size: 23px; font-weight: 500; }
.tool-copy small { color: var(--muted); font-size: 15px; line-height: 1.5; }
.tool-arrow { align-self: center; margin: 0; width: 20px; height: 20px; opacity: .82; }
.tool-link:hover .tool-arrow { opacity: 1; }

.home-library { padding: 44px clamp(20px, 5vw, 76px) 96px; }
.home-library-heading { align-items: end; margin-bottom: 26px; }
.home-library-heading p { color: var(--muted); font-size: 15px; }
.home-library-feature { height: clamp(400px, 43vw, 570px); border: 0; border-radius: 6px; }
.home-library-shade { background: linear-gradient(0deg, rgba(4, 5, 5, .84), rgba(4, 5, 5, 0) 75%); }
.home-library-copy { gap: 14px; }
.home-library-copy > strong { font-size: 44px; font-weight: 500; }
.home-library-copy > span { color: #e4e1da; font-size: 17px; }
.home-library-copy .home-library-link { color: #dbc895; font-size: 14px; }
footer { min-height: 66px; color: var(--muted); font-size: 13px; }

.home-menu { background: var(--surface); border-color: #38352f; }
.home-menu nav a:hover { background: var(--raised); }

@media (max-width: 900px) {
  .hero h1 { font-size: 58px; }
  .tool-link { grid-template-columns: minmax(170px, .8fr) minmax(0, 1.3fr) 20px; }
}

@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 20px; }
  .home-header-actions { display: flex; gap: 8px; }
  .topbar-cta { min-height: 38px; padding: 0 12px; }
  .hero { min-height: 430px; height: clamp(430px, 58vh, 590px); }
  .hero::after { background: linear-gradient(0deg, rgba(7,7,6,.74), rgba(7,7,6,.06) 85%); }
  .hero-content { bottom: 62px; left: 22px; right: 22px; }
  .hero h1 { font-size: 46px; }
  .hero-copy { max-width: 330px; margin: 17px 0 21px; font-size: 15px; }
  .hero-caption { bottom: 16px; left: 22px; right: 22px; font-size: 11px; }
  .home-connect { padding: 23px 18px 0; }
  .home-connect .fh-connect-pill { max-width: 100%; min-height: 46px; font-size: 12px; }
  .tools-section { padding: 52px 20px 42px; }
  .tools-section h2, .home-library-heading h2 { font-size: 28px; }
  .tools-section h2 { margin-bottom: 22px; }
  .tool-link { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; min-height: 105px; padding: 17px 4px; }
  .tool-copy { display: flex; gap: 6px; }
  .tool-copy strong { font-size: 19px; }
  .tool-copy small { font-size: 14px; }
  .home-library { padding: 36px 20px 60px; }
  .home-library-heading { align-items: flex-start; gap: 8px; }
  .home-library-heading p { font-size: 14px; }
  .home-library-feature { height: 430px; }
  .home-library-copy > strong { font-size: 32px; }
  .home-library-copy > span { font-size: 15px; }
  footer { min-height: 68px; font-size: 12px; }
}

@media (max-width: 380px) {
  .brand { font-size: 16px; }
  .topbar-cta { padding: 0 9px; font-size: 11px; }
  .hero h1 { font-size: 39px; }
  .home-connect .fh-connect-pill { gap: 7px; padding: 9px 12px; font-size: 11px; }
  .home-connect .fh-connect-pill > img { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta:hover { transform: none; }
}
