:root {
  --navy: #14223a;
  --green: #2d6a4f;
  --green-soft: #e9f2ed;
  --surface: #ffffff;
  --surface-muted: #f6f8f7;
  --border: #dce3e0;
  --text-muted: #66716d;
}

* { box-sizing: border-box; }
html { background: #fff; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: #fff; color: var(--navy); font-family: 'Open Sans', sans-serif; }
a { color: inherit; text-decoration: none; }

.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.nav-logo { color: var(--navy); font-size: 20px; line-height: 1; }
.nav-links {
  position: absolute;
  left: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  transform: translateX(-50%);
}
.nav-links .nav-item {
  height: 100%;
  padding: 0 3px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.nav-links .nav-item:hover, .nav-links .nav-item.on { color: var(--navy); border-bottom-color: var(--green); }
.auth-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.btn-login, .btn-register, .hero-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.btn-login { background: #fff; color: var(--navy); }
.btn-register { border-color: var(--green); background: var(--green); color: #fff; }
.btn-login:hover, .hero-button.secondary:hover { border-color: #c6d1cd; background: var(--surface-muted); }
.btn-register:hover, .hero-button.primary:hover { background: #245a42; }

main { flex: 1; }
.minimal-hero {
  min-height: clamp(500px, 68vh, 720px);
  padding: 96px 38px;
  display: grid;
  place-items: center;
  background: #fff;
}
.minimal-hero-inner { width: min(820px, 100%); text-align: center; }
.hero-kicker { margin: 0 0 18px; color: var(--green); font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.minimal-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  text-wrap: balance;
}
.hero-copy { max-width: 650px; margin: 24px auto 0; color: var(--text-muted); font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.hero-actions { margin-top: 32px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-button { min-height: 44px; padding-inline: 17px; }
.hero-button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.hero-button.secondary { background: #fff; color: var(--navy); }
.btn-login:focus-visible, .btn-register:focus-visible, .hero-button:focus-visible, .nav-item:focus-visible, .nav-logo:focus-visible {
  outline: 3px solid rgba(45, 106, 79, 0.25);
  outline-offset: 3px;
}

.amveric-footer {
  width: 100%;
  padding: 62px 38px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}
.footer-grid {
  width: min(1060px, 100%);
  padding-bottom: 38px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
  border-bottom: 1px solid var(--border);
}
.footer-column { min-width: 0; }
.brand-anchor-row { margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.logo-coin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--green); color: #fff; }
.logo-name { color: var(--navy); font-size: 18px; }
.brand-mission-text { max-width: 300px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.matrix-column-title { margin: 0 0 16px; color: var(--navy); font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.matrix-nav-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.matrix-link { color: var(--text-muted); font-size: 13px; }
.matrix-link:hover { color: var(--navy); text-decoration: underline; }
.footer-disclaimers-pane { width: min(1060px, 100%); padding-top: 30px; display: grid; gap: 8px; color: var(--text-muted); font-size: 10px; line-height: 1.6; }
.footer-disclaimers-pane p { margin: 0; }
.footer-bottom { width: min(1060px, 100%); padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; color: var(--text-muted); font-size: 11px; }
.footer-bottom div { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--navy); text-decoration: underline; }

@media (max-width: 880px) {
  .top-navbar { padding-inline: 20px; }
  .nav-links { display: none; }
  .minimal-hero { min-height: 560px; padding: 80px 22px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .auth-actions > .btn-login, .auth-actions > .btn-register { display: none; }
  .minimal-hero { min-height: 520px; padding: 70px 18px; }
  .minimal-hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .amveric-footer { padding: 48px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
